Format hive queries for readability