@
danzwl @
lsj5031 @
ugoa @
est @
lsj5031 @
alviss 你们全错啦, 是武汉...
https://bigquery.cloud.google.com/SELECT actor_attributes.location,
COUNT (*) num_users
FROM publicdata:samples.github_nested
WHERE
(actor_attributes.location IS NOT NULL) AND
(actor_attributes.location != '') AND
(lower(actor_attributes.location) in ('china','beijing','shanghai','guangzhou','shenzhen','chengdu',"xi'an",'wuhan','北京','上海','广州','深圳','成都','西安','武汉'))
GROUP BY actor_attributes.location
HAVING
(COUNT(*) >= 1)
ORDER BY num_users DESC;