Procedural SQL for Apache Hive