#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tc;
  scanf("%lld", &tc);
  while (tc--) {
    long long i, j, x, y, f = 1, k, p, a, b;
    scanf("%lld%lld", &x, &y);
    if (x == y) {
      cout << "YES" << endl;
    } else {
      for (i = 1; i <= 100000; i++) {
        if (x % 2 == 0) {
          x = ((x * 3) / 2);
        } else {
          x = x - 1;
        }
        if (x >= y) {
          f = 0;
          break;
        } else if (x <= 3) {
          break;
        }
      }
      if (f == 0) {
        cout << "YES" << endl;
      } else {
        cout << "NO" << endl;
      }
    }
  }
  return 0;
}
