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