#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int e = 0; e < t; e++) {
    long long a, b;
    cin >> a >> b;
    set<int> pos;
    pos.insert(a);
    int pr = 0;
    while (pr != pos.size() && a < b) {
      if (a % 2 == 0)
        a = a * 3 / 2;
      else
        a--;
      pr = pos.size();
      pos.insert(a);
    }
    if (a < b)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
