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