A module to generate SQL query to create a pivoted table.
Here is small introduction -
How to pivot large tables in BigQuery?