text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: Which tyre is on the car driven by Pedro de la Rosa? <|assistant|> SELECT "tyre" FROM "drivers_and_constructors" WHERE "driver"='pedro de la rosa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: Which constructor made the car with a rb1 chassis and which is driven by David Coulthard? <|assistant|> SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='rb1' AND "driver"='david coulthard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: Which constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve? <|assistant|> SELECT "engine" FROM "drivers_and_constructors" WHERE "chassis"='c24' AND "driver"='jacques villeneuve';<|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 is the MHCL-20004 Catalog? <|assistant|> SELECT "region" FROM "release_history" WHERE "catalog"='mhcl-20004';<|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 is the ALCA-272 Catalog? <|assistant|> SELECT "region" FROM "release_history" WHERE "catalog"='alca-272';<|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 label is the ALCA-9197 Catalog? <|assistant|> SELECT "label" FROM "release_history" WHERE "catalog"='alca-9197';<|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 is the MHCL-20004 Catalog? <|assistant|> SELECT "date" FROM "release_history" WHERE "catalog"='mhcl-20004';<|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: On what date was the Ed Remaster CD and TOCT-24365 Catalog released? <|assistant|> SELECT "date" FROM "release_history" WHERE "format"='ed remaster cd' AND "catalog"='toct-24365';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1989" ( "episode_title" text, "villain_s" text, "identity_ies" text, "reason_s" text, "original_airdate" text, "dvd_volume" real ); Question: What identities have more than 5 DVD volumes? <|assistant|> SELECT "identity_ies" FROM "season_2_1989" WHERE "dvd_volume">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1989" ( "episode_title" text, "villain_s" text, "identity_ies" text, "reason_s" text, "original_airdate" text, "dvd_volume" real ); Question: How many DVD volumes was identified by Skippy Johnson? <|assistant|> SELECT "dvd_volume" FROM "season_2_1989" WHERE "identity_ies"='skippy johnson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score when St. Louis was the visiting team? <|assistant|> SELECT "score" FROM "december" WHERE "visitor"='st. louis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the decision when Chicago was the visiting team? <|assistant|> SELECT "decision" FROM "december" WHERE "visitor"='chicago';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score on December 3 when Detroit was the home team and Legace took the decision? <|assistant|> SELECT "score" FROM "december" WHERE "home"='detroit' AND "decision"='legace' AND "date"='december 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the record when Minnesota was the visiting team? <|assistant|> SELECT "record" FROM "december" WHERE "visitor"='minnesota';<|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: On what date was the record with catalog ALCA-275 released? <|assistant|> SELECT "date" FROM "release_history" WHERE "catalog"='alca-275';<|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 label released a record on March 25, 1984? <|assistant|> SELECT "label" FROM "release_history" WHERE "date"='march 25, 1984';<|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 label released a record on December 19, 2001? <|assistant|> SELECT "label" FROM "release_history" WHERE "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 is the catalog of the record released on May 27, 2009? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "date"='may 27, 2009';<|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: On what date was a record from Village Records with catalog VRCL-2205 released? <|assistant|> SELECT "date" FROM "release_history" WHERE "label"='village records' AND "catalog"='vrcl-2205';<|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: On what date was the record with catalog ALCA-275 released? <|assistant|> SELECT "date" FROM "release_history" WHERE "catalog"='alca-275';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "position" text, "party" text, "took_office" real, "up_for_reelection" real ); Question: What was the earliest year that Yvette Alexander took office and was up for reelection after 2016? <|assistant|> SELECT MIN("took_office") FROM "current_members" WHERE "name"='yvette alexander' AND "up_for_reelection">2016;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "position" text, "party" text, "took_office" real, "up_for_reelection" real ); Question: What is the earliest year a Chairman who took office after 2011 is up for reelection? <|assistant|> SELECT MIN("up_for_reelection") FROM "current_members" WHERE "took_office">2011 AND "position"='chairman';<|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 year had less than 36 laps? <|assistant|> SELECT "year" FROM "indy_500_results" WHERE "laps"<36;<|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 most laps with a finish of 10 and qualification of 106.185? <|assistant|> SELECT MAX("laps") FROM "indy_500_results" WHERE "finish"='10' AND "qual"='106.185';<|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 is the most laps with a qualification of 106.185? <|assistant|> SELECT MAX("laps") FROM "indy_500_results" WHERE "qual"='106.185';<|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: In what year were laps less than 64 and the finish at 25? <|assistant|> SELECT "year" FROM "indy_500_results" WHERE "laps"<64 AND "finish"='25';<|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 qualification in 1932? <|assistant|> SELECT "qual" FROM "indy_500_results" WHERE "year"='1932';<|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 start with a rank of 3 in 1936? <|assistant|> SELECT "start" FROM "indy_500_results" WHERE "rank"='3' AND "year"='1936';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which 2nd leg came after a 1st leg of 0-3? <|assistant|> SELECT "2nd_leg" FROM "round_16" WHERE "1st_leg"='0-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: For a Team 1 of Al-Merrikh, what was the aggregate? <|assistant|> SELECT "agg" FROM "round_16" WHERE "team_1"='al-merrikh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Who was the Team 1 for a 2nd leg of 1-4? <|assistant|> SELECT "team_1" FROM "round_16" WHERE "2nd_leg"='1-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: For an aggregate of 1-3, what was the 2nd leg? <|assistant|> SELECT "2nd_leg" FROM "round_16" WHERE "agg"='1-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: For a team 2 of Al-Faisaly, what was the 2nd leg? <|assistant|> SELECT "2nd_leg" FROM "round_16" WHERE "team_2"='al-faisaly';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text ); Question: What years is the private school in upper hutt? <|assistant|> SELECT "years" FROM "upper_hutt_city" WHERE "area"='upper hutt' AND "authority"='private';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text ); Question: What school with a decile of 7 is in upper hutt? <|assistant|> SELECT "name" FROM "upper_hutt_city" WHERE "decile"='7' AND "area"='upper hutt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text ); Question: What authority is the coed school in pinehaven? <|assistant|> SELECT "authority" FROM "upper_hutt_city" WHERE "gender"='coed' AND "area"='pinehaven';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text ); Question: What years does plateau school serve? <|assistant|> SELECT "years" FROM "upper_hutt_city" WHERE "name"='plateau school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "upper_hutt_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text ); Question: Is Upper valley middle school public or private? <|assistant|> SELECT "authority" FROM "upper_hutt_city" WHERE "name"='upper valley middle school';<|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 record on June 13? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='june 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orders" ( "lot_no" real, "diagram" real, "mark" text, "builder" text, "fleet_numbers" text, "notes" text ); Question: Name the most lot number with notes of b4 bogies and diagram of 185 <|assistant|> SELECT MAX("lot_no") FROM "orders" WHERE "notes"='b4 bogies' AND "diagram"=185;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orders" ( "lot_no" real, "diagram" real, "mark" text, "builder" text, "fleet_numbers" text, "notes" text ); Question: Name the fleet numbers for diagram of 186 and lot number of 30798 <|assistant|> SELECT "fleet_numbers" FROM "orders" WHERE "diagram"=186 AND "lot_no"=30798;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lines" ( "direction" text, "name" text, "japanese" text, "terminals" text, "length_km" real ); Question: What line is 24.7 km and head towards Toyohashi East? <|assistant|> SELECT "name" FROM "lines" WHERE "direction"='toyohashi east' AND "length_km"=24.7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: What is the record on November 18? <|assistant|> SELECT "record" FROM "schedule" WHERE "date"='november 18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: What is the record when attendance is more than 19,658 and Los Angeles Rams are the visiting team? <|assistant|> SELECT "record" FROM "schedule" WHERE "attendance">'19,658' AND "visitor"='los angeles rams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: What was the average attendance when Chicago Bears were the home team? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "home"='chicago bears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: What is the score when the record is 5-4-1? <|assistant|> SELECT "score" FROM "schedule" WHERE "record"='5-4-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: What is the largest number in attendance when the record is 1-1-0? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "record"='1-1-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the GDP of the nation with 56,210,000 people? <|assistant|> SELECT "gdp_per_capita_us" FROM "1973_enlargement" WHERE "population"='56,210,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the area of the nation with GDP per capita (US$) of 11,929? <|assistant|> SELECT "area_km" FROM "1973_enlargement" WHERE "gdp_per_capita_us"='11,929';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the population of the nation that has a GDP per capita (US$) of 11,929? <|assistant|> SELECT "population" FROM "1973_enlargement" WHERE "gdp_per_capita_us"='11,929';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the Population of the nation that has an Area (km²) of 70,273? <|assistant|> SELECT "population" FROM "1973_enlargement" WHERE "area_km"='70,273';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); Question: What is the Population of the nation that has a Member countries consisting of existing members (1973)? <|assistant|> SELECT "population" FROM "1973_enlargement" WHERE "member_countries"='existing members (1973)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_broadcast_networks" ( "television_network" text, "founded" text, "pct_of_venezuelan_households_reached" text, "num_of_households_viewable" text, "type_of_network" text, "num_of_full_power_affiliates" text, "num_of_low_power_class_a_affiliates_transmitters" text ); Question: What television network, founded in 2002, has a community type of network? <|assistant|> SELECT "television_network" FROM "table_of_broadcast_networks" WHERE "type_of_network"='community' AND "founded"='2002';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: At what stadium did the Green Bay Packers play an away game? <|assistant|> SELECT "stadium" FROM "1992" WHERE "visiting_team"='green bay packers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: At what stadium was the final score 31-28? <|assistant|> SELECT "stadium" FROM "1992" WHERE "final_score"='31-28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which team hosted the Kansas City Chiefs? <|assistant|> SELECT "host_team" FROM "1992" WHERE "visiting_team"='kansas city chiefs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What team hosted at Tampa Stadium? <|assistant|> SELECT "host_team" FROM "1992" WHERE "stadium"='tampa stadium';<|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, "record" text ); Question: With a record of 43-26, what was the score that game? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='43-26';<|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, "record" text ); Question: On June 8, what's the loss when the Blue Jays played the Tigers? <|assistant|> SELECT "loss" FROM "game_log" WHERE "opponent"='tigers' AND "date"='june 8';<|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, "record" text ); Question: What date was the record 38-22? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='38-22';<|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, "record" text ); Question: The game that had a record of 39-25, what was the score? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='39-25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "epd_tour_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: Which runner-up has a 10 strokes margin of victory? <|assistant|> SELECT "runner_up" FROM "epd_tour_6" WHERE "margin_of_victory"='10 strokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which of the events only lasted no more than 0:55? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='0:55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which event only lasted for 3 rounds against Fernando Terere? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "opponent"='fernando terere';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: What is the Primary Sponsor for the team owned by Randy Humphrey? <|assistant|> SELECT "primary_sponsor_s" FROM "part_time_teams" WHERE "owner_s"='randy humphrey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: Who is the Driver on Bob Keselowski's team? <|assistant|> SELECT "driver_s" FROM "part_time_teams" WHERE "owner_s"='bob keselowski';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: Walter Giles is Crew Chief of what team? <|assistant|> SELECT "team" FROM "part_time_teams" WHERE "crew_chief"='walter giles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia" ( "rank" real, "stadium" text, "capacity" real, "club" text, "region" text ); Question: What club does the stadium stc krymteplitsia belong to? <|assistant|> SELECT "club" FROM "stadia" WHERE "stadium"='stc krymteplitsia';<|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 Tony Bettenhausen's qualifying time in 1947? <|assistant|> SELECT "qual" FROM "indy_500_results" WHERE "year"='1947';<|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: Which year did Tony Bettenhausen complete more than 200 laps? <|assistant|> SELECT "year" FROM "indy_500_results" WHERE "laps">200;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the value in 2006 when 2003 was not held and 2012 was A? <|assistant|> SELECT "2006" FROM "singles_performance_timeline" WHERE "2003"='not held' AND "2012"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the 2008 value when 2012 was Grand Slam Tournaments? <|assistant|> SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A? <|assistant|> SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='1r' AND "2010"='a' AND "2005"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the value in 2003 when 2006 was WTA Premier Mandatory Tournaments? <|assistant|> SELECT "2003" FROM "singles_performance_timeline" WHERE "2006"='wta premier mandatory tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the value in 2009 when 2005 was A for the Australian Open? <|assistant|> SELECT "2009" FROM "singles_performance_timeline" WHERE "2005"='a' AND "tournament"='australian open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the value in 2012 when 2002 was Q1 and 2010 was 1R? <|assistant|> SELECT "2012" FROM "singles_performance_timeline" WHERE "2002"='q1' AND "2010"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "name" text, "type" text, "elevation" text, "usgs_map" text, "gnis_id" real ); Question: What type has a GNIS ID of 1139805 <|assistant|> SELECT "type" FROM "see_also" WHERE "gnis_id"=1139805;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "name" text, "type" text, "elevation" text, "usgs_map" text, "gnis_id" real ); Question: Which name has a USGS Map of clear lake? <|assistant|> SELECT "name" FROM "see_also" WHERE "usgs_map"='clear lake';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "name" text, "country" text, "status" text, "transfer_window" text, "transfer_fee" text, "source" text ); Question: What is the status of Norris? <|assistant|> SELECT "status" FROM "out" WHERE "name"='norris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "name" text, "country" text, "status" text, "transfer_window" text, "transfer_fee" text, "source" text ); Question: What is the source for Laird? <|assistant|> SELECT "source" FROM "out" WHERE "name"='laird';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "great_northern_railway" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "date_made" text, "1958_ci" text, "1958_uta" text, "date_withdrawn" text ); Question: What 1958 CIE is class s? <|assistant|> SELECT "1958_ci" FROM "great_northern_railway" WHERE "class"='s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "great_northern_railway" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "date_made" text, "1958_ci" text, "1958_uta" text, "date_withdrawn" text ); Question: What day withdrawn is associated with fleet numbers of 12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129? <|assistant|> SELECT "date_withdrawn" FROM "great_northern_railway" WHERE "fleet_numbers"='12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "earnings" real ); Question: Which player has a score of 74-74-73-70=291? <|assistant|> SELECT "player" FROM "final_leaderboard" WHERE "score"='74-74-73-70=291';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "earnings" real ); Question: What is the average earnings of a United States player who had a score of 72-68-74-72=286? <|assistant|> SELECT AVG("earnings") FROM "final_leaderboard" WHERE "country"='united states' AND "score"='72-68-74-72=286';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the attendance at the game that had a loss of Mercker (3-1)? <|assistant|> SELECT "attendance" FROM "september" WHERE "loss"='mercker (3-1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the attendance at the game that had a loss of Ayala (6-12)? <|assistant|> SELECT "attendance" FROM "september" WHERE "loss"='ayala (6-12)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the loss of the game that had a score of 9-7? <|assistant|> SELECT "loss" FROM "september" WHERE "score"='9-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the loss of the game attended by 14,691? <|assistant|> SELECT "loss" FROM "september" WHERE "attendance"='14,691';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the loss of the game attended by 29,704? <|assistant|> SELECT "loss" FROM "september" WHERE "attendance"='29,704';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text ); Question: What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012? <|assistant|> SELECT "winner" FROM "game_results" WHERE "location"='clemson, sc' AND "date"='november 17, 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text ); Question: What is the Location, when the Score is 38-29? <|assistant|> SELECT "location" FROM "game_results" WHERE "score"='38-29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text ); Question: What is the Location, when the Score is 35-31? <|assistant|> SELECT "location" FROM "game_results" WHERE "score"='35-31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "date" text, "winner" text, "score" text, "location" text, "series" text ); Question: What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006? <|assistant|> SELECT "score" FROM "game_results" WHERE "location"='clemson, sc' AND "winner"='clemson' AND "date"='november 11, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: What year did finish 1st in LMP1 class? <|assistant|> SELECT AVG("year") FROM "complete_24_hours_of_le_mans_results" WHERE "class"='lmp1' AND "class_pos"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the game result on November 16, 1969? <|assistant|> SELECT "result" FROM "regular_season" WHERE "date"='november 16, 1969';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "trofeo_fast_team" text ); Question: What is the general classification of stage 3 <|assistant|> SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "trofeo_fast_team" text ); Question: How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have? <|assistant|> SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='lech piasecki' AND "general_classification"='stephen roche' AND "winner"='carrera jeans-vagabond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What venue was the 11 September 2012 game? <|assistant|> SELECT "venue" FROM "international_goals" WHERE "date"='11 september 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kaikoura_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the lowest Decile for a school with a roll smaller than 3? <|assistant|> SELECT MIN("decile") FROM "kaikoura_district" WHERE "roll"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kaikoura_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the Gender of students at a school with a Decile of 5 and a Roll of 90? <|assistant|> SELECT "gender" FROM "kaikoura_district" WHERE "decile"=5 AND "roll"=90;<|endoftext|>