#include <bits/stdc++.h>
using namespace std;
const int inf = 2147483647;
const double pi = acos(-1.0);
long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') x = x * 10ll + ch - '0', ch = getchar();
  return x * f;
}
int main() {
  int T = read();
  while (T--) {
    long long a = read(), b = read(), n = read(), m = read();
    if (n + m > a + b)
      puts("No");
    else if (m > min(a, b))
      puts("No");
    else
      puts("Yes");
  }
}
