#include<iostream>
#include<algorithm>

using namespace std;
int main()
{
	int n;
	cin >> n;
	
	for(int i=0;i<n;i++){
			int a,b,c,max,min,mid;
			cin >> a >> b >> c;
			max(a,b,c)=max;
			min(a,b,c)=min;
			if(a!=max&&a!=min){	
				a=mid;
			}if(b!=max&&b!=min){
				b=mid;
			}if(c!=max&&c!=min){
				c=mid;
			}
		if(min*min+mid*mid>=max*max){
			cout<< "YES" << endl;
		}else{
			cout<< "NO" << endl;
		}
	}
	return 0;
}