#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t-- > 0) {
    long long v, c, n, m;
    cin >> v >> c >> n >> m;
    bool res = true;
    if (v + c < n + m) {
      res = false;
    } else {
      if (v > c) {
        if (min(c, v) < m) res = false;
      } else {
        if (min(c, v) < m) res = false;
      }
    }
    string s = res ? "Yes" : "No";
    cout << s << endl;
  }
  return 0;
}
