text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What is the college hall of fame of the player who plays fullback? <|assistant|> SELECT "college_hall_of_fame" FROM "ncaa_consensus_all_american_team" WHERE "position"='fullback';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What is the position of the player from Dartmouth Ohio State? <|assistant|> SELECT "position" FROM "ncaa_consensus_all_american_team" WHERE "school"='dartmouth ohio state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" real, "original_title" text, "english_title" text, "director" text, "result" text ); Question: What is the English title of the film Directed by Jayme Monjardim? <|assistant|> SELECT "english_title" FROM "submissions" WHERE "director"='jayme monjardim';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" real, "original_title" text, "english_title" text, "director" text, "result" text ); Question: What was the Director with a Ceremony of 2001? <|assistant|> SELECT "director" FROM "submissions" WHERE "year_ceremony"=2001;<|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, "save" text ); Question: When have a Save of ||20,599||32-37? <|assistant|> SELECT "date" FROM "game_log" WHERE "save"='||20,599||32-37';<|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, "save" text ); Question: Which Save is on June 15? <|assistant|> SELECT "save" FROM "game_log" WHERE "date"='june 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, "save" text ); Question: Which Score has a Opponent of Boston red sox and a Save of sager? <|assistant|> SELECT "score" FROM "game_log" WHERE "opponent"='boston red sox' AND "save"='sager';<|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, "save" text ); Question: When has an Opponent of at Seattle mariners? <|assistant|> SELECT "date" FROM "game_log" WHERE "opponent"='at seattle mariners';<|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, "save" text ); Question: When is the Save of Ayala and a Loss of Olivares <|assistant|> SELECT "date" FROM "game_log" WHERE "save"='ayala' AND "loss"='olivares';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_champion_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Which Tournament has a Partner of martΓ­n rodrΓ­guez? <|assistant|> SELECT "tournament" FROM "doubles_champion_5" WHERE "partner"='martΓ­n rodrΓ­guez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_89_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many Touchdowns have Field goals larger than 0? <|assistant|> SELECT COUNT("touchdowns") FROM "michigan_89_beloit_0" WHERE "field_goals">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_89_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Extra points is the highest one that has a Player of herrnstein, and Points smaller than 30? <|assistant|> SELECT MAX("extra_points") FROM "michigan_89_beloit_0" WHERE "player"='herrnstein' AND "points"<30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_89_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5? <|assistant|> SELECT MIN("touchdowns") FROM "michigan_89_beloit_0" WHERE "extra_points"<14 AND "player"='white' AND "points"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_89_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0? <|assistant|> SELECT MIN("touchdowns") FROM "michigan_89_beloit_0" WHERE "points"=5 AND "field_goals">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_89_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Points is the lowest one that has Touchdowns smaller than 1? <|assistant|> SELECT MAX("points") FROM "michigan_89_beloit_0" WHERE "touchdowns"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What is the Location of the Bowl in 2006? <|assistant|> SELECT "location" FROM "bowl_games" WHERE "season"=2006;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: At what Location was the Attendance 70,283? <|assistant|> SELECT "location" FROM "bowl_games" WHERE "attendance"='70,283';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What was the Bowl game in San Francisco, CA after 1968? <|assistant|> SELECT "bowl_game" FROM "bowl_games" WHERE "season">1968 AND "location"='san francisco, ca';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_participants" ( "team" text, "constructor" text, "motorcycle" text, "rider" text, "rounds" text ); Question: What team has a yamaha constructor with all rounds? <|assistant|> SELECT "team" FROM "moto_gp_participants" WHERE "rounds"='all' AND "constructor"='yamaha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_participants" ( "team" text, "constructor" text, "motorcycle" text, "rider" text, "rounds" text ); Question: What rounds did rider Mika Kallio with a Ducati constructor have? <|assistant|> SELECT "rounds" FROM "moto_gp_participants" WHERE "constructor"='ducati' AND "rider"='mika kallio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_participants" ( "team" text, "constructor" text, "motorcycle" text, "rider" text, "rounds" text ); Question: Who is the rider of Scot Racing team with a Honda constructor and rounds 6-17? <|assistant|> SELECT "rider" FROM "moto_gp_participants" WHERE "constructor"='honda' AND "team"='scot racing team' AND "rounds"='6-17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_participants" ( "team" text, "constructor" text, "motorcycle" text, "rider" text, "rounds" text ); Question: What is the rounds of rider Mika Kallio 1 of the Ducati Marlboro team? <|assistant|> SELECT "rounds" FROM "moto_gp_participants" WHERE "team"='ducati marlboro team' AND "rider"='mika kallio 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the average week that there was a game with less than 18,517 fans attending and occurred on November 21, 1954? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "attendance"<'18,517' AND "date"='november 21, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the highest week that had a game against the Pittsburgh Steelers with 22,597 fans in attendance? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "attendance"<'22,597' AND "opponent"='pittsburgh steelers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who was the opponent for the game taht was before week 5 on October 10, 1954? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"<5 AND "date"='october 10, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the average attendance for the game that was after week 4 and on November 14, 1954? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "week">4 AND "date"='november 14, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: After December 19, what is the Game number with a Record of 21–4–7? <|assistant|> SELECT COUNT("game") FROM "regular_season" WHERE "record"='21–4–7' AND "december">19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What were the Points in the game with a Score of 2–7? <|assistant|> SELECT SUM("points") FROM "regular_season" WHERE "score"='2–7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the lowest bronze with a 6 rank, smaller than 5 gold, and a total of more than 1? <|assistant|> SELECT MIN("bronze") FROM "women" WHERE "gold"<5 AND "rank"='6' AND "total">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the Bronze cumulative number for less than 0 gold? <|assistant|> SELECT SUM("bronze") FROM "women" WHERE "gold"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average Lost has an Against larger than 19, and a Drawn smaller than 1? <|assistant|> SELECT AVG("lost") FROM "torneio_rio_s_o_paulo" WHERE "against">19 AND "drawn"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average Against has Drawn of 3, and Points larger than 9, and a Team of portuguesa? <|assistant|> SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "drawn"=3 AND "points">9 AND "team"='portuguesa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average Against has Points of 6, and a Played smaller than 9? <|assistant|> SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "points"=6 AND "played"<9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average Points have a Position of 7, and a Lost smaller than 4? <|assistant|> SELECT AVG("points") FROM "torneio_rio_s_o_paulo" WHERE "position"=7 AND "lost"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average Points have a Lost larger than 2, and Drawn larger than 2, and a Difference of 0? <|assistant|> SELECT AVG("points") FROM "torneio_rio_s_o_paulo" WHERE "lost">2 AND "drawn">2 AND "difference"='0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_119_michigan_agricultural_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis redden? <|assistant|> SELECT AVG("touchdowns") FROM "michigan_119_michigan_agricultural_0" WHERE "extra_points"=0 AND "points">5 AND "player"='curtis redden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_119_michigan_agricultural_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5? <|assistant|> SELECT SUM("extra_points") FROM "michigan_119_michigan_agricultural_0" WHERE "touchdowns"=1 AND "player"='ross kidston' AND "points"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_119_michigan_agricultural_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2? <|assistant|> SELECT MIN("points") FROM "michigan_119_michigan_agricultural_0" WHERE "extra_points"=0 AND "player"='curtis redden' AND "touchdowns"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_119_michigan_agricultural_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5? <|assistant|> SELECT MIN("extra_points") FROM "michigan_119_michigan_agricultural_0" WHERE "player"='ross kidston' AND "points"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_119_michigan_agricultural_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Points have Touchdowns of 1, and a Field goals smaller than 0? <|assistant|> SELECT AVG("points") FROM "michigan_119_michigan_agricultural_0" WHERE "touchdowns"=1 AND "field_goals"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_movement" ( "poll" text, "wk_1" text, "wk_2" text, "wk_3" text, "wk_4" text, "wk_5" text, "wk_6" text, "wk_7" text, "wk_8" real, "wk_9" real, "wk_10" real, "wk_11" real, "wk_13" real, "wk_14" real ); Question: Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8? <|assistant|> SELECT "poll" FROM "ranking_movement" WHERE "wk_10">2 AND "wk_2"='12' AND "wk_13"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_movement" ( "poll" text, "wk_1" text, "wk_2" text, "wk_3" text, "wk_4" text, "wk_5" text, "wk_6" text, "wk_7" text, "wk_8" real, "wk_9" real, "wk_10" real, "wk_11" real, "wk_13" real, "wk_14" real ); Question: What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2? <|assistant|> SELECT MAX("wk_9") FROM "ranking_movement" WHERE "wk_6"='7' AND "wk_10">2 AND "wk_7"='5' AND "wk_11"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "week_2_sept_7" text, "week_3_sept_14" text, "week_4_sept_21" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_12_nov_16" text, "week_14_nov_30" text, "week_15_dec_7" text, "week_16_final_jan_9" text ); Question: What was the week 5 opponent for the year with a week 10 opponent of Maryland (6-2)? <|assistant|> SELECT "week_5_sept_28" FROM "ap_poll" WHERE "week_10_nov_2"='maryland (6-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "week_2_sept_7" text, "week_3_sept_14" text, "week_4_sept_21" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_12_nov_16" text, "week_14_nov_30" text, "week_15_dec_7" text, "week_16_final_jan_9" text ); Question: What was the week 14 opponent for the year with a week 10 opponent of Michigan State (8-2)? <|assistant|> SELECT "week_14_nov_30" FROM "ap_poll" WHERE "week_10_nov_2"='michigan state (8-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "week_2_sept_7" text, "week_3_sept_14" text, "week_4_sept_21" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_12_nov_16" text, "week_14_nov_30" text, "week_15_dec_7" text, "week_16_final_jan_9" text ); Question: What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)? <|assistant|> SELECT "week_4_sept_21" FROM "ap_poll" WHERE "week_10_nov_2"='michigan state (8-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "week_2_sept_7" text, "week_3_sept_14" text, "week_4_sept_21" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_12_nov_16" text, "week_14_nov_30" text, "week_15_dec_7" text, "week_16_final_jan_9" text ); Question: What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)? <|assistant|> SELECT "week_12_nov_16" FROM "ap_poll" WHERE "week_3_sept_14"='south florida (3-0)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "week_2_sept_7" text, "week_3_sept_14" text, "week_4_sept_21" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_12_nov_16" text, "week_14_nov_30" text, "week_15_dec_7" text, "week_16_final_jan_9" text ); Question: What was the week 7 opponent for the year that had a week 12 opponent of Oregon State (7-3)? <|assistant|> SELECT "week_7_oct_12" FROM "ap_poll" WHERE "week_12_nov_16"='oregon state (7-3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "week_2_sept_7" text, "week_3_sept_14" text, "week_4_sept_21" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_12_nov_16" text, "week_14_nov_30" text, "week_15_dec_7" text, "week_16_final_jan_9" text ); Question: What was the week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)? <|assistant|> SELECT "week_3_sept_14" FROM "ap_poll" WHERE "week_7_oct_12"='georgia (5-1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Name the women's singles for 2012 <|assistant|> SELECT "women_s_singles" FROM "previous_winners" WHERE "year"='2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Name the year for angga pratama ryan agung saputra <|assistant|> SELECT "year" FROM "previous_winners" WHERE "men_s_doubles"='angga pratama ryan agung saputra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Name the men's doubles for anneke feinya agustin nitya krishinda maheswari <|assistant|> SELECT "men_s_doubles" FROM "previous_winners" WHERE "women_s_doubles"='anneke feinya agustin nitya krishinda maheswari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Name the men's doubles for 2010 <|assistant|> SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"='2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "preseason" text, "week_1_aug_26" text, "week_2_sept_2" text, "week_3_sept_8" text, "week_4_sept_15" text, "week_5_sept_22" text, "week_6_sept_29" text, "week_7_oct_6" text, "week_8_oct_13" text, "week_9_oct_20" text, "week_10_oct_27" text, "week_11_nov_3" text, "week_12_nov_10" text, "week_13_nov_17" text, "week_14_nov_24" text, "week_15_dec_1" text, "week_16_dec_8" text, "week_17_final_jan_4" text ); Question: What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)? <|assistant|> SELECT "week_14_nov_24" FROM "ap_poll" WHERE "week_11_nov_3"='usc (6-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "preseason" text, "week_1_aug_26" text, "week_2_sept_2" text, "week_3_sept_8" text, "week_4_sept_15" text, "week_5_sept_22" text, "week_6_sept_29" text, "week_7_oct_6" text, "week_8_oct_13" text, "week_9_oct_20" text, "week_10_oct_27" text, "week_11_nov_3" text, "week_12_nov_10" text, "week_13_nov_17" text, "week_14_nov_24" text, "week_15_dec_1" text, "week_16_dec_8" text, "week_17_final_jan_4" text ); Question: What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)? <|assistant|> SELECT "week_9_oct_20" FROM "ap_poll" WHERE "week_17_final_jan_4"='michigan (10-3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "preseason" text, "week_1_aug_26" text, "week_2_sept_2" text, "week_3_sept_8" text, "week_4_sept_15" text, "week_5_sept_22" text, "week_6_sept_29" text, "week_7_oct_6" text, "week_8_oct_13" text, "week_9_oct_20" text, "week_10_oct_27" text, "week_11_nov_3" text, "week_12_nov_10" text, "week_13_nov_17" text, "week_14_nov_24" text, "week_15_dec_1" text, "week_16_dec_8" text, "week_17_final_jan_4" text ); Question: What is listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)? <|assistant|> SELECT "week_1_aug_26" FROM "ap_poll" WHERE "week_7_oct_6"='usc (3-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ap_poll" ( "preseason" text, "week_1_aug_26" text, "week_2_sept_2" text, "week_3_sept_8" text, "week_4_sept_15" text, "week_5_sept_22" text, "week_6_sept_29" text, "week_7_oct_6" text, "week_8_oct_13" text, "week_9_oct_20" text, "week_10_oct_27" text, "week_11_nov_3" text, "week_12_nov_10" text, "week_13_nov_17" text, "week_14_nov_24" text, "week_15_dec_1" text, "week_16_dec_8" text, "week_17_final_jan_4" text ); Question: What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)? <|assistant|> SELECT "week_3_sept_8" FROM "ap_poll" WHERE "week_2_sept_2"='florida state (2-0) (4)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: How much December has a Score of 5–2, and a Game smaller than 27? <|assistant|> SELECT COUNT("december") FROM "regular_season" WHERE "score"='5–2' AND "game"<27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has an Opponent of @ pittsburgh penguins? <|assistant|> SELECT MAX("game") FROM "regular_season" WHERE "opponent"='@ pittsburgh penguins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which December has a Record of 21–7–2, and a Game larger than 30? <|assistant|> SELECT MAX("december") FROM "regular_season" WHERE "record"='21–7–2' AND "game">30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which December has Points of 38, and a Record of 18–6–2? <|assistant|> SELECT AVG("december") FROM "regular_season" WHERE "points"=38 AND "record"='18–6–2';<|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 is the Score that has a Result of 2–1 on 5 july 2007? <|assistant|> SELECT "score" FROM "international_goals" WHERE "result"='2–1' AND "date"='5 july 2007';<|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: Which Competition has a Venue of hong kong? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "venue"='hong kong';<|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: When is the Competition of friendly match with a Result of 2–1? <|assistant|> SELECT "date" FROM "international_goals" WHERE "competition"='friendly match' AND "result"='2–1';<|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: Which Venue has a Result of 2–0? <|assistant|> SELECT "venue" FROM "international_goals" WHERE "result"='2–0';<|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 is the Score of 2007 afc asian cup qualification with a Result of 8–0? <|assistant|> SELECT "score" FROM "international_goals" WHERE "competition"='2007 afc asian cup qualification' AND "result"='8–0';<|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: Which Competition has a Result of 3–1? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "result"='3–1';<|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 Indians' record during the game that had 31,467 in attendance? <|assistant|> SELECT "record" FROM "game_log" WHERE "attendance"='31,467';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: what year is 4:00 long <|assistant|> SELECT COUNT("year") FROM "official_versions" WHERE "length"='4:00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What round on average was a defensive tackle selected? <|assistant|> SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "position"='defensive tackle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points_system" ( "distance" text, "10th" real, "11th" real, "12th" real, "13th" real, "14th" real, "15th" real, "16th" real, "17th" real, "18th" real, "19th" real, "20th" real, "21st" real, "22nd" real, "23rd" real, "24th" real, "25th" real, "26th" real, "27th" real, "28th" real, "29th" real, "30th" real, "31st" real, "32nd" real ); Question: 11th of 26, and a 17th larger than 16 has what highest 30th? <|assistant|> SELECT MAX("30th") FROM "points_system" WHERE "11th"=26 AND "17th">16;<|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 lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze? <|assistant|> SELECT MIN("total") FROM "medal_table" WHERE "silver"<1 AND "rank">5 AND "bronze">1;<|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: Who ha the gold and 1 bronze, and more than 0 silver? <|assistant|> SELECT "gold" FROM "medal_table" WHERE "bronze"=1 AND "silver">0;<|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: Who has a total of the Bronze less than 4, gold more than 0, and no silver? <|assistant|> SELECT SUM("bronze") FROM "medal_table" WHERE "total"<4 AND "gold">0 AND "silver"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What's the Points average with a Lost of 21, and Position of 22? <|assistant|> SELECT AVG("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost"=21 AND "position"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What's the total Lost that has a Played that's larger than 42? <|assistant|> SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "played">42;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" ( "jyutping" text, "character" text, "portuguese" text, "relative_value" text, "metric_value" text, "imperial_value" text ); Question: what's the relative value that contains a jyutping of daam3? <|assistant|> SELECT "relative_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='daam3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" ( "jyutping" text, "character" text, "portuguese" text, "relative_value" text, "metric_value" text, "imperial_value" text ); Question: What metric value has a jyutping of lei4? <|assistant|> SELECT "metric_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='lei4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" ( "jyutping" text, "character" text, "portuguese" text, "relative_value" text, "metric_value" text, "imperial_value" text ); Question: what's the imperial that contains a jyutping of cin4? <|assistant|> SELECT "imperial_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='cin4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing_record" ( "result" text, "record" text, "opponent" text, "rd_time" text, "date" text, "location" text ); Question: What was the location that led to a record of 9-0-0? <|assistant|> SELECT "location" FROM "boxing_record" WHERE "record"='9-0-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing_record" ( "result" text, "record" text, "opponent" text, "rd_time" text, "date" text, "location" text ); Question: What was the record after the bout against Nikki Eplion, which resulted in a win in round 3? <|assistant|> SELECT "record" FROM "boxing_record" WHERE "result"='win' AND "rd_time"='3' AND "opponent"='nikki eplion';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest number of bronze medals with less than 2 silver medals and more than 1 medal in total for Uzbekistan? <|assistant|> SELECT MIN("bronze") FROM "medal_table" WHERE "silver"<2 AND "total">1 AND "nation"='uzbekistan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text ); Question: What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414? <|assistant|> SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=11 AND "overall"<414 AND "position"='offensive tackle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text ); Question: What is the highest round with a pick# of 9, overll less than 468, and position of defensive back? <|assistant|> SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=9 AND "position"='defensive back' AND "overall"<468;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text ); Question: What is the highest round with a guard position and an overall greater than 71? <|assistant|> SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "overall">71;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text ); Question: Who has an overall greater than 414 with a pick# bigger than 9? <|assistant|> SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall">414 AND "pick_num">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "islands" ( "island" text, "gaelic_name" text, "location" text, "area_ha" real, "population" real, "last_inhabited" text, "height_m" real ); Question: What is the Gaelic name for an area less than 127 in Kintyre? <|assistant|> SELECT "gaelic_name" FROM "islands" WHERE "area_ha"<127 AND "location"='kintyre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_35_23_12" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the score on 7 february 2008? <|assistant|> SELECT "score" FROM "doubles_35_23_12" WHERE "date"='7 february 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_35_23_12" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the outcome on 13 may 2007? <|assistant|> SELECT "outcome" FROM "doubles_35_23_12" WHERE "date"='13 may 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_35_23_12" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the score on 3 may 2009? <|assistant|> SELECT "score" FROM "doubles_35_23_12" WHERE "date"='3 may 2009';<|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: Name the score for venue of jalan besar, singapore <|assistant|> SELECT "score" FROM "international_goals" WHERE "venue"='jalan besar, singapore';<|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: Name the score for 2 june 2008 <|assistant|> SELECT "score" FROM "international_goals" WHERE "date"='2 june 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Opponent has a Game of 63? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "game"=63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: which Record has a Score of 1–4? <|assistant|> SELECT "record" FROM "regular_season" WHERE "score"='1–4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7? <|assistant|> SELECT "record" FROM "regular_season" WHERE "points"<62 AND "february">16 AND "score"='8–7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); Question: What is the total number of Issues has a End month of oct-80? <|assistant|> SELECT COUNT("number_of_issues") FROM "other_bibliographic_details" WHERE "end_month"='oct-80';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); Question: What is the Spine that has fantastic stories science fiction & fantasy with and end month in aug-72? <|assistant|> SELECT "spine" FROM "other_bibliographic_details" WHERE "indicia"='fantastic' AND "cover"='fantastic stories science fiction & fantasy' AND "end_month"='aug-72';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); Question: Which Indicia has anEnd month in feb-75? <|assistant|> SELECT "indicia" FROM "other_bibliographic_details" WHERE "end_month"='feb-75';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station" text, "city_of_license" text, "channels_tv_rf" text, "first_air_date" text, "haat" text, "facility_id" real, "public_license_information" text ); Question: Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf) <|assistant|> SELECT "haat" FROM "stations" WHERE "channels_tv_rf"='31 (psip) 44 (uhf)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station" text, "city_of_license" text, "channels_tv_rf" text, "first_air_date" text, "haat" text, "facility_id" real, "public_license_information" text ); Question: Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf ) <|assistant|> SELECT "city_of_license" FROM "stations" WHERE "channels_tv_rf"='67 ( psip ) 29 ( uhf )';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station" text, "city_of_license" text, "channels_tv_rf" text, "first_air_date" text, "haat" text, "facility_id" real, "public_license_information" text ); Question: Which Station has hagerstown? <|assistant|> SELECT "station" FROM "stations" WHERE "city_of_license"='hagerstown';<|endoftext|>