#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t, a, b;
  cin >> t;
  while (t--) {
    cin >> a >> b;
    if ((a + a) > b)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
  ;
}
