#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long int x, y;
    cin >> x >> y;
    if (x >= y)
      cout << "yes\n";
    else {
      set<long long int> s;
      while (x < y) {
        s.insert(x);
        if (x % 2 == 0)
          x = (x * 3) / 2;
        else
          x--;
        if (s.find(x) != s.end()) break;
      }
      if (x >= y)
        cout << "yes\n";
      else
        cout << "no\n";
    }
  }
  return 0;
}
