for _ in "_"*int(input()):a,b,c,d=[int(x)for x in input().split()];print("YNeos"[a==0 or b*b-3*a*c<=0::2])