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