BigQuery Hack: Flexible Queries For Any Number of Columns

How can we use BigQuery to handle tables with many columns? Here’s how using scripting and table metadata.