#include #include using namespace std; using namespace atcoder; using ll = long long; #define all(x) x.begin(), x.end() #define rep(i, n) for (int i = 0; i < n; i++) int main(void) { ll t; cin >> t; while(t--){ ll n, m; cin >> n >> m; vector a(n, 0); rep(i, n) cin >> a[i]; string ans = "Yes"; rep(i, n - 1){ if(a[i] + a[i + 1] < m) ans = "No"; } cout << ans << endl; } return 0; }