#include <bits/stdc++.h>
using namespace std;
void solve() {
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    if (a > b) swap(a, b);
    if (c > d) swap(c, d);
    if (b == d && a + c == b)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
int main() { solve(); }
