#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 5;
const long long MOD = 1e9 + 7;
const long long INF = INT64_MAX;
mt19937 rnd(time(0));
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> q;
  while (q--) {
    long long a1, b1, a2, b2;
    cin >> a1 >> b1 >> a2 >> b2;
    if ((a1 + a2 == b1 && b1 == b2) || (a1 + b2 == a2 && a2 == b1) ||
        (b1 + a2 == b2 && b2 == a1) || (b1 + b2 == a1 && a1 == a2)) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
