text
stringlengths
310
1.28k
<|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 a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS? <|assistant|> SELECT "fat32" FROM "windows_nt" WHERE "hpfs"='no' AND "re_fs"='no' AND "ntfs"='yes v3.0';<|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 ReFS has yes v3.0 for NTFS? <|assistant|> SELECT "re_fs" FROM "windows_nt" WHERE "ntfs"='yes v3.0';<|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 no for ReFS and a yes for HPFS? <|assistant|> SELECT "ntfs" FROM "windows_nt" WHERE "re_fs"='no' AND "hpfs"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: What player position was drafted in 1955? <|assistant|> SELECT "position" FROM "g" WHERE "from"='1955';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: From what school was a player drafted in 1950? <|assistant|> SELECT "school_country" FROM "g" WHERE "from"='1950';<|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 home team has a score of 11.9 (75)? <|assistant|> SELECT "home_team" FROM "round_7" WHERE "home_team_score"='11.9 (75)';<|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 home team plays at glenferrie oval? <|assistant|> SELECT "home_team" FROM "round_7" WHERE "venue"='glenferrie oval';<|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 away side that playes at lake oval? <|assistant|> SELECT "away_team_score" FROM "round_7" WHERE "venue"='lake oval';<|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 day does the away team score 7.8 (50)? <|assistant|> SELECT "date" FROM "round_7" 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 "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 away side when carlton is the home side? <|assistant|> SELECT "away_team_score" FROM "round_7" WHERE "home_team"='carlton';<|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: Who is the away team at western oval? <|assistant|> SELECT "away_team_score" FROM "round_12" WHERE "venue"='western 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 venue featured the home side scoring 10.17 (77)? <|assistant|> SELECT "venue" FROM "round_12" WHERE "home_team_score"='10.17 (77)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_legend_of_the_ice_people" ( "swedish_title" text, "norwegian_title" text, "icelandic_title" text, "translated_title" text, "polish_title" text, "hungarian_title" text, "published" real ); Question: What is the Icelandic title for the Norweigan titled galgeblomsten? <|assistant|> SELECT "icelandic_title" FROM "the_legend_of_the_ice_people" WHERE "norwegian_title"='galgeblomsten';<|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: When is the event at lake oval? <|assistant|> SELECT "date" FROM "round_1" WHERE "venue"='lake 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 is 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's the home team's score at lake oval? <|assistant|> SELECT "home_team_score" FROM "round_1" WHERE "venue"='lake 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: What date did VFL play MCG? <|assistant|> SELECT "date" FROM "round_9" WHERE "venue"='mcg';<|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: How many times is st kilda the away team? <|assistant|> SELECT COUNT("crowd") FROM "round_4" WHERE "away_team"='st kilda';<|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 largest crowd when the home team scores 14.12 (96)? <|assistant|> SELECT MAX("crowd") FROM "round_4" WHERE "home_team_score"='14.12 (96)';<|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: When the crowd was larger than 20,915 what did the Away team score? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "crowd">'20,915';<|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 did the Away team score in their game at Victoria Park? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "venue"='victoria park';<|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: When the crowd was over 15,322 in Richmond what did the Away team score? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "crowd">'15,322' AND "away_team"='richmond';<|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 did the Home team score when they were in MCG? <|assistant|> SELECT "home_team_score" FROM "round_11" WHERE "venue"='mcg';<|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, "game_site" text, "attendance" text ); Question: What was the attendance for each game held at Foxboro Stadium? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "game_site"='foxboro stadium';<|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, "game_site" text, "attendance" text ); Question: When was the game against the Indianapolis Colts? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='indianapolis colts';<|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, "game_site" text, "attendance" text ); Question: How many weeks total did the New York Jets face the Pittsburgh Steelers? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "opponent"='pittsburgh steelers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What week did the Jets play in the meadowlands with and attendance of 78,161? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "game_site"='the meadowlands' AND "attendance"='78,161';<|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, "game_site" text, "attendance" text ); Question: Who did the Jets play in the Meadowlands on week 14? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "game_site"='the meadowlands' AND "week"=14;<|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, "game_site" text, "attendance" text ); Question: What was the Jets week 17 attendance? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_casinos" ( "casino" text, "opening_date" text, "theme" text, "hotel_rooms" real, "section_of_atlantic_city" text ); Question: When did the hotel with 727 rooms open? <|assistant|> SELECT "opening_date" FROM "current_casinos" WHERE "hotel_rooms"=727;<|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: Which school(s) had a wide receiver drafted in round 4? <|assistant|> SELECT "school_club_team" FROM "nfl_draft" WHERE "round">4 AND "position"='wide receiver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l" ( "player" text, "nationality" text, "position" text, "from" real, "school_country" text ); Question: Which of the above are from 1987? <|assistant|> SELECT "school_country" FROM "l" WHERE "from"=1987;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l" ( "player" text, "nationality" text, "position" text, "from" real, "school_country" text ); Question: What position is the player from 1987? <|assistant|> SELECT "position" FROM "l" WHERE "from"=1987;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l" ( "player" text, "nationality" text, "position" text, "from" real, "school_country" text ); Question: What position is the player from 1959? <|assistant|> SELECT "position" FROM "l" WHERE "from"=1959;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Who was the opponent before week 6 at cleveland municipal stadium? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "week"<6 AND "game_site"='cleveland municipal stadium';<|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 was Richmond the away team? <|assistant|> SELECT "date" FROM "round_18" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_population" ( "rank" text, "county" text, "pct_1960" real, "pct_2000" real, "pct_2040" real ); Question: Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13? <|assistant|> SELECT "county" FROM "historical_population" WHERE "pct_2040">1.8 AND "pct_2000"<4.1 AND "pct_1960"<3.2 AND "rank"='13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_population" ( "rank" text, "county" text, "pct_1960" real, "pct_2000" real, "pct_2040" real ); Question: What is the % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7? <|assistant|> SELECT SUM("pct_1960") FROM "historical_population" WHERE "pct_2040"<100 AND "pct_2000"<4.7 AND "county"='troms';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_population" ( "rank" text, "county" text, "pct_1960" real, "pct_2000" real, "pct_2040" real ); Question: What is the % (1960) of the county with a % (2040) of 3.4? <|assistant|> SELECT COUNT("pct_1960") FROM "historical_population" WHERE "pct_2040"=3.4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_ballet" ( "orchestra" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text ); Question: What record company has robert craft conducting? <|assistant|> SELECT "record_company" FROM "complete_ballet" WHERE "conductor"='robert craft';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_ballet" ( "orchestra" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text ); Question: Who is the conductor when the chicago symphony orchestra is featured? <|assistant|> SELECT "conductor" FROM "complete_ballet" WHERE "orchestra"='chicago symphony orchestra';<|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 people attended the Cleveland Browns game on November 11, 1979? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "date"='november 11, 1979' AND "week">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, "attendance" real ); Question: The game on September 2, 1979 was during which week of the season? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='september 2, 1979';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "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 at the game where Richmond was the away team? <|assistant|> SELECT "home_team_score" FROM "round_14" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the size of the crowd when Essendon was the away team? <|assistant|> SELECT "crowd" FROM "round_14" WHERE "away_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "british_railways_batch" ( "br_no" real, "name" text, "builder" text, "whenbuilt" text, "withdrawn" text ); Question: What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964? <|assistant|> SELECT "whenbuilt" FROM "british_railways_batch" WHERE "builder"='brighton' AND "withdrawn"='september 1964' AND "name"='blandford forum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "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 with an Away team score of 8.11 (59)? <|assistant|> SELECT AVG("crowd") FROM "round_13" WHERE "away_team_score"='8.11 (59)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team has Away team score of 8.11 (59)? <|assistant|> SELECT "away_team" FROM "round_13" WHERE "away_team_score"='8.11 (59)';<|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 was the away team score when the team team score was 15.8 (98)? <|assistant|> SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='15.8 (98)';<|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 was the listed attendance when north melbourne was the home team? <|assistant|> SELECT "crowd" FROM "round_16" WHERE "home_team"='north melbourne';<|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 was geelong the home team? <|assistant|> SELECT "date" FROM "round_16" WHERE "home_team"='geelong';<|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: Who played as the home team when the attendance was more than 30,080? <|assistant|> SELECT "home_team" FROM "round_12" WHERE "crowd">'30,080';<|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 highest attendance at Junction Oval? <|assistant|> SELECT MAX("crowd") 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 teams score when Hawthorn played as the home team? <|assistant|> SELECT "away_team_score" FROM "round_12" WHERE "home_team"='hawthorn';<|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 does Atlantic 10 have? <|assistant|> SELECT "num_of_bids" FROM "record_by_conference" WHERE "conference"='atlantic 10';<|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 away team's score in the game against North Melbourne? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "home_team"='north 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: What was the lowest crowd size when the away team scored 11.17 (83)? <|assistant|> SELECT MIN("crowd") FROM "round_11" WHERE "away_team_score"='11.17 (83)';<|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 average crowd size when the away team was South Melbourne? <|assistant|> SELECT AVG("crowd") FROM "round_11" WHERE "away_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: At what venue did a crowd larger than 11,000 see the away team score 11.10 (76)? <|assistant|> SELECT "venue" FROM "round_11" WHERE "crowd">'11,000' AND "away_team_score"='11.10 (76)';<|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 was the away team Fitzroy? <|assistant|> SELECT "venue" FROM "round_11" WHERE "away_team"='fitzroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); Question: In what year saw a total distance of 1,870.23 km? <|assistant|> SELECT "year" FROM "tour_of_luzon" WHERE "distance"='1,870.23 km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); Question: Who won in 1965? <|assistant|> SELECT "winner" FROM "tour_of_luzon" WHERE "year"='1965';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); Question: What stage was 1,648 km achieved? <|assistant|> SELECT "stages" FROM "tour_of_luzon" WHERE "distance"='1,648 km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); Question: What year was stage 8 reached? <|assistant|> SELECT "year" FROM "tour_of_luzon" WHERE "stages"='8';<|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 number of bronze medals for teams ranked below 13? <|assistant|> SELECT MIN("bronze") FROM "medal_table" WHERE "rank">13;<|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: How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals? <|assistant|> SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=3 AND "rank">7 AND "total"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); Question: What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8? <|assistant|> SELECT MIN("highest_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='master p' AND "best_dancer_s"='drew lachey' AND "lowest_score"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); Question: Which of the Worst dancer(s) has the Lowest score of 14? <|assistant|> SELECT "worst_dancer_s" FROM "highest_and_lowest_scoring_performances" WHERE "lowest_score"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); Question: What is the Dance with the Highest score under 30 and Stacy Keibler as the Best dancer(s)? <|assistant|> SELECT "dance" FROM "highest_and_lowest_scoring_performances" WHERE "highest_score"<30 AND "best_dancer_s"='stacy keibler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); Question: What is the lowest of the Highest score for the Quickstep Dance and the Lowest score under 16? <|assistant|> SELECT MIN("highest_score") FROM "highest_and_lowest_scoring_performances" WHERE "dance"='quickstep' AND "lowest_score"<16;<|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: What is his record at ufc 67? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 67';<|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: What is his record at ufc 115? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 115';<|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, "record" text, "attendance" text ); Question: Which opponent had an attendance of 40,070? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='40,070';<|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, "record" text, "attendance" text ); Question: What's the result for the game held on December 27, 2004 with a week greater than 2? <|assistant|> SELECT "result" FROM "schedule" WHERE "week">2 AND "date"='december 27, 2004';<|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, "record" text, "attendance" text ); Question: Who was the opponent for week 6? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"=6;<|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, "record" text, "attendance" text ); Question: Which opponent had the result of W 24-14? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "result"='w 24-14';<|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, "record" text, "attendance" text ); Question: What's the attendance for the game held on January 2, 2005? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "date"='january 2, 2005';<|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: Which had an attendance of larger than 33,435? <|assistant|> SELECT "result" FROM "exhibition_schedule" WHERE "attendance">'33,435';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); Question: Which team lost under interim head coach, Dewayne Walker? <|assistant|> SELECT "team" FROM "coaching_changes" WHERE "result"='lost' AND "interim_head_coach"='dewayne walker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); Question: What was the result under interim head coach, Gary Darnell? <|assistant|> SELECT "result" FROM "coaching_changes" WHERE "interim_head_coach"='gary darnell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); Question: What was the result in 2008 under head coach Mike Sherman? <|assistant|> SELECT "result" FROM "coaching_changes" WHERE "2008_head_coach"='mike sherman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); Question: What team has a bowl of humanitarian? <|assistant|> SELECT "team" FROM "coaching_changes" WHERE "bowl"='humanitarian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); Question: What is the result under the season coach Rich Rodriguez? <|assistant|> SELECT "result" FROM "coaching_changes" WHERE "season_coach"='rich rodriguez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); Question: Who is the 2008 head coach of UCLA? <|assistant|> SELECT "2008_head_coach" FROM "coaching_changes" WHERE "team"='ucla';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challengers_and_futures_17" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: In what score did the match against Marcos Daniel end? <|assistant|> SELECT "score" FROM "challengers_and_futures_17" WHERE "opponent_in_the_final"='marcos daniel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challengers_and_futures_17" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What was the score of the game played on a clay surface on June 6, 2005? <|assistant|> SELECT "score" FROM "challengers_and_futures_17" WHERE "surface"='clay' AND "date"='june 6, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challengers_and_futures_17" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: On what date did the match against Flavio Cipolla, played on a clay surface, occur? <|assistant|> SELECT "date" FROM "challengers_and_futures_17" WHERE "surface"='clay' AND "opponent_in_the_final"='flavio cipolla';<|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: Which home team had a home team score of 15.8 (98)? <|assistant|> SELECT "home_team" FROM "round_6" WHERE "home_team_score"='15.8 (98)';<|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 Fitzroy's score when they were the home team? <|assistant|> SELECT "home_team_score" 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: Who was the home team when the away team had a score of 11.18 (84)? <|assistant|> SELECT "home_team" FROM "round_6" WHERE "away_team_score"='11.18 (84)';<|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: Where was the Hawthorn game played? <|assistant|> SELECT "venue" FROM "round_7" WHERE "away_team"='hawthorn';<|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 was the away teams score at Princes Park? <|assistant|> SELECT "away_team_score" FROM "round_7" WHERE "venue"='princes park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1971_isle_of_man_sidecar_750cc_tt_final_" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Which Rider finished with a speed of 81.91mph? <|assistant|> SELECT "rider" FROM "1971_isle_of_man_sidecar_750cc_tt_final_" WHERE "speed"='81.91mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1971_isle_of_man_sidecar_750cc_tt_final_" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Which Rider finished with a speed of 80.18mph? <|assistant|> SELECT "rider" FROM "1971_isle_of_man_sidecar_750cc_tt_final_" WHERE "speed"='80.18mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "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 at princes park? <|assistant|> SELECT "home_team_score" FROM "round_13" WHERE "venue"='princes park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "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 the home team scores 16.16 (112)? <|assistant|> SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='16.16 (112)';<|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 venue for the Footscray home team? <|assistant|> SELECT "venue" FROM "round_5" WHERE "home_team"='footscray';<|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: Which home team's venue is Windy Hill? <|assistant|> SELECT "home_team" FROM "round_5" WHERE "venue"='windy hill';<|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 score for Hawthorn as an away team? <|assistant|> SELECT "away_team_score" FROM "round_5" WHERE "away_team"='hawthorn';<|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 score of the away team when the home team is Essendon? <|assistant|> SELECT "away_team_score" FROM "round_5" WHERE "home_team"='essendon';<|endoftext|>