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