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