#include <bits/stdc++.h>
using namespace std;
int main() {
  int tst, x, y, a;
  cin >> tst;
  while (tst--) {
    cin >> x >> y;
    a = (x * 3) / 2;
    if (x >= y || a == y && x % 2 == 0) {
      cout << "YES" << endl;
      continue;
    }
    if (x < 4)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
