check the proper class for the query patch