#include using namespace std; int main(){ int n;cin>>n; for(int i = 0; n > i; i++){ int a,b;cin>>a>>b; if(a == 1 && b != 1)cout << "No" << endl; else cout << "Yes" << endl; } }