#include <bits/stdc++.h>
using namespace std;
int T, a, b, n, s;
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%d%d%d%d", &a, &b, &n, &s);
    int qwq = s / n;
    qwq = min(qwq, a);
    s -= qwq * n;
    if (b < s)
      puts("no");
    else
      puts("yes");
  }
  return 0;
}
