#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int x, y;
  cin >> x >> y;
  if (x == 1) {
    if (y <= 1) {
      cout << "yes" << endl;
      return;
    } else {
      cout << "no" << endl;
      return;
    }
  } else if (x == 2 || x == 3) {
    if (y <= 3) {
      cout << "yes" << endl;
      return;
    } else {
      cout << "no" << endl;
      return;
    }
  } else if (x > 3) {
    cout << "yes" << endl;
    return;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int q;
  cin >> q;
  while (q--) {
    solve();
  }
  return 0;
}
