#include <bits/stdc++.h>
using namespace std;
void solve() {
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  bool flag = false;
  if (x1 == x2) {
    if (x1 == y1 + y2) flag = true;
  }
  if (x1 == y2) {
    if (x1 == x2 + y1) flag = true;
  }
  if (x2 == y1) {
    if (x2 == y2 + x1) flag = true;
  }
  if (y1 == y2) {
    if (y1 == x2 + x1) flag = true;
  }
  if (flag)
    cout << "Yes" << '\n';
  else
    cout << "No" << '\n';
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
