#include <bits/stdc++.h>
using namespace std;
long long int me(long long int x, long long int n) {
  if (n == 0)
    return 1;
  else if (n % 2 == 0)
    return me((x * x) % 1000000007, n / 2);
  else
    return (x * me((x * x) % 1000000007, (n - 1) / 2)) % 1000000007;
}
void solve() {
  long long int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (a == c && b + d == a)
    cout << "Yes";
  else if (a == d && c + b == a)
    cout << "Yes";
  else if (b == c && a + d == b)
    cout << "Yes";
  else if (b == d && a + c == b)
    cout << "Yes";
  else
    cout << "No";
  cout << endl;
}
signed main() {
  ios_base::sync_with_stdio(false);
  long long int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
