#include <iostream> using namespace std; typedef long long LL; int main() { int t; cin >> t; while (t -- ) { LL l, r; cin >> l >> r; cout << (r < 2 * l ? "YES" : "NO") << endl; } return 0; }