#include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353;
const int N = 1000005;
const double PI = 4 * atan(1);
const double eps = 1e-7;
const long long oo = 1e10;
const int K = 205;
int t, a, b, c, d;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> a >> b;
    cin >> c >> d;
    if (a < b) swap(a, b);
    if (c < d) swap(c, d);
    if (a == c && b + d == c) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
