text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is Result, when Competition is 2010 FIFA World Cup Qualification, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is Venue, when Competition is 2010 FIFA World Cup Qualification, w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is Competition, when Date is 30 December 2005? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the Place when the score is less than 71, and Country is zimbabwe? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the lowest Score when the Country is canada? <|assistant|> SELECT MIN("score") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the Score when the Player is toru taniguchi? <|assistant|> SELECT "score" FROM "firs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: What is the Game number when the Rangers have a Record of 25-24-11? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: What is the Score of the game on March 18? <|assistant|> SELECT "score" FROM "schedu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is the qual 2 of team rocketsports racing, which has the best of 1:10.949? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Which team has a 1:10.998 best? <|assistant|> SELECT "team" FROM "qualifying_results" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is the name of the person with a 1:10.771 qual 2? <|assistant|> SELECT "name" FROM "q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is the qual 2 with a 1:10.949 best? <|assistant|> SELECT "qual_2" FROM "qualifying_re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is the qual 2 of team Forsythe racing, which has a 1:09.515 best? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is the qual 1 with a 1:09.567 best? <|assistant|> SELECT "qual_1" FROM "qualifying_re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_2011_season" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real ); Question: What were highest points received from someone using a zabel-wsp with a...
<|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's the lowest attendance recorded for week 15? <|assistant|> SELECT MIN("attendance") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: When Marlene was nominated for the Olivier Award, what was the result? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: What was the result for the Bafta Tv award? <|assistant|> SELECT "result" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: What is the pick of Texas-San Antonio? <|assistant|> SELECT AVG("pick") FROM "draft_pick...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: Who is the player that has a round greater than 2 and a pick bigger than 83? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: What's the nationality of Louisiana Tech? <|assistant|> SELECT "nationality" FROM "draft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: What number pick is Ray Hall? <|assistant|> SELECT "pick" FROM "draft_picks" WHERE "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: What nationality has a pick greater than 129? <|assistant|> SELECT "nationality" FROM "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: what is the grid when the rider is mika kallio? <|assistant|> SELECT MAX("grid") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: what is the time when laps is less than 21, manufacturer is aprilia, grid is less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: what is the time when the laps is less than 21 and the grid is more than 17? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text ); Question: Who was partnering when nueza silv...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text ); Question: What was the round when nueza silv...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text ); Question: Who were the opponents during the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What is the Tries against for the t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What team has a 118 Point for? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What team has 102 Points against? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What is the Points for number of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What team has +119 Points diff? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "class_h_4_6_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What manu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "class_h_4_6_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What's th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "class_h_4_6_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "class_h_4_6_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What's th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_women" ( "rank" text, "time" text, "athlete" text, "nation" text, "date" text, "race" text ); Question: What is the name of the race in Kenya with a time of 30:27? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_women" ( "rank" text, "time" text, "athlete" text, "nation" text, "date" text, "race" text ); Question: What is the name of the athlete with a time of 30:48? <|assistant|> SELECT "athl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_women" ( "rank" text, "time" text, "athlete" text, "nation" text, "date" text, "race" text ); Question: What is the name of the race when Lineth Chepkurui is the athlete? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_women" ( "rank" text, "time" text, "athlete" text, "nation" text, "date" text, "race" text ); Question: What is the time when the race was in Kenya and Lineth Chepkurui was the athlete...
<|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: What is the country for the player who had a To Par of +4? <|assistan...
<|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: What player from South Africa had a total less than 284? <|assistant|...
<|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: For the year won of 2001, what is the To Par? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "team" text, "score" text, "location_attendance" text, "series" text ); Question: what is the location attendance when the series is 4-3? <|assistant|> SELECT "location...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "team" text, "score" text, "location_attendance" text, "series" text ); Question: what is the team when the location attendace is boston garden and the series is 0-1? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "team" text, "score" text, "location_attendance" text, "series" text ); Question: what is the highest game when the team is @boston and the series is 0-1? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "team" text, "score" text, "location_attendance" text, "series" text ); Question: what is the series when the team is @boston and the game is smaller than 3? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country is the player ho had a To par of +1 and a score of 69-70-72=211 from? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What place did the player from South Africa finish? <|assistant|> SELECT "place" FROM "third...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country is Tom Purtzer from? <|assistant|> SELECT "country" FROM "third_round" WHERE "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the score of united states player wally armstrong when he had a To par of +1 <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the score of Wally Armstrong? <|assistant|> SELECT "score" FROM "third_round" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dutch" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: what is the verb meaning when the part 1 is lopen? <|assistant|> SELECT "ve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dutch" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: what is the part 4 when the verb meaning is to steal? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dutch" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: what is the class when part 2 is bond? <|assistant|> SELECT "class" FROM "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dutch" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: what is part 4 when the class is 5? <|assistant|> SELECT "part_4" FROM "dut...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dutch" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: what is part 1 when the class is 7d? <|assistant|> SELECT "part_1" FROM "du...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dutch" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: what is part 2 when part 4 is gebonden? <|assistant|> SELECT "part_2" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties_of_common_solvents" ( "solvent" text, "chemical_formula" text, "boiling_point" text, "dielectric_constant" text, "density" text, "dipole_moment_d" text ); Question: What's the boil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties_of_common_solvents" ( "solvent" text, "chemical_formula" text, "boiling_point" text, "dielectric_constant" text, "density" text, "dipole_moment_d" text ); Question: What solvent ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties_of_common_solvents" ( "solvent" text, "chemical_formula" text, "boiling_point" text, "dielectric_constant" text, "density" text, "dipole_moment_d" text ); Question: What's the Diel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties_of_common_solvents" ( "solvent" text, "chemical_formula" text, "boiling_point" text, "dielectric_constant" text, "density" text, "dipole_moment_d" text ); Question: What dipole mom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties_of_common_solvents" ( "solvent" text, "chemical_formula" text, "boiling_point" text, "dielectric_constant" text, "density" text, "dipole_moment_d" text ); Question: What's the dipo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties_of_common_solvents" ( "solvent" text, "chemical_formula" text, "boiling_point" text, "dielectric_constant" text, "density" text, "dipole_moment_d" text ); Question: what's the boil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "diesel_locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); Question: What is Type, when Works Number is 75823? <|assistant|> SELECT "type" FROM "diese...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "diesel_locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); Question: What is Date, when Type is DS4-4-750, and when Works Number is 74409? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "diesel_locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); Question: What is Works Number, when Type is RS-11, and when Number is 61? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "diesel_locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); Question: What is Builder, when Date is 1925? <|assistant|> SELECT "builder" FROM "diesel_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "diesel_locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); Question: What is Works Number, when Number is 55? <|assistant|> SELECT "works_number" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "diesel_locomotives" ( "number" text, "builder" text, "type" text, "date" text, "works_number" text ); Question: What is Builder, when Date is 1953? <|assistant|> SELECT "builder" FROM "diesel_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: Which Attendance is the lowest one that has a Record ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: Which Date has a Record of 4–2–0? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: Which Record has a Visitor of pittsburgh, and a Score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: What was the away tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: Who was the home team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: From what country did someone score 71? <|assistant|> SELECT "country" FROM "first_round" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: What is the attendance sum of the game on March 16, 1990 with a loss record...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_26_12_14" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the outcome of the match on August 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Round has a Pick smaller than 6? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Round has an Overall smaller than 6? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Position has a College of washington, and an Ov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Round has a Position of qb, and an Overall larg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date was Bury the home team? <|assistant|> SELECT "date" FROM "third_round_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What team was the home team when Tottenham Hotspur is the away team? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selections" ( "rnd" text, "pick_num" real, "nfl_team" text, "pos" text, "college" text, "conf" text ); Question: What college did the #22 overall draft pick attend? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selections" ( "rnd" text, "pick_num" real, "nfl_team" text, "pos" text, "college" text, "conf" text ); Question: What draft pick number attended syracuse and was drafted by the Carolin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_countries_by_2010_emissions_esti" ( "country" text, "co2_emissions" text, "area_in_km_2" real, "population" real, "emission_person" real ); Question: If the area of a country is over 9,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_countries_by_2010_emissions_esti" ( "country" text, "co2_emissions" text, "area_in_km_2" real, "population" real, "emission_person" real ); Question: What's the average population of Me...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "poll_source" text, "date_administered" text, "democrat" text, "republican" text, "lead_margin" real ); Question: Which Lead Margin has a Poll Source of rasmussen reports/ fox news? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "poll_source" text, "date_administered" text, "democrat" text, "republican" text, "lead_margin" real ); Question: Which Poll Source has a Date administered of october 30 – november 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: At which site was Northwestern an opponent? <|assistant|> SELECT "site" FROM "schedule" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What result did Indiana have when they were an opponent? <|assistant|> SELECT "result" FR...