text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date is Footscray the away team? <|assistant|> SELECT "date" FROM "round_3" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd population for Footscray as an away team? <|assistant|> SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date was there both a crowd larger than 16,570 and the away team was Footscray? <|assistant|> SELECT "date" FROM "round_3" WHERE "crowd">'16,570' AND "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text ); Question: How many bids were there for the .500 win percentage in the Ohio Valley conference? <|assistant|> SELECT SUM("num_of_bids") FROM "record_by_conference" WHERE "win_pct"='.500' AND "conference"='ohio valley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text ); Question: What is the Championship Game when the Final Four is 1 and the conference is American South? <|assistant|> SELECT "championship_game" FROM "record_by_conference" WHERE "final_four"='1' AND "conference"='american south';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text ); Question: What is the Final Four with a win percentage of .750? <|assistant|> SELECT "final_four" FROM "record_by_conference" WHERE "win_pct"='.750';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date of the game at the Arden Street Oval? <|assistant|> SELECT "date" FROM "round_18" WHERE "venue"='arden street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date where the home team scores 8.7 (55)? <|assistant|> SELECT "date" FROM "round_18" WHERE "home_team_score"='8.7 (55)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date of the game when the venue is Kardinia Park? <|assistant|> SELECT "date" FROM "round_5" WHERE "venue"='kardinia park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the total of the crowd when the away team score is 4.8 (32)? <|assistant|> SELECT SUM("crowd") FROM "round_5" WHERE "away_team_score"='4.8 (32)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date of the game when the home team score is 11.11 (77)? <|assistant|> SELECT "date" FROM "round_5" WHERE "home_team_score"='11.11 (77)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team played against the home team of St Kilda? <|assistant|> SELECT "away_team" FROM "round_1" WHERE "home_team"='st kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team competed against the away team of Melbourne? <|assistant|> SELECT "home_team" FROM "round_1" WHERE "away_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team resulted in a 15.14 (104) score for the home team? <|assistant|> SELECT "away_team" FROM "round_1" WHERE "home_team_score"='15.14 (104)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which venue hosted an away team with a score of 9.12 (66)? <|assistant|> SELECT "venue" FROM "round_1" WHERE "away_team_score"='9.12 (66)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue hosted a home team with a score of 6.12 (48)? <|assistant|> SELECT "venue" FROM "round_1" WHERE "home_team_score"='6.12 (48)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff" text, "game_site" text, "record" text, "attendance" text ); Question: What was the result of week 1 and the opponent was bye? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"='1' AND "opponent"='bye';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff" text, "game_site" text, "record" text, "attendance" text ); Question: What is the site of the game with a Record of 6-2? <|assistant|> SELECT "game_site" FROM "schedule" WHERE "record"='6-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff" text, "game_site" text, "record" text, "attendance" text ); Question: What week has a Record of 12-2? <|assistant|> SELECT "week" FROM "schedule" WHERE "record"='12-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_above_140m" ( "rank" text, "name" text, "city" text, "height_in_m_ft" text, "floors" real, "year_built" real ); Question: What city has Sky Tower? <|assistant|> SELECT "city" FROM "buildings_above_140m" WHERE "name"='sky tower';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_above_140m" ( "rank" text, "name" text, "city" text, "height_in_m_ft" text, "floors" real, "year_built" real ); Question: What is the name of a building in Courbevoie built before 1973? <|assistant|> SELECT "name" FROM "buildings_above_140m" WHERE "year_built"<1973 AND "city"='courbevoie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at Lake Oval? <|assistant|> SELECT "away_team" FROM "round_4" WHERE "venue"='lake oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team score for the game where Hawthorn is the home team? <|assistant|> SELECT "home_team_score" FROM "round_4" WHERE "home_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team that scored 14.19 (103)? <|assistant|> SELECT "home_team" FROM "round_4" WHERE "home_team_score"='14.19 (103)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date of the game where Essendon is the away team? <|assistant|> SELECT "date" FROM "round_4" WHERE "away_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size when the home side scores 4.10 (34)? <|assistant|> SELECT "crowd" FROM "round_10" WHERE "home_team_score"='4.10 (34)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the home team's score when the away team is south melbourne? <|assistant|> SELECT "home_team_score" FROM "round_10" WHERE "away_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue featured the home side of st kilda? <|assistant|> SELECT "venue" FROM "round_10" WHERE "home_team"='st kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: How many metres tall is the building that is larger than 850 feet tall? <|assistant|> SELECT "metres" FROM "timeline_of_tallest_buildings" WHERE "feet">850;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Geelong's score when they were the home team? <|assistant|> SELECT "home_team_score" FROM "round_15" WHERE "home_team"='geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game when Collingwood was the home team? <|assistant|> SELECT "venue" FROM "round_15" WHERE "away_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team that scored 8.12 (60)? <|assistant|> SELECT "away_team" FROM "round_15" WHERE "away_team_score"='8.12 (60)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "player" text, "years" text, "games" real, "reb_avg" real, "total_rebounds" real ); Question: What was Peter Woolfolk's Total Rebound average? <|assistant|> SELECT SUM("total_rebounds") FROM "rebounds" WHERE "player"='peter woolfolk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was week 3 score? <|assistant|> SELECT "result" FROM "exhibition_schedule" WHERE "week"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "date" text, "result" text, "score" text, "stadium" text, "city" text, "crowd" real ); Question: What city had a crowd larger than 11,346 and score of 24-16? <|assistant|> SELECT "city" FROM "round_1" WHERE "crowd">'11,346' AND "score"='24-16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "date" text, "result" text, "score" text, "stadium" text, "city" text, "crowd" real ); Question: What is the result of the game at Odsal Stadium? <|assistant|> SELECT "result" FROM "round_1" WHERE "stadium"='odsal stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Which championship had a margin of 10 strokes? <|assistant|> SELECT "championship" FROM "wins_6" WHERE "margin"='10 strokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Which runner-up player(s) had a margin of 10 strokes? <|assistant|> SELECT "runner_s_up" FROM "wins_6" WHERE "margin"='10 strokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: What was the most recent year that Kathy Ahern was a runner-up? <|assistant|> SELECT MAX("year") FROM "wins_6" WHERE "runner_s_up"='kathy ahern';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "windows_nt" ( "name" text, "release_date" text, "rtm_build" text, "current_version" text, "status_support" text, "license" text, "based_on_kernel" text, "supported_architectures" text, "os_type" text ); Question: What is the RTM build of the Windows Home Server 2011? <|assistant|> SELECT "rtm_build" FROM "windows_nt" WHERE "name"='windows home server 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "windows_nt" ( "name" text, "release_date" text, "rtm_build" text, "current_version" text, "status_support" text, "license" text, "based_on_kernel" text, "supported_architectures" text, "os_type" text ); Question: What is the current version of windows 8 with an RTM build of 9200? <|assistant|> SELECT "current_version" FROM "windows_nt" WHERE "rtm_build"='9200' AND "name"='windows 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home team scored 14.14 (98)? <|assistant|> SELECT "home_team" FROM "round_11" WHERE "home_team_score"='14.14 (98)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team's score that played Geelong? <|assistant|> SELECT "home_team_score" FROM "round_11" WHERE "away_team"='geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: At what venue did the home team score 12.10 (82)? <|assistant|> SELECT "venue" FROM "round_11" WHERE "home_team_score"='12.10 (82)';<|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: How many rounds were fought with opponent Kevin Roddy? <|assistant|> SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kevin roddy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); Question: What was the score when attendance was 19,887? <|assistant|> SELECT "record" FROM "game_by_game_results" WHERE "attendance"='19,887';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); Question: What week was the Bye attendance week? <|assistant|> SELECT "week" FROM "game_by_game_results" WHERE "attendance"='bye';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); Question: Who won when the Patriots played the Denver Broncos? <|assistant|> SELECT "record" FROM "game_by_game_results" WHERE "opponent"='denver broncos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); Question: Who won when the attendance was 8,000? <|assistant|> SELECT "record" FROM "game_by_game_results" WHERE "attendance"='8,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television" ( "band_ch" real, "call" text, "city" text, "owner" text, "operator" text, "virt_ch" real, "nickname" text, "programming" text ); Question: What channel has an operator of ivptc? <|assistant|> SELECT "programming" FROM "television" WHERE "operator"='ivptc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score when Richmond payed as the home team? <|assistant|> SELECT "home_team_score" FROM "round_8" WHERE "home_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who played against Carlton as the home team? <|assistant|> SELECT "home_team" FROM "round_8" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the attendance when South Melbourne was the away team? <|assistant|> SELECT SUM("crowd") FROM "round_8" WHERE "away_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when the VFL played Kardinia Park? <|assistant|> SELECT "home_team_score" FROM "round_8" WHERE "venue"='kardinia park';<|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: How many silver medals did the nation who received 32 bronze medals receive? <|assistant|> SELECT "silver" FROM "medal_table" WHERE "bronze"=32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the highest numbered grid with a time or retired time of 52:52.1881? <|assistant|> SELECT MAX("grid") FROM "race_1_results" WHERE "time_retired"='52:52.1881';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: Who recorded a time or retired time of 52:56.4653? <|assistant|> SELECT "name" FROM "race_1_results" WHERE "time_retired"='52:56.4653';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the average grid number for paul cruickshank racing with less than 27 laps? <|assistant|> SELECT AVG("grid") FROM "race_1_results" WHERE "team"='paul cruickshank racing' AND "laps"<27;<|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 metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals? <|assistant|> SELECT MIN("total") FROM "medal_table" WHERE "silver">6 AND "bronze"=6 AND "gold"<16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "arnold_today" ( "school" text, "09_10_fcat" text, "09_10_points" real, "09_10_graduation" text, "08_09_fcat" text ); Question: What 09-10 class, with a graduate percentage of 85% had the least amount of points? <|assistant|> SELECT MIN("09_10_points") FROM "arnold_today" WHERE "09_10_graduation"='85%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the crowd size of the game at Brunswick Street Oval? <|assistant|> SELECT SUM("crowd") FROM "round_10" WHERE "venue"='brunswick street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team of the game where Footscray is the away team? <|assistant|> SELECT "home_team_score" FROM "round_10" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away team with a score of 7.8 (50)? <|assistant|> SELECT "away_team" FROM "round_10" WHERE "away_team_score"='7.8 (50)';<|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" text ); Question: What week has a date of September 3, 2000? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "date"='september 3, 2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when Hawthorn was the away team? <|assistant|> SELECT "home_team" FROM "round_17" WHERE "away_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team when the home team scored 11.14 (80)? <|assistant|> SELECT "away_team" FROM "round_17" WHERE "home_team_score"='11.14 (80)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Fitzroy's score when they were the away team? <|assistant|> SELECT "away_team_score" FROM "round_17" WHERE "away_team"='fitzroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1971_isle_of_man_production_750_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What was #7 BMW's speed? <|assistant|> SELECT "speed" FROM "1971_isle_of_man_production_750_cc_tt_fi" WHERE "team"='bmw' AND "rank"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size in the match South Melbourne played at home? <|assistant|> SELECT "crowd" FROM "round_1" WHERE "home_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team's score at Western Oval? <|assistant|> SELECT "away_team_score" FROM "round_1" WHERE "venue"='western oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the date when the away team scored 9.16 (70)? <|assistant|> SELECT "date" FROM "round_1" WHERE "away_team_score"='9.16 (70)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size when Essendon was the away team? <|assistant|> SELECT COUNT("crowd") FROM "round_1" WHERE "away_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team that scored 13.13 (91) in front of a crowd larger than 10,000? <|assistant|> SELECT "home_team" FROM "round_1" WHERE "crowd">'10,000' AND "home_team_score"='13.13 (91)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text ); Question: On what date was the time of 16:24.12 achieved? <|assistant|> SELECT "date" FROM "women" WHERE "time"='16:24.12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); Question: What year did the Capital City Giants have a game with the final score of 8-0? <|assistant|> SELECT AVG("year") FROM "game_results" WHERE "team"='capital city giants' AND "score"='8-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); Question: What team lost a game by a score of 6-0? <|assistant|> SELECT "runner_up" FROM "game_results" WHERE "score"='6-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); Question: What teams played in Capital Bowl IV? <|assistant|> SELECT "team" FROM "game_results" WHERE "game"='capital bowl iv';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); Question: What team defeated the Capital City Giants? <|assistant|> SELECT "team" FROM "game_results" WHERE "runner_up"='capital city giants';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "state_represented" text, "total_tenure_time" text, "uninterrupted_time" text ); Question: What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days? <|assistant|> SELECT "total_tenure_rank" FROM "senate_time" WHERE "uninterrupted_time"='49 years, 349 days';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "state_represented" text, "total_tenure_time" text, "uninterrupted_time" text ); Question: What is the total tenure time of Warren Magnuson, who had an uninterrupted rank larger than 4 and a total tenure rank larger than 9? <|assistant|> SELECT "total_tenure_time" FROM "senate_time" WHERE "uninterrupted_rank">4 AND "total_tenure_rank">9 AND "name"='warren magnuson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What round was the overall 63 drafted? <|assistant|> SELECT COUNT("round") FROM "2004_new_england_patriots_draft_selectio" WHERE "overall"=63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regions" ( "in_english" text, "in_finnish" text, "in_swedish" text, "capital" text, "regional_state_administrative_agency" text ); Question: What is the Swedish name for South Karelia? <|assistant|> SELECT "in_swedish" FROM "regions" WHERE "in_english"='south karelia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team in the match where the away team scored 15.12 (102)? <|assistant|> SELECT "home_team" FROM "round_1" WHERE "away_team_score"='15.12 (102)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home team plays at Arden Street Oval? <|assistant|> SELECT "home_team" FROM "round_1" WHERE "venue"='arden street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); Question: Who has a Jump 2 of 7.06, and what is this person's Jump 3? <|assistant|> SELECT "jump_3" FROM "final_round" WHERE "jump_2"='7.06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); Question: Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump? <|assistant|> SELECT "best_jump" FROM "final_round" WHERE "jump_1"='x' AND "jump_2"='7.28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); Question: What is the Jump 2 of the person that has a Jump 3 of 7.77? <|assistant|> SELECT "jump_2" FROM "final_round" WHERE "jump_3"='7.77';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); Question: What is the Jump 2 of the person that has a Jump 1 of 7.14 <|assistant|> SELECT "jump_2" FROM "final_round" WHERE "jump_1"='7.14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pac_10_12_tournament" ( "year" real, "champion" text, "score" text, "runner_up" text, "arena" text, "city" text, "tournament_mvp" text ); Question: Which player from Tucson, Arizona won the Championship? <|assistant|> SELECT "champion" FROM "pac_10_12_tournament" WHERE "city"='tucson, arizona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pac_10_12_tournament" ( "year" real, "champion" text, "score" text, "runner_up" text, "arena" text, "city" text, "tournament_mvp" text ); Question: What was the final score of the player from Inglewood, California? <|assistant|> SELECT "score" FROM "pac_10_12_tournament" WHERE "city"='inglewood, california';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "le_tour_de_pilipinas_padyak_pinoy_fed_ex" ( "year" real, "name" text, "date" text, "stages" text, "distance" text, "winner" text, "time" text ); Question: What tour was cancelled? <|assistant|> SELECT "name" FROM "le_tour_de_pilipinas_padyak_pinoy_fed_ex" WHERE "date"='cancelled';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "le_tour_de_pilipinas_padyak_pinoy_fed_ex" ( "year" real, "name" text, "date" text, "stages" text, "distance" text, "winner" text, "time" text ); Question: Who won the Fedex tour of Calabarzon? <|assistant|> SELECT "winner" FROM "le_tour_de_pilipinas_padyak_pinoy_fed_ex" WHERE "name"='fedex tour of calabarzon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "le_tour_de_pilipinas_padyak_pinoy_fed_ex" ( "year" real, "name" text, "date" text, "stages" text, "distance" text, "winner" text, "time" text ); Question: What year has the time of 55:29:20? <|assistant|> SELECT COUNT("year") FROM "le_tour_de_pilipinas_padyak_pinoy_fed_ex" WHERE "time"='55:29:20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the score when Mark parterned with lorenzo manta? <|assistant|> SELECT "score" FROM "doubles_finals_8" WHERE "partner"='lorenzo manta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Who was his partner when he played on carpet? <|assistant|> SELECT "partner" FROM "doubles_finals_8" WHERE "surface"='carpet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: When did he play with peter nyborg? <|assistant|> SELECT "date" FROM "doubles_finals_8" WHERE "partner"='peter nyborg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What day did he play on hard with tom mercer? <|assistant|> SELECT "date" FROM "doubles_finals_8" WHERE "surface"='hard' AND "partner"='tom mercer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: What was the week 2's record? <|assistant|> SELECT "record" FROM "schedule" WHERE "week"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: What was week 12's record? <|assistant|> SELECT "record" FROM "schedule" WHERE "week"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: What was the Bye week attendance? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "record"='bye';<|endoftext|>