#include using namespace std; int main() { int t; cin >> t; while (t--) { int N, M; cin >> N >> M; vector A(N); for (int i = 0; i < N; i++) { cin >> A[i]; } vector B(N - 1); for (int i = 0; i < N - 1; i++) { B[i] = A[i] + A[i + 1]; } bool ok = true; for (int i = 0; i < N - 1; i++) { if (B[i] < M) { ok = false; } } if (ok) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }