text
stringlengths
310
1.28k
<|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 date was the Home team fitzroy? <|assistant|> SELECT "date" FROM "round_2" WHERE "home_team"='fitzroy';<|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 when st kilda was the away team? <|assistant|> SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='st kilda';<|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 was the score of essendon when they were the away team? <|assistant|> SELECT "away_team_score" FROM "round_2" WHERE "away_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 is the home team when there were more than 13,000 in the crowd at brunswick street oval? <|assistant|> SELECT "home_team" FROM "round_2" WHERE "crowd">'13,000' AND "venue"='brunswick street oval';<|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 team played when the home team scoreed 5.7 (37)? <|assistant|> SELECT "away_team" FROM "round_2" WHERE "home_team_score"='5.7 (37)';<|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 home team played at the western oval? <|assistant|> SELECT "home_team" FROM "round_2" WHERE "venue"='western oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "particulars_and_characteristics" text, "shivalik_zone" text, "mid_hill_zone" text, "high_hill_zone" text, "trance_n_himalaya_zone" text ); Question: Which mid-hill zone has a slightly warm temperature? <|assistant|> SELECT "high_hill_zone" FROM "references" WHERE "mid_hill_zone"='slightly warm temperature';<|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: Which one took place on December 3, 1995? <|assistant|> SELECT "result" FROM "schedule" WHERE "date"='december 3, 1995';<|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: Who was the opponent of the New Orleans Saints? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='new orleans saints';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What grid has 23 laps done by Josh Brookes? <|assistant|> SELECT "grid" FROM "superbike_race_1_classification" WHERE "laps"=23 AND "rider"='josh brookes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is noriyuki haga's time? <|assistant|> SELECT "time" FROM "superbike_race_1_classification" WHERE "rider"='noriyuki haga';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What laps have a Time of +28.778? <|assistant|> SELECT "laps" FROM "superbike_race_1_classification" WHERE "time"='+28.778';<|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 was the game held where Hawthorn was the away team? <|assistant|> SELECT "venue" 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: What was the date of the game when Richmond was the home team? <|assistant|> SELECT "date" FROM "round_17" WHERE "home_team"='richmond';<|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 at the game played at Kardinia Park? <|assistant|> SELECT "home_team" FROM "round_17" WHERE "venue"='kardinia park';<|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 away team score when the venue was Western Oval? <|assistant|> SELECT "away_team_score" FROM "round_10" WHERE "venue"='western 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: What is the date of the game with an away team score of 6.12 (48)? <|assistant|> SELECT "date" FROM "round_10" WHERE "away_team_score"='6.12 (48)';<|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 away team when the away team score is 8.17 (65)? <|assistant|> SELECT "away_team" FROM "round_10" WHERE "away_team_score"='8.17 (65)';<|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 date of the game when the venue is MCG? <|assistant|> SELECT "date" FROM "round_10" WHERE "venue"='mcg';<|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 score when the away team is Essendon? <|assistant|> SELECT "home_team_score" FROM "round_10" 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 name of the away team whose venue is Kardinia Park? <|assistant|> SELECT "away_team" FROM "round_10" WHERE "venue"='kardinia park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); Question: What was the result when they were on a bye week? <|assistant|> SELECT "result" FROM "schedule" WHERE "stadium"='bye week';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); Question: What was the result when the attendance was 25,418? <|assistant|> SELECT "result" FROM "schedule" WHERE "attendance"='25,418';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); Question: Which of the Latest version was released on Release date 1987-12-09? <|assistant|> SELECT "latest_version" FROM "dos_shells" WHERE "release_date"='1987-12-09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); Question: Which Source model has a 16-bit* Architecture? <|assistant|> SELECT "source_model" FROM "dos_shells" WHERE "architecture"='16-bit*';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); Question: Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20? <|assistant|> SELECT "latest_version" FROM "dos_shells" WHERE "architecture"='16-bit' AND "release_date"='1985-11-20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); Question: Which Architecture was released on Release date 1988-05-27? <|assistant|> SELECT "architecture" FROM "dos_shells" WHERE "release_date"='1988-05-27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); Question: Which Source model has a Release date of 1992-04-06? <|assistant|> SELECT "source_model" FROM "dos_shells" WHERE "release_date"='1992-04-06';<|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: Who is the away side when collingwood is at home? <|assistant|> SELECT "away_team" FROM "round_18" WHERE "home_team"='collingwood';<|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: Who is the home team at arden street oval? <|assistant|> SELECT "home_team" 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: Who is the home team that scores 12.10 (82)? <|assistant|> SELECT "home_team" FROM "round_18" 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 "am" ( "freq" real, "call" text, "city" text, "owner" text, "day_power_w" real, "night_power" real, "format" text, "stereo" text ); Question: What is the WPW freq with a day power of 250? <|assistant|> SELECT SUM("freq") FROM "am" WHERE "owner"='wpw' AND "day_power_w">250;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "am" ( "freq" real, "call" text, "city" text, "owner" text, "day_power_w" real, "night_power" real, "format" text, "stereo" text ); Question: What is the Triad frew with a day power of 5,000? <|assistant|> SELECT COUNT("freq") FROM "am" WHERE "day_power_w"='5,000' AND "owner"='triad';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "am" ( "freq" real, "call" text, "city" text, "owner" text, "day_power_w" real, "night_power" real, "format" text, "stereo" text ); Question: Is WPEO in stereo? <|assistant|> SELECT "stereo" FROM "am" WHERE "call"='wpeo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "100m" real, "150m" text, "time" text ); Question: What is Park Tae-Hwan's final time? <|assistant|> SELECT "time" FROM "final" WHERE "name"='park tae-hwan';<|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 was the largest crowd for an away Carlton game? <|assistant|> SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='carlton';<|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: Who was the home team for the game played at Corio Oval? <|assistant|> SELECT "home_team" FROM "round_2" WHERE "venue"='corio oval';<|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: Who was the home team for the game where the away team scored 16.8 (104) and the crowd was over 12,000? <|assistant|> SELECT "home_team" FROM "round_2" WHERE "crowd">'12,000' AND "away_team_score"='16.8 (104)';<|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 was the crowd size at the game where the home team scored 12.17 (89)? <|assistant|> SELECT AVG("crowd") FROM "round_2" WHERE "home_team_score"='12.17 (89)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "durations_and_prices" ( "valid" text, "within" text, "price_in_euro" real, "price_per_valid_day" text, "price_per_within_day" text, "area" text ); Question: What is the Euro for a ticket with a Price per "Within" Day of &0 8? <|assistant|> SELECT SUM("price_in_euro") FROM "durations_and_prices" WHERE "price_per_within_day"='&0 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "durations_and_prices" ( "valid" text, "within" text, "price_in_euro" real, "price_per_valid_day" text, "price_per_within_day" text, "area" text ); Question: What is the lowest Euro for a ticket with a price per valid day of & 34? <|assistant|> SELECT MIN("price_in_euro") FROM "durations_and_prices" WHERE "price_per_valid_day"='& 34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: The safety position is represented in the draft by which colleges? <|assistant|> SELECT "college" FROM "2001_new_england_patriots_draft_selectio" WHERE "position"='safety';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: In how many rounds of the draft was there a college from Georgia involved? <|assistant|> SELECT COUNT("round") FROM "2001_new_england_patriots_draft_selectio" WHERE "college"='georgia';<|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 is the Time of Driver Jan Heylen (r)? <|assistant|> SELECT "time_retired" FROM "race" WHERE "driver"='jan heylen (r)';<|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 Grid has Driver Cristiano da Matta? <|assistant|> SELECT "grid" FROM "race" WHERE "driver"='cristiano da matta';<|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: Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team? <|assistant|> SELECT "driver" FROM "race" WHERE "laps"<84 AND "points">9 AND "team"='rocketsports racing';<|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: Which team has less than 73 laps and a gearbox time? <|assistant|> SELECT "team" FROM "race" WHERE "laps"<73 AND "time_retired"='gearbox';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "nbr_class" real, "type" text, "introduced" real, "driving_wheel" text, "total" real, "extinct" real ); Question: What is the car with the lowest extinct year that has a NBR class of 32? <|assistant|> SELECT MIN("extinct") FROM "locomotives" WHERE "nbr_class"=32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "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 that played at Corio Oval? <|assistant|> SELECT "home_team" FROM "round_9" WHERE "venue"='corio oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: At which venue did the home team score 12.15 (87)? <|assistant|> SELECT "venue" FROM "round_9" WHERE "home_team_score"='12.15 (87)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: At which venue did the away team score 15.9 (99)? <|assistant|> SELECT "venue" FROM "round_9" WHERE "away_team_score"='15.9 (99)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On which date was St Kilda the home team? <|assistant|> SELECT "date" FROM "round_9" WHERE "home_team"='st kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_series_records_against_big_12_m" ( "texas_vs" text, "overall_record" text, "at_austin" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text ); Question: What is the Austin record of Kansas State? <|assistant|> SELECT "at_austin" FROM "all_time_series_records_against_big_12_m" WHERE "texas_vs"='kansas state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_series_records_against_big_12_m" ( "texas_vs" text, "overall_record" text, "at_austin" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text ); Question: What was the result of the last 5 meetings for a team with an L 1 streak? <|assistant|> SELECT "last_5_meetings" FROM "all_time_series_records_against_big_12_m" WHERE "current_streak"='l 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_8" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who is the partner on a date later than 1971 who is the runner-up with a score of 3–6, 3–6? <|assistant|> SELECT "partner" FROM "doubles_titles_8" WHERE "date">1971 AND "outcome"='runner-up' AND "score_in_the_final"='3–6, 3–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "year" real, "player" text, "country" text, "team" text, "position" text ); Question: What is the first year that Mario Lemieux from Canada won playing center? <|assistant|> SELECT MIN("year") FROM "notes" WHERE "country"='canada' AND "position"='center' AND "player"='mario lemieux';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "year" real, "player" text, "country" text, "team" text, "position" text ); Question: What country did mario lemieux play for in 1994? <|assistant|> SELECT "country" FROM "notes" WHERE "player"='mario lemieux' AND "year"=1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "year" real, "player" text, "country" text, "team" text, "position" text ); Question: What player played center in 2010? <|assistant|> SELECT "player" FROM "notes" WHERE "position"='center' AND "year"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); Question: What is the drop number on 10/02/2007? <|assistant|> SELECT "drop" FROM "most_points_in_a_match" WHERE "date"='10/02/2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); Question: What is the drop number on 08/06/2011? <|assistant|> SELECT "drop" FROM "most_points_in_a_match" WHERE "date"='08/06/2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); Question: How many drops occurred with 0 pens and Fangatapu Apikotoa playing? <|assistant|> SELECT "drop" FROM "most_points_in_a_match" WHERE "pens"='0' AND "player"='fangatapu apikotoa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); Question: Who is the player associated with the Esher venue? <|assistant|> SELECT "player" FROM "most_points_in_a_match" WHERE "venue"='esher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); Question: What is the conversion number with 0 drops on 02/07/2011? <|assistant|> SELECT "conv" FROM "most_points_in_a_match" WHERE "drop"='0' AND "date"='02/07/2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); Question: In which venue did 0 pens and 1 try occur? <|assistant|> SELECT "venue" FROM "most_points_in_a_match" WHERE "pens"='0' AND "tries"='1';<|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 the score of the game against the St. Louis Cardinals? <|assistant|> SELECT "result" FROM "exhibition_schedule" WHERE "opponent"='st. louis cardinals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "discontinued" text, "cpu_speed" text, "print_speed_ppm" text, "standard_memory" text, "maximum_memory" text ); Question: Which model has a CPU speed of 133mhz? <|assistant|> SELECT "model" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "cpu_speed"='133mhz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "discontinued" text, "cpu_speed" text, "print_speed_ppm" text, "standard_memory" text, "maximum_memory" text ); Question: Which model has a maximum memory of 512 mb? <|assistant|> SELECT MAX("model") FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "maximum_memory"='512 mb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "discontinued" text, "cpu_speed" text, "print_speed_ppm" text, "standard_memory" text, "maximum_memory" text ); Question: What is the maximum memory of the model that has a standard memory of 16 mb? <|assistant|> SELECT "maximum_memory" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "standard_memory"='16 mb';<|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 is the largest crowd for a Melbourne away team? <|assistant|> SELECT MAX("crowd") 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_9" ( "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 score when the home team is Essendon? <|assistant|> SELECT "home_team_score" FROM "round_9" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "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 when the home team score is 12.17 (89)? <|assistant|> SELECT "home_team" FROM "round_9" WHERE "home_team_score"='12.17 (89)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "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 when the away team score is 10.10 (70)? <|assistant|> SELECT "away_team" FROM "round_9" WHERE "away_team_score"='10.10 (70)';<|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, "tv_time" text ); Question: Which opponent was playing on December 20, 1998? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='december 20, 1998';<|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 home team that had a score of 13.11 (89)? <|assistant|> SELECT "home_team" FROM "round_15" WHERE "home_team_score"='13.11 (89)';<|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: When was the game that was held at the Princes Park? <|assistant|> SELECT "date" FROM "round_15" WHERE "venue"='princes park';<|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 the smallest crowd size at a home game for Footscray? <|assistant|> SELECT MIN("crowd") FROM "round_15" WHERE "home_team"='footscray';<|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: When was the game where the home team scored 18.14 (122)? <|assistant|> SELECT "date" FROM "round_15" WHERE "home_team_score"='18.14 (122)';<|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 Melbourne's score as the home team? <|assistant|> SELECT "home_team_score" FROM "round_15" WHERE "home_team"='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 was the away team's score when the crowd at Arden Street Oval was larger than 31,481? <|assistant|> SELECT "away_team_score" FROM "round_15" WHERE "crowd">'31,481' AND "venue"='arden street 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 was the away team that played Fitzroy? <|assistant|> SELECT "away_team" FROM "round_15" WHERE "home_team"='fitzroy';<|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 the sum of the crowds at Western Oval? <|assistant|> SELECT SUM("crowd") FROM "round_15" WHERE "venue"='western 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 was the total crowd size when the away team scored 17.13 (115)? <|assistant|> SELECT COUNT("crowd") FROM "round_15" WHERE "away_team_score"='17.13 (115)';<|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 did the home team score 18.17 (125)? <|assistant|> SELECT "venue" FROM "round_15" WHERE "home_team_score"='18.17 (125)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "rider" text, "country" text, "distance" text, "pacing" text, "velodrome" text ); Question: What country had a winner in 1907? <|assistant|> SELECT "country" FROM "winners" WHERE "year"=1907;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "rider" text, "country" text, "distance" text, "pacing" text, "velodrome" text ); Question: What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km? <|assistant|> SELECT "velodrome" FROM "winners" WHERE "year"<1950 AND "country"='france' AND "pacing"='tandem paced' AND "distance"='951.750 km';<|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 ); Question: Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5? <|assistant|> SELECT "game_site" FROM "schedule" WHERE "kickoff"='12:00 p.m.' AND "record"='8-5';<|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 ); Question: What date has a Game site of bye? <|assistant|> SELECT "date" FROM "schedule" WHERE "game_site"='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 ); Question: What is the record which shows Kickoff as kickoff? <|assistant|> SELECT "record" FROM "schedule" WHERE "kickoff"='kickoff';<|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 ); Question: What is the record when the game was played at raymond james stadium? <|assistant|> SELECT "record" FROM "schedule" WHERE "game_site"='raymond james stadium';<|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 ); Question: What is the kickoff for the game on october 22, 2000? <|assistant|> SELECT "kickoff" FROM "schedule" WHERE "date"='october 22, 2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Which Hindi network is based in India and uses dish service and shows general programming? <|assistant|> SELECT "network" FROM "united_states" WHERE "service"='dish' AND "language"='hindi' AND "origin_of_programming"='india' AND "genre"='general';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Which language is used by the optimum TV service that shows cricket and is based in the United States? <|assistant|> SELECT "language" FROM "united_states" WHERE "service"='optimum tv' AND "origin_of_programming"='united states' AND "genre"='cricket';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network? <|assistant|> SELECT "origin_of_programming" FROM "united_states" WHERE "service"='dish' AND "language"='malayalam' AND "genre"='general' AND "network"='asianet plus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the average grid number with a ferrari and a time or retired time of 1:32:35.101? <|assistant|> SELECT AVG("grid") FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='1:32:35.101';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What week of the season was November 24, 1957? <|assistant|> SELECT "week" FROM "regular_season_schedule" WHERE "date"='november 24, 1957';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "date" text, "opponent" text, "score" text, "record" text, "attendance" real ); Question: What was the score of the game against the San Diego Chargers? <|assistant|> SELECT "score" FROM "regular_season_schedule" WHERE "opponent"='san diego chargers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the week more than 58,675 attended on october 22, 1995? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "attendance">'58,675' AND "date"='october 22, 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the latest week with the date of november 5, 1995? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "date"='november 5, 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: How many weeks was the attendance less than 74,171 and the result was w 26–10? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "attendance"<'74,171' AND "result"='w 26–10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent" text, "score" text ); Question: What was the outcome of the Tournament in Buenos Aires? <|assistant|> SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='buenos aires';<|endoftext|>