#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unrolled-loops")
using namespace std;
const long long mod = 1e9 + 7;
const long long mod2 = 1e9 + 9;
const long long INF = 1e15;
const long long oo = 2e18 + 7;
const long long base = 311;
int test = 1;
void FlyingTuna() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ifstream *fi = new ifstream(
      "TestCode"
      ".inp");
  ofstream *fo = new ofstream(
      "TestCode"
      ".out");
  if (*fi) {
    cin.rdbuf(fi->rdbuf());
    cout.rdbuf(fo->rdbuf());
  }
}
long long a, b, n, m;
void In() { cin >> a >> b >> n >> m; }
void Solve() {
  In();
  if (a + b < n + m) {
    cout << "No" << '\n';
    return;
  }
  if (a > b) {
    if (b < m)
      cout << "No" << '\n';
    else
      cout << "Yes" << '\n';
  } else {
    if (a < m)
      cout << "No" << '\n';
    else
      cout << "Yes" << '\n';
  }
}
int32_t main() {
  FlyingTuna();
  cin >> test;
  while (test--) Solve();
}
