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