import math t=int(input()) nab=[] for _ in range(t): nab.append(list(map(int,input().split()))) for i in nab : if math.gcd(nab[1],nab[2])==1 and nab[0]>nab[1]+nab[2]+1 : print("YES") else: print("NO")