chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team at the game at Punt Road Oval with a crowd larger than 13,000?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_10\" WHERE \"crowd\">'13,000' AND \"venue\"='punt road oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Which stadium held the game that 65,677 people attended?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"schedule\" WHERE \"attendance\"='65,677';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance of the game on October 17, 2004?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='october 17, 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Which week was the October 17, 2004 game played?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"date\"='october 17, 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Browns record after they played the game at the Paul Brown stadium?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"stadium\"='paul brown stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: Which player went to Gonzaga?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"s\" WHERE \"school_country\"='gonzaga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: What is the nationality of the forward/center who started playing in 1951?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"s\" WHERE \"position\"='forward/center' AND \"from\"='1951';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: What school did the guard who began playing in 1991 come from?" }, { "role": "assistant", "content": "SELECT \"school_country\" FROM \"s\" WHERE \"position\"='guard' AND \"from\"='1991';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: What is the nationality of the guard/forward who began playing in 1977?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"s\" WHERE \"position\"='guard/forward' AND \"from\"='1977';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Which Rams opponent had a record of 2-3?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='2-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"series_name\" text,\n \"champion\" text,\n \"races\" text,\n \"pole_positions\" text,\n \"wins\" text,\n \"podiums\" text,\n \"fastest_laps\" text,\n \"points\" text,\n \"margin_pts\" text\n);\n\nQuestion: What is the number of podiums for the races of 13/15?" }, { "role": "assistant", "content": "SELECT \"podiums\" FROM \"champions\" WHERE \"races\"='13/15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"series_name\" text,\n \"champion\" text,\n \"races\" text,\n \"pole_positions\" text,\n \"wins\" text,\n \"podiums\" text,\n \"fastest_laps\" text,\n \"points\" text,\n \"margin_pts\" text\n);\n\nQuestion: How many wins are there for the Races of 12/12?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"champions\" WHERE \"races\"='12/12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"series_name\" text,\n \"champion\" text,\n \"races\" text,\n \"pole_positions\" text,\n \"wins\" text,\n \"podiums\" text,\n \"fastest_laps\" text,\n \"points\" text,\n \"margin_pts\" text\n);\n\nQuestion: What is the fastest lap for a season smaller than 1979?" }, { "role": "assistant", "content": "SELECT \"fastest_laps\" FROM \"champions\" WHERE \"season\"<1979;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"series_name\" text,\n \"champion\" text,\n \"races\" text,\n \"pole_positions\" text,\n \"wins\" text,\n \"podiums\" text,\n \"fastest_laps\" text,\n \"points\" text,\n \"margin_pts\" text\n);\n\nQuestion: For the 12/12 races, what is the fastest lap?" }, { "role": "assistant", "content": "SELECT \"fastest_laps\" FROM \"champions\" WHERE \"races\"='12/12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the home team that played at The Brunswick Street Oval to a crowd of 7,000?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_10\" WHERE \"crowd\">'7,000' AND \"venue\"='brunswick street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the largest crowd where Carlton was the away team?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_10\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which team's home is the Western Oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_10\" WHERE \"venue\"='western oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which team's home is the Arden Street Oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_10\" WHERE \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the lowest attendance at a Fitzroy match?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_8\" WHERE \"home_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"apps\" real\n);\n\nQuestion: What is the highest rank that corresponds to an all-time rank of 86 and a debut year before 1995?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"appearances\" WHERE \"all_time_rank\"='86' AND \"debut_year\"<1995;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"apps\" real\n);\n\nQuestion: What is the current club with more than 368 apps and a debut year earlier than 1994?" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"appearances\" WHERE \"apps\">368 AND \"debut_year\"<1994;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"apps\" real\n);\n\nQuestion: What is the highest rank with more than 498 apps, an all time rank of 6, and a debut year later than 1992?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"appearances\" WHERE \"apps\">498 AND \"all_time_rank\"='6' AND \"debut_year\">1992;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"apps\" real\n);\n\nQuestion: What is the all-time rank associated with a rank less than 9 and a debut in 1994?" }, { "role": "assistant", "content": "SELECT \"all_time_rank\" FROM \"appearances\" WHERE \"rank\"<9 AND \"debut_year\"=1994;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which tournament was played on clay and there was a score of 4\u20136, 6\u20131, 6\u20134?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"doubles_5\" WHERE \"surface\"='clay' AND \"score\"='4\u20136, 6\u20131, 6\u20134';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the score for the match where albert monta\u00f1\u00e9s was the partner?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"doubles_5\" WHERE \"partner\"='albert monta\u00f1\u00e9s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the score for the match where the opponent in the final was james cerretani todd perry?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"doubles_5\" WHERE \"opponents_in_the_final\"='james cerretani todd perry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the date when the opponent in the final is gast\u00f3n etlis mart\u00edn rodr\u00edguez?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"doubles_5\" WHERE \"opponents_in_the_final\"='gast\u00f3n etlis mart\u00edn rodr\u00edguez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the score for the match were the opponent in the final was james cerretani todd perry?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"doubles_5\" WHERE \"opponents_in_the_final\"='james cerretani todd perry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who is Birmingham City's outgoing manager?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"team\"='birmingham city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the name of the replacement manager for the Bolton Wanderers?" }, { "role": "assistant", "content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"team\"='bolton wanderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: How was Sammy Lee's team doing on the table before being replaced?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='sammy lee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Which team hired Gary Megson as the replacement manager?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"replaced_by\"='gary megson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the date of the match played at MCG?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_4\" WHERE \"venue\"='mcg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Carlton's score as the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_4\" WHERE \"home_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What home team plays at Princes Park?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"venue\"='princes park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Geelong's score as the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_4\" WHERE \"home_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team that scored 12.8 (80)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_4\" WHERE \"away_team_score\"='12.8 (80)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the home teams score when the away team scored 11.11 (77) in front of a crowd of 16,112?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_4\" WHERE \"crowd\">'16,112' AND \"away_team_score\"='11.11 (77)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_3\" WHERE \"home_team_score\"='12.16 (88)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_3\" WHERE \"away_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_3\" WHERE \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_3\" WHERE \"away_team_score\"='12.15 (87)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: WHAT DID HAWTHORN SCORE AT ITS AWAY GAME?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_3\" WHERE \"away_team\"='hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the opponent on November 26, 1989?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='november 26, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result on October 29, 1989?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='october 29, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result on October 1, 1989?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='october 1, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"team\" text,\n \"wins\" real,\n \"losses\" real,\n \"percentage\" real,\n \"home\" text,\n \"away\" text,\n \"streak\" text\n);\n\nQuestion: What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had?" }, { "role": "assistant", "content": "SELECT MAX(\"losses\") FROM \"standings\" WHERE \"away\"='1-6' AND \"wins\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team's score at corio oval?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_3\" WHERE \"venue\"='corio oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_east\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What network is in the language of Bengali?" }, { "role": "assistant", "content": "SELECT \"service\" FROM \"middle_east\" WHERE \"language\"='bengali';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_east\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What network has an origin in India, a genre of general, and broadcasts in Bengali?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"middle_east\" WHERE \"origin_of_programming\"='india' AND \"genre\"='general' AND \"language\"='bengali';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_east\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What language does the Ary Digital network broadcast in?" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"middle_east\" WHERE \"network\"='ary digital';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the average crowd for Carlton?" }, { "role": "assistant", "content": "SELECT AVG(\"crowd\") FROM \"round_7\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many points did Carlton score?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_7\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the largest crowd for North Melbourne" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_7\" WHERE \"home_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the score for Footscray?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_7\" WHERE \"away_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the result of week 5?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"exhibition_schedule\" WHERE \"week\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"264in_6_6mm_and_up\" (\n \"name\" text,\n \"bullet\" text,\n \"length\" text,\n \"base\" text,\n \"shoulder\" text,\n \"neck\" text\n);\n\nQuestion: What is the name of the gun with a shoulder that measures 10.688 (.420)?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"264in_6_6mm_and_up\" WHERE \"shoulder\"='10.688 (.420)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"264in_6_6mm_and_up\" (\n \"name\" text,\n \"bullet\" text,\n \"length\" text,\n \"base\" text,\n \"shoulder\" text,\n \"neck\" text\n);\n\nQuestion: What is the shoulder measurement of the gun with a length of 57.85 (2.278)?" }, { "role": "assistant", "content": "SELECT \"shoulder\" FROM \"264in_6_6mm_and_up\" WHERE \"length\"='57.85 (2.278)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"264in_6_6mm_and_up\" (\n \"name\" text,\n \"bullet\" text,\n \"length\" text,\n \"base\" text,\n \"shoulder\" text,\n \"neck\" text\n);\n\nQuestion: What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?" }, { "role": "assistant", "content": "SELECT \"neck\" FROM \"264in_6_6mm_and_up\" WHERE \"shoulder\"='10.688 (.420)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"264in_6_6mm_and_up\" (\n \"name\" text,\n \"bullet\" text,\n \"length\" text,\n \"base\" text,\n \"shoulder\" text,\n \"neck\" text\n);\n\nQuestion: What is the length of the gun that has a shoulder measurement of 12.18 (.480)?" }, { "role": "assistant", "content": "SELECT \"length\" FROM \"264in_6_6mm_and_up\" WHERE \"shoulder\"='12.18 (.480)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"264in_6_6mm_and_up\" (\n \"name\" text,\n \"bullet\" text,\n \"length\" text,\n \"base\" text,\n \"shoulder\" text,\n \"neck\" text\n);\n\nQuestion: What bullet does the gun with a shoulder measurement of 12.5 (.491)?" }, { "role": "assistant", "content": "SELECT \"bullet\" FROM \"264in_6_6mm_and_up\" WHERE \"shoulder\"='12.5 (.491)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance for the game held on September 18, 1994, with a week less than 5?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"<5 AND \"date\"='september 18, 1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" real\n);\n\nQuestion: What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6?" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"week\">6 AND \"opponent\"='at philadelphia eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance for the game on October 30, 1994 for a week after week 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"week\">2 AND \"date\"='october 30, 1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_number\" real,\n \"title\" text,\n \"podcast_date\" text,\n \"run_time\" text,\n \"historical_references\" text\n);\n\nQuestion: What is the title of the episode that aired on September 25, 2005?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"season_3\" WHERE \"podcast_date\"='september 25, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_number\" real,\n \"title\" text,\n \"podcast_date\" text,\n \"run_time\" text,\n \"historical_references\" text\n);\n\nQuestion: What is the run time of the episode that aired on September 4, 2005?" }, { "role": "assistant", "content": "SELECT \"run_time\" FROM \"season_3\" WHERE \"podcast_date\"='september 4, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_number\" real,\n \"title\" text,\n \"podcast_date\" text,\n \"run_time\" text,\n \"historical_references\" text\n);\n\nQuestion: What is the historical reference of the episode that aired on October 23, 2005?" }, { "role": "assistant", "content": "SELECT \"historical_references\" FROM \"season_3\" WHERE \"podcast_date\"='october 23, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_number\" real,\n \"title\" text,\n \"podcast_date\" text,\n \"run_time\" text,\n \"historical_references\" text\n);\n\nQuestion: What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic?" }, { "role": "assistant", "content": "SELECT \"podcast_date\" FROM \"season_3\" WHERE \"episode_number\"<307 AND \"historical_references\"='p.t. barnum' AND \"run_time\"='5:48';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_number\" real,\n \"title\" text,\n \"podcast_date\" text,\n \"run_time\" text,\n \"historical_references\" text\n);\n\nQuestion: What is the topic of the episode that runs 6:07?" }, { "role": "assistant", "content": "SELECT \"historical_references\" FROM \"season_3\" WHERE \"run_time\"='6:07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_number\" real,\n \"title\" text,\n \"podcast_date\" text,\n \"run_time\" text,\n \"historical_references\" text\n);\n\nQuestion: What is the episode number of the episode that aired on August 8, 2005?" }, { "role": "assistant", "content": "SELECT \"episode_number\" FROM \"season_3\" WHERE \"podcast_date\"='august 8, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the biggest crowd when the home side scores 7.7 (49)?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_13\" WHERE \"home_team_score\"='7.7 (49)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What day is south melbourne the away side?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_13\" WHERE \"away_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Whom is the away team when the home team score is 11.12 (78)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"home_team_score\"='11.12 (78)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Did the fighter beat Ryo Takigawa?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='ryo takigawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005\" (\n \"incident_no\" text,\n \"date\" text,\n \"place\" text,\n \"killed\" real,\n \"injured\" real\n);\n\nQuestion: What is the incident number of the incident that occurred in Dantewada, Chattisgarh?" }, { "role": "assistant", "content": "SELECT \"incident_no\" FROM \"2005\" WHERE \"place\"='dantewada, chattisgarh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"province\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: WHich province has an IATA of UYN?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"references\" WHERE \"iata\"='uyn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"province\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Which city has an ICAO of ZSXZ?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"references\" WHERE \"icao\"='zsxz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"province\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Which province is Luogang International Airport located in?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"references\" WHERE \"airport\"='luogang international airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"province\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: WHich province has an IATA of WNZ?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"references\" WHERE \"iata\"='wnz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"province\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the IATA for Korla Airport." }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"references\" WHERE \"airport\"='korla airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1890s\" (\n \"season\" text,\n \"tier\" text,\n \"division\" text,\n \"position\" text,\n \"top_scorer\" text\n);\n\nQuestion: In what division did they place 4th?" }, { "role": "assistant", "content": "SELECT \"division\" FROM \"1890s\" WHERE \"position\"='4th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1890s\" (\n \"season\" text,\n \"tier\" text,\n \"division\" text,\n \"position\" text,\n \"top_scorer\" text\n);\n\nQuestion: What was the top scorer in the 1890-91 season?" }, { "role": "assistant", "content": "SELECT \"top_scorer\" FROM \"1890s\" WHERE \"season\"='1890-91';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which position has a player at Arizona state?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"school_club_team\"='arizona state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"nfl_draft\" WHERE \"pick\"<196 AND \"round\">5 AND \"player\"='blake miller';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the average round at which is the position of Tight End and Randy Bethel?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"nfl_draft\" WHERE \"position\"='tight end' AND \"player\"='randy bethel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What day did they play the New Orleans Saints?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='new orleans saints';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaching_history\" (\n \"coach\" text,\n \"years\" text,\n \"record\" text,\n \"conference_record\" text,\n \"overall_win_percentage\" text\n);\n\nQuestion: Which coach has a conference record of 42-78?" }, { "role": "assistant", "content": "SELECT \"coach\" FROM \"coaching_history\" WHERE \"conference_record\"='42-78';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaching_history\" (\n \"coach\" text,\n \"years\" text,\n \"record\" text,\n \"conference_record\" text,\n \"overall_win_percentage\" text\n);\n\nQuestion: In what years was the conference record 18-15?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"coaching_history\" WHERE \"conference_record\"='18-15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaching_history\" (\n \"coach\" text,\n \"years\" text,\n \"record\" text,\n \"conference_record\" text,\n \"overall_win_percentage\" text\n);\n\nQuestion: In what years, when the conference record was 63-9, was the coach Walter Meanwell?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"coaching_history\" WHERE \"coach\"='walter meanwell' AND \"conference_record\"='63-9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaching_history\" (\n \"coach\" text,\n \"years\" text,\n \"record\" text,\n \"conference_record\" text,\n \"overall_win_percentage\" text\n);\n\nQuestion: What was coach Dick Bennett's overall win percentage?" }, { "role": "assistant", "content": "SELECT \"overall_win_percentage\" FROM \"coaching_history\" WHERE \"coach\"='dick bennett';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"shirt_sponsors_and_manufacturers\" (\n \"year\" real,\n \"kit_supplier\" text,\n \"sponsor\" text,\n \"shirt_printing\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes for the shirt that said Pavv before 2005?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"shirt_sponsors_and_manufacturers\" WHERE \"shirt_printing\"='pavv' AND \"year\"<2005;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"shirt_sponsors_and_manufacturers\" (\n \"year\" real,\n \"kit_supplier\" text,\n \"sponsor\" text,\n \"shirt_printing\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes for the shirt that said Pavv after 2007?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"shirt_sponsors_and_manufacturers\" WHERE \"shirt_printing\"='pavv' AND \"year\">2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"shirt_sponsors_and_manufacturers\" (\n \"year\" real,\n \"kit_supplier\" text,\n \"sponsor\" text,\n \"shirt_printing\" text,\n \"notes\" text\n);\n\nQuestion: What is the average of all the years when the notes are \u201celectronics brand?\u201d" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"shirt_sponsors_and_manufacturers\" WHERE \"notes\"='electronics brand';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"shirt_sponsors_and_manufacturers\" (\n \"year\" real,\n \"kit_supplier\" text,\n \"sponsor\" text,\n \"shirt_printing\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes for the shirt that says \u540d\u54c1+1 in the kit supplied by Rapido?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"shirt_sponsors_and_manufacturers\" WHERE \"kit_supplier\"='rapido' AND \"shirt_printing\"='\u540d\u54c1+1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the largest crowd at Lake Oval?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_2\" WHERE \"venue\"='lake oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the home team for the game with more than 25,000 crowd?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"crowd\">'25,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score for Footscray when they were the away team?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_2\" WHERE \"away_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"under_23_international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"goals\" real,\n \"competition\" text\n);\n\nQuestion: What is the result from March 14, 2007?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"under_23_international_career\" WHERE \"date\"='march 14, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"under_23_international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"goals\" real,\n \"competition\" text\n);\n\nQuestion: How many goals have a result of 0-1 on march 28, 2007?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals\") FROM \"under_23_international_career\" WHERE \"result\"='0-1' AND \"date\"='march 28, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"under_23_international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"goals\" real,\n \"competition\" text\n);\n\nQuestion: What venue has a Result of 3-0?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"under_23_international_career\" WHERE \"result\"='3-0';" } ]