#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int n, l, r, ans = 0;
    cin >> l >> r;
    if ((2ll * l) >= (r + 1ll))
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
