local q = io.read("*n") for iq = 1, q do local x, y = io.read("*n", "*n") if y <= x or 4 < x then print("Yes") else print("No") end end