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