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