for _ in range(int(input())): n,a,b=map(int,input().split()) if min(a,b)==1 or abs(a-b)==1: print("YES") else: print("NO")