#include <bits/stdc++.h>
using namespace std;
const long long N = 1e2 + 7;
const long long mod = 1e9 + 7;
const long double eps = 1e-9;
long long n, a, b, m;
void solve() {
  cin >> a >> b >> n >> m;
  if (a + b == 0) {
    cout << "No\n";
    return;
  }
  if (a + b == min(a, b)) {
    if (m) {
      cout << "No\n";
      return;
    }
    if (n <= max(a, b)) {
      cout << "Yes\n";
      return;
    }
    cout << "No\n";
    return;
  }
  if (a + b < n + m) {
    cout << "No\n";
    return;
  }
  if (min(a, b) < m) {
    cout << "No\n";
    return;
  }
  cout << "YES\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tt = 1;
  cin >> tt;
  while (tt--) {
    solve();
  }
}
