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