import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
while(T > 0)
{
int l = sc.nextInt();
int r = sc.nextInt();
if ( r < 2 * l) System.out.println("YES");
else System.out.println("NO");
T --;
}
}
}