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