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