unifying the query