#include <bits/stdc++.h>
using namespace std;
long long int mod = 998244353;
long long int MOD = 1e9 + 7;
long long int INF = 1e18;
long long int dx[] = {1, -1, 0, 0};
long long int dy[] = {0, 0, 1, -1};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int l, r;
    cin >> l >> r;
    if (r >= 2 * l)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
