#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, l, r;
  cin >> t;
  while (t--) {
    cin >> l >> r;
    if (2 * l > r)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
