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