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