#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f3f3f3f3f;
long long power(long long a, long long b) {
  long long res = 1;
  while (b != 0) {
    if (b & 1) {
      res *= a;
    }
    a = (a * a);
    b = (b / 2);
  }
  return res;
}
int32_t main() {
  long long i, j, k, l, n, m, t;
  t = 1;
  cin >> t;
  while (t--) {
    long long a, b;
    cin >> a >> b >> n >> m;
    if (m <= min(a, b) && m + n <= a + b) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
