#include <bits/stdc++.h>
using namespace std;
long long t, a, b, n, m, ok;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> a >> b >> n >> m;
    if (a + b < n + m) {
      ok = 0;
    } else {
      if (min(a, b) < m) {
        ok = 0;
      } else
        ok = 1;
    }
    if (ok)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
