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 \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the game on November 6, 1988?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='november 6, 1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the date of the game against the Los Angeles Rams?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='los angeles rams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_pool_d\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"set_4\" text,\n \"set_5\" text,\n \"total\" text\n);\n\nQuestion: What is the total with a 25-19 set 2 on Jun 17?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"results_pool_d\" WHERE \"set_2\"='25-19' AND \"date\"='jun 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_pool_d\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"set_4\" text,\n \"set_5\" text,\n \"total\" text\n);\n\nQuestion: What is the set 4 with a 2-3 score?" }, { "role": "assistant", "content": "SELECT \"set_4\" FROM \"results_pool_d\" WHERE \"score\"='2-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_pool_d\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"set_4\" text,\n \"set_5\" text,\n \"total\" text\n);\n\nQuestion: What is the set 5 with a 19-25 set 1?" }, { "role": "assistant", "content": "SELECT \"set_5\" FROM \"results_pool_d\" WHERE \"set_1\"='19-25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_pool_d\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"set_4\" text,\n \"set_5\" text,\n \"total\" text\n);\n\nQuestion: What is the set 1 with a 28-30 set 4?" }, { "role": "assistant", "content": "SELECT \"set_1\" FROM \"results_pool_d\" WHERE \"set_4\"='28-30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovanni_hern_ndez_international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result when there's less than 2 goals?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"giovanni_hern_ndez_international_goals\" WHERE \"goal\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovanni_hern_ndez_international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the score when there are less than 2 goals?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"giovanni_hern_ndez_international_goals\" WHERE \"goal\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"2009_2010_team\" text\n);\n\nQuestion: What is the position of the player born on May 13, 1983 who played for the Los Angeles Kings during 2009-2010?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"list_of_united_states_national_ice_hocke\" WHERE \"2009_2010_team\"='los angeles kings' AND \"birthdate\"='may 13, 1983';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"2009_2010_team\" text\n);\n\nQuestion: What is the birthplace of the player who played for the Calgary Flames between 2009-2010 and wears a jersey number greater than 23?" }, { "role": "assistant", "content": "SELECT \"birthplace\" FROM \"list_of_united_states_national_ice_hocke\" WHERE \"2009_2010_team\"='calgary flames' AND \"jersey_num\">23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: How many points on average had a position smaller than 8, 16 plays, and a lost larger than 9?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"campeonato_paulista\" WHERE \"position\"<8 AND \"played\"=16 AND \"lost\">9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"victories_by_nationality\" (\n \"country\" text,\n \"men_s_race\" real,\n \"women_s_race\" real,\n \"men_s_wheelchair\" real,\n \"women_s_wheelchair\" real,\n \"total\" real\n);\n\nQuestion: What's the highest Total when Women's Wheelchair was 2, Men's Wheelchair was smaller than 1, and Women's race was larger than 0?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"victories_by_nationality\" WHERE \"women_s_wheelchair\"=2 AND \"men_s_wheelchair\"<1 AND \"women_s_race\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"victories_by_nationality\" (\n \"country\" text,\n \"men_s_race\" real,\n \"women_s_race\" real,\n \"men_s_wheelchair\" real,\n \"women_s_wheelchair\" real,\n \"total\" real\n);\n\nQuestion: What's the average men's wheelchair when women's wheelchair is less than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"men_s_wheelchair\") FROM \"victories_by_nationality\" WHERE \"women_s_wheelchair\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"victories_by_nationality\" (\n \"country\" text,\n \"men_s_race\" real,\n \"women_s_race\" real,\n \"men_s_wheelchair\" real,\n \"women_s_wheelchair\" real,\n \"total\" real\n);\n\nQuestion: When the Country is Mexico, Women's race is less than 0, and Men's race is more than 0, what's the average total?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"victories_by_nationality\" WHERE \"men_s_race\">0 AND \"country\"='mexico' AND \"women_s_race\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"victories_by_nationality\" (\n \"country\" text,\n \"men_s_race\" real,\n \"women_s_race\" real,\n \"men_s_wheelchair\" real,\n \"women_s_wheelchair\" real,\n \"total\" real\n);\n\nQuestion: What's the sum of Men's race when Women's race is less than 1, Women's Wheelchair is 1, Men's wheelchair is more than 3 and the Total is more than 3?" }, { "role": "assistant", "content": "SELECT SUM(\"men_s_race\") FROM \"victories_by_nationality\" WHERE \"women_s_race\"<1 AND \"women_s_wheelchair\"=1 AND \"total\">3 AND \"men_s_wheelchair\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"victories_by_nationality\" (\n \"country\" text,\n \"men_s_race\" real,\n \"women_s_race\" real,\n \"men_s_wheelchair\" real,\n \"women_s_wheelchair\" real,\n \"total\" real\n);\n\nQuestion: What's the average Women's Wheelchair when Men's race is 0, Women's race is 1, and Men's wheelchair is less than 2?" }, { "role": "assistant", "content": "SELECT AVG(\"women_s_wheelchair\") FROM \"victories_by_nationality\" WHERE \"men_s_race\"=0 AND \"women_s_race\"=1 AND \"men_s_wheelchair\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the lowest Attendance when the Opponent was Maryland?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"schedule\" WHERE \"opponent\"='maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"network\" text,\n \"date_premiered\" text\n);\n\nQuestion: Which Network has a Local name of moj tata je bolji od tvog tate?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"international_versions\" WHERE \"local_name\"='moj tata je bolji od tvog tate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"network\" text,\n \"date_premiered\" text\n);\n\nQuestion: Which Country has a Network of channel 1?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"international_versions\" WHERE \"network\"='channel 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"network\" text,\n \"date_premiered\" text\n);\n\nQuestion: Which Country has a Network of nelonen?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"international_versions\" WHERE \"network\"='nelonen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"network\" text,\n \"date_premiered\" text\n);\n\nQuestion: Which Local name has a Network of nova tv?" }, { "role": "assistant", "content": "SELECT \"local_name\" FROM \"international_versions\" WHERE \"network\"='nova tv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"network\" text,\n \"date_premiered\" text\n);\n\nQuestion: Which Local name has a Network of tvn?" }, { "role": "assistant", "content": "SELECT \"local_name\" FROM \"international_versions\" WHERE \"network\"='tvn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"network\" text,\n \"date_premiered\" text\n);\n\nQuestion: Which Country has a Host of miguel esteban?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"international_versions\" WHERE \"host\"='miguel esteban';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"text\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"english_translation\" text,\n \"articles\" real\n);\n\nQuestion: Can you tell me the lowest Chapter that has the Pinyin of dehua, and the Articles smaller than 16?" }, { "role": "assistant", "content": "SELECT MIN(\"chapter\") FROM \"text\" WHERE \"pinyin\"='dehua' AND \"articles\"<16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"text\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"english_translation\" text,\n \"articles\" real\n);\n\nQuestion: Can you tell me the average Chapter that has Articles smaller than 15?" }, { "role": "assistant", "content": "SELECT AVG(\"chapter\") FROM \"text\" WHERE \"articles\"<15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"text\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"english_translation\" text,\n \"articles\" real\n);\n\nQuestion: Can you tell me the Chinese that has the Chapter larger than 4, and the English Translation of food transformations?" }, { "role": "assistant", "content": "SELECT \"chinese\" FROM \"text\" WHERE \"chapter\">4 AND \"english_translation\"='food transformations';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"text\" (\n \"chapter\" real,\n \"chinese\" text,\n \"pinyin\" text,\n \"english_translation\" text,\n \"articles\" real\n);\n\nQuestion: Can you tell me the English Translation that has the Articles of 24?" }, { "role": "assistant", "content": "SELECT \"english_translation\" FROM \"text\" WHERE \"articles\"=24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What shows for ICAO when the IATA is sin?" }, { "role": "assistant", "content": "SELECT \"icao\" FROM \"destinations\" WHERE \"iata\"='sin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the IATA when France was the country, and the ICAO was lfrn?" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"destinations\" WHERE \"country\"='france' AND \"icao\"='lfrn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the Airport when France was the country, and Montpellier was the city?" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"destinations\" WHERE \"country\"='france' AND \"city\"='montpellier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the ICAO for luqa airport?" }, { "role": "assistant", "content": "SELECT \"icao\" FROM \"destinations\" WHERE \"airport\"='luqa airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the Airport for New York City?" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"destinations\" WHERE \"city\"='new york';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the Country when the IATA was osl?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"iata\"='osl';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Which Division has a Year larger than 1996,a Regular Season of 4th, and a Playoffs of final?" }, { "role": "assistant", "content": "SELECT \"division\" FROM \"year_by_year\" WHERE \"year\">1996 AND \"regular_season\"='4th' AND \"playoffs\"='final';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Which League that has a Open Cup of 1st round, and a Year of 2009?" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"open_cup\"='1st round' AND \"year\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?" }, { "role": "assistant", "content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"division\"='2' AND \"regular_season\"='4th, southeast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_results\" (\n \"club\" text,\n \"wins\" real,\n \"loses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: What are the least amount of points that have points for greater than 438, and points against greater than 943?" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"2007_results\" WHERE \"points_for\">438 AND \"points_against\">943;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_results\" (\n \"club\" text,\n \"wins\" real,\n \"loses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?" }, { "role": "assistant", "content": "SELECT MAX(\"loses\") FROM \"2007_results\" WHERE \"points_against\"<956 AND \"club\"='high park demons' AND \"points\"<16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_results\" (\n \"club\" text,\n \"wins\" real,\n \"loses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: What club has losses greater than 1, 4 for the wins, with points against less than 894?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2007_results\" WHERE \"loses\">1 AND \"wins\"=4 AND \"points_against\"<894;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_results\" (\n \"club\" text,\n \"wins\" real,\n \"loses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?" }, { "role": "assistant", "content": "SELECT COUNT(\"loses\") FROM \"2007_results\" WHERE \"points_against\">592 AND \"club\"='high park demons' AND \"points_for\">631;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_results\" (\n \"club\" text,\n \"wins\" real,\n \"loses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?" }, { "role": "assistant", "content": "SELECT \"loses\" FROM \"2007_results\" WHERE \"points_for\"<1175 AND \"wins\">2 AND \"points_against\">894 AND \"points\"=24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"side_two\" (\n \"track\" real,\n \"recorded\" text,\n \"catalogue\" text,\n \"release_date\" text,\n \"song_title\" text,\n \"writer_s\" text,\n \"time\" text\n);\n\nQuestion: What's the smallest track written by dennis linde that's 2:50 minutes long" }, { "role": "assistant", "content": "SELECT MIN(\"track\") FROM \"side_two\" WHERE \"writer_s\"='dennis linde' AND \"time\"='2:50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"side_two\" (\n \"track\" real,\n \"recorded\" text,\n \"catalogue\" text,\n \"release_date\" text,\n \"song_title\" text,\n \"writer_s\" text,\n \"time\" text\n);\n\nQuestion: How long is the song titled burning love?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"side_two\" WHERE \"song_title\"='burning love';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"side_two\" (\n \"track\" real,\n \"recorded\" text,\n \"catalogue\" text,\n \"release_date\" text,\n \"song_title\" text,\n \"writer_s\" text,\n \"time\" text\n);\n\nQuestion: When was the song titled if you talk in your sleep released?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"side_two\" WHERE \"song_title\"='if you talk in your sleep';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_era\" (\n \"year\" real,\n \"venue\" text,\n \"city\" text,\n \"state\" text,\n \"host\" text\n);\n\nQuestion: What is the city that is located in California when the year is greater than 2009?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"televised_era\" WHERE \"state\"='california' AND \"year\">2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_era\" (\n \"year\" real,\n \"venue\" text,\n \"city\" text,\n \"state\" text,\n \"host\" text\n);\n\nQuestion: What is the host in a year greater than 1989 and when the venue is the Staples Center located in California?" }, { "role": "assistant", "content": "SELECT \"host\" FROM \"televised_era\" WHERE \"year\">1989 AND \"state\"='california' AND \"venue\"='staples center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_era\" (\n \"year\" real,\n \"venue\" text,\n \"city\" text,\n \"state\" text,\n \"host\" text\n);\n\nQuestion: What is the venue in 2011, when the state is California?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"televised_era\" WHERE \"state\"='california' AND \"year\"=2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arkansas_stakes\" (\n \"stake\" text,\n \"organized\" text,\n \"wards_branches_in_arkansas\" real,\n \"stake_president\" text,\n \"occupation\" text\n);\n\nQuestion: What is the wards/branches of the fort smith Arkansas stake?" }, { "role": "assistant", "content": "SELECT \"wards_branches_in_arkansas\" FROM \"arkansas_stakes\" WHERE \"stake\"='fort smith arkansas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arkansas_stakes\" (\n \"stake\" text,\n \"organized\" text,\n \"wards_branches_in_arkansas\" real,\n \"stake_president\" text,\n \"occupation\" text\n);\n\nQuestion: What stake has realtor for American equity realty as their occupation?" }, { "role": "assistant", "content": "SELECT \"stake\" FROM \"arkansas_stakes\" WHERE \"occupation\"='realtor for american equity realty';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arkansas_stakes\" (\n \"stake\" text,\n \"organized\" text,\n \"wards_branches_in_arkansas\" real,\n \"stake_president\" text,\n \"occupation\" text\n);\n\nQuestion: What is the organized date of the stake with an occupation of senior buyer for Wal-mart?" }, { "role": "assistant", "content": "SELECT \"organized\" FROM \"arkansas_stakes\" WHERE \"occupation\"='senior buyer for wal-mart';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arkansas_stakes\" (\n \"stake\" text,\n \"organized\" text,\n \"wards_branches_in_arkansas\" real,\n \"stake_president\" text,\n \"occupation\" text\n);\n\nQuestion: What is the sum of the wards/branches in Arkansas of the North Little Rock Arkansas stake?" }, { "role": "assistant", "content": "SELECT SUM(\"wards_branches_in_arkansas\") FROM \"arkansas_stakes\" WHERE \"stake\"='north little rock arkansas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arkansas_stakes\" (\n \"stake\" text,\n \"organized\" text,\n \"wards_branches_in_arkansas\" real,\n \"stake_president\" text,\n \"occupation\" text\n);\n\nQuestion: What stake has 16 wards/branches in Arkansas?" }, { "role": "assistant", "content": "SELECT \"stake\" FROM \"arkansas_stakes\" WHERE \"wards_branches_in_arkansas\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text\n);\n\nQuestion: What is Stable, when Current Rank is F1 J\u016bry\u014d 14 West?" }, { "role": "assistant", "content": "SELECT \"stable\" FROM \"list\" WHERE \"current_rank\"='f1 j\u016bry\u014d 14 west';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text\n);\n\nQuestion: What is Ring Name, when Current Rank is E0 Maegashira 9 West?" }, { "role": "assistant", "content": "SELECT \"ring_name\" FROM \"list\" WHERE \"current_rank\"='e0 maegashira 9 west';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text\n);\n\nQuestion: What is Birthplace, when Ring Name is Masunoyama Tomoharu?" }, { "role": "assistant", "content": "SELECT \"birthplace\" FROM \"list\" WHERE \"ring_name\"='masunoyama tomoharu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text\n);\n\nQuestion: What is Current Rank, when Ring Name is Tamaasuka Daisuke?" }, { "role": "assistant", "content": "SELECT \"current_rank\" FROM \"list\" WHERE \"ring_name\"='tamaasuka daisuke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text\n);\n\nQuestion: What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia?" }, { "role": "assistant", "content": "SELECT \"ring_name\" FROM \"list\" WHERE \"stable\"='kasugano' AND \"birthplace\"='z mtskheta , georgia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text\n);\n\nQuestion: What is Current Rank, when Ring Name is Kimurayama Mamoru?" }, { "role": "assistant", "content": "SELECT \"current_rank\" FROM \"list\" WHERE \"ring_name\"='kimurayama mamoru';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1984\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?" }, { "role": "assistant", "content": "SELECT \"interview_subject\" FROM \"1984\" WHERE \"pictorials\"='christie brinkley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1984\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"pictorials\" text\n);\n\nQuestion: In the issue in which the Interview subject was Jesse Jackson, who were there Pictorials of?" }, { "role": "assistant", "content": "SELECT \"pictorials\" FROM \"1984\" WHERE \"interview_subject\"='jesse jackson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1984\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the Centerfold model in the issue in which the Interview subject was Paul Simon?" }, { "role": "assistant", "content": "SELECT \"centerfold_model\" FROM \"1984\" WHERE \"interview_subject\"='paul simon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1984\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the Centerfold model in the issue in which the Interview subject was Jos\u00e9 Napole\u00f3n Duarte?" }, { "role": "assistant", "content": "SELECT \"centerfold_model\" FROM \"1984\" WHERE \"interview_subject\"='jos\u00e9 napole\u00f3n duarte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1984\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the Cover model in the issue in which the Interview subject was Joan Collins?" }, { "role": "assistant", "content": "SELECT \"cover_model\" FROM \"1984\" WHERE \"interview_subject\"='joan collins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"round\" real,\n \"location\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Which date has a round more than 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"round\">9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"round\" real,\n \"location\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Who is the driver that one for the winning tpc team qi-meritus that has a round more than 8?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"race_calendar\" WHERE \"winning_team\"='tpc team qi-meritus' AND \"round\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_records\" (\n \"sport\" text,\n \"record\" text,\n \"athlete_s\" text,\n \"nation\" text,\n \"date\" text,\n \"time\" real\n);\n\nQuestion: What is the time of 12 December 2009 with record start?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"track_records\" WHERE \"record\"='start' AND \"date\"='12 december 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_records\" (\n \"sport\" text,\n \"record\" text,\n \"athlete_s\" text,\n \"nation\" text,\n \"date\" text,\n \"time\" real\n);\n\nQuestion: What is Elizabeth Yarnold's nation?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"track_records\" WHERE \"athlete_s\"='elizabeth yarnold';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"newly_named_pterosaurs\" (\n \"name\" text,\n \"status\" text,\n \"authors\" text,\n \"unit\" text,\n \"location\" text\n);\n\nQuestion: What country is the Jiufotang Formation located in?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"newly_named_pterosaurs\" WHERE \"unit\"='jiufotang formation';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"newly_named_pterosaurs\" (\n \"name\" text,\n \"status\" text,\n \"authors\" text,\n \"unit\" text,\n \"location\" text\n);\n\nQuestion: Which author is located in Mexico?" }, { "role": "assistant", "content": "SELECT \"authors\" FROM \"newly_named_pterosaurs\" WHERE \"location\"='mexico';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"newly_named_pterosaurs\" (\n \"name\" text,\n \"status\" text,\n \"authors\" text,\n \"unit\" text,\n \"location\" text\n);\n\nQuestion: Where is wang li duan cheng located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"newly_named_pterosaurs\" WHERE \"authors\"='wang li duan cheng';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"newly_named_pterosaurs\" (\n \"name\" text,\n \"status\" text,\n \"authors\" text,\n \"unit\" text,\n \"location\" text\n);\n\nQuestion: What is the status of the pterosaur named Cathayopterus?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"newly_named_pterosaurs\" WHERE \"name\"='cathayopterus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Years in Orlando has a School/Club Team of texas tech?" }, { "role": "assistant", "content": "SELECT \"years_in_orlando\" FROM \"b\" WHERE \"school_club_team\"='texas tech';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006\u20132009?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"b\" WHERE \"player\"='keith bogans' AND \"years_in_orlando\"='2006\u20132009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is Pat Burke's Nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"b\" WHERE \"player\"='pat burke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which School/Club Team has a Player of michael bradley?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"b\" WHERE \"player\"='michael bradley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Years in Orlando has a School/Club Team of kentucky?" }, { "role": "assistant", "content": "SELECT \"years_in_orlando\" FROM \"b\" WHERE \"school_club_team\"='kentucky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which School/Club Team has a Player of jud buechler?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"b\" WHERE \"player\"='jud buechler';" } ]
[ { "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 position for years under 1999?" }, { "role": "assistant", "content": "SELECT \"pos\" FROM \"24_hours_of_le_mans_results\" WHERE \"year\"<1999;" } ]
[ { "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 average year for Team Oreca?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"24_hours_of_le_mans_results\" WHERE \"team\"='team oreca';" } ]
[ { "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: Which team had a class position of 5th?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"24_hours_of_le_mans_results\" WHERE \"class_pos\"='5th';" } ]
[ { "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 having a year under 2010 and a class position of 5th?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"year\"<2010 AND \"class_pos\"='5th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Which Position has an Against larger than 17, and a Team of juventus, and a Drawn smaller than 4?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"campeonato_paulista\" WHERE \"against\">17 AND \"team\"='juventus' AND \"drawn\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Which Lost has an Against of 49 and a Played smaller than 20?" }, { "role": "assistant", "content": "SELECT COUNT(\"lost\") FROM \"campeonato_paulista\" WHERE \"against\"=49 AND \"played\"<20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"championships\" (\n \"championship\" text,\n \"current_champion_s\" text,\n \"previous_champion_s\" text,\n \"date_won\" text,\n \"location\" text\n);\n\nQuestion: In which championship had a previous champion of \"defeated Justin Corino in tournament final\"?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"championships\" WHERE \"previous_champion_s\"='defeated justin corino in tournament final';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"championships\" (\n \"championship\" text,\n \"current_champion_s\" text,\n \"previous_champion_s\" text,\n \"date_won\" text,\n \"location\" text\n);\n\nQuestion: Which location had previous champions of Mike Webb and Nick Fahrenheit?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"championships\" WHERE \"previous_champion_s\"='mike webb and nick fahrenheit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"championships\" (\n \"championship\" text,\n \"current_champion_s\" text,\n \"previous_champion_s\" text,\n \"date_won\" text,\n \"location\" text\n);\n\nQuestion: Who were the previous champions from the event won on May 1, 2010?" }, { "role": "assistant", "content": "SELECT \"previous_champion_s\" FROM \"championships\" WHERE \"date_won\"='may 1, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"championships\" (\n \"championship\" text,\n \"current_champion_s\" text,\n \"previous_champion_s\" text,\n \"date_won\" text,\n \"location\" text\n);\n\nQuestion: Who is the current champion for the event in Beverly, MA, with previous champions of Mike Webb and Nick Fahrenheit?" }, { "role": "assistant", "content": "SELECT \"current_champion_s\" FROM \"championships\" WHERE \"location\"='beverly, ma' AND \"previous_champion_s\"='mike webb and nick fahrenheit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"championships\" (\n \"championship\" text,\n \"current_champion_s\" text,\n \"previous_champion_s\" text,\n \"date_won\" text,\n \"location\" text\n);\n\nQuestion: Who is the current champion in the NECW Heavyweight Championship?" }, { "role": "assistant", "content": "SELECT \"current_champion_s\" FROM \"championships\" WHERE \"championship\"='necw heavyweight champion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"championships\" (\n \"championship\" text,\n \"current_champion_s\" text,\n \"previous_champion_s\" text,\n \"date_won\" text,\n \"location\" text\n);\n\nQuestion: Which location held the Iron 8 Championship tournament?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"championships\" WHERE \"championship\"='iron 8 championship tournament';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electrostatic_electrolytic_and_electroch\" (\n \"capacity\" text,\n \"volts\" text,\n \"temp\" text,\n \"energy_to_weight_ratio\" text,\n \"power_to_weight_ratio\" text\n);\n\nQuestion: What is the capacity of 3500v volts?" }, { "role": "assistant", "content": "SELECT \"capacity\" FROM \"electrostatic_electrolytic_and_electroch\" WHERE \"volts\"='3500v';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electrostatic_electrolytic_and_electroch\" (\n \"capacity\" text,\n \"volts\" text,\n \"temp\" text,\n \"energy_to_weight_ratio\" text,\n \"power_to_weight_ratio\" text\n);\n\nQuestion: How many volts has an energy-to-weight ratio of 54 kj/kg to 2.0v?" }, { "role": "assistant", "content": "SELECT \"volts\" FROM \"electrostatic_electrolytic_and_electroch\" WHERE \"energy_to_weight_ratio\"='54 kj/kg to 2.0v';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electrostatic_electrolytic_and_electroch\" (\n \"capacity\" text,\n \"volts\" text,\n \"temp\" text,\n \"energy_to_weight_ratio\" text,\n \"power_to_weight_ratio\" text\n);\n\nQuestion: What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/kg c/1 (1.875a)?" }, { "role": "assistant", "content": "SELECT \"capacity\" FROM \"electrostatic_electrolytic_and_electroch\" WHERE \"volts\"='2.7v' AND \"power_to_weight_ratio\"='5.44 w/kg c/1 (1.875a)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_league_positions_since_1992\" (\n \"season\" text,\n \"div\" text,\n \"pos\" real,\n \"top_scorer_league\" text,\n \"head_coach\" text\n);\n\nQuestion: Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"final_league_positions_since_1992\" WHERE \"pos\"=13 AND \"head_coach\"='protasov lyutyi talalayev balakhnin baidachny';" } ]
[ { "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 had the highest attendance with 58,701?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"attendance\"='58,701';" } ]
[ { "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: What was the score of the game against the San Diego Chargers?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"opponent\"='san diego chargers';" } ]
[ { "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: When was the attendance less than 44,851 during the first 4 weeks of the season?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"<4 AND \"attendance\"='44,851';" } ]
[ { "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: On week 13 what was the score of the game?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"=13;" } ]
[ { "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: What week had 58,025 in attendance?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"attendance\"='58,025';" } ]
[ { "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: When was the game that had 58,025 people in attendance?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"='58,025';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7?" }, { "role": "assistant", "content": "SELECT MIN(\"drawn\") FROM \"campeonato_paulista\" WHERE \"played\"<11 AND \"points\">7 AND \"team\"='mackenzie';" } ]