#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long tc;
  scanf("%lld", &tc);
  long long n, m, x, y, nn, mx1, mx2, mn1, mn2;
  while (tc--) {
    mx1 = 0, mx2 = 0, mn1 = 0, mn2 = 0;
    scanf("%lld %lld", &n, &m);
    scanf("%lld %lld", &x, &y);
    mx1 = max(n, m);
    mx2 = max(x, y);
    mn1 = min(n, m);
    mn2 = min(x, y);
    if ((mx1 == mx2) && (mx1 == (mn1 + mn2))) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  return 0;
}
