Skip to content

Instantly share code, notes, and snippets.

@ahachete
Created November 30, 2016 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahachete/dcda734ea2997d073ce1ddffec37a57e to your computer and use it in GitHub Desktop.
Save ahachete/dcda734ea2997d073ce1ddffec37a57e to your computer and use it in GitHub Desktop.
SELECT repo.name_s, count(*)
FROM github.events AS events
INNER JOIN github.events_repo AS repo ON (events.did = repo.did)
INNER JOIN github.events_payload AS payload ON (events.did=payload.did)
WHERE events.type_s = 'IssuesEvent' AND payload.action_s = 'opened'
GROUP BY repo.name_s
ORDER BY count desc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment