#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long a, b, m, n;
    cin >> a >> b >> n >> m;
    cout << (((a + b >= m + n) && (m <= min(a, b))) ? "Yes" : "No") << endl;
  }
}
