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

Task: 050

Database: github_repos

Question

What is the monthly average number of events during the period of the last quarter of 2022 and 2023?

Gold Query

SELECT COUNT(*) / 6 AS event_count
FROM (
SELECT * FROM MONTH_202210
UNION ALL
SELECT * FROM MONTH_202211
UNION ALL
SELECT * FROM MONTH_202212
UNION ALL
SELECT * FROM MONTH_202310
UNION ALL
SELECT * FROM MONTH_202311
UNION ALL
SELECT * FROM MONTH_202312
) t;

Execution Result:

event_count
28032

1 rows