#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a[2], b[2], i, j;
    for (i = 0; i < 2; i++) cin >> a[i];
    for (i = 0; i < 2; i++) cin >> b[i];
    sort(a, a + 2);
    sort(b, b + 2);
    if ((a[1] == b[1]) && (a[0] + b[0] == b[1]))
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
