Created
March 1, 2016 23:53
-
-
Save fhoffa/5929ef05945a4a825ddd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.title title, FIRST(b.label) label, SUM(requests) requests | |
FROM [fh-bigquery:wikipedia.pagecounts_201602] a | |
JOIN ( | |
SELECT en_wiki title, en_label label | |
FROM [fh-bigquery:public_dump.wikidata_v3] | |
WHERE instance_of.numeric_id=146 | |
) b | |
ON a.title=b.title | |
WHERE language='en' | |
GROUP BY 1 | |
ORDER BY 3 DESC | |
LIMIT 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment