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