T = int(input()) for _ in range(T): a,b,c,d = map(int,input().split()) D = b**2-3*a*c if a != 0 and D > 0: print("Yes") else: print("No")