text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );. Question: "Who was the maufacturer of the vehicle during the race where Cale Yarborough started at 19 and finished earlier than 42?". [/INST] SELECT "manufacturer" FROM "daytona_500_results" WHERE "finish"<42 AND "start"=19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );. Question: "What is the smallest finish time for a race after 1972 with a car manufactured by pontiac?". [/INST] SELECT MIN("finish") FROM "daytona_500_results" WHERE "year">1972 AND "manufacturer"='pontiac';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );. Question: "What is the smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978?". [/INST] SELECT MIN("finish") FROM "daytona_500_results" WHERE "year">1978 AND "manufacturer"='buick' AND "start"<3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text );. Question: "What home team had an attendance record of 16,971?". [/INST] SELECT "home_team" FROM "fourth_round" WHERE "attendance"='16,971';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_two_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "Tell me the track that has the catalogue of apbo 0280". [/INST] SELECT "track" FROM "disc_two_the_singles" WHERE "catalogue"='apbo 0280';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_two_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "I want the sum of tracks for raised on rock". [/INST] SELECT SUM("track") FROM "disc_two_the_singles" WHERE "song_title"='raised on rock';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_two_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "Tell me the time for 6/6/77 release date and song title of way down". [/INST] SELECT "time" FROM "disc_two_the_singles" WHERE "release_date"='6/6/77' AND "song_title"='way down';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_two_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "Tell me the recorded for time of 2:50 and released date of 6/6/77 with track more than 20". [/INST] SELECT "recorded" FROM "disc_two_the_singles" WHERE "track">20 AND "release_date"='6/6/77' AND "time"='2:50';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_two_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "Tell me the release date record on 10/29/76 and a time on 2:50". [/INST] SELECT "release_date" FROM "disc_two_the_singles" WHERE "time"='2:50' AND "recorded"='10/29/76';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_two_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "Name the catalogue that has tracks less than 13 and the release date of 10/31/72". [/INST] SELECT "catalogue" FROM "disc_two_the_singles" WHERE "track"<13 AND "release_date"='10/31/72';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_west_end_theatres" ( "theatre" text, "current_show" text, "classification" text, "capacity" real, "opening_date" text, "closing_date" text );. Question: "What is the opening date of the musical at the adelphi theatre?". [/INST] SELECT "opening_date" FROM "list_of_west_end_theatres" WHERE "classification"='musical' AND "theatre"='adelphi theatre';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_west_end_theatres" ( "theatre" text, "current_show" text, "classification" text, "capacity" real, "opening_date" text, "closing_date" text );. Question: "What opening date has a capacity of 100?". [/INST] SELECT "opening_date" FROM "list_of_west_end_theatres" WHERE "capacity"=100;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );. Question: "On average, how many wins have a rank lower than 1?". [/INST] SELECT AVG("wins") FROM "leaders" WHERE "rank"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );. Question: "What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2?". [/INST] SELECT MIN("earnings") FROM "leaders" WHERE "wins"=22 AND "rank"<2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );. Question: "In total, how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?". [/INST] SELECT COUNT("earnings") FROM "leaders" WHERE "country"='united states' AND "wins"<24 AND "player"='george archer' AND "rank">5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text );. Question: "What state did Hon David Beddall belong to?". [/INST] SELECT "state" FROM "see_also" WHERE "member"='hon david beddall';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text );. Question: "In what state was the electorate fowler?". [/INST] SELECT "state" FROM "see_also" WHERE "electorate"='fowler';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m" ( "player" text, "pos" text, "from" text, "school_country" text, "rebs" real, "asts" real );. Question: "What position does the player from arkansas play?". [/INST] SELECT "pos" FROM "m" WHERE "school_country"='arkansas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m" ( "player" text, "pos" text, "from" text, "school_country" text, "rebs" real, "asts" real );. Question: "Who has the high assists in 2000?". [/INST] SELECT MAX("asts") FROM "m" WHERE "from"='2000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text );. Question: "What is the word count that is named omega dot?". [/INST] SELECT "word_num" FROM "message_format" WHERE "name"='omega dot';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text );. Question: "What is the total word count with a subframe count greater than 3?". [/INST] SELECT SUM("word_num") FROM "message_format" WHERE "subframe_num">3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the total grid with laps less than 2?". [/INST] SELECT SUM("grid") FROM "classification" WHERE "laps"<2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How much time is required for less than 35 laps and less than 10 grids?". [/INST] SELECT "time_retired" FROM "classification" WHERE "laps"<35 AND "grid"<10;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wales" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Venue for Goal number 1?". [/INST] SELECT "venue" FROM "wales" WHERE "goal"=1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_line_series" ( "airing_date" text, "number_of_episodes" real, "hd_format" text, "highest_average_point_ratings" real, "genre" text, "official_website" text );. Question: "What was the airing date when the number of episodes was larger than 20 and had the genre of costume action?". [/INST] SELECT "airing_date" FROM "second_line_series" WHERE "number_of_episodes">20 AND "genre"='costume action';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_line_series" ( "airing_date" text, "number_of_episodes" real, "hd_format" text, "highest_average_point_ratings" real, "genre" text, "official_website" text );. Question: "What are the number of episodes when the genre is modern drama and the highest average ratings points are 28?". [/INST] SELECT AVG("number_of_episodes") FROM "second_line_series" WHERE "genre"='modern drama' AND "highest_average_point_ratings"=28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "numismatic_one_three_and_five_cents" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text );. Question: "What year was S.A. Allward's theme that had an issue price of $16.95 released?". [/INST] SELECT "year" FROM "numismatic_one_three_and_five_cents" WHERE "issue_price"='$16.95' AND "artist"='s.a. allward';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "numismatic_one_three_and_five_cents" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text );. Question: "What was the total mintage for years after 2002 that had a 85th Anniversary of Vimy Ridge theme?". [/INST] SELECT COUNT("mintage") FROM "numismatic_one_three_and_five_cents" WHERE "theme"='85th anniversary of vimy ridge' AND "year">2002;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "How many people attended the game with the home team scoring 18.25 (133)?". [/INST] SELECT COUNT("crowd") FROM "round_1" WHERE "home_team_score"='18.25 (133)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "How large was the crowd with a home team score of 18.25 (133)?". [/INST] SELECT "crowd" FROM "round_1" WHERE "home_team_score"='18.25 (133)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "How many people attended the game where Footscray was away?". [/INST] SELECT "crowd" FROM "round_1" WHERE "away_team"='footscray';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "titles" ( "swedish_title" text, "norwegian_title" text, "translated_title" text, "published" real, "pages" real, "isbn" text );. Question: "How many pages associated with isbn 91-7713-035-9?". [/INST] SELECT SUM("pages") FROM "titles" WHERE "isbn"='isbn 91-7713-035-9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 played at Moorabbin Oval to a crowd of 19,144?". [/INST] SELECT "home_team" FROM "round_4" WHERE "crowd">'19,144' AND "venue"='moorabbin oval';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 big was the crowd of the team that scored 4.13 (37)?". [/INST] SELECT SUM("crowd") FROM "round_4" WHERE "away_team_score"='4.13 (37)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 home team played at MCG?". [/INST] SELECT "away_team" FROM "round_4" WHERE "venue"='mcg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 played at Kardinia Park?". [/INST] SELECT "away_team_score" FROM "round_4" WHERE "venue"='kardinia park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "On what date did the match at Lake Oval take place?". [/INST] SELECT "date" FROM "round_5" WHERE "venue"='lake oval';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 wa the date of the North Melbourne home game?". [/INST] SELECT "date" FROM "round_5" WHERE "home_team"='north melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 lowest crowd size at MCG?". [/INST] SELECT MIN("crowd") FROM "round_5" WHERE "venue"='mcg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text );. Question: "Who did the Tampa Bay Buccaneers play on december 23, 1995?". [/INST] SELECT "opponent" FROM "schedule" WHERE "date"='december 23, 1995';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text );. Question: "On what date was Tampa Bay's Week 4 game?". [/INST] SELECT "date" FROM "schedule" WHERE "week"='4';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text );. Question: "What week was it on November 19, 1995?". [/INST] SELECT "week" FROM "schedule" WHERE "date"='november 19, 1995';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the most gold medals a team with less than 2 silvers, more than 7 total medals, and less than 8 bronze medals has?". [/INST] SELECT MAX("gold") FROM "medal_table" WHERE "silver"<2 AND "total">7 AND "bronze"<8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the number of bronze that Scotland, which has less than 7 total medals, has?". [/INST] SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='scotland' AND "total"<7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average silver medals a team that has 1 gold and more than 5 bronze has?". [/INST] SELECT AVG("silver") FROM "medal_table" WHERE "gold"=1 AND "bronze">5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of bronze a team with more than 0 silver, a total of 7 medals, and less than 1 gold medal has?". [/INST] SELECT COUNT("bronze") FROM "medal_table" WHERE "silver">0 AND "total"=7 AND "gold"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest rank a team with 1 silver and less than 5 bronze medals has?". [/INST] SELECT MAX("rank") FROM "medal_table" WHERE "silver"=1 AND "bronze"<5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "What's the highest Pl GP with a Reg GP over 18?". [/INST] SELECT MAX("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp">18;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "citrus_series" ( "date" text, "winning_team" text, "losing_team" text, "score" text, "venue" text );. Question: "on June 14, what was the winning score by the Devil rays in pro player stadium?". [/INST] SELECT "score" FROM "citrus_series" WHERE "venue"='pro player stadium' AND "winning_team"='devil rays' AND "date"='june 14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "citrus_series" ( "date" text, "winning_team" text, "losing_team" text, "score" text, "venue" text );. Question: "what was the score on june 16?". [/INST] SELECT "score" FROM "citrus_series" WHERE "date"='june 16';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "citrus_series" ( "date" text, "winning_team" text, "losing_team" text, "score" text, "venue" text );. Question: "who won by a score of 4-1?". [/INST] SELECT "winning_team" FROM "citrus_series" WHERE "score"='4-1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "citrus_series" ( "date" text, "winning_team" text, "losing_team" text, "score" text, "venue" text );. Question: "what was the score on june 29?". [/INST] SELECT "score" FROM "citrus_series" WHERE "date"='june 29';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "citrus_series" ( "date" text, "winning_team" text, "losing_team" text, "score" text, "venue" text );. Question: "what was the score on june 29 when the devil rays los?". [/INST] SELECT "score" FROM "citrus_series" WHERE "losing_team"='devil rays' AND "date"='june 29';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "citrus_series" ( "date" text, "winning_team" text, "losing_team" text, "score" text, "venue" text );. Question: "what was the score of the game at pro player stadium on june 14?". [/INST] SELECT "score" FROM "citrus_series" WHERE "venue"='pro player stadium' AND "date"='june 14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "Where did the away team score 8.7 (55)?". [/INST] SELECT "venue" FROM "round_10" WHERE "away_team_score"='8.7 (55)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "When a home team scored 17.15 (117) and the away team scored 6.9 (45), what was the away team?". [/INST] SELECT "away_team" FROM "round_10" WHERE "home_team_score"='17.15 (117)' AND "away_team_score"='6.9 (45)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 total crowd size when a home team scored 17.15 (117) versus hawthorn?". [/INST] SELECT SUM("crowd") FROM "round_10" WHERE "home_team_score"='17.15 (117)' AND "away_team"='hawthorn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the average grid for jack brabham going over 32 laps?". [/INST] SELECT AVG("grid") FROM "classification" WHERE "driver"='jack brabham' AND "laps">32;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );. Question: "Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata?". [/INST] SELECT "res" FROM "mixed_martial_arts_record" WHERE "method"='decision (unanimous)' AND "opponent"='wataru sakata';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );. Question: "Which Record has the Res of win with the Event of extreme fighting 1?". [/INST] SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='extreme fighting 1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "rams_points" real, "opponents" real, "record" text, "attendance" real );. Question: "What was the attendance where the record was 8-4?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "record"='8-4';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "what is at 10:00 when at 9:00 it is lost (#19, 4.6 rating) and at 8:30 it is lost (reruns)?". [/INST] SELECT "10_00" FROM "thursday" WHERE "9_00"='lost (#19, 4.6 rating)' AND "8_30"='lost (reruns)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "What is at 9:00 when at 10:00 it is local programming and at 9:30 it is my thursday night movie?". [/INST] SELECT "9_00" FROM "thursday" WHERE "10_00"='local programming' AND "9_30"='my thursday night movie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "what is at 9:30 when at 8:30 it is scrubs?". [/INST] SELECT "9_30" FROM "thursday" WHERE "8_30"='scrubs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "what is at 10:00 when at 9:00 it is reaper?". [/INST] SELECT "10_00" FROM "thursday" WHERE "9_00"='reaper';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "what is at 10:00 when at 8:30 it is scrubs?". [/INST] SELECT "10_00" FROM "thursday" WHERE "8_30"='scrubs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "what is at 8:00 when at 8:30 it is my thursday night movie?". [/INST] SELECT "8_00" FROM "thursday" WHERE "8_30"='my thursday night movie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the largest total for a team with fewer than 12 bronze, 1 silver and 0 gold medals?". [/INST] SELECT MAX("total") FROM "medal_table" WHERE "bronze"<12 AND "gold"=0 AND "silver"=1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?". [/INST] SELECT MAX("total") FROM "medal_table" WHERE "bronze"=1 AND "rank"='7' AND "gold">0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the number of bronze medals when there are fewer than 0 silver medals?". [/INST] SELECT SUM("bronze") FROM "medal_table" WHERE "silver"<0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest number of silver medals for a team with total less than 1?". [/INST] SELECT MAX("silver") FROM "medal_table" WHERE "total"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which player is from Tampa, Florida?". [/INST] SELECT "player" FROM "2010_team" WHERE "hometown"='tampa, florida';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which college is Jordan Phillips playing for?". [/INST] SELECT "college" FROM "2010_team" WHERE "player"='jordan phillips';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What college has a position of defensive line and Grant high school?". [/INST] SELECT "college" FROM "2010_team" WHERE "position"='defensive line' AND "school"='grant high school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What position is for Plant high school?". [/INST] SELECT "position" FROM "2010_team" WHERE "school"='plant high school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What position is for Dr. Phillips high school?". [/INST] SELECT "position" FROM "2010_team" WHERE "school"='dr. phillips high school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which hometown has a player of Ray Drew?". [/INST] SELECT "hometown" FROM "2010_team" WHERE "player"='ray drew';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006_ladder" ( "tallangatta_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the most byes with 11 wins and fewer than 1867 againsts?". [/INST] SELECT MAX("byes") FROM "2006_ladder" WHERE "against"<1867 AND "wins"=11;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006_ladder" ( "tallangatta_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What are the draws when wins are fwewer than 9 and byes fewer than 2?". [/INST] SELECT COUNT("draws") FROM "2006_ladder" WHERE "wins"<9 AND "byes"<2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006_ladder" ( "tallangatta_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What are the fewest draws with less than 7 losses and Mitta United is the Tallagatta DFL?". [/INST] SELECT MIN("draws") FROM "2006_ladder" WHERE "losses"<7 AND "tallangatta_dfl"='mitta united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006_ladder" ( "tallangatta_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What are the losses when there are 9 wins and more than 1326 against?". [/INST] SELECT SUM("losses") FROM "2006_ladder" WHERE "wins"=9 AND "against">1326;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the decision of the Red Wings game when they had a record of 45β18β6?". [/INST] SELECT "decision" FROM "march" WHERE "record"='45β18β6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41_o" text, "d_42_o" text, "d_43_o" text, "d_44_o" text, "d_45" text, "r_55" text, "r_54" text, "r_53" text, "r_52_o" text, "r_51_o" text );. Question: "Which R 51 O value corresponds to a D 42 O value of r 19?". [/INST] SELECT "r_51_o" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42_o"='r 19';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41_o" text, "d_42_o" text, "d_43_o" text, "d_44_o" text, "d_45" text, "r_55" text, "r_54" text, "r_53" text, "r_52_o" text, "r_51_o" text );. Question: "What is the value of D 43 O that has a corresponding R 53 + value of r 8?". [/INST] SELECT "d_43_o" FROM "senate_composition_as_a_result_of_the_el" WHERE "r_53"='r 8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41_o" text, "d_42_o" text, "d_43_o" text, "d_44_o" text, "d_45" text, "r_55" text, "r_54" text, "r_53" text, "r_52_o" text, "r_51_o" text );. Question: "What is the value of D 42 O that has an R 53 + value of r 8?". [/INST] SELECT "d_42_o" FROM "senate_composition_as_a_result_of_the_el" WHERE "r_53"='r 8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000_nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "What's the highest round that louisville drafted into when their pick was over 75?". [/INST] SELECT MAX("round") FROM "2000_nfl_draft" WHERE "school_club_team"='louisville' AND "pick">75;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000_nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Where's the first round that southern mississippi shows up during the draft?". [/INST] SELECT MIN("round") FROM "2000_nfl_draft" WHERE "school_club_team"='southern mississippi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real );. Question: "Cowansville has less than 16 regions and is a Brome-Missisquoi Municipality, what is their population?". [/INST] SELECT MIN("population") FROM "list_of_municipalities_in_quebec" WHERE "regional_county_municipality"='brome-missisquoi' AND "name"='cowansville' AND "region"<16;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real );. Question: "Saint-Blaise-Sur-Richelieu is smaller than 68.42 km^2, what is the population of this type M municipality?". [/INST] SELECT MIN("population") FROM "list_of_municipalities_in_quebec" WHERE "type"='m' AND "name"='saint-blaise-sur-richelieu' AND "area_km_2"<68.42;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real );. Question: "What is the code for a Le Haut-Saint-Laurent municipality that has 16 or more regions?". [/INST] SELECT MIN("code") FROM "list_of_municipalities_in_quebec" WHERE "regional_county_municipality"='le haut-saint-laurent' AND "region">16;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real );. Question: "Where was the security pacific senior classic?". [/INST] SELECT "location" FROM "tournament_results" WHERE "tournament"='security pacific senior classic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real );. Question: "What is the purse for the tournament with a winning score of 212 (-4), and a 1st prize of under $105,000?". [/INST] SELECT MIN("purse") FROM "tournament_results" WHERE "score"='212 (-4)' AND "1st_prize"<'105,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the total Crowd number for the team that has an Away team score of 12.18 (90)?". [/INST] SELECT SUM("crowd") FROM "round_18" WHERE "away_team_score"='12.18 (90)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 is listed for the team that has an Away team score of 20.21 (141)?". [/INST] SELECT "date" FROM "round_18" WHERE "away_team_score"='20.21 (141)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the name of the Venue for the team that has an Away team score of 14.11 (95)?". [/INST] SELECT "venue" FROM "round_18" WHERE "away_team_score"='14.11 (95)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the Home team score for the Away team of North Melbourne?". [/INST] SELECT "home_team_score" FROM "round_18" WHERE "away_team"='north melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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: "On what date the footscray's away game?". [/INST] SELECT "date" FROM "round_12" WHERE "away_team"='footscray';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the date of the game with a result of 3β2?". [/INST] SELECT "date" FROM "international_goals" WHERE "result"='3β2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the date of the game with a goal of 7?". [/INST] SELECT "date" FROM "international_goals" WHERE "goal"=7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Who is the opponent on april 16?". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='april 16';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.