T=int(input()) ans=[] for _ in range(T): a,b,c,d=map(int,input().split()) ans.append('Yes' if a!=0 and b*b-3*a*c>0 else "No") print('\n'.join(ans))