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