#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b;
  cin >> a >> b;
  if (2 * a > b)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  int T;
  cin >> T;
  for (int i = 0; i < T; i++) solve();
  return 0;
}
