Skip to content

Instantly share code, notes, and snippets.

@shotleft
Created December 25, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shotleft/d0b3c18af608d47bbadb6499b833b5aa to your computer and use it in GitHub Desktop.
Save shotleft/d0b3c18af608d47bbadb6499b833b5aa to your computer and use it in GitHub Desktop.
bq_nest6
WITH paintings AS
(
SELECT ['painting', 'sculpture', 'installation'] AS artworks
UNION ALL
SELECT ['drawing', 'painting'] AS artworks
UNION ALL
SELECT ['painting', 'drawing', 'collage'] AS artworks
)
SELECT
artworks
FROM
paintings
CROSS JOIN UNNEST(artworks) AS artworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment