#include <bits/stdc++.h>
using namespace std;
void bruh() {
  int l, r;
  cin >> l >> r;
  long long x = 2 * l;
  if (x > r) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    bruh();
  }
  return 0;
}
