text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dunedin_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled? <|assistant|> SELECT "area" FROM "dunedin_city" WHERE "authority"='state' AND "decile">6 AND "gender"='coed' AND "roll"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dunedin_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the average roll for Fairfield school? <|assistant|> SELECT AVG("roll") FROM "dunedin_city" WHERE "name"='fairfield school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dunedin_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which school has a roll larger than 26 and is located in Fairfield? <|assistant|> SELECT "name" FROM "dunedin_city" WHERE "roll">26 AND "area"='fairfield';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: how many points are there for a Chassis of porsche 718, and a Year smaller than 1964? <|assistant|> SELECT COUNT("points") FROM "world_championship_results" WHERE "chassis"='porsche 718' AND "year"<1964;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: what is the engine that saw 0 points, and a Chassis of porsche 718, in 1961? <|assistant|> SELECT "engine" FROM "world_championship_results" WHERE "points"=0 AND "chassis"='porsche 718' AND "year"=1961;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964? <|assistant|> SELECT "engine" FROM "world_championship_results" WHERE "chassis"='porsche 718' AND "points"=0 AND "year"<1964;<|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" text, "silver" text, "bronze" text, "total" text ); Question: Which bronze has a Nation of poland? <|assistant|> SELECT "bronze" FROM "medal_table" WHERE "nation"='poland';<|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" text, "silver" text, "bronze" text, "total" text ); Question: Which gold has 3 silver and a Total of 5? <|assistant|> SELECT "gold" FROM "medal_table" WHERE "silver"='3' AND "total"='5';<|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" text, "silver" text, "bronze" text, "total" text ); Question: Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain? <|assistant|> SELECT "gold" FROM "medal_table" WHERE "bronze"='1' AND "rank"='47' AND "nation"='spain';<|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" text, "silver" text, "bronze" text, "total" text ); Question: Which nation has a Silver of 1, a Gold of 0, and a Total of 1? <|assistant|> SELECT "nation" FROM "medal_table" WHERE "silver"='1' AND "gold"='0' AND "total"='1';<|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" text, "silver" text, "bronze" text, "total" text ); Question: Which bronze has a Rank of 37? <|assistant|> SELECT "bronze" FROM "medal_table" WHERE "rank"='37';<|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" text, "silver" text, "bronze" text, "total" text ); Question: Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia? <|assistant|> SELECT "silver" FROM "medal_table" WHERE "bronze"='1' AND "total"='4' AND "nation"='slovakia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); Question: What is the Issue Date(s) of Volume:Issue of 32:18-19? <|assistant|> SELECT "issue_date_s" FROM "notes" WHERE "volume_issue"='32:18-19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); Question: Volume:Issue of 32:26-33:5 was how many Weeks on Top? <|assistant|> SELECT "weeks_on_top" FROM "notes" WHERE "volume_issue"='32:26-33:5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What car had the fewest laps with a qual of 138.750? <|assistant|> SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='138.750';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: How many laps were there for the car with a qual of 138.750? <|assistant|> SELECT "laps" FROM "indy_500_results" WHERE "qual"='138.750';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: For the car with a qual of 134.288, what was the rank? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "qual"='134.288';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was the finishing place for 1953? <|assistant|> SELECT "finish" FROM "indy_500_results" WHERE "year"='1953';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "class" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); Question: Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939 <|assistant|> SELECT "name" FROM "class" WHERE "laid_down"='22 september 1939' AND "commissioned"='30 august 1941';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the score when there was a Loss of birkbeck (0–3)? <|assistant|> SELECT "score" FROM "game_log" WHERE "loss"='birkbeck (0–3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bioinformatics" ( "application" text, "expected_speed_up" text, "gpu" text, "multi_gpu_support" text, "release_status" text ); Question: Which GPU has the cushaw application? <|assistant|> SELECT "gpu" FROM "bioinformatics" WHERE "application"='cushaw';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bioinformatics" ( "application" text, "expected_speed_up" text, "gpu" text, "multi_gpu_support" text, "release_status" text ); Question: What is the expected speed up of the gpu-hmmer application? <|assistant|> SELECT "expected_speed_up" FROM "bioinformatics" WHERE "application"='gpu-hmmer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who was the host team at the game at the Cleveland Browns Stadium? <|assistant|> SELECT "host_team" FROM "1999" WHERE "stadium"='cleveland browns stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What was the final score when the Buffalo Bills were the visiting team? <|assistant|> SELECT "final_score" FROM "1999" WHERE "visiting_team"='buffalo bills';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What was the final score when the Denver Broncos were the visiting team? <|assistant|> SELECT "final_score" FROM "1999" WHERE "visiting_team"='denver broncos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the date that a game at the Alltel Stadium had a final score of 6-20? <|assistant|> SELECT "date" FROM "1999" WHERE "stadium"='alltel stadium' AND "final_score"='6-20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text ); Question: what is the average season when results is less than 2 times in 2nd and more than 6 times in 3rd? <|assistant|> SELECT AVG("season") FROM "by_season" WHERE "2nd_pl"<2 AND "3rd_pl">6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text ); Question: How many times was the motorcycle ducati 916 2nd place when wins is less than 7? <|assistant|> SELECT SUM("2nd_pl") FROM "by_season" WHERE "motorcycle"='ducati 916' AND "wins"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text ); Question: Who is the champion when the motorcycle is ducati 916 and 2nd place is less than 5? <|assistant|> SELECT "champion" FROM "by_season" WHERE "motorcycle"='ducati 916' AND "2nd_pl"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What Catalog has a label of Alfa records and a date of November 21, 1980? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "label"='alfa records' AND "date"='november 21, 1980';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What catalog has a format of ED remaster CD and a date of December 19, 2001? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "format"='ed remaster cd' AND "date"='december 19, 2001';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What Date has a label of alfa records? <|assistant|> SELECT "date" FROM "release_history" WHERE "label"='alfa records';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What region has the label of alfa records and the date of January 23, 1987? <|assistant|> SELECT "region" FROM "release_history" WHERE "label"='alfa records' AND "date"='january 23, 1987';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What date has the format of CD and catalog of alca-274? <|assistant|> SELECT "date" FROM "release_history" WHERE "format"='cd' AND "catalog"='alca-274';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What date has the format of cd? <|assistant|> SELECT "date" FROM "release_history" WHERE "format"='cd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the Decile number for St Mary's Catholic School? <|assistant|> SELECT "decile" FROM "otorohanga_district" WHERE "name"='st mary''s catholic school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which Authority is set for Hauturu School? <|assistant|> SELECT "authority" FROM "otorohanga_district" WHERE "name"='hauturu school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What School is in the kio kio area? <|assistant|> SELECT "name" FROM "otorohanga_district" WHERE "area"='kio kio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text ); Question: What race is in the 5th position? <|assistant|> SELECT "race" FROM "2012_tt_results" WHERE "position"='5th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text ); Question: What Replica has a race of supersport race 1? <|assistant|> SELECT "replica" FROM "2012_tt_results" WHERE "race"='supersport race 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text ); Question: What replica has the 5th position? <|assistant|> SELECT "replica" FROM "2012_tt_results" WHERE "position"='5th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real ); Question: When a Sigma 7 has a standard byte string, what is the value for the decimal? <|assistant|> SELECT "decimal" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "model"='sigma 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real ); Question: What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512? <|assistant|> SELECT "byte_string" FROM "32_bit_systems" WHERE "memory_map"='standard' AND "decimal"='standard' AND "floating_point"='standard' AND "max_memory_kwords"<512;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real ); Question: What model has both a standard byte string and floating-point? <|assistant|> SELECT "model" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "floating_point"='standard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real ); Question: On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map? <|assistant|> SELECT "memory_map" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "max_memory_kwords">128 AND "model"='sigma 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real ); Question: What is the decimal value when the memory map and byte string are standard, and the max memory is 512? <|assistant|> SELECT "decimal" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "memory_map"='standard' AND "max_memory_kwords"=512;<|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, "pos" text, "class_pos" text ); Question: Who was the co-driver in the DNF position in the GT1 class? <|assistant|> SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf' AND "class"='gt1';<|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, "pos" text, "class_pos" text ); Question: Which co-driver was part of team Martini Lancia earlier than 1986? <|assistant|> SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "year"<1986 AND "team"='martini lancia';<|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, "pos" text, "class_pos" text ); Question: The Le Mans Porsche team Joest Racing is in which class? <|assistant|> SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='le mans porsche team joest racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Name the build date for total produced of 146 <|assistant|> SELECT "build_date" FROM "switchers_s_series" WHERE "total_produced"=146;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Name the model for specification of dl-066 <|assistant|> SELECT "model" FROM "switchers_s_series" WHERE "specification"='dl-066';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Name the power output for model of s-13 <|assistant|> SELECT "power_output" FROM "switchers_s_series" WHERE "model"='s-13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real ); Question: What's the worst score for the worst dancer(s) john barnes, with a best score of 36? <|assistant|> SELECT "worst_score" FROM "highest_and_lowest_scoring_performances" WHERE "best_score"=36 AND "worst_dancer_s"='john barnes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real ); Question: What's the worst dance of jive dancer(s)? <|assistant|> SELECT "worst_dancer_s" FROM "highest_and_lowest_scoring_performances" WHERE "dance"='jive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real ); Question: What's the best score, with the worst dancer(s) gethin jones/kenny logan? <|assistant|> SELECT "best_score" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='gethin jones/kenny logan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real ); Question: What's the best average score with a bad score of 15? <|assistant|> SELECT AVG("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_score"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the name of the opponent that has a record of 66-69? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "record"='66-69';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What was Olin Dutra's score? <|assistant|> SELECT "score" FROM "final_round" WHERE "player"='olin dutra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What was Craig Wood's score? <|assistant|> SELECT "score" FROM "final_round" WHERE "player"='craig wood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What was Paul Runyan's score? <|assistant|> SELECT "score" FROM "final_round" WHERE "player"='paul runyan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What country has a To par of e? <|assistant|> SELECT "country" FROM "final_round" WHERE "to_par"='e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "june_draft" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); Question: What position for the player from villa park high school? <|assistant|> SELECT "position" FROM "june_draft" WHERE "school"='villa park high school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of medals by the Czech republic? <|assistant|> SELECT "total" FROM "medal_table" WHERE "nation"='czech republic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals does the country ranked higher than 2 with more than 8 bronze have? <|assistant|> SELECT SUM("gold") FROM "medal_table" WHERE "rank"<2 AND "bronze">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has? <|assistant|> SELECT MAX("rank") FROM "medal_table" WHERE "gold"<3 AND "silver">2 AND "total"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: When is the record 5-4? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='5-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "100_million_to_119_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question: What is the Genre when the Artist is Prince? <|assistant|> SELECT "genre" FROM "100_million_to_119_million_records" WHERE "artist"='prince';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "100_million_to_119_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question: What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States? <|assistant|> SELECT "genre" FROM "100_million_to_119_million_records" WHERE "release_year_of_first_charted_record"=1968 AND "country_of_origin"='united states';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numbering" ( "year" real, "rr_class" text, "rr_nos" text, "builder" text, "builder_nos" text, "gwr_br_nos" text ); Question: Name the builder numbers with RR class of a1 and year less than 1916 <|assistant|> SELECT "builder_nos" FROM "numbering" WHERE "rr_class"='a1' AND "year"<1916;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numbering" ( "year" real, "rr_class" text, "rr_nos" text, "builder" text, "builder_nos" text, "gwr_br_nos" text ); Question: Name the RR numbers of hudswell clarke and years before 1914 <|assistant|> SELECT "rr_nos" FROM "numbering" WHERE "builder"='hudswell clarke' AND "year"<1914;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round_sunday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "hole" text ); Question: What is the To par has the presence of Vijay Singh? <|assistant|> SELECT "to_par" FROM "final_round_sunday" WHERE "player"='vijay singh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "qual" text, "rank" text, "finish" text, "laps" text ); Question: How many laps did Dick Rathmann complete when he ranked 14? <|assistant|> SELECT "laps" FROM "indy_500_results" WHERE "rank"='14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "qual" text, "rank" text, "finish" text, "laps" text ); Question: What was Dick Rathmann's Finish the year he Qualed at 130.928? <|assistant|> SELECT "finish" FROM "indy_500_results" WHERE "qual"='130.928';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the average total produced when the prime mover is 12-251c? <|assistant|> SELECT AVG("total_produced") FROM "4_axle_units" WHERE "prime_mover"='12-251c';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the build date when total produced is 2? <|assistant|> SELECT "build_date" FROM "4_axle_units" WHERE "total_produced"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the smallest total produced with a model of M-420? <|assistant|> SELECT MIN("total_produced") FROM "4_axle_units" WHERE "model"='m-420';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the prime mover for a build date in 1975? <|assistant|> SELECT "prime_mover" FROM "4_axle_units" WHERE "build_date"='1975';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What model has a total produced more than 5 and a prime move of 12-251c? <|assistant|> SELECT "model" FROM "4_axle_units" WHERE "total_produced">5 AND "prime_mover"='12-251c';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the date of the home Detroit game with a decision of Joseph and a record of 27–13–5–2? <|assistant|> SELECT "date" FROM "january" WHERE "decision"='joseph' AND "home"='detroit' AND "record"='27–13–5–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score of the home Dallas game that had a decision of Legace? <|assistant|> SELECT "score" FROM "january" WHERE "decision"='legace' AND "home"='dallas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score of the game that had a record of 26–13–4–2 and a decision of Joseph? <|assistant|> SELECT "score" FROM "january" WHERE "decision"='joseph' AND "record"='26–13–4–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Who was the visiting team when the record was 28–14–6–2? <|assistant|> SELECT "visitor" FROM "january" WHERE "record"='28–14–6–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis? <|assistant|> SELECT MIN("points") FROM "complete_international_formula_3000_resu" WHERE "engine"='mugen v8' AND "chassis"='reynard 91d';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What are the highest points that have a Mugen V8 engine and happened in 1991? <|assistant|> SELECT MAX("points") FROM "complete_international_formula_3000_resu" WHERE "engine"='mugen v8' AND "year"=1991;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many years did John Player Lotus used Cosworth v8? <|assistant|> SELECT SUM("year") FROM "complete_formula_one_results" WHERE "engine"='cosworth v8' AND "entrant"='john player lotus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Who used Eurobrun er189b after 1989? <|assistant|> SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1989 AND "chassis"='eurobrun er189b';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Who used Ford v8 and Jordan 191 after 1990 and got 8 points? <|assistant|> SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1990 AND "engine"='ford v8' AND "points"=8 AND "chassis"='jordan 191';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text ); Question: What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977? <|assistant|> SELECT "leftfielder" FROM "opening_day_starting_lineups" WHERE "second_baseman"='davey lopes' AND "first_baseman"='steve garvey' AND "shortstop"='bill russell' AND "year">1977;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text ); Question: What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver? <|assistant|> SELECT "shortstop" FROM "opening_day_starting_lineups" WHERE "catcher"='johnny roseboro' AND "third_baseman"='jim lefebvre' AND "second_baseman"='nate oliver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text ); Question: Who was the First Baseman when the Shortstop was zoilo versalles? <|assistant|> SELECT "first_baseman" FROM "opening_day_starting_lineups" WHERE "shortstop"='zoilo versalles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text ); Question: What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983? <|assistant|> SELECT "leftfielder" FROM "opening_day_starting_lineups" WHERE "shortstop"='bill russell' AND "second_baseman"='steve sax' AND "year"=1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant? <|assistant|> SELECT MIN("year") FROM "complete_formula_one_results" WHERE "points"<3 AND "entrant"='parmalat forti ford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the average Points when equipe ligier gauloises blondes is the entrant? <|assistant|> SELECT AVG("points") FROM "complete_formula_one_results" WHERE "entrant"='equipe ligier gauloises blondes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the smallest amount of points for parmalat forti ford entrant later than 1995? <|assistant|> SELECT MIN("points") FROM "complete_formula_one_results" WHERE "entrant"='parmalat forti ford' AND "year">1995;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the company that made the chassis for the entrant danka arrows yamaha? <|assistant|> SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='danka arrows yamaha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What college did Ray Graves attend? <|assistant|> SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "name"='ray graves';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What number pick was Bill Athey? <|assistant|> SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "name"='bill athey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is John Cole's overall pick number? <|assistant|> SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='john cole';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text ); Question: What is the date of the locomotive with a Waterford class? <|assistant|> SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='waterford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text ); Question: What is the date of the locomotive named Blacklion Glencar? <|assistant|> SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "names"='blacklion glencar';<|endoftext|>