#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
int t;
cin >> t;
if (x == t)
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
}
}