using namespace std; int main() { int n,l,r; cin>>n; while(n–) {cin>>l>>r; if(r-l>=l) cout<<”NO”<<endl; else cout<<”YES”<<endl; } }