Generating HiveQL query from input parameters and files