#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long a, b, n, m;
    cin >> a >> b >> n >> m;
    if (a + b < n + m) {
      cout << "no"
           << "\n";
    } else {
      long long v1 = min(a, b);
      long long v2 = max(a, b);
      if (v1 >= m) {
        cout << "yes"
             << "\n";
      } else {
        cout << "no"
             << "\n";
      }
    }
  }
  return 0;
}
