#include <bits/stdc++.h>
using namespace std;
int main() {
  int test, a, b, c, d;
  cin >> test;
  while (test) {
    test--;
    cin >> a >> b >> c >> d;
    if (max(a, b) == max(c, d) && min(a, b) + min(c, d) == max(c, d))
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
