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