#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long int a, b, n, m;
    cin >> a >> b >> n >> m;
    if (a + b < m + n) {
      cout << "No\n";
      continue;
    } else {
      if (max(m, n) <= min(a, b)) {
        cout << "Yes\n";
        continue;
      } else if (m <= min(a, b)) {
        cout << "Yes\n";
        continue;
      } else {
        cout << "No\n";
      }
    }
  }
  return 0;
}
