An example of how to create a pivot table in Apache Pig, based off my response to a StackOverflow question.