# Arup Guha
# 7/10/2025
# Solution to 2025 SI@UCF Comp. Prog Camp Contest #4 Problem: Ride Selection

nC = int(input())

# Process cases.
for loop in range(nC):

    # Get input.
    toks = input().split()

    # Multiply Arup's estimate by 4.
    realH = 4*int(toks[0])

    # Here's how high Adrian is willing to drop on a ride.
    myMax = int(toks[1])

    # Output accordingly.
    if realH <= myMax:
        print("YES")
    else:
        print("NO")
