#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    long long int v, c, t1, t2;
    bool flag = true;
    cin >> v >> c >> t1 >> t2;
    if ((v + c) < (t1 + t2))
      cout << "No" << '\n';
    else {
      if (v > c) {
        if (c < t2)
          cout << "No" << '\n';
        else
          cout << "Yes" << '\n';
      } else {
        if (v < t2)
          cout << "No" << '\n';
        else
          cout << "Yes" << '\n';
      }
    }
  }
  return 0;
}
