/* { "qid": "029", "task_type": "ambig", "has_intended_resolution": true, "language": "SQLite", "db": "professional_basketball", "question": "What is Charles Smith's best true shooting percentage in a season in his career?", "gold_ambiguity_points": [ { "id": "A", "phrase": "Charles Smith", "type": "finite", "ambiguity_type": "semantic_value", "interpretations": [ "Charles Smith from University of Pittsburgh born on July 16, 1965", "Charles Smith from Georgetown University born on November 29, 1967", "Charles Smith from Marquette University born on June 14, 1968", "Charles Smith from University of New Mexico born on August 22, 1975" ], "intended_interpretation_idx": 3 }, { "id": "B", "phrase": "in a season", "type": "finite", "ambiguity_type": "semantic_column", "interpretations": [ "in a full season", "in a regular season", "in a playoff season" ], "intended_interpretation_idx": 0 } ], "gold_intended_query_id": "GQRY-A.3-B.0", "extra_info": {} } */ ----- START OF GOLD QUERY `GQRY-A.0-B.0` ----- /* { "id": "GQRY-A.0-B.0", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from University of Pittsburgh born on July 16, 1965", "[B] in a season": "in a full season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) + SUM(pt.PostPoints) AS total_points, SUM(pt.fgAttempted) + SUM(pt.PostfgAttempted) AS total_fgAttempted, SUM(pt.ftAttempted) + SUM(pt.PostftAttempted) AS total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1965-07-16' AND p.college = 'Pittsburgh' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1989 0.588897 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.0-B.1` ----- /* { "id": "GQRY-A.0-B.1", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from University of Pittsburgh born on July 16, 1965", "[B] in a season": "in a regular season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) as total_points, SUM(pt.fgAttempted) as total_fgAttempted, SUM(pt.ftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1965-07-16' AND p.college = 'Pittsburgh' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1989 0.588897 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.0-B.2` ----- /* { "id": "GQRY-A.0-B.2", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from University of Pittsburgh born on July 16, 1965", "[B] in a season": "in a playoff season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.PostPoints) as total_points, SUM(pt.PostfgAttempted) as total_fgAttempted, SUM(pt.PostftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1965-07-16' AND p.college = 'Pittsburgh' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1994 0.549908 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.1-B.0` ----- /* { "id": "GQRY-A.1-B.0", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from Georgetown University born on November 29, 1967", "[B] in a season": "in a full season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) + SUM(pt.PostPoints) AS total_points, SUM(pt.fgAttempted) + SUM(pt.PostfgAttempted) AS total_fgAttempted, SUM(pt.ftAttempted) + SUM(pt.PostftAttempted) AS total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1967-11-29' AND p.college = 'Georgetown' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1989 0.513536 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.1-B.1` ----- /* { "id": "GQRY-A.1-B.1", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from Georgetown University born on November 29, 1967", "[B] in a season": "in a regular season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) as total_points, SUM(pt.fgAttempted) as total_fgAttempted, SUM(pt.ftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1967-11-29' AND p.college = 'Georgetown' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1989 0.513699 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.1-B.2` ----- /* { "id": "GQRY-A.1-B.2", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from Georgetown University born on November 29, 1967", "[B] in a season": "in a playoff season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.PostPoints) as total_points, SUM(pt.PostfgAttempted) as total_fgAttempted, SUM(pt.PostftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1967-11-29' AND p.college = 'Georgetown' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1989 0.5 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.2-B.0` ----- /* { "id": "GQRY-A.2-B.0", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from Marquette University born on June 14, 1968", "[B] in a season": "in a full season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) + SUM(pt.PostPoints) AS total_points, SUM(pt.fgAttempted) + SUM(pt.PostfgAttempted) AS total_fgAttempted, SUM(pt.ftAttempted) + SUM(pt.PostftAttempted) AS total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1968-06-14' AND p.college = 'Marquette' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1992 0.535231 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.2-B.1` ----- /* { "id": "GQRY-A.2-B.1", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from Marquette University born on June 14, 1968", "[B] in a season": "in a regular season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) as total_points, SUM(pt.fgAttempted) as total_fgAttempted, SUM(pt.ftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1968-06-14' AND p.college = 'Marquette' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1992 0.53041 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.2-B.2` ----- /* { "id": "GQRY-A.2-B.2", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from Marquette University born on June 14, 1968", "[B] in a season": "in a playoff season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.PostPoints) as total_points, SUM(pt.PostfgAttempted) as total_fgAttempted, SUM(pt.PostftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1968-06-14' AND p.college = 'Marquette' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 1992 0.587017 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.3-B.0` ----- /* { "id": "GQRY-A.3-B.0", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from University of New Mexico born on August 22, 1975", "[B] in a season": "in a full season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) + SUM(pt.PostPoints) AS total_points, SUM(pt.fgAttempted) + SUM(pt.PostfgAttempted) AS total_fgAttempted, SUM(pt.ftAttempted) + SUM(pt.PostftAttempted) AS total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1975-08-22' AND p.college = 'New Mexico' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 2005 0.529661 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.3-B.1` ----- /* { "id": "GQRY-A.3-B.1", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from University of New Mexico born on August 22, 1975", "[B] in a season": "in a regular season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.points) as total_points, SUM(pt.fgAttempted) as total_fgAttempted, SUM(pt.ftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1975-08-22' AND p.college = 'New Mexico' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 2005 0.529661 */ ----- END OF GOLD QUERY ----- ----- START OF GOLD QUERY `GQRY-A.3-B.2` ----- /* { "id": "GQRY-A.3-B.2", "parameter_names": [], "parameter_values": {}, "other_exec_results": [], "required_columns": [ 1 ], "required_sorted": false, "extra_info": { "ambiguity_resolution": { "[A] Charles Smith": "Charles Smith from University of New Mexico born on August 22, 1975", "[B] in a season": "in a playoff season" } } } */ WITH charles_smith_stats AS ( SELECT pt.year, SUM(pt.PostPoints) as total_points, SUM(pt.PostfgAttempted) as total_fgAttempted, SUM(pt.PostftAttempted) as total_ftAttempted FROM players_teams pt JOIN players p ON pt.playerID = p.playerID WHERE p.firstName = 'Charles' AND p.lastName = 'Smith' AND p.birthDate = '1975-08-22' AND p.college = 'New Mexico' GROUP BY pt.year ) SELECT year, CASE WHEN total_fgAttempted + 0.44 * total_ftAttempted > 0 THEN total_points / (2.0 * (total_fgAttempted + 0.44 * total_ftAttempted)) ELSE 0 END AS true_shooting_percentage FROM charles_smith_stats ORDER BY true_shooting_percentage DESC LIMIT 1; /* EXEC RESULT year true_shooting_percentage 2001 0.64433 */ ----- END OF GOLD QUERY -----