#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N, M;
    cin >> N >> M;
    if (N * 2 > M)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
