#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, l, c1, c2, a1, a2, n, q, a, b, c;
  cin >> q;
  for (i = 0; i < q; i++) {
    map<long long, long long> m;
    c1 = 0, c2 = 0, a1 = 0, a2 = 0, c = 0;
    cin >> a >> b;
    string s, s1;
    vector<long long> v, v1;
    if (a * 2 <= b)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}
