#include <bits/stdc++.h>
using namespace std;
inline void readINFile();
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  readINFile();
  long long tc;
  cin >> tc;
  while (tc--) {
    unsigned long long a, b, n, m;
    cin >> a >> b >> n >> m;
    cout << ((m > min(a, b) or n + m > a + b) ? "No" : "Yes") << endl;
  }
}
inline void readINFile() {}
