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