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