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