#include #include using namespace std; using namespace atcoder; //const long nPrime = 1000000007; //const long nPrime = 998244353; typedef long long ll; int main() { long t; cin >> t; while(t--){ long x,y; cin >> x >> y; if (x <= 4){ if(y<=x){ cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "Yes" << endl; } } return 0; }