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