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