#include <bits/stdc++.h>
using namespace std;
void GO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
}
const int INF = int(1e9) + 1;
const long long mod = (long long)998244353;
const int MAX_N = (int)1e6 + 200000;
void solve() {
  long long l, r;
  cin >> l >> r;
  if (2 * l <= r)
    cout << "NO\n";
  else
    cout << "YES\n";
}
signed main() {
  GO();
  int Q = 1;
  cin >> Q;
  while (Q--) solve();
}
