text
stringlengths
310
1.28k
<|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: When was the kickoff time of the SB XXXVI? <|assistant|> SELECT "kickoff" FROM "schedule" WHERE "week"='sb xxxvi';<|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 was the home team score for the game played at Princes Park? <|assistant|> SELECT "home_team_score" FROM "round_5" WHERE "venue"='princes park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "master_world_records" ( "pool" text, "age_group" text, "time" text, "event" text, "date" text ); Question: What event had a time of 6:37.73? <|assistant|> SELECT "event" FROM "master_world_records" WHERE "time"='6:37.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "master_world_records" ( "pool" text, "age_group" text, "time" text, "event" text, "date" text ); Question: What is the time for the 50m breaststroke? <|assistant|> SELECT "time" FROM "master_world_records" WHERE "event"='50m breaststroke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "master_world_records" ( "pool" text, "age_group" text, "time" text, "event" text, "date" text ); Question: What age group has a time of 6:37.73 at the 200m breaststroke? <|assistant|> SELECT "age_group" FROM "master_world_records" WHERE "event"='200m breaststroke' AND "time"='6:37.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "master_world_records" ( "pool" text, "age_group" text, "time" text, "event" text, "date" text ); Question: What date did the 90-94 year old have a tie of 1:25.91 at the LC pool? <|assistant|> SELECT "date" FROM "master_world_records" WHERE "age_group"='90-94' AND "pool"='lc' AND "time"='1:25.91';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "player" text, "years" text, "games" real, "ppg_avg" real, "total_points" real ); Question: How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4? <|assistant|> SELECT COUNT("total_points") FROM "points" WHERE "rank">9 AND "ppg_avg">13.4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "player" text, "years" text, "games" real, "ppg_avg" real, "total_points" real ); Question: How many players played over 125 games and were named david gonzalvez? <|assistant|> SELECT COUNT("rank") FROM "points" WHERE "games">125 AND "player"='david gonzalvez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: Which host university is based in Missoula? <|assistant|> SELECT "host" FROM "first_and_second_rounds" WHERE "city"='missoula';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: What state is the city of Ruston in? <|assistant|> SELECT "state" FROM "first_and_second_rounds" WHERE "city"='ruston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: Which mideast regional state contains the city of Seattle? <|assistant|> SELECT "state" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "city"='seattle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: Which region does Old Dominion University represent? <|assistant|> SELECT "region" FROM "first_and_second_rounds" WHERE "host"='old dominion university';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: Which state is University of Tennessee based in? <|assistant|> SELECT "state" FROM "first_and_second_rounds" WHERE "host"='university of tennessee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What was the grid for Bruno Junqueira for Dale Coyne Racing? <|assistant|> SELECT "grid" FROM "race" WHERE "team"='dale coyne racing' AND "driver"='bruno junqueira';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What were the highest points for less than 78 laps and on grid 5? <|assistant|> SELECT MAX("points") FROM "race" WHERE "grid"=5 AND "laps"<78;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many were in the crowd at the Junction Oval venue? <|assistant|> SELECT "crowd" FROM "round_6" WHERE "venue"='junction oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "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 score in the game at Arden Street Oval? <|assistant|> SELECT "away_team_score" FROM "round_6" WHERE "venue"='arden street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "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 of the Arden Street Oval game? <|assistant|> SELECT "date" FROM "round_6" WHERE "venue"='arden street oval';<|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 away team's score during the match where the crowd was larger than 25,819 and the home team scored 14.10 (94)? <|assistant|> SELECT "away_team_score" FROM "round_3" WHERE "crowd">'25,819' AND "home_team_score"='14.10 (94)';<|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 is the sum of all the crowds at matches where the away team's score was 7.6 (48)? <|assistant|> SELECT SUM("crowd") FROM "round_3" WHERE "away_team_score"='7.6 (48)';<|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 venue saw a crowd larger than 29,840? <|assistant|> SELECT "venue" FROM "round_3" WHERE "crowd">'29,840';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "location" text, "opponent" text, "result" text ); Question: When does week 11 start? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"='11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "location" text, "opponent" text, "result" text ); Question: Which week starts on December 28, 1997? <|assistant|> SELECT "week" FROM "schedule" WHERE "date"='december 28, 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "location" text, "opponent" text, "result" text ); Question: When does week 1 start? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"='1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "location" text, "opponent" text, "result" text ); Question: Who one in the Tampa Bay Buccaneers? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='tampa bay buccaneers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "location" text, "opponent" text, "result" text ); Question: Which week starts on November 23, 1997? <|assistant|> SELECT "week" FROM "schedule" WHERE "date"='november 23, 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "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 8.15 (63)? <|assistant|> SELECT "home_team" FROM "round_6" WHERE "home_team_score"='8.15 (63)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "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 when the home team was Fitzroy? <|assistant|> SELECT "away_team" FROM "round_6" WHERE "home_team"='fitzroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Melbourne's score when they were the home team? <|assistant|> SELECT "home_team_score" FROM "round_6" WHERE "home_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "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 Collingwood was the home team? <|assistant|> SELECT "date" FROM "round_6" WHERE "home_team"='collingwood';<|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 watches North Melbourne when they are away? <|assistant|> SELECT "crowd" FROM "round_4" WHERE "away_team"='north melbourne';<|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 Away team is visiting Carlton? <|assistant|> SELECT "away_team" FROM "round_4" WHERE "home_team"='carlton';<|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 team has Windy Hill as their home venue <|assistant|> SELECT "home_team_score" FROM "round_4" WHERE "venue"='windy hill';<|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: When richmond played away, what was the largest number of people who watched? <|assistant|> SELECT MAX("crowd") FROM "round_4" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "stadium" text, "capacity" text, "city" text, "country" text ); Question: Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000? <|assistant|> SELECT "country" FROM "list" WHERE "rank">68 AND "capacity"='32,000' AND "city"='santa fe';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "stadium" text, "capacity" text, "city" text, "country" text ); Question: What is the capacity of the stadium with a rank lower than 31 located in the city of Belém ? <|assistant|> SELECT "capacity" FROM "list" WHERE "rank"<31 AND "city"='belém';<|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 is the sum of week(s) with an attendance of 30,751? <|assistant|> SELECT SUM("week") FROM "exhibition_schedule" WHERE "attendance"='30,751';<|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: On what date did the home team Essendon play? <|assistant|> SELECT "date" FROM "round_11" WHERE "home_team"='essendon';<|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 South Melbourne's home team score? <|assistant|> SELECT "home_team_score" FROM "round_11" WHERE "home_team"='south melbourne';<|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: On what date was the venue of Glenferrie Oval? <|assistant|> SELECT "date" FROM "round_11" WHERE "venue"='glenferrie oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "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 for the away team when the home team scored 10.11 (71)? <|assistant|> SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='10.11 (71)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "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 for the away team when they played collingwood? <|assistant|> SELECT "away_team_score" FROM "round_12" WHERE "home_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "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 essendon was the home team? <|assistant|> SELECT "home_team_score" FROM "round_12" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "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 Richmond was the away team? <|assistant|> SELECT "date" FROM "round_7" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "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 Carlton was the away team? <|assistant|> SELECT "home_team" FROM "round_7" WHERE "away_team"='carlton';<|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: Which home team played against Hawthorn? <|assistant|> SELECT "home_team_score" FROM "round_18" WHERE "away_team"='hawthorn';<|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 date did the Geelong team play on as a home team? <|assistant|> SELECT "date" FROM "round_18" WHERE "home_team"='geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for? <|assistant|> SELECT "school_club_team" FROM "nfl_draft" WHERE "round">13 AND "overall"=384;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What is the largest overall rank for a center drafted before round 10? <|assistant|> SELECT MAX("overall") FROM "nfl_draft" WHERE "position"='center' AND "round"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What position does the player from Texas State who was drafted before round 11 with an overall rank lower than 306 play? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "overall"<306 AND "round"<11 AND "school_club_team"='texas state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What is the average overall rank of all players drafted from Duke after round 9? <|assistant|> SELECT AVG("overall") FROM "nfl_draft" WHERE "school_club_team"='duke' AND "round">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted? <|assistant|> SELECT COUNT("round") FROM "nfl_draft" WHERE "school_club_team"='tennessee state' AND "overall"<261;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What is the highest overall rank of any Tennessee State player drafted before round 10? <|assistant|> SELECT MIN("overall") FROM "nfl_draft" WHERE "school_club_team"='tennessee state' AND "round"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: How many rounds did Blane Smith play linebacker? <|assistant|> SELECT COUNT("round") FROM "nfl_draft" WHERE "position"='linebacker' AND "player"='blane smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: How many times was Arizona the team and the round was bigger than 11? <|assistant|> SELECT COUNT("overall") FROM "nfl_draft" WHERE "school_club_team"='arizona' AND "round">11;<|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, "kickoff_time" text, "attendance" text ); Question: What is the result of the game after week 5 against the st. louis rams? <|assistant|> SELECT "result" FROM "schedule" WHERE "week">5 AND "opponent"='st. louis rams';<|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, "kickoff_time" text, "attendance" text ); Question: What day did they play on week 4? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the largest crowd at princes park? <|assistant|> SELECT MAX("crowd") FROM "round_2" WHERE "venue"='princes park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day is north melbourne the away side? <|assistant|> SELECT "date" FROM "round_2" WHERE "away_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day is essendon the home team? <|assistant|> SELECT "date" FROM "round_2" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away side scores 11.10 (76)? <|assistant|> SELECT "away_team" FROM "round_2" WHERE "away_team_score"='11.10 (76)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "nation" text, "assist" real, "games" real, "years" text ); Question: How many games had an assist number greater than 54? <|assistant|> SELECT SUM("games") FROM "assists" WHERE "assist">54;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "nation" text, "assist" real, "games" real, "years" text ); Question: Which years did the USA have a rank lower than 6 and an assist number less than 26? <|assistant|> SELECT "years" FROM "assists" WHERE "assist"<26 AND "rank"<6 AND "nation"='usa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "nation" text, "assist" real, "games" real, "years" text ); Question: Which year or years did a team win 174 games and had an assist number less than 17? <|assistant|> SELECT "years" FROM "assists" WHERE "assist"<17 AND "games"=174;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senators_at_the_beginning_of_the_39th_pa" ( "name" text, "party" text, "province_division" text, "date_appointed" text, "appointed_by" text, "left_office" text ); Question: Which party does Claudette Tardif belong to? <|assistant|> SELECT "party" FROM "senators_at_the_beginning_of_the_39th_pa" WHERE "name"='claudette tardif';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senators_at_the_beginning_of_the_39th_pa" ( "name" text, "party" text, "province_division" text, "date_appointed" text, "appointed_by" text, "left_office" text ); Question: Who appointed the conservative from Ontario on June 18, 1993? <|assistant|> SELECT "appointed_by" FROM "senators_at_the_beginning_of_the_39th_pa" WHERE "party"='conservative' AND "province_division"='ontario' AND "date_appointed"='june 18, 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "sportsperson" text, "nationality" text, "team" text, "competition_federation_or_league" text, "sport" text ); Question: What competition, federation, or league are the Tennessee Titans a member of? <|assistant|> SELECT "competition_federation_or_league" FROM "list_of_winners" WHERE "team"='tennessee titans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "sportsperson" text, "nationality" text, "team" text, "competition_federation_or_league" text, "sport" text ); Question: How many years has the winner been a member of the National Football League? <|assistant|> SELECT AVG("year") FROM "list_of_winners" WHERE "competition_federation_or_league"='national football league';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "sportsperson" text, "nationality" text, "team" text, "competition_federation_or_league" text, "sport" text ); Question: Post 1994, who are the winners of Sportsperson from the National Basketball Association? <|assistant|> SELECT "sportsperson" FROM "list_of_winners" WHERE "year">1994 AND "competition_federation_or_league"='national basketball association';<|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 day is south melbourne at home? <|assistant|> SELECT "date" FROM "round_15" WHERE "home_team"='south melbourne';<|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 is the lowest crowd at corio oval? <|assistant|> SELECT MIN("crowd") FROM "round_15" WHERE "venue"='corio oval';<|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 venue features carlton as an away team? <|assistant|> SELECT "venue" FROM "round_15" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team's score when the home team scores 7.8 (50)? <|assistant|> SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='7.8 (50)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day does the team play at western oval? <|assistant|> SELECT "date" FROM "round_16" WHERE "venue"='western oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue features collingwood as the home side? <|assistant|> SELECT "venue" FROM "round_16" WHERE "home_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team's score when the home side scores 12.13 (85)? <|assistant|> SELECT "away_team" FROM "round_16" WHERE "home_team_score"='12.13 (85)';<|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 is the attendance of week 1 <|assistant|> SELECT "attendance" FROM "exhibition_schedule" WHERE "week"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5" ( "couple" text, "score" text, "dance" text, "music" text, "result" text ); Question: What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)? <|assistant|> SELECT "result" FROM "week_5" WHERE "couple"='kelly & alec' AND "score"='22 (8, 7, 7)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5" ( "couple" text, "score" text, "dance" text, "music" text, "result" text ); Question: What is the Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2? <|assistant|> SELECT "music" FROM "week_5" WHERE "score"='25 (9, 8, 8)' AND "result"='bottom 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: How many totals are there for players with an average under 8 and less than 4 matches? <|assistant|> SELECT COUNT("total") FROM "season" WHERE "average"<8 AND "matches"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: What is the highest rank for championships with christy heffernan with over 4 matches? <|assistant|> SELECT MAX("rank") FROM "season" WHERE "player"='christy heffernan' AND "matches">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "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 Junction Oval? <|assistant|> SELECT "date" FROM "round_12" WHERE "venue"='junction oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "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 score at Windy Hill? <|assistant|> SELECT "away_team_score" FROM "round_12" WHERE "venue"='windy hill';<|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: Where did St Kilda play as the away team? <|assistant|> SELECT "venue" FROM "round_17" WHERE "away_team"='st kilda';<|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 away team played at Glenferrie Oval? <|assistant|> SELECT "away_team" FROM "round_17" WHERE "venue"='glenferrie oval';<|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: How many people attended the game at Lake Oval? <|assistant|> SELECT "crowd" FROM "round_17" WHERE "venue"='lake oval';<|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 home team played at Lake Oval? <|assistant|> SELECT "home_team" FROM "round_17" WHERE "venue"='lake oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "route" text, "terrain" text, "length" text, "winner" text ); Question: What was the terrain for stage 10 of the tour? <|assistant|> SELECT "terrain" FROM "stage_results" WHERE "stage"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "route" text, "terrain" text, "length" text, "winner" text ); Question: Which stage took the tour through Boulogne-Billancourt? <|assistant|> SELECT "stage" FROM "stage_results" WHERE "route"='boulogne-billancourt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "route" text, "terrain" text, "length" text, "winner" text ); Question: Who won at stage 22? <|assistant|> SELECT "winner" FROM "stage_results" WHERE "stage"='22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "route" text, "terrain" text, "length" text, "winner" text ); Question: Who was the winner of stage 12? <|assistant|> SELECT "winner" FROM "stage_results" WHERE "stage"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); Question: When was the Hon Ian Causley first elected? <|assistant|> SELECT "first_elected" FROM "see_also" WHERE "member"='hon ian causley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); Question: When was Jill Hall of the Labor Party first elected? <|assistant|> SELECT "first_elected" FROM "see_also" WHERE "party"='labor' AND "member"='jill hall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); Question: What state is Tanya Plibersek from? <|assistant|> SELECT "state" FROM "see_also" WHERE "member"='tanya plibersek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_with_100_appearances_or_more" ( "rank" real, "player" text, "nation" text, "games" real, "goals" real, "years" text ); Question: What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7? <|assistant|> SELECT MIN("goals") FROM "players_with_100_appearances_or_more" WHERE "years"='2008-present' AND "player"='tony beltran' AND "rank">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_with_100_appearances_or_more" ( "rank" real, "player" text, "nation" text, "games" real, "goals" real, "years" text ); Question: What is the smallest number of goals for andy williams? <|assistant|> SELECT MIN("goals") FROM "players_with_100_appearances_or_more" WHERE "player"='andy williams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_with_100_appearances_or_more" ( "rank" real, "player" text, "nation" text, "games" real, "goals" real, "years" text ); Question: What is the highest number of goals for robbie findley ranked above 10? <|assistant|> SELECT MAX("goals") FROM "players_with_100_appearances_or_more" WHERE "player"='robbie findley' AND "rank"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "windows_nt" ( "fat16" text, "fat32" text, "hpfs" text, "iso_9660" text, "ntfs" text, "re_fs" text ); Question: Which NTFS has a yes for FAT32 and a no for ReFS? <|assistant|> SELECT "ntfs" FROM "windows_nt" WHERE "fat32"='yes' AND "re_fs"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "windows_nt" ( "fat16" text, "fat32" text, "hpfs" text, "iso_9660" text, "ntfs" text, "re_fs" text ); Question: Which HPFS has a no for ReFS? <|assistant|> SELECT "hpfs" FROM "windows_nt" WHERE "re_fs"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "windows_nt" ( "fat16" text, "fat32" text, "hpfs" text, "iso_9660" text, "ntfs" text, "re_fs" text ); Question: Which FAT32 has yes v1.0/v1.1 for NTFS? <|assistant|> SELECT "fat32" FROM "windows_nt" WHERE "ntfs"='yes v1.0/v1.1';<|endoftext|>