added aliases for query, hit and inst tables