#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long double l, r;
    cin >> l >> r;
    double v = l / (r - l);
    if (v > 1)
      cout << "yes";
    else
      cout << "no";
    cout << "\n";
  }
  return 0;
}
