#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x, y, f, k, n, t, a, b;
  cin >> t;
  while (t--) {
    cin >> x >> y >> a >> b;
    if (x + y == 0) {
      cout << "No" << endl;
    } else if ((x + y > 0 && min(x, y) == 0) && b > 0) {
      cout << "No" << endl;
    } else if ((x + y) < (a + b)) {
      cout << "No" << endl;
    } else if (min(x, y) < b) {
      cout << "No" << endl;
    } else
      cout << "Yes" << endl;
  }
  return 0;
}
