#include <bits/stdc++.h>
using namespace std;
long long sq(long long x) { return x * x; }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int x, y;
    cin >> x >> y;
    while (x < y && x != 3 && x != 1) {
      if (x % 2 == 0)
        x = 3 * (x / 2);
      else
        x--;
    }
    if (x < y)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
  return 0;
}
