#include <bits/stdc++.h>
using namespace std;
const long long MOD = (long long)1e9 + 7;
const double PI = acos(-1.0);
void solve() {
  long long l, r;
  cin >> l >> r;
  if (r + 1 <= 2 * l) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
int32_t main() {
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
