#include <bits/stdc++.h>
using namespace std;
int main() {
  int ts;
  cin >> ts;
  while (ts--) {
    long long int a, b, n, m;
    cin >> a >> b >> n >> m;
    if (a + b < n + m) {
      cout << "No\n";
      continue;
    }
    if (a > b) {
      if (b >= m) {
        cout << "Yes\n";
      } else {
        cout << "No\n";
      }
    } else {
      if (a >= m) {
        cout << "Yes\n";
      } else {
        cout << "No\n";
      }
    }
  }
  return 0;
}
