Constructing nested array structs in BigQuery
with animal as ( select * from unnest ([ struct ( 1 as zoo_id, 'Horse' AS animal_name, 1 as animal_count ) , ( 1 , 'Cow' , 25 ) , ( 2 , 'Old World Swallowtail Butterfly' , 1000 ) , ( 4 , 'Fish' , 5500 ) , ( 5 , 'Beetle' , 700000 ) ]) ) , zoo as ( select * from unnest ([ struct ( 1 as zoo_id, 'Skansen' as zoo_name, 100 as city_id ) , ( 2 , 'FjÀrilshuset' , 100 ) , ...