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