#include <bits/stdc++.h>
int main() {
  int a, b, c, d, t, flag, temp;
  scanf("%d", &t);
  while (t--) {
    temp = 0;
    scanf("%d %d %d %d", &a, &b, &c, &d);
    if (a < b) {
      temp = a;
      a = b;
      b = temp;
    }
    if (a == c) {
      if (b + d == a)
        flag = 1;
      else
        flag = 0;
    } else if (a == d) {
      if (b + c == a)
        flag = 1;
      else
        flag = 0;
    } else if (b == c) {
      if (a + d == b)
        flag = 1;
      else
        flag = 0;
    } else if (b == d) {
      if (a + c == b)
        flag = 1;
      else
        flag = 0;
    } else
      flag = 0;
    if (flag == 1)
      printf("Yes\n");
    else
      printf("No\n");
  }
}
