added a partial query to compute a per hour sorted word count for each company