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