#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  T = T * 4;
  vector<long long> a(T);
  int x = 0;
  int q = 0;
  for (int j = 0; j < T; j++) {
    cin >> a[j];
  }
  for (int i = 0; i < T; i = i + 4) {
    for (int j = 0; a[j] >= 0; x++) {
      a[j] = a[j] - a[j + 1];
      if (a[j] < 0) {
        break;
      }
      if (a[j] <= a[j + 2]) {
        a[j] = a[j] + a[j + 3];
      }
      if (x > 10000) {
        break;
      }
    }
    if (a[q] < 0) {
      cout << "No" << endl;
    } else {
      if (a[q] >= 0) {
        cout << "Yes" << endl;
      }
    }
  }
}
