#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int t, a, b, n, m;
  cin >> t;
  while (t--) {
    cin >> a >> b >> n >> m;
    if (a + b < n + m) {
      cout << "No" << endl;
      continue;
    }
    if (m > min(a, b)) {
      cout << "No" << endl;
      continue;
    }
    cout << "Yes" << endl;
  }
}
int main() {
  solve();
  return 0;
}
