#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  double pi = 2 * acos(0.0);
  long long int t, n, m, i, j, k, a, b, c, p, q, r, x, y, z, count = 0;
  cin >> t;
  while (t--) {
    cin >> x >> y >> n >> m;
    a = max(x, y);
    b = min(x, y);
    if (a + b < n + m)
      cout << "No" << endl;
    else if (a >= n && b >= m)
      cout << "Yes" << endl;
    else if (b < m)
      cout << "No" << endl;
    else if (a < n) {
      if (a + b >= n + m)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    }
  }
  return 0;
}
