#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long int llINF = (long long)(1e18) + 100;
const int MAXN = 1e5 + 10;
void solve() {
  long long int a, b, n, m;
  cin >> a >> b >> n >> m;
  if (a + b < n + m or m > min(a, b))
    cout << "no" << '\n';
  else
    cout << "yes" << '\n';
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int T;
  cin >> T;
  while (T--) solve();
}
