#include <bits/stdc++.h>
int main(void) {
  long T, A[300], B[300], C[300], D[300];
  int i, j, cnt, ans;
  scanf("%ld", &T);
  for (i = 0; i < T; i++) {
    scanf("%ld%ld%ld%ld", &A[i], &B[i], &C[i], &D[i]);
  }
  for (i = 0; i < T; i++) {
    if (A[i] >= B[i] && D[i] >= B[i] - 1) {
      if (A[i] % 2 == 0 && B[i] % 2 == 0 && D[i] % 2 == 0 && C[i] % 2 == 1) {
        if (C[i] >= B[i] - 2)
          printf("Yes\n");
        else
          printf("No\n");
      } else if (A[i] % 2 == 0 && B[i] % 2 == 0 && D[i] % 2 == 0 &&
                 C[i] % 2 == 0) {
        if (C[i] >= B[i] - 2)
          printf("Yes\n");
        else
          printf("No\n");
      } else {
        if (C[i] >= B[i] - 1)
          printf("Yes\n");
        else
          printf("No\n");
      }
    } else
      printf("No\n");
  }
  return 0;
}
