#include using namespace std; int main() { int t; cin >> t; while (t--) { int x,y; cin >> x >> y; if(x <= 4) { cout << ((x >= y)?"Yes":"No") << endl; } else { cout << "Yes" << endl; } } }