#include <bits/stdc++.h>
int n;
int main() {
  scanf("%d", &n);
  while (n--) {
    int l, r;
    scanf("%d%d", &l, &r);
    l <<= 1;
    if (r < l) {
      printf("YES\n");
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
