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 \"program_details\" (\n \"name\" text,\n \"launched\" text,\n \"vehicle\" text,\n \"ceased_operation\" text,\n \"notes\" text\n);\n\nQuestion: Which vehicle failed at launch?" }, { "role": "assistant", "content": "SELECT \"vehicle\" FROM \"program_details\" WHERE \"ceased_operation\"='failed at launch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"program_details\" (\n \"name\" text,\n \"launched\" text,\n \"vehicle\" text,\n \"ceased_operation\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"program_details\" WHERE \"vehicle\"='scout x-4' AND \"ceased_operation\"='june 1971';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"program_details\" (\n \"name\" text,\n \"launched\" text,\n \"vehicle\" text,\n \"ceased_operation\" text,\n \"notes\" text\n);\n\nQuestion: What was the ceased operation with a launch date of August 8, 1968?" }, { "role": "assistant", "content": "SELECT \"ceased_operation\" FROM \"program_details\" WHERE \"launched\"='august 8, 1968';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"program_details\" (\n \"name\" text,\n \"launched\" text,\n \"vehicle\" text,\n \"ceased_operation\" text,\n \"notes\" text\n);\n\nQuestion: What was the ceased operation that launched June 29, 1961?" }, { "role": "assistant", "content": "SELECT \"ceased_operation\" FROM \"program_details\" WHERE \"launched\"='june 29, 1961';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place in the United States having a score of 67-75-68=210?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='united states' AND \"score\"='67-75-68=210';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country is in T4 place having a score of 66-71-72=209?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"place\"='t4' AND \"score\"='66-71-72=209';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place is the United States in that has a score of 68-73-68=209?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='united states' AND \"score\"='68-73-68=209';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Who is the player from the United States in T4 place with a score of 68-73-68=209?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"country\"='united states' AND \"place\"='t4' AND \"score\"='68-73-68=209';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: How many played when lost is more than 17, drawn is 15 and goals against is less than 75?" }, { "role": "assistant", "content": "SELECT AVG(\"played\") FROM \"final_table\" WHERE \"lost\">17 AND \"drawn\"=15 AND \"goals_against\"<75;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: what is the position when lot is less than 14, goal difference is +1 and drawn is more than 15?" }, { "role": "assistant", "content": "SELECT SUM(\"position\") FROM \"final_table\" WHERE \"lost\"<14 AND \"goal_difference\"='+1' AND \"drawn\">15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: How many lost when goals for is 43 and the position number is higher than 15?" }, { "role": "assistant", "content": "SELECT AVG(\"lost\") FROM \"final_table\" WHERE \"goals_for\"=43 AND \"position\">15;" } ]
[ { "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 against Charlotte?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='charlotte';" } ]
[ { "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 in the game against Memphis?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"team\"='memphis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: Who was the home team when Boston is the road team in game 4?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"nba_finals\" WHERE \"road_team\"='boston' AND \"game\"='game 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What game had the result of 112-100?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"nba_finals\" WHERE \"result\"='112-100';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What game was played on May 29?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"nba_finals\" WHERE \"date\"='may 29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What was the result of game 1?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"nba_finals\" WHERE \"game\"='game 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What was the game when Houston was the home team and the result is 106-104?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"nba_finals\" WHERE \"home_team\"='houston' AND \"result\"='106-104';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: What is the class of car that is earlier than 2005 and has a class position of 2nd?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"year\"<2005 AND \"class_pos\"='2nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: How many years was the number of laps 71?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"24_hours_of_le_mans_results\" WHERE \"laps\"=71;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: For a year that is later than 2002 what is the class position?" }, { "role": "assistant", "content": "SELECT \"class_pos\" FROM \"24_hours_of_le_mans_results\" WHERE \"year\">2002;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many total rounds has lehigh as the college?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"college\"='lehigh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What name has 5 as the pick, a round less than 25, ot as the position, at boston college?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"washington_redskins_draft_history\" WHERE \"pick\"=5 AND \"round\"<25 AND \"position\"='ot' AND \"college\"='boston college';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many overalls have E as the position, buddy payne as the name, and a pick less than 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"position\"='e' AND \"name\"='buddy payne' AND \"pick\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many picks have charley sanders as the name, with a round greater than 22?" }, { "role": "assistant", "content": "SELECT SUM(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"name\"='charley sanders' AND \"round\">22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"location\" text,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: Which 2011 has a 2012 larger than 9,998,000?" }, { "role": "assistant", "content": "SELECT MAX(\"2011\") FROM \"north_america\" WHERE \"2012\">'9,998,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"location\" text,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: Which 2010 has a Rank of 1, and a 2009 larger than 17,233,000?" }, { "role": "assistant", "content": "SELECT AVG(\"2010\") FROM \"north_america\" WHERE \"rank\"=1 AND \"2009\">'17,233,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"location\" text,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: Which 2012 has a 2011 of 17,142,000, and a 2010 smaller than 16,972,000?" }, { "role": "assistant", "content": "SELECT MIN(\"2012\") FROM \"north_america\" WHERE \"2011\"='17,142,000' AND \"2010\"<'16,972,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"location\" text,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: Which 2009 has a 2012 of 17,536,000, and a 2010 smaller than 16,972,000?" }, { "role": "assistant", "content": "SELECT MAX(\"2009\") FROM \"north_america\" WHERE \"2012\"='17,536,000' AND \"2010\"<'16,972,000';" } ]
[ { "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\" text,\n \"date\" text,\n \"score\" text,\n \"opponent\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the Attendance of the game against the Florida Panthers?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"game_log\" WHERE \"opponent\"='florida panthers';" } ]
[ { "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\" text,\n \"date\" text,\n \"score\" text,\n \"opponent\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"points\">5 AND \"attendance\">'13,567';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: When his record was 15\u20131\u20131 (1) where did he fight?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='15\u20131\u20131 (1)';" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is Record, when Location is \"Boston Garden\", and when Date is \"Fri. Nov. 9\"?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"location\"='boston garden' AND \"date\"='fri. nov. 9';" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is Opponent, when Location is \"Boston Garden\", when Game is greater than 1, and when Score is \"115-105\"?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"location\"='boston garden' AND \"game\">1 AND \"score\"='115-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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is the sum of Game, when Date is \"Wed. Nov. 14\"?" }, { "role": "assistant", "content": "SELECT SUM(\"game\") FROM \"game_log\" WHERE \"date\"='wed. nov. 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is Score, when Player is \"Bill Rogers\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"player\"='bill rogers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"term_of_office\" text\n);\n\nQuestion: Which State has an Electorate of West Sydney?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"see_also\" WHERE \"electorate\"='west sydney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"term_of_office\" text\n);\n\nQuestion: Which State has an Electorate of Barton?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"see_also\" WHERE \"electorate\"='barton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What was the L2 Cache for the processor with a release price of $496?" }, { "role": "assistant", "content": "SELECT \"l2_cache\" FROM \"250_nm\" WHERE \"release_price_usd\"='$496';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the model number for the processor with sSpec number of sl3jm(kc0)sl3jt(kc0)?" }, { "role": "assistant", "content": "SELECT \"model_number\" FROM \"250_nm\" WHERE \"s_spec_number\"='sl3jm(kc0)sl3jt(kc0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"250_nm\" WHERE \"s_spec_number\"='sl3bn(kc0)sl3e9(kc0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"amateur_boxing_record_roy_scheider\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"date\" text,\n \"round\" real\n);\n\nQuestion: When did alfonse d'amore compete?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"amateur_boxing_record_roy_scheider\" WHERE \"opponent\"='alfonse d''amore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"amateur_boxing_record_roy_scheider\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"date\" text,\n \"round\" real\n);\n\nQuestion: Which Round has a Method of ko, and a Date of 1958?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"amateur_boxing_record_roy_scheider\" WHERE \"method\"='ko' AND \"date\"='1958';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"amateur_boxing_record_roy_scheider\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"date\" text,\n \"round\" real\n);\n\nQuestion: Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"amateur_boxing_record_roy_scheider\" WHERE \"result\"='win' AND \"round\"<2 AND \"opponent\"='myron greenberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"amateur_boxing_record_roy_scheider\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"date\" text,\n \"round\" real\n);\n\nQuestion: Which Round has a Method of ko, and an Opponent of alfonse d'amore?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"amateur_boxing_record_roy_scheider\" WHERE \"method\"='ko' AND \"opponent\"='alfonse d''amore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which Player has a Date of sep. 2008?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"reserves_academy\" WHERE \"date\"='sep. 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which Transfer fee has a From club of blackburn rovers?" }, { "role": "assistant", "content": "SELECT \"transfer_fee\" FROM \"reserves_academy\" WHERE \"from_club\"='blackburn rovers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which From club has a Date of 20 oct. 2008?" }, { "role": "assistant", "content": "SELECT \"from_club\" FROM \"reserves_academy\" WHERE \"date\"='20 oct. 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"date\" text,\n \"pos\" text,\n \"player\" text,\n \"from_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which Player has a Transfer fee of \u00a3750,000 [x]?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"reserves_academy\" WHERE \"transfer_fee\"='\u00a3750,000 [x]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_24_11_13\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is Tournament, when Date is \"6 April 1992\"?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"doubles_24_11_13\" WHERE \"date\"='6 april 1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_24_11_13\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is Surface, when Opponents is \"Daniel Nestor Sandon Stolle\"?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"doubles_24_11_13\" WHERE \"opponents\"='daniel nestor sandon stolle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_24_11_13\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is Date, when Outcome is \"Winner\", and when Opponents is \"Paul Haarhuis Sandon Stolle\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"doubles_24_11_13\" WHERE \"outcome\"='winner' AND \"opponents\"='paul haarhuis sandon stolle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_24_11_13\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is Outcome, when Partner is \"Byron Black\", and when Opponents is \"Goran Ivani\u0161evi\u0107 Brian Macphie\"?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"doubles_24_11_13\" WHERE \"partner\"='byron black' AND \"opponents\"='goran ivani\u0161evi\u0107 brian macphie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_24_11_13\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is Tournament, when Date is \"9 August 1993\"?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"doubles_24_11_13\" WHERE \"date\"='9 august 1993';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Place, when Player is \"Arnold Palmer\"?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='arnold palmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Player, when To Par is +1, and when Score is 72-70-72=214?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"to_par\"='+1' AND \"score\"='72-70-72=214';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Score, when Country is United States, and when Player is \"Arnold Palmer\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"country\"='united states' AND \"player\"='arnold palmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is To Par, when Country is United States, and when Score is 71-68-73=212?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"country\"='united states' AND \"score\"='71-68-73=212';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Player, when Country is United States, and when Score is 70-72-70=212?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"country\"='united states' AND \"score\"='70-72-70=212';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Country, when Player is \"Billy Maxwell\"?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='billy maxwell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: Who has a react smaller than 0.149 and a lane smaller than 6?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"final\" WHERE \"react\"<0.149 AND \"lane\"<6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What was the lowest lane with a mark of 7.26?" }, { "role": "assistant", "content": "SELECT MIN(\"lane\") FROM \"final\" WHERE \"mark\"='7.26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_averages\" (\n \"season\" real,\n \"total_attendance\" real,\n \"games\" real,\n \"average\" real,\n \"high_avg\" real,\n \"team\" text,\n \"no_of_clubs\" real\n);\n\nQuestion: What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?" }, { "role": "assistant", "content": "SELECT MAX(\"games\") FROM \"season_averages\" WHERE \"season\">2001 AND \"average\"<'10,838';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_averages\" (\n \"season\" real,\n \"total_attendance\" real,\n \"games\" real,\n \"average\" real,\n \"high_avg\" real,\n \"team\" text,\n \"no_of_clubs\" real\n);\n\nQuestion: What is the number of clubs when the average is more than 18,571, there are fewer than 182 games and the total attendance is 3,140,280 in a year more recent than 1995?" }, { "role": "assistant", "content": "SELECT AVG(\"no_of_clubs\") FROM \"season_averages\" WHERE \"average\">'18,571' AND \"games\"<182 AND \"total_attendance\"='3,140,280' AND \"season\">1995;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_averages\" (\n \"season\" real,\n \"total_attendance\" real,\n \"games\" real,\n \"average\" real,\n \"high_avg\" real,\n \"team\" text,\n \"no_of_clubs\" real\n);\n\nQuestion: What is the number of clubs for Shenyang Ginde when there were more than 182 games?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_of_clubs\") FROM \"season_averages\" WHERE \"team\"='shenyang ginde' AND \"games\">182;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_averages\" (\n \"season\" real,\n \"total_attendance\" real,\n \"games\" real,\n \"average\" real,\n \"high_avg\" real,\n \"team\" text,\n \"no_of_clubs\" real\n);\n\nQuestion: What is the smallest average for Beijing Guo'an when they played more than 240 games?" }, { "role": "assistant", "content": "SELECT MIN(\"average\") FROM \"season_averages\" WHERE \"team\"='beijing guo''an' AND \"games\">240;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What is the average pick number for Washington State?" }, { "role": "assistant", "content": "SELECT AVG(\"pick\") FROM \"nfl_draft\" WHERE \"school\"='washington state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_and_notable_past_models\" (\n \"model\" text,\n \"length_over_all\" text,\n \"beam\" text,\n \"sail_area\" text,\n \"crew\" text,\n \"comments\" text\n);\n\nQuestion: Which Comments has a Length Over All of 4.5m?" }, { "role": "assistant", "content": "SELECT \"comments\" FROM \"current_and_notable_past_models\" WHERE \"length_over_all\"='4.5m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_and_notable_past_models\" (\n \"model\" text,\n \"length_over_all\" text,\n \"beam\" text,\n \"sail_area\" text,\n \"crew\" text,\n \"comments\" text\n);\n\nQuestion: Which Crew has Comments of daggerboards. design: roy seaman?" }, { "role": "assistant", "content": "SELECT \"crew\" FROM \"current_and_notable_past_models\" WHERE \"comments\"='daggerboards. design: roy seaman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_and_notable_past_models\" (\n \"model\" text,\n \"length_over_all\" text,\n \"beam\" text,\n \"sail_area\" text,\n \"crew\" text,\n \"comments\" text\n);\n\nQuestion: Which Comments has a Model of 18sq?" }, { "role": "assistant", "content": "SELECT \"comments\" FROM \"current_and_notable_past_models\" WHERE \"model\"='18sq';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_and_notable_past_models\" (\n \"model\" text,\n \"length_over_all\" text,\n \"beam\" text,\n \"sail_area\" text,\n \"crew\" text,\n \"comments\" text\n);\n\nQuestion: Which Model has Comments of curved daggerboards. design: morelli und melvin?" }, { "role": "assistant", "content": "SELECT \"model\" FROM \"current_and_notable_past_models\" WHERE \"comments\"='curved daggerboards. design: morelli und melvin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_and_notable_past_models\" (\n \"model\" text,\n \"length_over_all\" text,\n \"beam\" text,\n \"sail_area\" text,\n \"crew\" text,\n \"comments\" text\n);\n\nQuestion: Which Beam has a Model of 570?" }, { "role": "assistant", "content": "SELECT \"beam\" FROM \"current_and_notable_past_models\" WHERE \"model\"='570';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_and_notable_past_models\" (\n \"model\" text,\n \"length_over_all\" text,\n \"beam\" text,\n \"sail_area\" text,\n \"crew\" text,\n \"comments\" text\n);\n\nQuestion: Which Model has a Sail Area of 24.5 m\u00b2?" }, { "role": "assistant", "content": "SELECT \"model\" FROM \"current_and_notable_past_models\" WHERE \"sail_area\"='24.5 m\u00b2';" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the sum of the game numbers for games with less than 30 points?" }, { "role": "assistant", "content": "SELECT SUM(\"game\") FROM \"game_log\" WHERE \"points\"<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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Where was the game against the buffalo sabres?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"game_log\" WHERE \"opponent\"='buffalo sabres';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_metropolitan_areas\" (\n \"rank\" real,\n \"metropolitan_area\" text,\n \"country\" text,\n \"population\" real,\n \"area_km\" real,\n \"population_density_people_km\" real\n);\n\nQuestion: What is the smallest area that has a Population Density of 3,216 and a Population larger than 16,650,000?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km\") FROM \"largest_metropolitan_areas\" WHERE \"population_density_people_km\"='3,216' AND \"population\">'16,650,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l_class_locomotive_fleet_summary\" (\n \"secr_no\" real,\n \"sr_no\" real,\n \"br_no\" real,\n \"builder\" text,\n \"date_delivered\" text,\n \"date_withdrawn\" text\n);\n\nQuestion: What is the highest BR number with a SECR number of 765?" }, { "role": "assistant", "content": "SELECT MAX(\"br_no\") FROM \"l_class_locomotive_fleet_summary\" WHERE \"secr_no\"=765;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l_class_locomotive_fleet_summary\" (\n \"secr_no\" real,\n \"sr_no\" real,\n \"br_no\" real,\n \"builder\" text,\n \"date_delivered\" text,\n \"date_withdrawn\" text\n);\n\nQuestion: What is Beyer Peacock's SR number with a SECR number of 769?" }, { "role": "assistant", "content": "SELECT AVG(\"sr_no\") FROM \"l_class_locomotive_fleet_summary\" WHERE \"builder\"='beyer peacock' AND \"secr_no\"=769;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gt500\" (\n \"team\" text,\n \"make\" text,\n \"drivers\" text,\n \"tyre\" text,\n \"rounds\" text\n);\n\nQuestion: What is the tyre of nismo team member satoshi motoyama when he has rounds of all?" }, { "role": "assistant", "content": "SELECT \"tyre\" FROM \"gt500\" WHERE \"rounds\"='all' AND \"team\"='nismo' AND \"drivers\"='satoshi motoyama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gt500\" (\n \"team\" text,\n \"make\" text,\n \"drivers\" text,\n \"tyre\" text,\n \"rounds\" text\n);\n\nQuestion: What is the tyre of real racing with leon team member koudai tsukakoshi?" }, { "role": "assistant", "content": "SELECT \"tyre\" FROM \"gt500\" WHERE \"team\"='real racing with leon' AND \"drivers\"='koudai tsukakoshi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gt500\" (\n \"team\" text,\n \"make\" text,\n \"drivers\" text,\n \"tyre\" text,\n \"rounds\" text\n);\n\nQuestion: Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's?" }, { "role": "assistant", "content": "SELECT \"drivers\" FROM \"gt500\" WHERE \"rounds\"='all' AND \"make\"='lexus' AND \"tyre\"='b' AND \"team\"='petronas toyota team tom''s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gt500\" (\n \"team\" text,\n \"make\" text,\n \"drivers\" text,\n \"tyre\" text,\n \"rounds\" text\n);\n\nQuestion: When driver yuji tachikawa had a make of lexus, what team did he represent?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"gt500\" WHERE \"make\"='lexus' AND \"drivers\"='yuji tachikawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: What is the sum of Capacity, when Team is \"Denizlispor\"?" }, { "role": "assistant", "content": "SELECT SUM(\"capacity\") FROM \"overview\" WHERE \"team\"='denizlispor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: What is the Team, when Team Captain is \"U\u011fur Kavuk\"?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"overview\" WHERE \"team_captain\"='u\u011fur kavuk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: What is Team, when Venue is \"\u015e\u00fckr\u00fc Saraco\u011flu Stadium\"?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"overview\" WHERE \"venue\"='\u015f\u00fckr\u00fc saraco\u011flu stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: What is Team, when Capacity is greater than 16,981, and when Venue is \"Atat\u00fcrk Olympic Stadium\"?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"overview\" WHERE \"capacity\">'16,981' AND \"venue\"='atat\u00fcrk olympic stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"seasons_overview\" (\n \"season\" text,\n \"duration\" text,\n \"gagarin_cup_winner\" text,\n \"gagarin_cup_finalist\" text,\n \"continental_cup_winner\" text,\n \"top_scorer\" text\n);\n\nQuestion: Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist?" }, { "role": "assistant", "content": "SELECT \"gagarin_cup_winner\" FROM \"seasons_overview\" WHERE \"gagarin_cup_finalist\"='avangard omsk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What was the resolution of the fight where andre roberts record was 9-1?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='9-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 2nd leg of goi\u00e1s team 2?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"first_stage\" WHERE \"team_num2\"='goi\u00e1s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 2nd leg of emelec team 2?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"first_stage\" WHERE \"team_num2\"='emelec';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 2nd leg with ldu quito as team 1?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"first_stage\" WHERE \"team_num1\"='ldu quito';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: On what date was the bridge located in McClain listed?" }, { "role": "assistant", "content": "SELECT \"listed\" FROM \"references\" WHERE \"location\"='mcclain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"date\" text,\n \"place\" text,\n \"race_winners\" text,\n \"gp_winner\" text,\n \"source\" text\n);\n\nQuestion: What is the source on 6 September?" }, { "role": "assistant", "content": "SELECT \"source\" FROM \"calendar\" WHERE \"date\"='6 september';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which Week has a Result of l 21-19?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"result\"='l 21-19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which Week has a Result of l 41-14?" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"result\"='l 41-14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which Result has a Date of september 3, 2000?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='september 3, 2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which Date has an Attendance of 54,626?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"='54,626';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which Result has an Attendance of bye?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"='bye';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"state\" text,\n \"preliminary\" real,\n \"interview\" real,\n \"swimsuit\" real,\n \"evening_gown\" real,\n \"average\" real\n);\n\nQuestion: What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?" }, { "role": "assistant", "content": "SELECT MIN(\"preliminary\") FROM \"final_competition_scores\" WHERE \"swimsuit\"<8.822 AND \"interview\">8.744 AND \"evening_gown\">9.333;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"state\" text,\n \"preliminary\" real,\n \"interview\" real,\n \"swimsuit\" real,\n \"evening_gown\" real,\n \"average\" real\n);\n\nQuestion: What is the best preliminary for a contestant from New Mexico with interview less than 9.533?" }, { "role": "assistant", "content": "SELECT MAX(\"preliminary\") FROM \"final_competition_scores\" WHERE \"state\"='new mexico' AND \"interview\"<9.533;" } ]