arcs-bench / tasks /readable /043 /task_readable.sql
anon
Upload tasks/ folder for end-to-end loader reproducibility
02edc38
/*
{
"qid": "043",
"task_type": "ambig",
"has_intended_resolution": true,
"language": "SQLite",
"db": "github_repos",
"question": "Show the repository name with most events in May.",
"gold_ambiguity_points": [
{
"id": "A",
"phrase": "May",
"type": "finite",
"ambiguity_type": "semantic_table",
"interpretations": [
"May 2022",
"May 2023",
"May in both 2022 and 2023"
],
"intended_interpretation_idx": 0
}
],
"gold_intended_query_id": "GQRY-A.0",
"extra_info": {}
}
*/
----- START OF GOLD QUERY `GQRY-A.0` -----
/*
{
"id": "GQRY-A.0",
"parameter_names": [],
"parameter_values": {},
"other_exec_results": [],
"required_columns": [
0
],
"required_sorted": false,
"extra_info": {
"ambiguity_resolution": {
"[A] May": "May 2022"
}
}
}
*/
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
);
/* EXEC RESULT
repo_name event_count
Lombiq/Orchard 7833
*/
----- END OF GOLD QUERY -----
----- START OF GOLD QUERY `GQRY-A.1` -----
/*
{
"id": "GQRY-A.1",
"parameter_names": [],
"parameter_values": {},
"other_exec_results": [],
"required_columns": [
0
],
"required_sorted": false,
"extra_info": {
"ambiguity_resolution": {
"[A] May": "May 2023"
}
}
}
*/
WITH event_counts AS (
SELECT json_extract(repo, '$.name') AS repo_name, COUNT(*) AS event_count
FROM MONTH_202305
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
);
/* EXEC RESULT
repo_name event_count
bullet-dev-team/python-pyramid-public 3544
*/
----- END OF GOLD QUERY -----
----- START OF GOLD QUERY `GQRY-A.2` -----
/*
{
"id": "GQRY-A.2",
"parameter_names": [],
"parameter_values": {},
"other_exec_results": [],
"required_columns": [
0
],
"required_sorted": false,
"extra_info": {
"ambiguity_resolution": {
"[A] May": "May in both 2022 and 2023"
}
}
}
*/
WITH event_counts AS (
SELECT json_extract(repo, '$.name') AS repo_name, COUNT(*) AS event_count
FROM (
SELECT *
FROM MONTH_202205
UNION ALL
SELECT *
FROM MONTH_202305
) AS combined_may
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
);
/* EXEC RESULT
repo_name event_count
Lombiq/Orchard 7833
*/
----- END OF GOLD QUERY -----