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