sass mediq query template for hive