text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_18_7_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What surface was used when she played with Remi Tezuka? <|assistant|> SELECT "surface" FROM "doubles_18_7_11" WHERE "partner"='remi tezuka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What Results has the Record of 28-12? <|assistant|> SELECT "results" FROM "ncaa_tournament_results" WHERE "record"='28-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What Results has a Seed #12 and a Year that's smaller than 1996 <|assistant|> SELECT "results" FROM "ncaa_tournament_results" WHERE "seed"='#12' AND "year"<1996;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What's the highest Year with the Record of 18-12? <|assistant|> SELECT MAX("year") FROM "ncaa_tournament_results" WHERE "record"='18-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What's the highest Year with the Region of Southeast? <|assistant|> SELECT MAX("year") FROM "ncaa_tournament_results" WHERE "region"='southeast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What Record has a Year that's larger than 2012? <|assistant|> SELECT "record" FROM "ncaa_tournament_results" WHERE "year">2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "streak" text ); Question: What is the Laker's record when they played against Kansas City Kings? <|assistant|> SELECT "record" FROM "season_schedule" WHERE "opponent"='kansas city kings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation for 傳 <|assistant|> SELECT "pronunciation_a" FROM "old_chinese" WHERE "word"='傳';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation for meaning of king <|assistant|> SELECT "pronunciation_a" FROM "old_chinese" WHERE "meaning_a"='king';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the word with pronunciation b of *sɨks <|assistant|> SELECT "word" FROM "old_chinese" WHERE "pronunciation_b"='*sɨks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation for meaning b of border, frontier <|assistant|> SELECT "pronunciation_b" FROM "old_chinese" WHERE "meaning_b"='border, frontier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation b for meaning of grind <|assistant|> SELECT "pronunciation_b" FROM "old_chinese" WHERE "meaning_a"='grind';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_de_futsal" ( "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "total" real ); Question: What is the 2008 value that was 2nd in 2006? <|assistant|> SELECT "2008" FROM "grand_prix_de_futsal" WHERE "2006"='2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_de_futsal" ( "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "total" real ); Question: What is the average total that is 1st in 2010? <|assistant|> SELECT AVG("total") FROM "grand_prix_de_futsal" WHERE "2010"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_de_futsal" ( "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "total" real ); Question: What is the 2008 value with a 7 in 2010? <|assistant|> SELECT "2008" FROM "grand_prix_de_futsal" WHERE "2010"='7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Location for the woodburn dragstrip? <|assistant|> SELECT "location" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "name"='woodburn dragstrip';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What State has an Opened (closing date if defunct) that shows 1960? <|assistant|> SELECT "state" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "opened_closing_date_if_defunct"='1960';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Location for the route 66 raceway? <|assistant|> SELECT "location" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "name"='route 66 raceway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Location for the newington international airport? <|assistant|> SELECT "location" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "name"='newington international airport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois? <|assistant|> SELECT "name" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "opened_closing_date_if_defunct"='1995' AND "length"='miles (m)' AND "state"='illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_4_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the Score with an Opponent that is amanda brown brenda remilton? <|assistant|> SELECT "score" FROM "doubles_7_4_3" WHERE "opponents"='amanda brown brenda remilton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_4_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the Score with an Outcome of runner-up, and a Partner that is elizabeth little? <|assistant|> SELECT "score" FROM "doubles_7_4_3" WHERE "outcome"='runner-up' AND "partner"='elizabeth little';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: Who was the pitcher on June 8, 1961? <|assistant|> SELECT "pitcher" FROM "four_consecutive_home_runs_by_a_team_in_" WHERE "date"='june 8, 1961';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: What team had the record asscoiated with the 9th inning? <|assistant|> SELECT "team" FROM "four_consecutive_home_runs_by_a_team_in_" WHERE "inn"='9th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: In what venue did the Boston Red Sox play in? <|assistant|> SELECT "venue" FROM "four_consecutive_home_runs_by_a_team_in_" WHERE "team"='boston red sox';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: Who was the pitcher with the record recorded in the 7th inning? <|assistant|> SELECT "pitcher" FROM "four_consecutive_home_runs_by_a_team_in_" WHERE "inn"='7th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When David E. Finley was the incumbent what was the result? <|assistant|> SELECT "result" FROM "south_carolina" WHERE "incumbent"='david e. finley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When someone was first elected in 1898 what was the result? <|assistant|> SELECT "result" FROM "south_carolina" WHERE "first_elected"='1898';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What party has an incumbent of Stanyarne Wilson? <|assistant|> SELECT "party" FROM "south_carolina" WHERE "incumbent"='stanyarne wilson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When the incumbent was William Elliott, what was the result? <|assistant|> SELECT "result" FROM "south_carolina" WHERE "incumbent"='william elliott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 8:00 that has da vinci's inquest as the 9:00? <|assistant|> SELECT "8_00" FROM "wednesday" WHERE "9_00"='da vinci''s inquest';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What 10:00 has party of five as 9:30? <|assistant|> SELECT "10_00" FROM "wednesday" WHERE "9_30"='party of five';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What 9:00 has entertainment tonight as 7:00? <|assistant|> SELECT "9_00" FROM "wednesday" WHERE "7_00"='entertainment tonight';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents? <|assistant|> SELECT "opponents" FROM "results" WHERE "score"='2-1' AND "competition"='pl' AND "date"='december 22, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Date of april 3, 2007 had what score? <|assistant|> SELECT "score" FROM "results" WHERE "date"='april 3, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date? <|assistant|> SELECT "date" FROM "results" WHERE "competition"='pl' AND "score"='1-1' AND "opponents"='kelantan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? <|assistant|> SELECT "competition" FROM "results" WHERE "venue"='klfa stadium, cheras' AND "score"='3-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Opponents of police, and a Venue of selayang municipal council stadium had what date? <|assistant|> SELECT "date" FROM "results" WHERE "opponents"='police' AND "venue"='selayang municipal council stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Competition of fa cup rd 1 had what venue? <|assistant|> SELECT "venue" FROM "results" WHERE "competition"='fa cup rd 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visiting team on January 27? <|assistant|> SELECT "visitor" FROM "game_log" WHERE "date"='january 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the home team that played on February 25? <|assistant|> SELECT "home" FROM "game_log" WHERE "date"='february 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Name the date with chicago visiting <|assistant|> SELECT "date" FROM "november" WHERE "visitor"='chicago';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Name the home with chicago visiting <|assistant|> SELECT "home" FROM "november" WHERE "visitor"='chicago';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "name" text, "goals" real, "apps" real, "avge" real, "career" text ); Question: What is the highest number of apps of the player with more than 63 goals and an avge of 0.45? <|assistant|> SELECT MAX("apps") FROM "top_goalscorers" WHERE "goals">63 AND "avge"=0.45;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "name" text, "goals" real, "apps" real, "avge" real, "career" text ); Question: What is the total avge of John Hall, who has less than 63 goals? <|assistant|> SELECT COUNT("avge") FROM "top_goalscorers" WHERE "name"='john hall' AND "goals"<63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "champion" text, "venue" text, "location" text, "score" text ); Question: When did Kim Thompson win with 278 score? <|assistant|> SELECT SUM("year") FROM "winners" WHERE "score"='278' AND "champion"='kim thompson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "champion" text, "venue" text, "location" text, "score" text ); Question: Where did Steve Gotsche win? <|assistant|> SELECT "venue" FROM "winners" WHERE "champion"='steve gotsche';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest? <|assistant|> SELECT SUM("rank") FROM "completed_buildings" WHERE "built"<2007 AND "building"='howard johnson hotel bucharest';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13? <|assistant|> SELECT "height_m_ft" FROM "completed_buildings" WHERE "city"='bucharest' AND "built"=2009 AND "rank"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What city is the bucharest tower center (btc) located in? <|assistant|> SELECT "city" FROM "completed_buildings" WHERE "building"='bucharest tower center (btc)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What is the name of the building in Bucharest with a rank of less than 12? <|assistant|> SELECT "building" FROM "completed_buildings" WHERE "city"='bucharest' AND "rank"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What city was the building built in 1988? <|assistant|> SELECT "city" FROM "completed_buildings" WHERE "built"=1988;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boston_bruins_4_hartford_whalers_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the Boston Bruins game from April 11? <|assistant|> SELECT "score" FROM "boston_bruins_4_hartford_whalers_2" WHERE "home"='boston bruins' AND "date"='april 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boston_bruins_4_hartford_whalers_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record of the Hartford Whalers home team with the April 13 game date? <|assistant|> SELECT "record" FROM "boston_bruins_4_hartford_whalers_2" WHERE "home"='hartford whalers' AND "date"='april 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boston_bruins_4_hartford_whalers_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the visiting Hartford Whalers game from April 11? <|assistant|> SELECT "score" FROM "boston_bruins_4_hartford_whalers_2" WHERE "visitor"='hartford whalers' AND "date"='april 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_portla" ( "rank" real, "airport" text, "metropolitan_area" text, "passengers" real, "carriers" text ); Question: Which Passengers have Carriers of air canada? <|assistant|> SELECT "passengers" FROM "busiest_international_routes_from_portla" WHERE "carriers"='air canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_portla" ( "rank" real, "airport" text, "metropolitan_area" text, "passengers" real, "carriers" text ); Question: Which Metropolitan area has Passengers larger than 130,903, and a Rank of 4? <|assistant|> SELECT "metropolitan_area" FROM "busiest_international_routes_from_portla" WHERE "passengers">'130,903' AND "rank"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_portla" ( "rank" real, "airport" text, "metropolitan_area" text, "passengers" real, "carriers" text ); Question: Which Metropolitan area has an Airport of toronto pearson international airport? <|assistant|> SELECT "metropolitan_area" FROM "busiest_international_routes_from_portla" WHERE "airport"='toronto pearson international airport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: What is the link for january 31 – february 3, 2011? <|assistant|> SELECT "link" FROM "opinion_polls" WHERE "date_of_polling"='january 31 – february 3, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals? <|assistant|> SELECT "date_of_polling" FROM "opinion_polls" WHERE "polling_firm"='forum research' AND "green"=7 AND "liberal"<30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green? <|assistant|> SELECT "polling_firm" FROM "opinion_polls" WHERE "link"='html' AND "liberal"<36 AND "green"<8 AND "date_of_polling"='september 26–28, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: What june 21–22, 2011 polling has green smaller than 13? <|assistant|> SELECT "polling_firm" FROM "opinion_polls" WHERE "green"<13 AND "date_of_polling"='june 21–22, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_skyscrapers_in_afric" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: What is listed under the Years as tallest, that has Floors of 31? <|assistant|> SELECT "years_as_tallest" FROM "timeline_of_tallest_skyscrapers_in_afric" WHERE "floors"=31;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_skyscrapers_in_afric" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8? <|assistant|> SELECT MIN("floors") FROM "timeline_of_tallest_skyscrapers_in_afric" WHERE "feet">262 AND "name"='standard bank building' AND "metres">138.8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_skyscrapers_in_afric" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: What is the sum of Metres wiht a Feet that's smaller than 196? <|assistant|> SELECT COUNT("metres") FROM "timeline_of_tallest_skyscrapers_in_afric" WHERE "feet"<196;<|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, "record" text, "game_site" text, "attendance" real ); Question: What is the lowest week number that there was a game on October 23, 1977 with less than 68,977 people attending? <|assistant|> SELECT MIN("week") FROM "schedule" WHERE "attendance"<'68,977' AND "date"='october 23, 1977';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_squad" ( "player" text, "position" text, "height_m" real, "weight_kg" real, "years" text ); Question: What is the highest weight of the position scrum half? <|assistant|> SELECT MAX("weight_kg") FROM "2008_2009_squad" WHERE "position"='scrum half';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "engine" text, "type" text, "displacement" text, "power" text, "torque" text ); Question: What is the power of the engine with a torque of n·m (lb·ft) at1,500rpm? <|assistant|> SELECT "power" FROM "engines" WHERE "torque"='n·m (lb·ft) at1,500rpm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "engine" text, "type" text, "displacement" text, "power" text, "torque" text ); Question: Which torque value is associated with the 1.3 16V multijet engine? <|assistant|> SELECT "torque" FROM "engines" WHERE "engine"='1.3 16v multijet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost? <|assistant|> SELECT MIN("against") FROM "torneio_rio_s_o_paulo" WHERE "drawn"<2 AND "points"=10 AND "lost"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average position with an against value less than 11? <|assistant|> SELECT AVG("position") FROM "torneio_rio_s_o_paulo" WHERE "against"<11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the largest value for lost with a position greater than 10? <|assistant|> SELECT MAX("lost") FROM "torneio_rio_s_o_paulo" WHERE "position">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the total of all against values for the Corinthians with less than 3 lost? <|assistant|> SELECT COUNT("against") FROM "torneio_rio_s_o_paulo" WHERE "team"='corinthians' AND "lost"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the lowest against value with less than 9 points and more than 6 lost? <|assistant|> SELECT MIN("against") FROM "torneio_rio_s_o_paulo" WHERE "points"<9 AND "lost">6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); Question: What tournament located is mississippi was nov 5 <|assistant|> SELECT "tournament" FROM "tournament_results" WHERE "date"='nov 5' AND "location"='mississippi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); Question: what is the 1st prize for may 21 <|assistant|> SELECT SUM("1st_prize") FROM "tournament_results" WHERE "date"='may 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_no_4" ( "title" text, "year" real, "platform_s" text, "director" text, "producer" text ); Question: Who is the director of the game with HIroshi Sato as the producer on the GBA platform? <|assistant|> SELECT "director" FROM "group_no_4" WHERE "producer"='hiroshi sato' AND "platform_s"='gba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_no_4" ( "title" text, "year" real, "platform_s" text, "director" text, "producer" text ); Question: Who is the director of Last Window: The Secret of Cape West 3? <|assistant|> SELECT "director" FROM "group_no_4" WHERE "title"='last window: the secret of cape west 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_no_4" ( "title" text, "year" real, "platform_s" text, "director" text, "producer" text ); Question: What is the platform of the 2010 game with Shuichiro Nishiya as director? <|assistant|> SELECT "platform_s" FROM "group_no_4" WHERE "year"=2010 AND "director"='shuichiro nishiya';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Opponent is on October of 29? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "october"=29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: WHich October has a Record of 1–0–0? <|assistant|> SELECT MIN("october") FROM "regular_season" WHERE "record"='1–0–0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Opponent has a October larger than 20 with a Score of 2–2? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "october">20 AND "score"='2–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_major_championship" ( "year" real, "dates" text, "venue" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "purse" real, "winner_s_share" real ); Question: What year was the margin of victory 9 strokes and the purse under $2,750,000? <|assistant|> SELECT AVG("year") FROM "lpga_major_championship" WHERE "margin_of_victory"='9 strokes' AND "purse"<'2,750,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_major_championship" ( "year" real, "dates" text, "venue" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "purse" real, "winner_s_share" real ); Question: What year was the score 269? <|assistant|> SELECT COUNT("year") FROM "lpga_major_championship" WHERE "score"=269;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the average number of points for a team in the 250cc class with fewer than 0 wins? <|assistant|> SELECT AVG("points") FROM "motorcycle_grand_prix_results" WHERE "class"='250cc' AND "wins"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the smallest number of points for a 1981 team? <|assistant|> SELECT MIN("points") FROM "motorcycle_grand_prix_results" WHERE "year"=1981;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class? <|assistant|> SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "points"<32 AND "class"='350cc' AND "rank"='8th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What was the rank of the 1983 team in the 250cc class? <|assistant|> SELECT "rank" FROM "motorcycle_grand_prix_results" WHERE "class"='250cc' AND "year"=1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which district has joseph t. johnson as an incumbent? <|assistant|> SELECT "district" FROM "south_carolina" WHERE "incumbent"='joseph t. johnson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What was the result for james o'h. patterson when first elected in 1904? <|assistant|> SELECT "result" FROM "south_carolina" WHERE "first_elected"='1904' AND "incumbent"='james o''h. patterson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which party was re-elected in south carolina 5 district? <|assistant|> SELECT "party" FROM "south_carolina" WHERE "result"='re-elected' AND "district"='south carolina 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which party was joseph t. johnson in? <|assistant|> SELECT "party" FROM "south_carolina" WHERE "incumbent"='joseph t. johnson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which party was first elected in 1898? <|assistant|> SELECT "party" FROM "south_carolina" WHERE "first_elected"='1898';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which district won when first elected in 1900? <|assistant|> SELECT "district" FROM "south_carolina" WHERE "first_elected"='1900';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: How many wins did the player who earned $6,607,562 have? <|assistant|> SELECT SUM("wins") FROM "leaders" WHERE "earnings"='6,607,562';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What is the average earnings made by Greg Norman? <|assistant|> SELECT AVG("earnings") FROM "leaders" WHERE "player"='greg norman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what city has a game of friendly and an opponent of tunisia? <|assistant|> SELECT "city" FROM "1973" WHERE "type_of_game"='friendly' AND "opponent"='tunisia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what are the results of the opponent of spain? <|assistant|> SELECT "results" FROM "1973" WHERE "opponent"='spain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what results are dated december 19? <|assistant|> SELECT "results" FROM "1973" WHERE "date"='december 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what city has the results of 4:2? <|assistant|> SELECT "city" FROM "1973" WHERE "results"='4:2';<|endoftext|>