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 \"table1_27833469_1\" (\n \"series_num\" real,\n \"season_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the series number for the episode number 10 of the season?"
},
{
"role": "assistant",
"content": "SELECT \"series_num\" FROM \"table1_27833469_1\" WHERE \"season_num\"='10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triconsonantal_roots\" (\n \"semitological_abbreviation\" text,\n \"hebrew_name\" text,\n \"arabic_name\" text,\n \"morphological_category\" text,\n \"hebrew_form\" text,\n \"arabic_form\" text,\n \"approximate_translation\" text\n);\n\nQuestion: What are the the approximate translations when the Morphological Category is 1st. plur. perfect?"
},
{
"role": "assistant",
"content": "SELECT \"approximate_translation\" FROM \"triconsonantal_roots\" WHERE \"morphological_category\"='1st. plur. perfect';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triconsonantal_roots\" (\n \"semitological_abbreviation\" text,\n \"hebrew_name\" text,\n \"arabic_name\" text,\n \"morphological_category\" text,\n \"hebrew_form\" text,\n \"arabic_form\" text,\n \"approximate_translation\" text\n);\n\nQuestion: What are the approximate translations when the morphological category is masc. sing. active participle?"
},
{
"role": "assistant",
"content": "SELECT \"approximate_translation\" FROM \"triconsonantal_roots\" WHERE \"morphological_category\"='masc. sing. active participle';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triconsonantal_roots\" (\n \"semitological_abbreviation\" text,\n \"hebrew_name\" text,\n \"arabic_name\" text,\n \"morphological_category\" text,\n \"hebrew_form\" text,\n \"arabic_form\" text,\n \"approximate_translation\" text\n);\n\nQuestion: How many hebrew forms are there for the arabic form yuktibu \u064a\u0643\u062a\u0628?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hebrew_form\") FROM \"triconsonantal_roots\" WHERE \"arabic_form\"='yuktibu \u064a\u0643\u062a\u0628';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triconsonantal_roots\" (\n \"semitological_abbreviation\" text,\n \"hebrew_name\" text,\n \"arabic_name\" text,\n \"morphological_category\" text,\n \"hebrew_form\" text,\n \"arabic_form\" text,\n \"approximate_translation\" text\n);\n\nQuestion: What are the arabic forms when the approximate translation is \"he writes, will write\"?"
},
{
"role": "assistant",
"content": "SELECT \"arabic_form\" FROM \"triconsonantal_roots\" WHERE \"approximate_translation\"='\\\"he writes, will write\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triconsonantal_roots\" (\n \"semitological_abbreviation\" text,\n \"hebrew_name\" text,\n \"arabic_name\" text,\n \"morphological_category\" text,\n \"hebrew_form\" text,\n \"arabic_form\" text,\n \"approximate_translation\" text\n);\n\nQuestion: What are the morphological categories when the approximate translation is \"he wrote\"?"
},
{
"role": "assistant",
"content": "SELECT \"morphological_category\" FROM \"triconsonantal_roots\" WHERE \"approximate_translation\"='\\\"he wrote\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triconsonantal_roots\" (\n \"semitological_abbreviation\" text,\n \"hebrew_name\" text,\n \"arabic_name\" text,\n \"morphological_category\" text,\n \"hebrew_form\" text,\n \"arabic_form\" text,\n \"approximate_translation\" text\n);\n\nQuestion: How many Arabic forms are there for the 1st. plur. perfect category?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"arabic_form\") FROM \"triconsonantal_roots\" WHERE \"morphological_category\"='1st. plur. perfect';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27847088_1\" (\n \"episode_no\" real,\n \"series_no\" real,\n \"episode\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text,\n \"viewers_millions\" text\n);\n\nQuestion: How many were the viewers (in millions) of the series no. 45?"
},
{
"role": "assistant",
"content": "SELECT \"viewers_millions\" FROM \"table1_27847088_1\" WHERE \"series_no\"=45;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27847088_1\" (\n \"episode_no\" real,\n \"series_no\" real,\n \"episode\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Who was the writer of the episode title \"Divine Intervention\"?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"table1_27847088_1\" WHERE \"episode\"='\\\"Divine Intervention\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"num\" real,\n \"date\" text,\n \"opponent\" text,\n \"site_stadium\" text,\n \"score\" text,\n \"win\" text,\n \"loss\" text,\n \"save\" text,\n \"attendance\" real,\n \"overall_record\" text,\n \"pac_10_record\" text\n);\n\nQuestion: How many games did UCLA's baseball team win with a score 7-6 during May of 2010?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"score\"='7-6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"champions_by_nationality\" (\n \"rank\" text,\n \"nationality\" text,\n \"non_major_wins\" real,\n \"non_major_winners\" real,\n \"major_wins\" real,\n \"major_winners\" real,\n \"total_wins\" real,\n \"total_winners\" real,\n \"first_title\" real,\n \"last_title\" real\n);\n\nQuestion: How many wins are listed when the first title is 2004?"
},
{
"role": "assistant",
"content": "SELECT \"total_wins\" FROM \"champions_by_nationality\" WHERE \"first_title\"=2004;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_network_o_os_that_aired_nta_pro\" (\n \"city\" text,\n \"state_or_territory\" text,\n \"station_call_sign\" text,\n \"network\" text,\n \"channel_number\" real,\n \"programs_aired\" text\n);\n\nQuestion: Which network was located in Illinois?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"table_of_network_o_os_that_aired_nta_pro\" WHERE \"state_or_territory\"='Illinois';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_network_o_os_that_aired_nta_pro\" (\n \"city\" text,\n \"state_or_territory\" text,\n \"station_call_sign\" text,\n \"network\" text,\n \"channel_number\" real,\n \"programs_aired\" text\n);\n\nQuestion: What is the highest channel number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"channel_number\") FROM \"table_of_network_o_os_that_aired_nta_pro\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_network_o_os_that_aired_nta_pro\" (\n \"city\" text,\n \"state_or_territory\" text,\n \"station_call_sign\" text,\n \"network\" text,\n \"channel_number\" real,\n \"programs_aired\" text\n);\n\nQuestion: Which state or territory had a channel number of exactly 7?"
},
{
"role": "assistant",
"content": "SELECT \"state_or_territory\" FROM \"table_of_network_o_os_that_aired_nta_pro\" WHERE \"channel_number\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the date for omni coliseum 10,330"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"location_attendance\"='Omni Coliseum 10,330';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the location attendance for 3 game"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the location attendance for l 93-105"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"score\"='L 93-105';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the record for oakland-alameda county coliseum arena 15,025"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"location_attendance\"='Oakland-Alameda County Coliseum Arena 15,025';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the total number of games for w 112-94"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"score\"='W 112-94';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" text,\n \"main_date\" text,\n \"number_of_fixtures\" real,\n \"clubs\" text,\n \"new_entries_this_round\" text,\n \"prize_money\" text,\n \"player_of_the_round\" text\n);\n\nQuestion: what is the club in the sixth round proper"
},
{
"role": "assistant",
"content": "SELECT \"clubs\" FROM \"calendar\" WHERE \"round\"='Sixth round proper';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"outcome\" text,\n \"edition\" text,\n \"opponent_team\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: For edition is 2011 europe/africa group iiib and surface where score is 6\u20134, 6\u20131 please specify all the surface"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles\" WHERE \"score\"='6\u20134, 6\u20131' AND \"edition\"='2011 Europe/Africa Group IIIB';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"outcome\" text,\n \"edition\" text,\n \"opponent_team\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: For opponent is sandra kristj\u00e1nsd\u00f3ttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team."
},
{
"role": "assistant",
"content": "SELECT \"opponent_team\" FROM \"singles\" WHERE \"edition\"='2009 Europe/Africa Group IIIB' AND \"outcome\"='Winner' AND \"opponent\"='Sandra Kristj\u00e1nsd\u00f3ttir';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"outcome\" text,\n \"edition\" text,\n \"opponent_team\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: For score 7\u20136 (7\u20133) , 6\u20134 please mention total number of outcome"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"outcome\") FROM \"singles\" WHERE \"score\"='7\u20136 (7\u20133) , 6\u20134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"outcome\" text,\n \"edition\" text,\n \"opponent_team\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles\" WHERE \"edition\"='2009 Europe/Africa Group IIIB' AND \"opponent_team\"='Armenia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"outcome\" text,\n \"edition\" text,\n \"opponent_team\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: For score 6\u20132, 6\u20133 and outcome is loser mention all the edition."
},
{
"role": "assistant",
"content": "SELECT \"edition\" FROM \"singles\" WHERE \"outcome\"='Loser' AND \"score\"='6\u20132, 6\u20133';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"dates\" text,\n \"race_name\" text,\n \"location\" text,\n \"uci_rating\" text,\n \"winner\" text,\n \"team\" text,\n \"series_leader\" text\n);\n\nQuestion: who was the winner of uci rating cn?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"events\" WHERE \"uci_rating\"='CN';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"dates\" text,\n \"race_name\" text,\n \"location\" text,\n \"uci_rating\" text,\n \"winner\" text,\n \"team\" text,\n \"series_leader\" text\n);\n\nQuestion: what race name had a uci rating of cn?"
},
{
"role": "assistant",
"content": "SELECT \"race_name\" FROM \"events\" WHERE \"uci_rating\"='CN';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"dates\" text,\n \"race_name\" text,\n \"location\" text,\n \"uci_rating\" text,\n \"winner\" text,\n \"team\" text,\n \"series_leader\" text\n);\n\nQuestion: what location has team trek-livestrong?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"events\" WHERE \"team\"='Trek-Livestrong';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"dates\" text,\n \"race_name\" text,\n \"location\" text,\n \"uci_rating\" text,\n \"winner\" text,\n \"team\" text,\n \"series_leader\" text\n);\n\nQuestion: who was the winner for souderton, pa?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"events\" WHERE \"location\"='Souderton, PA';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27892955_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the name of episode 120 in the series that Mike Rohl directed?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_27892955_1\" WHERE \"directed_by\"='Mike Rohl' AND \"no_in_series\"=120;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27892955_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote episode that had 1.97 million u.s. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_27892955_1\" WHERE \"u_s_viewers_million\"='1.97';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27892955_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the name of the episode that had 2.02 million u.s. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_27892955_1\" WHERE \"u_s_viewers_million\"='2.02';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games did they play on january 11?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"date\"='January 11';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every team with a record of 9-7?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='9-7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many people are high assists when location attendance is Seattle Center Coliseum 14,180?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"location_attendance\"='Seattle Center Coliseum 14,180';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every date with game 23?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=23;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every team with location attendance of Seattle Center Coliseum 14,180?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"location_attendance\"='Seattle Center Coliseum 14,180';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every team with location attendance of Arco Arena 17,014?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"location_attendance\"='ARCO Arena 17,014';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27893892_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what was the opposition where the field is waldstadion during time 6"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"table1_27893892_2\" WHERE \"game_site\"='Waldstadion' AND \"week\"=6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27893892_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what is the location for saturday, april 21"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"table1_27893892_2\" WHERE \"date\"='Saturday, April 21';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27893892_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what was the participation for saturday, may 12"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"table1_27893892_2\" WHERE \"date\"='Saturday, May 12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27893892_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what was the achievement for the rival at scottish claymores"
},
{
"role": "assistant",
"content": "SELECT \"team_record\" FROM \"table1_27893892_2\" WHERE \"opponent\"='at Scottish Claymores';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: What is the highest number for 140+?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"140\") FROM \"statistics\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: How many legs were lost when the high checkout was 101?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"legs_lost\") FROM \"statistics\" WHERE \"high_checkout\"=101;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: Who was the player when the 180s was 15?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"statistics\" WHERE \"180s\"=15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: How many legs were own by alan tabern?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"legs_won\") FROM \"statistics\" WHERE \"player\"='Alan Tabern';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: What is the 3-dart average where the 140+ is 75?"
},
{
"role": "assistant",
"content": "SELECT \"3_dart_average\" FROM \"statistics\" WHERE \"140\"=75;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: name the team for 36-29 record"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='36-29';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the total number of high asists for 34-27"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"record\"='34-27';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the date for score of w 112-91"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='W 112-91';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the number of location attendance for 36-29 record"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"record\"='36-29';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27910411_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What date did the episode with 8.28 million u.s. viewers originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_27910411_1\" WHERE \"u_s_viewers_millions\"='8.28';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27910411_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode number of the series is \"open water\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_27910411_1\" WHERE \"title\"='\\\"Open Water\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27910411_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many items are listed for U.S. viewers for episode number 5 in the series?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"u_s_viewers_millions\") FROM \"table1_27910411_1\" WHERE \"no_in_series\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27910411_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What date did episode 10 in the series originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_27910411_1\" WHERE \"no_in_series\"=10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27911342_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the date the episode entitled \"House\" aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_27911342_1\" WHERE \"title\"='\\\"House\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27911342_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the season number of the show written by both Kari Lizer and Jeff Astrof?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season_num\") FROM \"table1_27911342_1\" WHERE \"written_by\"='Kari Lizer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27911342_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the Series 40 Season 5 show?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_27911342_1\" WHERE \"season_num\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27913766_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: who wrote the episode \"he ain't heavy\"?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_27913766_1\" WHERE \"title\"='\\\"He Ain''t Heavy\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27913766_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: how many times was the episode \"the old maid of honor\" originally aired?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_27913766_1\" WHERE \"title\"='\\\"The Old Maid of Honor\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27913766_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: the episode \"a change in heart/pants\" had a maximum of what number in the series?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"series_num\") FROM \"table1_27913766_1\" WHERE \"title\"='\\\"A Change in Heart/Pants\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914076_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: Name the callsign for davao mindanao region"
},
{
"role": "assistant",
"content": "SELECT \"callsign\" FROM \"table1_27914076_1\" WHERE \"coverage\"='Davao Mindanao Region';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914076_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: Name the power for dymd-fm"
},
{
"role": "assistant",
"content": "SELECT \"power_k_w\" FROM \"table1_27914076_1\" WHERE \"callsign\"='DYMD-FM';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914076_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: Name the frequency for 103.7 energy fm dipolog*"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"table1_27914076_1\" WHERE \"branding\"='103.7 Energy FM Dipolog*';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914076_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: Name the number of coverage for 106.7 energy fm"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"coverage\") FROM \"table1_27914076_1\" WHERE \"branding\"='106.7 Energy FM';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914606_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what is the number of the episode in the season that had 7.19 millions of north american viewers? "
},
{
"role": "assistant",
"content": "SELECT \"season_num\" FROM \"table1_27914606_1\" WHERE \"u_s_viewers_millions\"='7.19';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914606_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what is the name of the episode whose writers were jeff astrof & matt goldman? "
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_27914606_1\" WHERE \"written_by\"='Jeff Astrof & Matt Goldman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914606_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: who were the writers of the episode that had 5.56 millions of north american viewers? "
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_27914606_1\" WHERE \"u_s_viewers_millions\"='5.56';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27914606_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what is the name of the episode whose writers were jeff astrof & matt goldman? "
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_27914606_1\" WHERE \"written_by\"='Jeff Astrof & Matt Goldman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: What is the average for the player with 313 runs?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"batting_averages\" WHERE \"runs\"=313;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: How few runs does the 97.00 average have?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"runs\") FROM \"batting_averages\" WHERE \"average\"='97.00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"strike_rate\" text,\n \"highest_score\" text,\n \"50s\" real\n);\n\nQuestion: What is the minimum number of 50s scored?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"50s\") FROM \"batting_averages\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: How many 4wi were recorded by the player with an economy of 4.17?"
},
{
"role": "assistant",
"content": "SELECT \"4wi\" FROM \"bowling_averages\" WHERE \"economy\"='4.17';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: What is the fewest number of wickets recorded?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wickets\") FROM \"bowling_averages\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: What was the BBI for the bowler whose average is 24.50?"
},
{
"role": "assistant",
"content": "SELECT \"bbi\" FROM \"bowling_averages\" WHERE \"average\"='24.50';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real\n);\n\nQuestion: What is the least amount of wickets?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wickets\") FROM \"bowling_averages\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real\n);\n\nQuestion: What is the least amount of matches?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"matches\") FROM \"bowling_averages\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real\n);\n\nQuestion: How many players had 12 wickets?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"player\") FROM \"bowling_averages\" WHERE \"wickets\"=12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real\n);\n\nQuestion: How many innings for the player with an average of 30.03?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"innings\") FROM \"bowling_averages\" WHERE \"average\"='30.03';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real\n);\n\nQuestion: What is the average for the player with BBM 5/85?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"bowling_averages\" WHERE \"bbm\"='5/85';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27927185_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What is the lowest episode number that had 4.03 million viewers?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episode_num\") FROM \"table1_27927185_1\" WHERE \"viewers_millions\"='4.03';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27927185_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"viewers_millions\" text\n);\n\nQuestion: How many million viewers watched episodes prior to episode 2.0?"
},
{
"role": "assistant",
"content": "SELECT \"viewers_millions\" FROM \"table1_27927185_1\" WHERE \"episode_num\"<2.0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27927185_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What was the original air-date that had 4.77 million viewers?"
},
{
"role": "assistant",
"content": "SELECT \"originalairdate\" FROM \"table1_27927185_1\" WHERE \"viewers_millions\"='4.77';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27927185_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Who directed the episode with 6.37 million viewers?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_27927185_1\" WHERE \"viewers_millions\"='6.37';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27932399_1\" (\n \"catalogue_number\" text,\n \"artist\" text,\n \"release_title\" text,\n \"format\" text,\n \"release_date\" real\n);\n\nQuestion: What is the release date of catalogue number DW023?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"release_date\") FROM \"table1_27932399_1\" WHERE \"catalogue_number\"='DW023';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27932399_1\" (\n \"catalogue_number\" text,\n \"artist\" text,\n \"release_title\" text,\n \"format\" text,\n \"release_date\" real\n);\n\nQuestion: What is the release date of \"New Worlds for Old\"?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"table1_27932399_1\" WHERE \"release_title\"='New Worlds For Old';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27932399_1\" (\n \"catalogue_number\" text,\n \"artist\" text,\n \"release_title\" text,\n \"format\" text,\n \"release_date\" real\n);\n\nQuestion: What is the catalogue number for \"Waves in the Air\"?"
},
{
"role": "assistant",
"content": "SELECT \"catalogue_number\" FROM \"table1_27932399_1\" WHERE \"release_title\"='Waves In The Air';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27932399_1\" (\n \"catalogue_number\" text,\n \"artist\" text,\n \"release_title\" text,\n \"format\" text,\n \"release_date\" real\n);\n\nQuestion: What is the catalogue number for release dates of exactly 2005 and released by The Clear Spots?"
},
{
"role": "assistant",
"content": "SELECT \"catalogue_number\" FROM \"table1_27932399_1\" WHERE \"release_date\"=2005 AND \"artist\"='The Clear Spots';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27932399_1\" (\n \"catalogue_number\" text,\n \"artist\" text,\n \"release_title\" text,\n \"format\" text,\n \"release_date\" real\n);\n\nQuestion: Which artist had a release title of HH?"
},
{
"role": "assistant",
"content": "SELECT \"artist\" FROM \"table1_27932399_1\" WHERE \"release_title\"='HH';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27932399_1\" (\n \"catalogue_number\" text,\n \"artist\" text,\n \"release_title\" text,\n \"format\" text,\n \"release_date\" real\n);\n\nQuestion: What was the name of the album released by Heavy Winged?"
},
{
"role": "assistant",
"content": "SELECT \"release_title\" FROM \"table1_27932399_1\" WHERE \"artist\"='Heavy Winged';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"television_commentator\" text,\n \"dual_television_commentator\" text,\n \"radio_commentator\" text,\n \"spokesperson\" text\n);\n\nQuestion: Who was the dual television commentator in 1990?"
},
{
"role": "assistant",
"content": "SELECT \"dual_television_commentator\" FROM \"commentators_and_spokespersons\" WHERE \"year_s\"=1990;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"television_commentator\" text,\n \"dual_television_commentator\" text,\n \"radio_commentator\" text,\n \"spokesperson\" text\n);\n\nQuestion: Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?"
},
{
"role": "assistant",
"content": "SELECT \"radio_commentator\" FROM \"commentators_and_spokespersons\" WHERE \"television_commentator\"='Jan Gabrielsson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"moto_gp_winner\" text,\n \"moto2_winner\" text,\n \"moto3_winner\" text,\n \"report\" text\n);\n\nQuestion: Name the total number of moto2 winners for laguna seca"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"moto2_winner\") FROM \"grands_prix\" WHERE \"circuit\"='Laguna Seca';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"moto_gp_winner\" text,\n \"moto2_winner\" text,\n \"moto3_winner\" text,\n \"report\" text\n);\n\nQuestion: Name the circuit for hertz british grand prix"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"grands_prix\" WHERE \"grand_prix\"='Hertz British Grand Prix';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"moto_gp_winner\" text,\n \"moto2_winner\" text,\n \"moto3_winner\" text,\n \"report\" text\n);\n\nQuestion: Name the number of rounds for brno"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"grands_prix\" WHERE \"circuit\"='Brno';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"moto_gp_winner\" text,\n \"moto2_winner\" text,\n \"moto3_winner\" text,\n \"report\" text\n);\n\nQuestion: Name the motogp winner for 6 may"
},
{
"role": "assistant",
"content": "SELECT \"moto_gp_winner\" FROM \"grands_prix\" WHERE \"date\"='6 May';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27936859_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: when was the episode titled \"cracked\" originally aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_27936859_2\" WHERE \"title\"='\\\"Cracked\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27965906_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gt_winning_car\" text,\n \"ss_winning_car\" text,\n \"a_winning_car\" text,\n \"b_winning_car\" text,\n \"report\" text\n);\n\nQuestion: Name the b winning car for #88 team mitsubishi 88 mitsubishi starion"
},
{
"role": "assistant",
"content": "SELECT \"b_winning_car\" FROM \"table1_27965906_2\" WHERE \"a_winning_car\"='#88 Team Mitsubishi 88 Mitsubishi Starion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27965906_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gt_winning_car\" text,\n \"ss_winning_car\" text,\n \"a_winning_car\" text,\n \"b_winning_car\" text,\n \"report\" text\n);\n\nQuestion: Name the gt winning car for #88 team mitsubishi 88 mitsubishi starion"
},
{
"role": "assistant",
"content": "SELECT \"gt_winning_car\" FROM \"table1_27965906_2\" WHERE \"a_winning_car\"='#88 Team Mitsubishi 88 Mitsubishi Starion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_27965906_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gt_winning_car\" text,\n \"ss_winning_car\" text,\n \"a_winning_car\" text,\n \"b_winning_car\" text,\n \"report\" text\n);\n\nQuestion: Name the ss winning car for road atlanta and #35 quantum engineering #35 honda crx-si"
},
{
"role": "assistant",
"content": "SELECT \"ss_winning_car\" FROM \"table1_27965906_2\" WHERE \"circuit\"='Road Atlanta' AND \"b_winning_car\"='#35 Quantum Engineering #35 Honda CRX-Si';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.