import math

t = int(input())
q_list = []

for i in range(t):
  q_list.append(list(map(int, input().split())))

for a, b, c, d in q_list:
  rest = c - (a - b)
  delta = d - b

  if c + delta < b:
    print('No')
    continue
  else:
    print('Yes')
