#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, s, p, k, m, t, x, y, ans, res;
  cin >> t;
  while (t--) {
    cin >> n >> k;
    if (n * 2 > k)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
