t=gets.to_i t.times{ x,y=gets.split(" ").map{|e| e.to_i} ans="Yes" if x==y then ans="Yes" elsif x==1 then ans="No" elsif x<=3 && y>=x then ans="No" elsif x==4 && y>x then ans="No" end puts ans }