#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int x, y, ref, flag = 1;
    cin >> x >> y;
    ref = x;
    if (x == 1) {
      if (y == 1)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    } else {
      while (1 == 1) {
        if (x >= y)
          break;
        else {
          if (x % 2 == 0)
            x = (x * 3) / 2;
          else
            x--;
          if (x == ref) {
            flag = 0;
            break;
          }
        }
      }
      if (flag)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    }
  }
}
