#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a;
  cin >> a;
  while (a--) {
    long long x, y;
    cin >> x >> y;
    if (x % 2 == 0) {
      ++x;
    }
    if (x >= 4 || x >= y) {
      cout << "yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
