text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_season_finished_1st_54pts_out_of_19" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421? <|assistant|> SELECT MIN("matches") FROM "1966_season_finished_1st_54pts_out_of_19" WHERE "bonus_pts"=19 AND "total_points">421;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_from_2004" ( "date" real, "category" text, "team" text, "rider_1" text, "rider_2" text ); Question: Which category earlier than 2006 has Bart Brentjens as rider 2? <|assistant|> SELECT "category" FROM "winners_from_2004" WHERE "date"<2006 AND "rider_2"='bart brentjens';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_from_2004" ( "date" real, "category" text, "team" text, "rider_1" text, "rider_2" text ); Question: How many dates does the ladies category correspond to Rothaus-Cube? <|assistant|> SELECT COUNT("date") FROM "winners_from_2004" WHERE "category"='ladies' AND "team"='rothaus-cube';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_from_2004" ( "date" real, "category" text, "team" text, "rider_1" text, "rider_2" text ); Question: Which category has a team of Cannondale Vredestein? <|assistant|> SELECT "category" FROM "winners_from_2004" WHERE "team"='cannondale vredestein';<|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 qual with a rank 9? <|assistant|> SELECT "qual" FROM "indy_500_results" WHERE "rank"='9';<|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 finish in 1956? <|assistant|> SELECT "finish" FROM "indy_500_results" WHERE "year"='1956';<|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 finish with 200 laps and a start of 3? <|assistant|> SELECT "finish" FROM "indy_500_results" WHERE "laps"=200 AND "start"='3';<|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 qual with 200 laps and a rank of 27? <|assistant|> SELECT "qual" FROM "indy_500_results" WHERE "laps"=200 AND "rank"='27';<|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 rank with a 14 finish? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "finish"='14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: When did Deng Xuan first win Women's singles? <|assistant|> SELECT MIN("year") FROM "previous_winners" WHERE "women_s_singles"='deng xuan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: When did Julie Still first win Women's singles? <|assistant|> SELECT MIN("year") FROM "previous_winners" WHERE "women_s_singles"='julie still';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0? <|assistant|> SELECT MIN("cuts_made") FROM "summary" WHERE "tournament"='masters tournament' AND "top_25"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has? <|assistant|> SELECT MAX("wins") FROM "summary" WHERE "cuts_made"=1 AND "top_25"<1 AND "events"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average number of events the Masters tournament, which has more than 0 top-25, has? <|assistant|> SELECT AVG("events") FROM "summary" WHERE "tournament"='masters tournament' AND "top_25">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of top-25 a tournament with less than 2 events has? <|assistant|> SELECT COUNT("top_25") FROM "summary" WHERE "events"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won Women's doubles when Nikhil Kanetkar won Men's singles? <|assistant|> SELECT "women_s_doubles" FROM "previous_winners" WHERE "men_s_singles"='nikhil kanetkar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won Women's doubles when Zen Yaqiong won Women's singles? <|assistant|> SELECT "women_s_doubles" FROM "previous_winners" WHERE "women_s_singles"='zen yaqiong';<|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 was the date of the game that had a loss of Gott (2-7)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='gott (2-7)';<|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: Who was the opponent at the game when the record was 54-58? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "record"='54-58';<|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 was the score of the game when the record was 59-65? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='59-65';<|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: Who was the opponent at the game that had a loss of Caldwell (10-11)? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "loss"='caldwell (10-11)';<|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 opponent had a time of 1:26? <|assistant|> SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1: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, "attendance" text, "record" text ); Question: What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? <|assistant|> SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "record"='18-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? <|assistant|> SELECT "catalogue" FROM "release_history_and_variations" WHERE "region"='uk' AND "format"='vinyl' AND "date"='1986';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: What region has a bronze label and a catalogue of 202 876-270? <|assistant|> SELECT "region" FROM "release_history_and_variations" WHERE "label"='bronze' AND "catalogue"='202 876-270';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which label is from the Germany region? <|assistant|> SELECT "label" FROM "release_history_and_variations" WHERE "region"='germany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: What label has brol 34531 as it's catalogue? <|assistant|> SELECT "label" FROM "release_history_and_variations" WHERE "catalogue"='brol 34531';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which label has UK for its region, is on a CD, and is dated from 1986? <|assistant|> SELECT "label" FROM "release_history_and_variations" WHERE "region"='uk' AND "date"='1986' AND "format"='cd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which catalogue has essential, castle music as it's label? <|assistant|> SELECT "catalogue" FROM "release_history_and_variations" WHERE "label"='essential, castle music';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "120_million_to_199_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's the period of a rock album released in 1973? <|assistant|> SELECT "period_active" FROM "120_million_to_199_million_records" WHERE "release_year_of_first_charted_record"=1973 AND "genre"='rock';<|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: Name the pick number for bill atessis <|assistant|> SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "name"='bill atessis';<|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: Name the total number of overall for defensive tackle <|assistant|> SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "position"='defensive tackle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "divided_in_countries" ( "country" text, "2008_list" real, "2009_list" real, "2010_list" real, "2011_list" real, "2012_list" real ); Question: What is the 2012-list rank of a country with the lowest 2012-list rank out of all the countries with a 2010-list rank better than 13, a 2009-list rank of 0, a 2008-list rank lower than 4? <|assistant|> SELECT MAX("2012_list") FROM "divided_in_countries" WHERE "2010_list"<13 AND "2009_list"=0 AND "2008_list">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which engine has daimler benz ag as an entrant? <|assistant|> SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "entrant"='daimler benz ag';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: In which years was the to par +6? <|assistant|> SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: In 1991, what was the lowest total? <|assistant|> SELECT MIN("total") FROM "made_the_cut" WHERE "year_s_won"='1991';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What are the total lanes that have a rank larger than 22? <|assistant|> SELECT SUM("lane") FROM "heats" WHERE "rank">22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? <|assistant|> SELECT "name" FROM "heats" WHERE "rank">2 AND "lane"=1 AND "nationality"='hong kong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3? <|assistant|> SELECT SUM("rank") FROM "heats" WHERE "nationality"='japan' AND "lane"<7 AND "heat"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was Jim Hoff's sum of losses and a wins smaller than 12? <|assistant|> SELECT SUM("losses") FROM "managers" WHERE "manager"='jim hoff' AND "wins"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was the average of games that were one in 1978 that were smaller than 141? <|assistant|> SELECT AVG("wins") FROM "managers" WHERE "years"='1978' AND "games"<141;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was the sum of Richie Hebner winning games that were smaller 34? <|assistant|> SELECT SUM("games") FROM "managers" WHERE "manager"='richie hebner' AND "wins"<34;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1? <|assistant|> SELECT AVG("wins") FROM "managers" WHERE "games"<3 AND "manager"='george scherger' AND "losses"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: When was the golden slipper race? <|assistant|> SELECT "date" FROM "1994_95_season_as_a_two_year_old" WHERE "race"='golden slipper';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: In which races did the jockey weigh less than 55.5 kg? <|assistant|> SELECT "race" FROM "1994_95_season_as_a_two_year_old" WHERE "weight_kg"<55.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: What was the result of the Todman stakes race at rosehill? <|assistant|> SELECT "result" FROM "1994_95_season_as_a_two_year_old" WHERE "venue"='rosehill' AND "race"='todman stakes';<|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, "money" real ); Question: What Country has Player Ky Laffoon? <|assistant|> SELECT "country" FROM "final_leaderboard" WHERE "player"='ky laffoon';<|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, "money" real ); Question: What Player is from the Country United States and Money ($) of 356? <|assistant|> SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "money"=356;<|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, "money" real ); Question: What Player has a To par of +1 and the Score 75-70-71-73=289? <|assistant|> SELECT "player" FROM "final_leaderboard" WHERE "to_par"='+1' AND "score"='75-70-71-73=289';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_29_12_17" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the outcome for the Rome 2, Italy tournament? <|assistant|> SELECT "outcome" FROM "doubles_finals_29_12_17" WHERE "tournament"='rome 2, italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_29_12_17" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb? <|assistant|> SELECT "outcome" FROM "doubles_finals_29_12_17" WHERE "opponents_in_the_final"='marius călugăru ciprian petre porumb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds have a Total of 11, and a Bronze smaller than 3? <|assistant|> SELECT SUM("gold") FROM "total" WHERE "total"=11 AND "bronze"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? <|assistant|> SELECT SUM("gold") FROM "total" WHERE "bronze"=0 AND "total">1 AND "nation"='chad' AND "silver">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest silver with a Gold of 1, and a Nation of lithuania? <|assistant|> SELECT MIN("silver") FROM "total" WHERE "gold"=1 AND "nation"='lithuania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12? <|assistant|> SELECT COUNT("bronze") FROM "total" WHERE "gold">1 AND "rank"=2 AND "silver"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which Visiting Team is on december 23? <|assistant|> SELECT "visiting_team" FROM "2000" WHERE "date"='december 23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which Host Team has Final Score of 42-23? <|assistant|> SELECT "host_team" FROM "2000" WHERE "final_score"='42-23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: When did Final Score of 31-7 happen? <|assistant|> SELECT "date" FROM "2000" WHERE "final_score"='31-7';<|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 was the score of the Blue Jays game when their record was 75-68 and the attendance was larger than 33,736? <|assistant|> SELECT "score" FROM "game_log" WHERE "attendance">'33,736' AND "record"='75-68';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which Tournament in 2010 also has Grand Slam tournaments in 2011 <|assistant|> SELECT "2010" FROM "singles_performance_timeline" WHERE "2011"='grand slam tournaments';<|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 was the average attendance when the New York Mets were opponents with a record of 51-33? <|assistant|> SELECT AVG("attendance") FROM "game_log" WHERE "opponent"='new york mets' AND "record"='51-33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What visiting team played on October 18? <|assistant|> SELECT "visiting_team" FROM "2001" WHERE "date"='october 18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What visiting team played at 3com park on October 7? <|assistant|> SELECT "visiting_team" FROM "2001" WHERE "stadium"='3com park' AND "date"='october 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which host team won on a final scoreline of 13-10? <|assistant|> SELECT "host_team" FROM "2001" WHERE "final_score"='13-10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: In what stadium did a game result in a final scoreline reading 27-34? <|assistant|> SELECT "stadium" FROM "2001" WHERE "final_score"='27-34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: In the game in which the Jacksonville Jaguars were hosts, what was the name of the visiting team? <|assistant|> SELECT "visiting_team" FROM "2001" WHERE "host_team"='jacksonville jaguars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which visiting team wound up with a final score of 18-40? <|assistant|> SELECT "visiting_team" FROM "2001" WHERE "final_score"='18-40';<|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, "game_site" text, "record" text, "attendance" real ); Question: Name the sum of attendacne for 16 weeks <|assistant|> SELECT SUM("attendance") FROM "schedule" WHERE "week"=16;<|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, "game_site" text, "record" text, "attendance" real ); Question: Name the result for week less than 7 and game sites of los angeles memorial coliseum <|assistant|> SELECT "result" FROM "schedule" WHERE "week"<7 AND "game_site"='los angeles memorial coliseum';<|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, "game_site" text, "record" text, "attendance" real ); Question: Name the result for week 7 <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing_sortable_options" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" text ); Question: How many yards lost by the player with more gained than 51 and average/g of 3.6? <|assistant|> SELECT COUNT("loss") FROM "rushing_sortable_options" WHERE "avg_g"='3.6' AND "gain">51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing_sortable_options" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" text ); Question: What are the gains for the player with average of 26.8 and lost yard fewer than 13? <|assistant|> SELECT SUM("gain") FROM "rushing_sortable_options" WHERE "avg_g"='26.8' AND "loss"<13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: When did Mathieu play against Flavio Cipolla? <|assistant|> SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='flavio cipolla';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which tournament had a final score of 6–3, 6–2? <|assistant|> SELECT "tournament" FROM "singles" WHERE "score_in_the_final"='6–3, 6–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: On which surface did Mathieu play against Antonio Veić? <|assistant|> SELECT "surface" FROM "singles" WHERE "opponent_in_the_final"='antonio veić';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: When did Mathieu play against Antonio Veić? <|assistant|> SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='antonio veić';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: When did Mathieu play against Andrey Golubev? <|assistant|> SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='andrey golubev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text ); Question: What opened with a drop height of 272feet? <|assistant|> SELECT "opened" FROM "locations" WHERE "drop_height"='272feet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text ); Question: What was the speed of 200feet Giant Drop attraction? <|assistant|> SELECT "speed" FROM "locations" WHERE "model"='giant drop' AND "drop_height"='200feet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text ); Question: What park opened in 1999? <|assistant|> SELECT "park" FROM "locations" WHERE "opened"='1999';<|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: Name the record for detroit and decision of denis <|assistant|> SELECT "record" FROM "december" WHERE "home"='detroit' AND "decision"='denis';<|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: Name the average attendance with dallas visitor <|assistant|> SELECT AVG("attendance") FROM "december" WHERE "visitor"='dallas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: How close to par was Tom Kite when he played? <|assistant|> SELECT "to_par" FROM "second_round" WHERE "player"='tom kite';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which of the countries showed a score of 71-72=143? <|assistant|> SELECT "country" FROM "second_round" WHERE "score"='71-72=143';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which country watch Tom Watson at t9 score 72-72=144? <|assistant|> SELECT "country" FROM "second_round" WHERE "place"='t9' AND "score"='72-72=144' AND "player"='tom watson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the final score when the player was an e to par? <|assistant|> SELECT "score" FROM "second_round" WHERE "to_par"='e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What is the name of the team that has 307 attempts? <|assistant|> SELECT "team" FROM "college_statistics" WHERE "attempts"='307';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What is the name of the team that has 1,317 attempts? <|assistant|> SELECT "team" FROM "college_statistics" WHERE "attempts"='1,317';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What year was 2,242 yards achieved? <|assistant|> SELECT "year" FROM "college_statistics" WHERE "yards"='2,242';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: Which team has a 59.8% completion rate? <|assistant|> SELECT "team" FROM "college_statistics" WHERE "completion_pct"='59.8%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text ); Question: Which year has has a Engine of maserati straight-6? <|assistant|> SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text ); Question: What is the Point of Chassis of Lancia d50 in 1954 <|assistant|> SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "chassis"='lancia d50' AND "year"=1954;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on at 8:00 before the 9:00 showing of Chuck? <|assistant|> SELECT "8_00" FROM "tuesday" WHERE "9_00"='chuck';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What show comes on at 9:00 on the channel that shows the Insider at 7:00? <|assistant|> SELECT "9_00" FROM "tuesday" WHERE "7_00"='the insider';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: On the channel with The Biggest loser at 8:00, what's on at 7:30? <|assistant|> SELECT "7_30" FROM "tuesday" WHERE "8_00"='the biggest loser';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What's on at 7:30 before the 9:00 showing of the Tudors? <|assistant|> SELECT "7_30" FROM "tuesday" WHERE "9_00"='the tudors';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: If Gossip Girl is on at 7:30, what shows at 9:00? <|assistant|> SELECT "9_00" FROM "tuesday" WHERE "7_30"='gossip girl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "innings" real, "not_out" real, "high_score" text, "runs" real, "average" real ); Question: What is the match total for a score over 299 and under 412 innings? <|assistant|> SELECT SUM("matches") FROM "best_average_in_a_career" WHERE "high_score"='299' AND "innings"<412;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "innings" real, "not_out" real, "high_score" text, "runs" real, "average" real ); Question: What is the high run total associated with a high score of 385 and under 407 innings? <|assistant|> SELECT MAX("runs") FROM "best_average_in_a_career" WHERE "high_score"='385' AND "innings"<407;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which 2nd leg has a 1st leg of 1-1 and is Team 1 djoliba ac? <|assistant|> SELECT "2nd_leg" FROM "second_round" WHERE "1st_leg"='1-1' AND "team_1"='djoliba ac';<|endoftext|>