#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a, b, n, s;
    cin >> a >> b >> n >> s;
    if (a >= s / n) {
      if (b >= s % n)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    } else {
      if (b >= s - (n * a))
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
