#include <bits/stdc++.h>
using namespace std;
const long long llinf = 2e18 + 7;
const int inf = 2e9 + 7;
const long long mod = 1e9 + 7;
const long long N = 1e6 + 7;
const long double pi = 3.14159265358979;
void swap(long long *a, long long *b) {
  long long temp = *a;
  *a = *b;
  *b = temp;
}
void solve() {
  long long a, b, n, m;
  cin >> a >> b >> n >> m;
  if (a > b) {
    swap(&a, &b);
  }
  if ((a + b) < (n + m)) {
    cout << "No";
    return;
  }
  if (m > a) {
    cout << "No";
    return;
  }
  cout << "Yes";
}
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  t = 1;
  cin >> t;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
