A pig script to join work on patent data