#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  long long a, b, n, m;
  for (cin >> t; t--;) {
    cin >> a >> b >> n >> m;
    if (a < b) swap(a, b);
    puts(b >= m && n + m <= a + b ? "yes" : "no");
  }
  return 0;
}
