#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{   int i,T,a[300],b[300],c[300],d[300],n;

    scanf("%d",&T);
    for(i=0;i<T;i++){
    scanf("%d %d %d %d",&a[i],&b[i],&c[i],&d[i]);
    }
    for(i=0;i<T;i++){
        if(a[i]<b[i]||b[i]>d[i]){
            printf("%dNo\n",i);
        }else {for(n=0;n<=b[i];n++){
            if(c[i]+n-2*b[i]+d<0){
                printf("No\n");
            }else{
                printf("Yes\n");}
        }}
    }
        
    
    
    return 0;
}
