#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> q;
  while (q--) {
    ll a, b, n, s;
    cin >> a >> b >> n >> s;
    int t = min(a, s / n);
    s -= t * n;
    if (s <= b)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
