#include <bits/stdc++.h>
using namespace std;
std::vector<std::vector<int>> vec;
int check(int i) {
  if ((vec[i][0] >= vec[i][3]) && (vec[i][0] <= vec[i][3] + vec[i][2]) &&
      ((vec[i][1] - vec[i][2] + vec[i][1] - vec[i][3]) <= 0) &&
      (vec[i][0] - vec[i][1] >= vec[i][3] - vec[i][2])) {
    return 1;
  } else
    return 0;
}
void show(int i) {
  if (check(i) == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
int main() {
  int t;
  cin >> t;
  vec.resize(t);
  for (int i = 0; i < t; i++) {
    vec[i].resize(4);
    cin >> vec[i][0] >> vec[i][1] >> vec[i][2] >> vec[i][3];
  }
  for (int i = 0; i < t; i++) {
    show(i);
  }
  return 0;
}
