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