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