#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const int maxn = 5100;
const int mod = 1e9 + 7;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long a, b;
    cin >> a >> b;
    if (a * 2 > b)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
