#include <bits/stdc++.h>
using namespace std;
int main() {
  int l;
  cin >> l;
  for (int i = 0; i < l; i++) {
    long long a, b, c, d;
    cin >> a;
    cin >> b;
    cin >> c;
    cin >> d;
    long long t1, t2;
    if (a < b) {
      long long temp = a;
      a = b;
      b = temp;
    }
    if ((a + (b - d)) >= c && b >= d) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
