I have been following along with Felipe Hoffa\'s blog post "Easy pivot() in BigQuery" (https://towardsdatascience.com/easy-pivot-in-bigquery-one-step-5a1f13c6c710)