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