#include<bits/stdc++.h>
using namespace std;
#define endl "\n"
#define trace(x) cout << #x << ": " << x << endl
int32_t main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t; cin >> t;
while(t--)
{
int n, m; cin >> n >> m;
int x, y; cin >> x >> y;
int p, q; cin >> p >> q;
int dif1 = abs(p - x);
int dif2 = abs(q - y);
// trace(dif1);
// trace(dif2);
if(dif1 == dif2 and p <= n and x <= n and q <= m and y <= m and p > 0 and x > 0 and q > 0 and y > 0) cout << "Yes" << endl;
else cout << "No" << endl;
}
return 0;
}