T = int(input())
Data = [[int(i) for i in input().split()] for i in range(T)] 

for i in range(T):
  if Data[i][0] >= Data[i][1] and (Data[i][2]+1) >= Data[i][1] and Data[i][3] >= Data[i][1]:
    print('Yes')
  else:
    print('No')
