#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 or (a + b) < (n + m))
    cout << "No\n";
  else
    cout << "Yes\n";
}
int main() {
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
