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