#include <bits/stdc++.h>
using namespace std;
int main() {
  long a, b, c, d;
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    cin >> a >> b >> c >> d;
    if (min({a, b, d}) != b)
      cout << "No" << endl;
    else if (b == d && a - b <= c)
      cout << "Yes" << endl;
    else if (c >= b - 1)
      cout << "Yes" << endl;
    else if (c >= b - 2)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
