#include <bits/stdc++.h>
using namespace std;
void solve() {
  int L, R, truth = 0, i;
  cin >> L >> R;
  for (i = R + 1; (2 * (L % i)) >= i; i++) {
    if ((2 * (L % i)) >= i) {
      truth = 1;
      break;
    }
  }
  if (truth == 1)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  int T, i;
  cin >> T;
  for (i = 1; i <= T; i++) {
    solve();
  }
  return 0;
}
