#include<bits/stdc++.h> #define ll long long using namespace std; ll hc,hm,k,w,a,d,h,dc,dm,t; bool flag; void rec(){ } int main(){ cin>>t; while(t--){ flag=0; scanf("%lld %lld",&hc,&dc); scanf("%lld %lld",&hm,&dm); scanf("%lld %lld %lld",&k,&w,&a); if(dc==hm){ flag=1; } else { for(ll i=0;i<=k;i++){ h=hc+i*a; d=dc+(k-i)*w; if((h-1) / dm >= (hm-1) / d){ flag=1; break; } } } if(flag){ printf("YES\n"); } else printf("NO\n"); } return 0; }