#include <bits/stdc++.h>
using namespace std;
int main() {
  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);
    cout << ((a == c && b + d == a) ? "Yes\n" : "No\n");
  }
}
