#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int a, b, x, y, ans = 0;
    cin >> a >> b >> x >> y;
    int c, d, m, n;
    c = max(a, b), d = min(a, b), m = max(x, y), n = min(x, y);
    if (c == m) {
      if (d + n == c) ans++;
    }
    if (ans)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
