|
Download tasks/readable/044/task_readable.md from megagonlabs/arcs: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/datasets/megagonlabs/arcs/resolve/main/tasks/readable/044/task_readable.md
- Command line
-
hf download hf://datasets/megagonlabs/arcs/tasks/readable/044/task_readable.md
-
curl -L -o task_readable.md https://huggingface.co/datasets/megagonlabs/arcs/resolve/main/tasks/readable/044/task_readable.md
602 Bytes
| # Task: 044 | |
| **Database:** github_repos | |
| ## Question | |
| Find the most active organization in 2023. | |
| ## Gold Query | |
| ```sql | |
| WITH org_activity AS ( | |
| SELECT | |
| json_extract(y.org, '$.id') AS org_id, | |
| COUNT(DISTINCT json_extract(y.repo, '$.id')) AS repo_count | |
| FROM YEAR_2023 y | |
| WHERE y.org IS NOT NULL AND y.org <> 'null' AND org_id IS NOT NULL | |
| GROUP BY org_id | |
| ) | |
| SELECT oa.org_id, oa.repo_count | |
| FROM org_activity oa | |
| WHERE oa.repo_count = ( | |
| SELECT MAX(oa2.repo_count) | |
| FROM org_activity oa2 | |
| ); | |
| ``` | |
| **Execution Result:** | |
| | org_id | repo_count | | |
| |----------|--------------| | |
| | 8158177 | 4 | | |
| *1 rows* |