Running a SQL-style query with Hive