#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7ll;
const int N = (int)1e5 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long int a, b, n, m;
    cin >> a >> b >> n >> m;
    string ans = "Yes";
    if (a + b == 0)
      ans = "No";
    else if (a == 0 && m != 0)
      ans = "No";
    else if (b == 0 && m != 0)
      ans = "No";
    else if (a + b < m + n)
      ans = "No";
    else if (m > min(a, b))
      ans = "No";
    cout << ans << endl;
  }
  return 0;
}
