text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); Question: How many terms did the governor that left office on August 4, 1825 serve? <|assistant|> SELECT "terms" FROM "governors_of_missouri" WHERE "left_office"='august 4, 1825';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); Question: On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office? <|assistant|> SELECT "took_office" FROM "governors_of_missouri" WHERE "party"='democratic' AND "lieutenant_governor"='wallace crossley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); Question: Which governor had William Henry Ashley as lieutenant governor? <|assistant|> SELECT "governor" FROM "governors_of_missouri" WHERE "lieutenant_governor"='william henry ashley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: Which IHSAA Class has a School of shakamak? <|assistant|> SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: Which County has a School of bloomfield? <|assistant|> SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "school"='bloomfield';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: How much Enrollment has a School of shakamak? <|assistant|> SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: Which IHSAA Class has a Mascot of bulldogs? <|assistant|> SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='bulldogs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); Question: What's the 1996 if 1986 has a 1R? <|assistant|> SELECT "1996" FROM "women_s_doubles_performance_timeline" WHERE "1986"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); Question: What's the 1986 if 1991 has a QF and 1998 has a 3R? <|assistant|> SELECT "1986" FROM "women_s_doubles_performance_timeline" WHERE "1991"='qf' AND "1998"='3r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); Question: What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R? <|assistant|> SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1995"='3r' AND "1993"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); Question: What's the 1994 if 1995 has a 1R? <|assistant|> SELECT "1994" FROM "women_s_doubles_performance_timeline" WHERE "1995"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); Question: What's the tournament when 1992 is A? <|assistant|> SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "1992"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); Question: What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R? <|assistant|> SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1992"='qf' AND "1995"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); Question: What's the most league cup apps for Jimmy Lawson having 0 league cup goals? <|assistant|> SELECT MAX("league_cup_apps") FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "name"='jimmy lawson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); Question: What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps? <|assistant|> SELECT AVG("total_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "name"='alan sweeney' AND "league_cup_apps"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); Question: What's the total number of league cup apps when the league goals were less than 0? <|assistant|> SELECT COUNT("league_cup_apps") FROM "appearances_and_goals" WHERE "league_goals"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" text, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: Where was the September 3 game? <|assistant|> SELECT "location" FROM "regular_season" WHERE "date"='september 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" text, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: Which game was on September 12? <|assistant|> SELECT "game" FROM "regular_season" WHERE "date"='september 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: What is cork's rank? <|assistant|> SELECT "rank" FROM "season" WHERE "county"='cork';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: How many totals does cork have whose rank is larger than 2? <|assistant|> SELECT SUM("total") FROM "season" WHERE "county"='cork' AND "rank">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: Which Matches have a Tally of 1-38? <|assistant|> SELECT "matches" FROM "season" WHERE "tally"='1-38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals? <|assistant|> SELECT "silver" FROM "medals_table" WHERE "bronze">0 AND "total"<54 AND "nation"='spain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What was the highest number of gold medals when there were 0 silver medals? <|assistant|> SELECT MAX("gold") FROM "medals_table" WHERE "silver"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What's Brazil's rank when it has notes of R? <|assistant|> SELECT COUNT("rank") FROM "heat_1" WHERE "notes"='r' AND "country"='brazil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); Question: What rank was the premier Sir John See? <|assistant|> SELECT COUNT("rank") FROM "rank_by_time_in_office" WHERE "premier"='sir john see';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "title" text, "peak_position" real, "weeks" text, "sales" real ); Question: Which Peak Position has a Date of 10 june 1998? <|assistant|> SELECT "peak_position" FROM "singles" WHERE "date"='10 june 1998';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What Report is on June 3, 2000? <|assistant|> SELECT "report" FROM "2000_in_paraguayan_football" WHERE "date"='june 3, 2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What is the Report on November 15, 2000? <|assistant|> SELECT "report" FROM "2000_in_paraguayan_football" WHERE "date"='november 15, 2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What is the Score on October 7, 2000? <|assistant|> SELECT "score" FROM "2000_in_paraguayan_football" WHERE "date"='october 7, 2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "yang_lian_chn" text, "98kg" text, "santo_domingo_dominican" text ); Question: What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk? <|assistant|> SELECT "santo_domingo_dominican" FROM "records" WHERE "world_record"='clean & jerk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "yang_lian_chn" text, "98kg" text, "santo_domingo_dominican" text ); Question: What is the 98kg for Santo Domingo, Domincan on 1 October 2006? <|assistant|> SELECT "98kg" FROM "records" WHERE "santo_domingo_dominican"='1 october 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text ); Question: What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327? <|assistant|> SELECT AVG("fips_code") FROM "demographics" WHERE "area"='114.76 sq mi (297.23 sq km)' AND "population_2010"<'166,327';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text ); Question: What is the FIPS code for the municipality that has an area of 58.60 sq mi (151.77 sq km) and had a 2010 population smaller than 166,327? <|assistant|> SELECT COUNT("fips_code") FROM "demographics" WHERE "population_2010"<'166,327' AND "area"='58.60 sq mi (151.77 sq km)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text ); Question: In what year was Yauco, which had over 42,043 people in 2010, founded? <|assistant|> SELECT AVG("founded") FROM "demographics" WHERE "municipality"='yauco' AND "population_2010">'42,043';<|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: Which Result has an Attendance larger than 38,354, and a Date of october 23, 1988? <|assistant|> SELECT "result" FROM "schedule" WHERE "attendance">'38,354' AND "date"='october 23, 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 is the attendance for a week smaller than 9 with a result of L 38-20? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "result"='l 38-20' AND "week"<9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); Question: Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244? <|assistant|> SELECT "school" FROM "membership" WHERE "ihsaa_class"='a' AND "enrollment_08_09"=244;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); Question: Can you tell me the County that has the Location of shelbyville? <|assistant|> SELECT "county" FROM "membership" WHERE "location"='shelbyville';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); Question: How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917? <|assistant|> SELECT COUNT("deaths") FROM "summary_of_raiding_history" WHERE "fate"='damaged' AND "tonnage_grt"<'4,917';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); Question: Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940? <|assistant|> SELECT "tonnage_grt" FROM "summary_of_raiding_history" WHERE "fate"='sunk' AND "deaths"<17 AND "date"='16 november 1940';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); Question: How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2? <|assistant|> SELECT SUM("tonnage_grt") FROM "summary_of_raiding_history" WHERE "fate"='sunk' AND "flag"='great britain' AND "date"='26 september 1940' AND "deaths"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); Question: Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian? <|assistant|> SELECT MIN("tonnage_grt") FROM "summary_of_raiding_history" WHERE "date"='26 september 1940' AND "ship_name"='ashantian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" text ); Question: What is the highest lane for Brazil, ranked less than 8? <|assistant|> SELECT MAX("lane") FROM "semifinal_2" WHERE "country"='brazil' AND "rank"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); Question: What is the total population with less than 789 males? <|assistant|> SELECT COUNT("total_population") FROM "population_of_hiroo_district_july_2008" WHERE "male"<789;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); Question: What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households? <|assistant|> SELECT MIN("female") FROM "population_of_hiroo_district_july_2008" WHERE "district"='hiroo 1-chōme' AND "number_of_households">'1,666';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); Question: What is the highest number of males where there are 1,202 females and more than 1,127 households? <|assistant|> SELECT MAX("male") FROM "population_of_hiroo_district_july_2008" WHERE "female"='1,202' AND "number_of_households">'1,127';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); Question: What is the total number of females where the total population is less than 2,195? <|assistant|> SELECT COUNT("female") FROM "population_of_hiroo_district_july_2008" WHERE "total_population"<'2,195';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the outcome when the partner was Iryna Bremond? <|assistant|> SELECT "outcome" FROM "doubles_6_3_3" WHERE "partner"='iryna bremond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What tournament had a Score of 6–3, 2–6, [10–8]? <|assistant|> SELECT "tournament" FROM "doubles_6_3_3" WHERE "score"='6–3, 2–6, [10–8]';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who was the partner when the surface was clay, and outcome was runner-up, with a score of 4–6, 1–6? <|assistant|> SELECT "partner" FROM "doubles_6_3_3" WHERE "surface"='clay' AND "outcome"='runner-up' AND "score"='4–6, 1–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the rank of Manuel Cortina Martínez? <|assistant|> SELECT "rank" FROM "heat_4" WHERE "athletes"='manuel cortina martínez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the rank if the person with a time of 1:40.626? <|assistant|> SELECT SUM("rank") FROM "heat_4" WHERE "time"='1:40.626';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the rank of the person with a time of 1:44.757? <|assistant|> SELECT MAX("rank") FROM "heat_4" WHERE "time"='1:44.757';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the rank of Israel? <|assistant|> SELECT MAX("rank") FROM "heat_4" WHERE "country"='israel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the name of the athlete from Myanmar? <|assistant|> SELECT "athletes" FROM "heat_4" WHERE "country"='myanmar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What are the notes for the person ranked larger than 2, and a time of 1:48.179? <|assistant|> SELECT "notes" FROM "heat_4" WHERE "rank">2 AND "time"='1:48.179';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); Question: What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire? <|assistant|> SELECT MIN("chorley") FROM "summary_of_results_2005" WHERE "preston"=6 AND "west_lancashire"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); Question: What is the average rating for a Flyde that has a Burnley less than 0? <|assistant|> SELECT AVG("fylde") FROM "summary_of_results_2005" WHERE "burnley"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); Question: What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2? <|assistant|> SELECT MAX("west_lancashire") FROM "summary_of_results_2005" WHERE "pendle">1 AND "rossendale">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); Question: What was the average Chorley for the Labour party that had a Rossendale greater than 0 and a Pendle less than 1? <|assistant|> SELECT AVG("chorley") FROM "summary_of_results_2005" WHERE "rossendale">0 AND "party"='labour' AND "pendle"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1945_63" ( "season" text, "division" text, "rank" text, "avg_att" text, "top_goalscorer" text, "goals" real ); Question: In what season was Schädlich the top goalscorer? <|assistant|> SELECT "season" FROM "1945_63" WHERE "top_goalscorer"='schädlich';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1945_63" ( "season" text, "division" text, "rank" text, "avg_att" text, "top_goalscorer" text, "goals" real ); Question: What is the average attendance when the rank is 5? <|assistant|> SELECT "avg_att" FROM "1945_63" WHERE "rank"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the Speed for Chris Swallow? <|assistant|> SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rider"='chris swallow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the speed when the rank is larger than 2, and team is 500cc norton manx? <|assistant|> SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rank">2 AND "team"='500cc norton manx';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the time for Alan Oversby? <|assistant|> SELECT "time" FROM "race_2_senior_classic_race" WHERE "rider"='alan oversby';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the Speed when the rank is smaller than 3, and time is 1:06.19.90? <|assistant|> SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rank"<3 AND "time"='1:06.19.90';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the team when the time is 1:11.19.89? <|assistant|> SELECT "team" FROM "race_2_senior_classic_race" WHERE "time"='1:11.19.89';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: Which actor plays the character Helga Beimer? <|assistant|> SELECT "actor" FROM "germany" WHERE "character"='helga beimer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: How long did the soap opera run in which Nadine Spruß acted in? <|assistant|> SELECT "character" FROM "germany" WHERE "actor"='nadine spruß';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: How many years did the soap opera run in which the character Clemens Richter was included? <|assistant|> SELECT "duration" FROM "germany" WHERE "character"='clemens richter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What years did Marienhof run, which featured Leonore Capell and lasted 10 years? <|assistant|> SELECT "years" FROM "germany" WHERE "soap_opera"='marienhof' AND "duration"='10 years' AND "actor"='leonore capell';<|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: Who was the opponent in week 6? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"=6;<|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's the result when the Carolina Panthers were the opponent? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='carolina panthers';<|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 date had a result of W 41-0? <|assistant|> SELECT "date" FROM "schedule" WHERE "result"='w 41-0';<|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's the attendance when the week was more than 16? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week">16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What was the year of the World Half Marathon Championships with a result of 3rd? <|assistant|> SELECT "year" FROM "achievements" WHERE "tournament"='world half marathon championships' AND "result"='3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What was the result of the tournament in 2001? <|assistant|> SELECT "result" FROM "achievements" WHERE "year"=2001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: What is the average capacity for the vehicle having a navigator of Macneall? <|assistant|> SELECT AVG("capacity") FROM "modern_competition" WHERE "navigator"='macneall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: Which vehicle had a class of CM14? <|assistant|> SELECT "vehicle" FROM "modern_competition" WHERE "class"='cm14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: Who was the driver of the vehicle having class of CM22 and navigator of Macneall? <|assistant|> SELECT "driver" FROM "modern_competition" WHERE "class"='cm22' AND "navigator"='macneall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: What is the total time of the vehicle having a navigator of Vandenberg? <|assistant|> SELECT "total_time" FROM "modern_competition" WHERE "navigator"='vandenberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the bronze with more than 2 gold and less than 14 total and 4 silver? <|assistant|> SELECT AVG("bronze") FROM "medal_table" WHERE "gold">2 AND "total"<14 AND "silver"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silvers are there with a total of 11? <|assistant|> SELECT SUM("silver") FROM "medal_table" WHERE "total"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silvers are there with more than 2 golds in Germany? <|assistant|> SELECT COUNT("silver") FROM "medal_table" WHERE "gold">2 AND "nation"='germany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinals" ( "heat" real, "name" text, "nationality" text, "reaction" real, "result" text ); Question: What is the average reaction for brigitte foster-hylton after heat 1? <|assistant|> SELECT AVG("reaction") FROM "semifinals" WHERE "heat">1 AND "name"='brigitte foster-hylton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text ); Question: What round did the home team Pohang Steelers play? <|assistant|> SELECT "round" FROM "fixtures" WHERE "home_team"='pohang steelers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text ); Question: What is the latest round for Pohang Steelers as the away team? <|assistant|> SELECT MAX("round") FROM "fixtures" WHERE "away_team"='pohang steelers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "remixes" ( "year" real, "artist" text, "song" text, "album" text, "remix" text ); Question: what is the album when the remix is dead guys remix and the year is after 2003? <|assistant|> SELECT "album" FROM "remixes" WHERE "remix"='dead guys remix' AND "year">2003;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "remixes" ( "year" real, "artist" text, "song" text, "album" text, "remix" text ); Question: what is the album with the song "party like ur 18" feat. sway? <|assistant|> SELECT "album" FROM "remixes" WHERE "song"='\"party like ur 18\" feat. sway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is Joselito Escobar's Pick number? <|assistant|> SELECT SUM("pick") FROM "round_1" WHERE "player"='joselito escobar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the Pick 3 Player from East College? <|assistant|> SELECT "player" FROM "round_1" WHERE "college"='east' AND "pick"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is Ateneo de Manila's PBA Team? <|assistant|> SELECT "pba_team" FROM "round_1" WHERE "college"='ateneo de manila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less? <|assistant|> SELECT "college" FROM "round_1" WHERE "pick"<3 AND "pba_team"='alaska milkmen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the College of the Player from San Miguel Beermen PBA Team? <|assistant|> SELECT "college" FROM "round_1" WHERE "pba_team"='san miguel beermen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); Question: who is the web client when the client is x and the project is goto servers vnc java server (gsvncj)? <|assistant|> SELECT "web_client" FROM "comparison_chart" WHERE "client"='x' AND "project"='goto servers vnc java server (gsvncj)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); Question: what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ✓? <|assistant|> SELECT "color_quality" FROM "comparison_chart" WHERE "proxy"='x' AND "encryption"='x' AND "web_client"='x' AND "authentication"='✓';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); Question: what is the color quality when the relay is ✓? <|assistant|> SELECT "color_quality" FROM "comparison_chart" WHERE "relay"='✓';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); Question: what is the proxy when the image quality is ✓, the encryption is ssl and the license is proprietary? <|assistant|> SELECT "proxy" FROM "comparison_chart" WHERE "image_quality"='✓' AND "encryption"='ssl' AND "license"='proprietary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); Question: what is the image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007? <|assistant|> SELECT "image_quality" FROM "comparison_chart" WHERE "multiple_sessions"='x' AND "authentication"='✓' AND "date"='may 15, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" text, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860? <|assistant|> SELECT "cores" FROM "45_nm" WHERE "l3_cache"='8 mb' AND "model_number"='core i7-860';<|endoftext|>