T=int(input()) for _ in range(T): a,b,c,d=map(int, input().split()) x=b**2-4*a*c if a==0 or x<=0: print('No') else: print('Yes')