#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, n, s;
  int q;
  cin >> q;
  while (q--) {
    cin >> a >> b >> n >> s;
    int d = min(s / n, a);
    d = s - d * n;
    if (d <= b) {
      cout << "Yes" << endl;
    } else
      cout << "No" << endl;
  }
}
