#include <bits/stdc++.h>
using namespace std;
void swap(int *x, int *y) {
  int temp = *x;
  *x = *y;
  *y = temp;
}
long long int bexp(long long int b, long long int p) {
  if (p == 0) return 1;
  long long int itm = bexp(b, p / 2);
  if (p % 2 == 0)
    return itm * itm;
  else
    return itm * itm * b;
}
void printarr(long long int *arr, long long int n) {
  for (int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << "\n";
}
long long int string_to_int(string s) {
  stringstream geek(s);
  long long int x = 0;
  geek >> x;
  return x;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int a, b, c, d;
    cin >> a >> b >> c >> d;
    long long int arr[4] = {a, b, c, d};
    int m = max(max(a, b), max(c, d));
    int cnt = 0;
    for (int i = 0; i < 4; i++) {
      if (arr[i] == m) cnt++;
    }
    if ((a * b + c * d) == m * m && cnt == 2)
      cout << "Yes"
           << "\n";
    else
      cout << "No"
           << "\n";
  }
}
