#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 2e18;
const long long MAX = 405;
int main() {
  long long tc;
  cin >> tc;
  while (tc--) {
    long long l, r;
    cin >> l >> r;
    cout << (r < 2 * l ? "YES" : "NO") << "\n";
  }
  return 0;
}
