The question basically is the same with How to compare two query results for equality in MySQL?
basically, i have 2 queries, both of query are produced a result like this