#include <bits/stdc++.h>
using namespace std;
int main() {
  int tt;
  cin >> tt;
  while (tt--) {
    int l, r;
    cin >> l >> r;
    int p = 2 * l;
    if (r - l >= l)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}
