| /* | |
| { | |
| "qid": "047", | |
| "task_type": "ambig", | |
| "has_intended_resolution": true, | |
| "language": "SQLite", | |
| "db": "github_repos", | |
| "question": "Count the number of forks in public repositories in March.", | |
| "gold_ambiguity_points": [ | |
| { | |
| "id": "A", | |
| "phrase": "March", | |
| "type": "finite", | |
| "ambiguity_type": "semantic_table", | |
| "interpretations": [ | |
| "March 2022", | |
| "March 2023", | |
| "March in both 2022 and 2023" | |
| ], | |
| "intended_interpretation_idx": 2 | |
| } | |
| ], | |
| "gold_intended_query_id": "GQRY-A.2", | |
| "extra_info": {} | |
| } | |
| */ | |
| ----- START OF GOLD QUERY `GQRY-A.0` ----- | |
| /* | |
| { | |
| "id": "GQRY-A.0", | |
| "parameter_names": [], | |
| "parameter_values": {}, | |
| "other_exec_results": [], | |
| "required_columns": null, | |
| "required_sorted": false, | |
| "extra_info": { | |
| "ambiguity_resolution": { | |
| "[A] March": "March 2022" | |
| } | |
| } | |
| } | |
| */ | |
| SELECT COUNT(*) | |
| FROM MONTH_202203 | |
| WHERE type = 'ForkEvent' | |
| AND public = 1; | |
| /* EXEC RESULT | |
| COUNT(*) | |
| 63 | |
| */ | |
| ----- END OF GOLD QUERY ----- | |
| ----- START OF GOLD QUERY `GQRY-A.1` ----- | |
| /* | |
| { | |
| "id": "GQRY-A.1", | |
| "parameter_names": [], | |
| "parameter_values": {}, | |
| "other_exec_results": [], | |
| "required_columns": null, | |
| "required_sorted": false, | |
| "extra_info": { | |
| "ambiguity_resolution": { | |
| "[A] March": "March 2023" | |
| } | |
| } | |
| } | |
| */ | |
| SELECT COUNT(*) | |
| FROM MONTH_202303 | |
| WHERE type = 'ForkEvent' | |
| AND public = 1; | |
| /* EXEC RESULT | |
| COUNT(*) | |
| 88 | |
| */ | |
| ----- END OF GOLD QUERY ----- | |
| ----- START OF GOLD QUERY `GQRY-A.2` ----- | |
| /* | |
| { | |
| "id": "GQRY-A.2", | |
| "parameter_names": [], | |
| "parameter_values": {}, | |
| "other_exec_results": [], | |
| "required_columns": null, | |
| "required_sorted": false, | |
| "extra_info": { | |
| "ambiguity_resolution": { | |
| "[A] March": "March in both 2022 and 2023" | |
| } | |
| } | |
| } | |
| */ | |
| SELECT COUNT(*) | |
| FROM ( | |
| SELECT * | |
| FROM MONTH_202203 | |
| WHERE type = 'ForkEvent' | |
| AND public = 1 | |
| UNION ALL | |
| SELECT * | |
| FROM MONTH_202303 | |
| WHERE type = 'ForkEvent' | |
| AND public = 1 | |
| ) AS combined_march; | |
| /* EXEC RESULT | |
| COUNT(*) | |
| 151 | |
| */ | |
| ----- END OF GOLD QUERY ----- |