#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long v, c, n, m;
    cin >> v >> c >> n >> m;
    if (v + c < n + m)
      cout << "No\n";
    else {
      if (n && !m)
        cout << "Yes\n";
      else if (!n && m) {
        if (m > min(v, c))
          cout << "No\n";
        else
          cout << "Yes\n";
      } else {
        if (v != c) {
          long long tmp;
          if (v > c) {
            tmp = min(n, v - c);
            n -= tmp;
            v -= tmp;
          } else {
            tmp = min(n, c - v);
            n -= tmp;
            c -= tmp;
          }
          if (v != c) {
            if (m > min(v, c))
              cout << "No\n";
            else
              cout << "Yes\n";
            continue;
          }
        }
        long long tmp = min(n, m);
        n -= tmp;
        m -= tmp;
        if (c < tmp || v < tmp) {
          cout << "No\n";
          continue;
        }
        c -= tmp;
        v -= tmp;
        if (n)
          cout << "Yes\n";
        else {
          if (m > min(v, c))
            cout << "No\n";
          else
            cout << "Yes\n";
        }
      }
    }
  }
}
