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