#include <bits/stdc++.h>
using namespace std;
double pi = acos(-1.0);
const double EPS = 1e-9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long i, j, n, m, a, b;
  long long tt;
  cin >> tt;
  while (tt--) {
    cin >> a >> b >> n >> m;
    if (a + b < n + m)
      cout << "No\n";
    else if (min(a, b) < m)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
}
