#include <bits/stdc++.h>
using namespace std;
long long ar[100001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long T;
  cin >> T;
  while (T--) {
    long long a, b, n, m;
    cin >> a >> b >> n >> m;
    if (a + b < n + m || m > min(a, b))
      cout << "No"
           << "\n";
    else
      cout << "Yes"
           << "\n";
  }
  return 0;
}
