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