#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
void setIO(string second) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  freopen((second + ".in").c_str(), "r", stdin);
  freopen((second + ".out").c_str(), "w", stdout);
}
void solve() {
  ll a, b, n, m;
  cin >> a >> b >> n >> m;
  if (a + b < n + m || min(a, b) < m) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
