#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll v, c, n, m;
void solve() {
  ll tmp, sum;
  cin >> v >> c >> n >> m;
  tmp = min(v, c);
  if (tmp < m) {
    cout << "No\n";
  } else {
    sum = v + c - m;
    if (sum < n) {
      cout << "No\n";
    } else {
      cout << "Yes\n";
    }
  }
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
