#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long x, y;
  scanf("%lld %lld", &x, &y);
  while (true) {
    if (x >= y) {
      cout << "YES" << endl;
      return;
    } else if ((x == 1 && y == 1)) {
      cout << "YES" << endl;
      return;
    } else if (x == 3 || x == 1) {
      cout << "NO" << endl;
      return;
    } else {
      if (x % 2 != 0) {
        x--;
      }
      x *= 3;
      x /= 2;
    }
  }
}
int main() {
  long long t;
  scanf("%lld", &t);
  while (t--) {
    solve();
  }
  return 0;
}
