#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 10;
int arr[MAX];
int a, b, c, d;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    cin >> a >> b >> c >> d;
    if (a == c && b + d == a)
      cout << "Yes\n";
    else if (a == d && b + c == a)
      cout << "Yes\n";
    else if (b == c && a + d == b)
      cout << "Yes\n";
    else if (b == d && a + c == b)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
