Skip to content

Instantly share code, notes, and snippets.

@mbforr
Last active January 8, 2023 10:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mbforr/76b99e1a7cfcc334d8867258b7983799 to your computer and use it in GitHub Desktop.
Save mbforr/76b99e1a7cfcc334d8867258b7983799 to your computer and use it in GitHub Desktop.
create table `ADD_YOUR_PROJECT.ADD_YOUR_DATASET.airports` as
select
a.*,
b.geom as polygon,
c.country as country_name
from
`bigquery-public-data.geo_whos_on_first.spr` a
join
`bigquery-public-data.geo_whos_on_first.geojson` b
using
(geoid)
join
`bigquery-public-data.geo_whos_on_first.names` c
using
(geoid)
where
a.name LIKE "%Airport%"
or a.name LIKE "%airport%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment