#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll M = 1000000007;
const ll M1 = 998244353;
using vl = vector<ll>;
using pll = pair<ll, ll>;
void solve() {
  unsigned long long v, c, n, m, mn, mn2, x, y;
  cin >> v >> c >> n >> m;
  int f = 1;
  mn = min(v, c);
  if (mn < m) {
    cout << "No\n";
    return;
  }
  if (v + c < (n + m)) {
    cout << "No\n";
    return;
  }
  cout << "Yes\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    solve();
  }
  return 0;
}
