#include <bits/stdc++.h>
#pragma GCC optimize "-O3"
using namespace std;
void work() {
  long long a, b, n, m;
  cin >> a >> b >> n >> m;
  if (a + b < n + m) {
    cout << "No"
         << "\n";
    return;
  }
  long long mn = min(a, b);
  long long mx = max(a, b);
  if (mn < m) {
    cout << "No"
         << "\n";
    return;
  }
  if (a == mn)
    a -= m;
  else
    b -= m;
  if (a + b < n) {
    cout << "No"
         << "\n";
    return;
  }
  cout << "Yes"
       << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long caeshi = 1;
  cin >> caeshi;
  for (long long z = 0; z < caeshi; ++z) work();
  return 0;
}
