#include <bits/stdc++.h>
using namespace std;
void start() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  start();
  long long t;
  cin >> t;
  while (t--) {
    long long n, m, a, b;
    cin >> a >> b >> n >> m;
    if (a + b < n + m) {
      cout << "No"
           << "\n";
      continue;
    } else {
      if (min(a, b) < m) {
        cout << "No"
             << "\n";
        continue;
      }
    }
    cout << "Yes"
         << "\n";
  }
  return 0;
}
