Created
September 30, 2015 20:19
-
-
Save gustavopinto/23a3f41c75c9bbbbdc37 to your computer and use it in GitHub Desktop.
Top 10 most popular Haskell projects
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.repository_name as name, | |
a.repository_owner as owner, | |
a.repository_organization as organization, | |
a.repository_watchers AS stars, | |
a.repository_forks AS forks, | |
a.repository_language as language | |
FROM ( | |
select * | |
from [githubarchive:github.timeline] a | |
where a.repository_language = "Haskell" | |
) as a | |
JOIN EACH | |
( | |
SELECT MAX(created_at) as max_created, repository_name | |
FROM [githubarchive:github.timeline] | |
GROUP EACH BY repository_name | |
) as b | |
ON | |
b.max_created = a.created_at and | |
b.repository_name = a.repository_name | |
ORDER BY stars desc | |
LIMIT 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment