#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  for (int i = 0; i < q; i++) {
    int x, y, x1, y1;
    cin >> x >> y;
    cin >> x1 >> y1;
    if ((x == x1 && y + y1 == x) || (x == y1 && x1 + y == x) ||
        (x1 == y && x + y1 == x1) || (y1 == y && x + x1 == y))
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
