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 \"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 date for stephen curry , dorell wright (27)" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"game_log\" WHERE \"high_points\"='Stephen Curry , Dorell Wright (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 high rebounds for 77 game" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=77;" } ]
[ { "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 was the record after the game on November 10?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='November 10';" } ]
[ { "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 the score when the hight points is Monta Ellis (29)?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_points\"='Monta Ellis (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: How many teams have hight points listed as David Lee (31)?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"game_log\" WHERE \"high_points\"='David Lee (31)';" } ]
[ { "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 the record when the high points is listed as Stephen Curry (32)?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='Stephen Curry (32)';" } ]
[ { "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 the record when the date is January 7?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='January 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: What is the date when the team is listed as New Orleans?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"team\"='New Orleans';" } ]
[ { "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 was the team where Darren Collison (7) scored high assists?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"high_assists\"='Darren Collison (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: When did the Roy Hibbert (27) did the high points?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_points\"='Roy Hibbert (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: In how many different games did Roy Hibbert (16) did the most high rebounds?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"high_rebounds\"='Roy Hibbert (16)';" } ]
[ { "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 was the score of the game in which Danny Granger (30) did the high points?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_points\"='Danny Granger (30)';" } ]
[ { "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: Who scored the most points when the Bucks played against Houston?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Houston';" } ]
[ { "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 date was game number 22 on?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=22;" } ]
[ { "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 scored the most points during the game on December 10?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"date\"='December 10';" } ]
[ { "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: When the team is chicago what is the location attendence?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Chicago';" } ]
[ { "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 the score when the team is Orlando?" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"team\"='Orlando';" } ]
[ { "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 was the score in the game on March 26?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='March 26';" } ]
[ { "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 was the record when the Clippers played Philadelphia? " }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Philadelphia';" } ]
[ { "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 location and attendance were there for game 5?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=5;" } ]
[ { "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: Which game did rudy gay (12) have the highest points?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"high_points\"='Rudy Gay (12)';" } ]
[ { "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 high assists where there for the team of caja laboral?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"team\"='Caja Laboral';" } ]
[ { "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: Which game did marc gasol (10) have the high rebounds?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"high_rebounds\"='Marc Gasol (10)';" } ]
[ { "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: Who had the high assists on october 6?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='October 6';" } ]
[ { "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 assists for fedexforum 11,283" }, { "role": "assistant", "content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"location_attendance\"='FedExForum 11,283';" } ]
[ { "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 most game for us airways center 16,470" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"location_attendance\"='US Airways Center 16,470';" } ]
[ { "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: Who and what were the high points player for the game against Detroit?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Detroit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27764201_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: How many times did the Centurions play the Rhein Fire?" }, { "role": "assistant", "content": "SELECT COUNT(\"game_site\") FROM \"table1_27764201_2\" WHERE \"opponent\"='Rhein Fire';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27764201_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: Where did the Centurions play the Hamburg Sea Devils?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"table1_27764201_2\" WHERE \"opponent\"='Hamburg Sea Devils';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27764201_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 time was the kickoff against the Frankfurt Galaxy?" }, { "role": "assistant", "content": "SELECT \"kickoff\" FROM \"table1_27764201_2\" WHERE \"opponent\"='Frankfurt Galaxy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"test_career\" text,\n \"tests\" real,\n \"catches\" real,\n \"stumpings\" real,\n \"total_dismissals\" real\n);\n\nQuestion: How many total catches did the player with no. 46 have?" }, { "role": "assistant", "content": "SELECT COUNT(\"catches\") FROM \"notes\" WHERE \"no\"=46;" } ]
[ { "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 did the manager who was replaced by Jakob Michelsen depart?" }, { "role": "assistant", "content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Jakob Michelsen';" } ]
[ { "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 was the AB team's position in table?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"team\"='AB';" } ]
[ { "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: On what date did Kim Fogh replace the previous manager?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Kim Fogh';" } ]
[ { "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 was the vacancy date for Thomas Thomasberg?" }, { "role": "assistant", "content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Thomas Thomasberg';" } ]
[ { "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 manager was replaced by Thomas Thomasberg?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Thomas Thomasberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27771406_1\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"test_career\" text,\n \"tests\" real,\n \"catches\" real,\n \"stumpings\" real,\n \"total_dismissals\" real\n);\n\nQuestion: How many total dismissals did the player for Guyana have?" }, { "role": "assistant", "content": "SELECT MAX(\"total_dismissals\") FROM \"table1_27771406_1\" WHERE \"club\"='Guyana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27771406_1\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"test_career\" text,\n \"tests\" real,\n \"catches\" real,\n \"stumpings\" real,\n \"total_dismissals\" real\n);\n\nQuestion: The player for what club had 2 tests?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"table1_27771406_1\" WHERE \"tests\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27771406_1\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"test_career\" text,\n \"tests\" real,\n \"catches\" real,\n \"stumpings\" real,\n \"total_dismissals\" real\n);\n\nQuestion: What is the most amount of stumpings any player had? " }, { "role": "assistant", "content": "SELECT MAX(\"stumpings\") FROM \"table1_27771406_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27771406_1\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"test_career\" text,\n \"tests\" real,\n \"catches\" real,\n \"stumpings\" real,\n \"total_dismissals\" real\n);\n\nQuestion: What club did Cyril Christiani play for? " }, { "role": "assistant", "content": "SELECT \"club\" FROM \"table1_27771406_1\" WHERE \"player\"='Cyril Christiani';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27771406_1\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"test_career\" text,\n \"tests\" real,\n \"catches\" real,\n \"stumpings\" real,\n \"total_dismissals\" real\n);\n\nQuestion: How many catches did Clifford McWatt have? " }, { "role": "assistant", "content": "SELECT MIN(\"catches\") FROM \"table1_27771406_1\" WHERE \"player\"='Clifford McWatt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"driver\" text,\n \"owner\" text,\n \"number\" text,\n \"make\" text,\n \"starts\" text,\n \"wins\" real,\n \"top_tens\" real,\n \"poles\" real,\n \"points_margin\" text\n);\n\nQuestion: Name the points for top tens being 24 and ownder david pearson" }, { "role": "assistant", "content": "SELECT \"points_margin\" FROM \"by_season\" WHERE \"top_tens\"=24 AND \"owner\"='David Pearson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"driver\" text,\n \"owner\" text,\n \"number\" text,\n \"make\" text,\n \"starts\" text,\n \"wins\" real,\n \"top_tens\" real,\n \"poles\" real,\n \"points_margin\" text\n);\n\nQuestion: Name the starts for bobby labonte" }, { "role": "assistant", "content": "SELECT \"starts\" FROM \"by_season\" WHERE \"driver\"='Bobby Labonte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"driver\" text,\n \"owner\" text,\n \"number\" text,\n \"make\" text,\n \"starts\" text,\n \"wins\" real,\n \"top_tens\" real,\n \"poles\" real,\n \"points_margin\" text\n);\n\nQuestion: Name the poles for season 2006" }, { "role": "assistant", "content": "SELECT \"poles\" FROM \"by_season\" WHERE \"season\"=2006;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27776266_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 was the production code of the episode no. 55 in the series?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_27776266_1\" WHERE \"no_in_series\"=55;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27776266_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 was the production code of the episode with an audience of 14.79 million in the US?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_27776266_1\" WHERE \"u_s_viewers_million\"='14.79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27776266_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 directed the episode with an audience of 14.11 million?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_27776266_1\" WHERE \"u_s_viewers_million\"='14.11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27776266_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 was the title of the episode with a production code of 3x6404?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27776266_1\" WHERE \"production_code\"='3X6404';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_ten\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which school players have a number of 255" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_ten\" WHERE \"pick\"=255;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_ten\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what educational institute does wes swinson attend" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_ten\" WHERE \"player\"='Wes Swinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_ten\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: which part on the team does rick schuhwerk play" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_ten\" WHERE \"player\"='Rick Schuhwerk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: For college/junior/club team is brandon wheat kings (whl) mention all the player name" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_four\" WHERE \"college_junior_club_team\"='Brandon Wheat Kings (WHL)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: For player is jamal mayers mention the minimum pick" }, { "role": "assistant", "content": "SELECT MIN(\"pick\") FROM \"round_four\" WHERE \"player\"='Jamal Mayers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: For player is john jakopin mention the total number of position " }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"round_four\" WHERE \"player\"='John Jakopin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: For nhl team is san jose sharks mention all the college/junior/club team " }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_four\" WHERE \"nhl_team\"='San Jose Sharks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: For player is adam wiesel mention all the college/junior/club team " }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_four\" WHERE \"player\"='Adam Wiesel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many values are displayed under pick for Vlastimil Kroupa?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick\") FROM \"round_two\" WHERE \"player\"='Vlastimil Kroupa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many positions does Janne Niinimaa play?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"round_two\" WHERE \"player\"='Janne Niinimaa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many teams does Lee Sorochan play for?" }, { "role": "assistant", "content": "SELECT COUNT(\"college_junior_club_team\") FROM \"round_two\" WHERE \"player\"='Lee Sorochan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What player belongs to the Chicago Blackhawks?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"nhl_team\"='Chicago Blackhawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many teams does Maxim Bets play for?" }, { "role": "assistant", "content": "SELECT COUNT(\"nhl_team\") FROM \"round_two\" WHERE \"player\"='Maxim Bets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eleven\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What was the minimum pick by the Florida Panthers?" }, { "role": "assistant", "content": "SELECT MIN(\"pick\") FROM \"round_eleven\" WHERE \"nhl_team\"='Florida Panthers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What NHL team picked Ryan Meade for the draft?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_seven\" WHERE \"player\"='Ryan Meade';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What college team did Ryan Golden come from?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_seven\" WHERE \"player\"='Ryan Golden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many different nationalities is pick number 179?" }, { "role": "assistant", "content": "SELECT COUNT(\"nationality\") FROM \"round_seven\" WHERE \"pick\"=179;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What college team did the pick for Pittsburgh Penguins come from?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_seven\" WHERE \"nhl_team\"='Pittsburgh Penguins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What NHL team picked Tom White?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_seven\" WHERE \"player\"='Tom White';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_peaks\" (\n \"entry_date_a\" text,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_in_top_10\" real\n);\n\nQuestion: How many weeks in the top 10 was spent by a song performed by Peter Kay?" }, { "role": "assistant", "content": "SELECT MAX(\"weeks_in_top_10\") FROM \"2009_peaks\" WHERE \"artist\"='Peter Kay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_peaks\" (\n \"entry_date_a\" text,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_in_top_10\" real\n);\n\nQuestion: How long has the longest song spent in the top 10?" }, { "role": "assistant", "content": "SELECT MAX(\"weeks_in_top_10\") FROM \"2009_peaks\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What college/junior/club team did dmitri gorenko play for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_nine\" WHERE \"player\"='Dmitri Gorenko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position does krylja sovetov (russia) play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_nine\" WHERE \"college_junior_club_team\"='Krylja Sovetov (Russia)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position(s) does barrie moore play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_nine\" WHERE \"player\"='Barrie Moore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"affiliate_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"current_conference\" text,\n \"pac_12_sports\" text\n);\n\nQuestion: How many pac-12 sports are shown for california polytechnic state university?" }, { "role": "assistant", "content": "SELECT COUNT(\"pac_12_sports\") FROM \"affiliate_members\" WHERE \"institution\"='California Polytechnic State University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"affiliate_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"current_conference\" text,\n \"pac_12_sports\" text\n);\n\nQuestion: When was the institution in boise, idaho founded?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"affiliate_members\" WHERE \"location\"='Boise, Idaho';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"affiliate_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"current_conference\" text,\n \"pac_12_sports\" text\n);\n\nQuestion: Which conference did boise state university play at?" }, { "role": "assistant", "content": "SELECT \"current_conference\" FROM \"affiliate_members\" WHERE \"institution\"='Boise State University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"affiliate_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"current_conference\" text,\n \"pac_12_sports\" text\n);\n\nQuestion: When was the Titans founded?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"affiliate_members\" WHERE \"nickname\"='Titans';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"affiliate_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"current_conference\" text,\n \"pac_12_sports\" text\n);\n\nQuestion: Which institution was founded in 1932?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"affiliate_members\" WHERE \"founded\"=1932;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"affiliate_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"current_conference\" text,\n \"pac_12_sports\" text\n);\n\nQuestion: Which institution was located in bakersfield, california?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"affiliate_members\" WHERE \"location\"='Bakersfield, California';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_statistics\" (\n \"shirt_number\" real,\n \"player_name\" text,\n \"games_played\" real,\n \"total_points\" real,\n \"2_points\" real,\n \"3_points\" real,\n \"free_throw\" real\n);\n\nQuestion: Name the least games played for 6 points" }, { "role": "assistant", "content": "SELECT MIN(\"games_played\") FROM \"player_statistics\" WHERE \"total_points\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"driver\" text,\n \"owner\" text,\n \"no\" real,\n \"manufacturer\" text,\n \"starts\" text,\n \"wins\" real,\n \"top_tens\" real,\n \"poles\" real,\n \"points_margin\" text\n);\n\nQuestion: who is the manufacturer is no.50?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"by_season\" WHERE \"no\"=50;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27823058_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Which episodes did Katie Palmer write? " }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27823058_1\" WHERE \"written_by\"='Katie Palmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27823058_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What's the highest series number ? " }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"table1_27823058_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"territories_of_eastern_wu\" (\n \"province\" text,\n \"provincial_capital\" text,\n \"commandery\" text,\n \"commandery_capital\" text,\n \"no_of_counties\" real\n);\n\nQuestion: when changsha \u9577\u6c99 is the commandery what is the commandery capital?" }, { "role": "assistant", "content": "SELECT \"commandery_capital\" FROM \"territories_of_eastern_wu\" WHERE \"commandery\"='Changsha \u9577\u6c99';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"territories_of_eastern_wu\" (\n \"province\" text,\n \"provincial_capital\" text,\n \"commandery\" text,\n \"commandery_capital\" text,\n \"no_of_counties\" real\n);\n\nQuestion: When yidu \u5b9c\u90fd is the commandery what is the lowest number of countries?" }, { "role": "assistant", "content": "SELECT MIN(\"no_of_counties\") FROM \"territories_of_eastern_wu\" WHERE \"commandery\"='Yidu \u5b9c\u90fd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"territories_of_eastern_wu\" (\n \"province\" text,\n \"provincial_capital\" text,\n \"commandery\" text,\n \"commandery_capital\" text,\n \"no_of_counties\" real\n);\n\nQuestion: When nanhai \u5357\u6d77 is the commandery what is the commandery capital?" }, { "role": "assistant", "content": "SELECT \"commandery_capital\" FROM \"territories_of_eastern_wu\" WHERE \"commandery\"='Nanhai \u5357\u6d77';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"territories_of_eastern_wu\" (\n \"province\" text,\n \"provincial_capital\" text,\n \"commandery\" text,\n \"commandery_capital\" text,\n \"no_of_counties\" real\n);\n\nQuestion: When zhang'an county \u7ae0\u5b89\u7e23 is the commandery capital what is the province?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"territories_of_eastern_wu\" WHERE \"commandery_capital\"='Zhang''an County \u7ae0\u5b89\u7e23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"territories_of_eastern_wu\" (\n \"province\" text,\n \"provincial_capital\" text,\n \"commandery\" text,\n \"commandery_capital\" text,\n \"no_of_counties\" real\n);\n\nQuestion: When gaoliang \u9ad8\u6dbc is the commandery what is the commandery capital?" }, { "role": "assistant", "content": "SELECT \"commandery_capital\" FROM \"territories_of_eastern_wu\" WHERE \"commandery\"='Gaoliang \u9ad8\u6dbc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27832075_2\" (\n \"series_num\" real,\n \"episode_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 title of episode number 9-10?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27832075_2\" WHERE \"episode_num\"='9-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27832075_2\" (\n \"series_num\" real,\n \"episode_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: How many million U.S. viewers wtched episode 69 of the series?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_27832075_2\" WHERE \"series_num\"=69;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27832075_2\" (\n \"series_num\" real,\n \"episode_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: Who directed episode number 23 in the season?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_27832075_2\" WHERE \"episode_num\"='23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27832075_2\" (\n \"series_num\" real,\n \"episode_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 name of episode number 12 of the season?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27832075_2\" WHERE \"episode_num\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_championship_winners\" (\n \"year\" real,\n \"location\" text,\n \"distance_miles\" real,\n \"rider_names\" text,\n \"horse_name\" text,\n \"best_conditioned_horse\" text\n);\n\nQuestion: What are all the Riders whose best-conditioned horse is Basia?" }, { "role": "assistant", "content": "SELECT \"rider_names\" FROM \"world_championship_winners\" WHERE \"best_conditioned_horse\"='Basia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_championship_winners\" (\n \"year\" real,\n \"location\" text,\n \"distance_miles\" real,\n \"rider_names\" text,\n \"horse_name\" text,\n \"best_conditioned_horse\" text\n);\n\nQuestion: What was the distance (in miles) of the championship were the winning horse was Koona?" }, { "role": "assistant", "content": "SELECT \"distance_miles\" FROM \"world_championship_winners\" WHERE \"horse_name\"='Koona';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_championship_winners\" (\n \"year\" real,\n \"location\" text,\n \"distance_miles\" real,\n \"rider_names\" text,\n \"horse_name\" text,\n \"best_conditioned_horse\" text\n);\n\nQuestion: Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?" }, { "role": "assistant", "content": "SELECT \"rider_names\" FROM \"world_championship_winners\" WHERE \"location\"='Euer Valley, CA' AND \"horse_name\"='Magic Sirocco';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_championship_winners\" (\n \"year\" real,\n \"location\" text,\n \"distance_miles\" real,\n \"rider_names\" text,\n \"horse_name\" text,\n \"best_conditioned_horse\" text\n);\n\nQuestion: How many different riders are there that won riding Omr Tsunami?" }, { "role": "assistant", "content": "SELECT COUNT(\"rider_names\") FROM \"world_championship_winners\" WHERE \"horse_name\"='OMR Tsunami';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_championship_winners\" (\n \"year\" real,\n \"location\" text,\n \"distance_miles\" real,\n \"rider_names\" text,\n \"horse_name\" text,\n \"best_conditioned_horse\" text\n);\n\nQuestion: What was the total distance (in miles) of the championship where the best conditioned horse was Freedom?" }, { "role": "assistant", "content": "SELECT \"distance_miles\" FROM \"world_championship_winners\" WHERE \"best_conditioned_horse\"='Freedom';" } ]
[ { "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: Who directed the episoede titled \"sex, losers, and videotape\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_27833469_1\" WHERE \"title\"='\\\"Sex, Losers, and Videotape\\\"';" } ]
[ { "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: How many series numbers are there when there were 15.8 u.s. viewers (millions)?" }, { "role": "assistant", "content": "SELECT COUNT(\"series_num\") FROM \"table1_27833469_1\" WHERE \"u_s_viewers_millions\"='15.8';" } ]
[ { "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 title of the episode number 11 of the season?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27833469_1\" WHERE \"season_num\"='11';" } ]
[ { "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 air date of the episode titled \"boardroom and a parked place\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_27833469_1\" WHERE \"title\"='\\\"Boardroom and a Parked Place\\\"';" } ]