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