#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    long long a, b, m, n;
    scanf("%lld%lld%lld%lld", &a, &b, &m, &n);
    if (min(a, b) < n)
      printf("No\n");
    else {
      if (a + b >= n + m)
        printf("Yes\n");
      else
        printf("No\n");
    }
  }
  return 0;
}
