#include #include #define rep(i,n) for(int i = 0; i < n; i++) #define srep(i,a,b) for(int i = a; i < b; i++) #define all(A) (A).begin(),A.end() #define MOD 1000000007 using namespace std; using ll = long long; using P = pair; using Graph = vector>; int main(void){ int T; cin >> T; rep(i,T){ bool ok = 0; int X,Y; cin >> X >> Y; if(X == Y) ok = 1; cout << (X >= 5 || ok || X > Y ? "Yes" : "No") << endl; } }