for _ in range(int(input())): a,b,c,d = map(int,input().split()) if a == 0 or b*b-3*a*c == 0: print('No') else: print('YNeos'[b*b-3*a*c<0::2])