#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int test = 0; test < t; test++) {
    long long a, b, n, m;
    cin >> a >> b >> n >> m;
    if ((n + m) > (a + b))
      cout << "No" << endl;
    else {
      if (min(a, b) >= m)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    }
  }
  return 0;
}
