Created
February 12, 2019 21:32
-
-
Save samesense/8ab05261429782b7613376ad577edaf2 to your computer and use it in GitHub Desktop.
gh-query
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 | |
repos.repo_name | |
FROM | |
`bigquery-public-data.github_repos.sample_repos` repos | |
LEFT JOIN | |
`bigquery-public-data.github_repos.sample_files` files | |
ON | |
repos.repo_name = files.repo_name | |
LEFT JOIN | |
`bigquery-public-data.github_repos.sample_contents` contents | |
ON | |
files.id = contents.id | |
WHERE | |
NOT contents.binary | |
AND contents.content like '%MRN%' | |
AND contents.content like '%Last%' | |
GROUP BY | |
repos.repo_name, repos.watch_count | |
ORDER BY | |
repos.watch_count DESC | |
LIMIT | |
30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment