#include <bits/stdc++.h>
using namespace std;
template <typename T>
void print(T value) {
  cout << value << endl;
}
long long a, b, c, d, e;
string str;
int main() {
  cin >> a;
  string result[a];
  long long NIIT[a][4];
  for (int i = 0; i < a; i++) {
    cin >> b >> c >> d >> e;
    NIIT[i][0] = b;
    NIIT[i][1] = c;
    NIIT[i][2] = d;
    NIIT[i][3] = e;
    if (b - c - d == 1) {
      result[i] = "No";
    } else if (e % (b - c - d) == 0) {
      result[i] = "Yes";
    } else {
      result[i] = "No";
    }
  }
  for (int i = 0; i < a; i++) {
    print(result[i]);
  }
  return 0;
}
