arcs / tasks /readable /043 /task_readable.md
yanlinf's picture
Release ARCS dataset
1fb4e2d verified
|
Raw History Blame Contribute Delete
548 Bytes

Task: 043

Database: github_repos

Question

Show the repository name with most events in May.

Gold Query

WITH event_counts AS (
SELECT json_extract(repo, '$.name') AS repo_name, COUNT(*) AS event_count
FROM MONTH_202205
GROUP BY repo_name
)
SELECT event_counts.repo_name, event_counts.event_count
FROM event_counts
WHERE event_count = (
SELECT MAX(event_count)
FROM event_counts
);

Execution Result:

repo_name event_count
Lombiq/Orchard 7833

1 rows