Add the code to do the queries on Hive