#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, r, i, j, k;
    long long s = 0, p = 0, q = 0;
    long long a, b, m;
    cin >> a >> b >> n >> m;
    if (a + b < n + m) {
      cout << "No\n";
      continue;
    }
    if (min(a, b) >= m) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
}
