#include <bits/stdc++.h>
#pragma GCC optimize(2)
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 (min(a, b) < m || a + b < n + m) {
      printf("No\n");
    } else {
      printf("Yes\n");
    }
  }
  return 0;
}
