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 "dansk_melodi_grand_prix_1999_final" ( "draw" real, "artist" text, "song" text, "place" real, "points" real );. Question: "What is the average Draw when the Place is larger than 5?". [/INST] SELECT AVG("draw") FROM "dansk_melodi_grand_prix_1999_final" WHERE "place">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 "dansk_melodi_grand_prix_1999_final" ( "draw" real, "artist" text, "song" text, "place" real, "points" real );. Question: "What is the lowest Draw when the Artist is Stine Findsen and the Points are larger than 42?". [/INST] SELECT MIN("draw") FROM "dansk_melodi_grand_prix_1999_final" WHERE "artist"='stine findsen' AND "points">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 "dansk_melodi_grand_prix_1999_final" ( "draw" real, "artist" text, "song" text, "place" real, "points" real );. Question: "What is the Draw that has Points larger than 44 and a Place larger than 1?". [/INST] SELECT AVG("draw") FROM "dansk_melodi_grand_prix_1999_final" WHERE "points">44 AND "place">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 "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the away team score when home team score is 20.12 (132)?". [/INST] SELECT "away_team_score" FROM "round_10" WHERE "home_team_score"='20.12 (132)';</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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the position of the player from round 2 from Sweden?". [/INST] SELECT "position" FROM "draft_picks" WHERE "round"=2 AND "nationality"='sweden';</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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the highest round of Ian Cole, who played position d from the United States?". [/INST] SELECT MAX("round") FROM "draft_picks" WHERE "position"='d' AND "nationality"='united states' AND "player"='ian cole';</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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "Who is the player from Denmark who plays position c?". [/INST] SELECT "player" FROM "draft_picks" WHERE "position"='c' AND "nationality"='denmark';</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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "Which college/junior/club team (league) did Brett Sonne play in?". [/INST] SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='brett sonne';</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 "pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text );. Question: "Which date has a To par of –12?". [/INST] SELECT "date" FROM "pga_tour_wins_10" WHERE "to_par"='–12';</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" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "How many attended the game on December 16, 2001?". [/INST] SELECT "attendance" FROM "schedule" WHERE "date"='december 16, 2001';</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" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What week is a bye week?". [/INST] SELECT "week" FROM "schedule" WHERE "date"='bye';</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 "locomotives_owned_by_east_greta_coal_min" ( "locomotive" text, "type" text, "builder" text, "builder_s_no" real, "built" real, "entered_service" real, "withdrawn" text );. Question: "How many years entered service when there were 13 locomotives?". [/INST] SELECT COUNT("entered_service") FROM "locomotives_owned_by_east_greta_coal_min" WHERE "locomotive"='13';</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 "locomotives_owned_by_east_greta_coal_min" ( "locomotive" text, "type" text, "builder" text, "builder_s_no" real, "built" real, "entered_service" real, "withdrawn" text );. Question: "Which locomotive had a 2-8-2t type, entered service year prior to 1915, and which was built after 1911?". [/INST] SELECT "locomotive" FROM "locomotives_owned_by_east_greta_coal_min" WHERE "type"='2-8-2t' AND "entered_service"<1915 AND "built">1911;</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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the highest number of wins with a goal difference less than 4 at the Villarreal CF and more than 38 played?". [/INST] SELECT MAX("wins") FROM "final_table" WHERE "goal_difference"<4 AND "club"='villarreal cf' AND "played">38;</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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the highest number played with a goal difference less than -27?". [/INST] SELECT MAX("played") FROM "final_table" WHERE "goal_difference"<-27;</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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the highest number of loss with a 7 position and more than 45 goals?". [/INST] SELECT MAX("losses") FROM "final_table" WHERE "position"=7 AND "goals_for">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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the highest position with less than 17 losses, more than 57 goals, and a goal difference less than 4?". [/INST] SELECT MAX("position") FROM "final_table" WHERE "losses"<17 AND "goals_for">57 AND "goal_difference"<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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the average goal difference with 51 goals scored against and less than 17 losses?". [/INST] SELECT AVG("goal_difference") FROM "final_table" WHERE "goals_against"=51 AND "losses"<17;</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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the lowest position with 32-6 points and less then 59 goals when there are more than 38 played?". [/INST] SELECT MIN("position") FROM "final_table" WHERE "points"='32-6' AND "goals_against"<59 AND "played">38;</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 "18_finals_12_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What was the final score of the Australian Open?". [/INST] SELECT "score_in_the_final" FROM "18_finals_12_titles_6_runner_ups" WHERE "championship"='australian open';</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_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" real, "notes" text );. Question: "What record was set by walter brennan before 1941?". [/INST] SELECT "record_set" FROM "list_of_superlative_academy_award_winner" WHERE "actor"='walter brennan' AND "year"<1941;</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_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" real, "notes" text );. Question: "What is the earliest year for ordinary people to appear in the notes?". [/INST] SELECT MIN("year") FROM "list_of_superlative_academy_award_winner" WHERE "notes"='ordinary people';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );. Question: "what is the engine when the rounds ar all, the tyre is m and the driver is david coulthard?". [/INST] SELECT "engine" FROM "drivers_and_constructors" WHERE "rounds"='all' AND "tyre"='m' AND "driver"='david coulthard';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );. Question: "who is the entrant when the engine is bmw p82?". [/INST] SELECT "entrant" FROM "drivers_and_constructors" WHERE "engine"='bmw p82';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );. Question: "what is the rounds when the engine is mercedes fo110m?". [/INST] SELECT "rounds" FROM "drivers_and_constructors" WHERE "engine"='mercedes fo110m';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );. Question: "who is the driver when the engine is mercedes fo110m?". [/INST] SELECT "driver" FROM "drivers_and_constructors" WHERE "engine"='mercedes fo110m';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );. Question: "what is the tyre when the engine is asiatech at02 and the driver is alex yoong?". [/INST] SELECT "tyre" FROM "drivers_and_constructors" WHERE "engine"='asiatech at02' AND "driver"='alex yoong';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );. Question: "what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello?". [/INST] SELECT "chassis" FROM "drivers_and_constructors" WHERE "tyre"='b' AND "engine"='ferrari 050 ferrari 051' AND "driver"='rubens barrichello';</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 "newcomers_race_c" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What is the rank of the rider with time of 1:41.40.55?". [/INST] SELECT SUM("rank") FROM "newcomers_race_c" WHERE "time"='1:41.40.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 "newcomers_race_c" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What is the time of the rider with a 398cc yamaha?". [/INST] SELECT "time" FROM "newcomers_race_c" WHERE "team"='398cc yamaha';</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 "newcomers_race_c" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What is the time of the rider ranked 6?". [/INST] SELECT "time" FROM "newcomers_race_c" WHERE "rank"=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 "newcomers_race_c" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "Who is the rider with a 399cc Kawasaki?". [/INST] SELECT "rider" FROM "newcomers_race_c" WHERE "team"='399cc kawasaki';</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 "award_winners" ( "year" real, "utah_mr_basketball" text, "high_school" text, "class" text, "college" text );. Question: "Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?". [/INST] SELECT "high_school" FROM "award_winners" WHERE "utah_mr_basketball"='tyler haws' AND "year"=2009;</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: "How many players named bob charles with earnings over $7,646,958?". [/INST] SELECT COUNT("rank") FROM "leaders" WHERE "player"='bob charles' AND "earnings">'7,646,958';</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: "How much have players earned with 14 wins ranked below 3?". [/INST] SELECT COUNT("earnings") FROM "leaders" WHERE "wins"=14 AND "rank">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 "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );. Question: "How many average wins for players ranked below 2 with earnings greater than $7,676,552?". [/INST] SELECT AVG("wins") FROM "leaders" WHERE "earnings">'7,676,552' 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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who built the car that ran out of fuel before 28 laps?". [/INST] SELECT "constructor" FROM "race" WHERE "laps"<28 AND "time_retired"='out of fuel';</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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps?". [/INST] SELECT MAX("laps") FROM "race" WHERE "grid">21 AND "time_retired"='+2 laps';</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 "1874_1898" ( "class" text, "wheel_arrangement" text, "lcdr_number_s" text, "secr_numbers" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text );. Question: "Which SECR numbers have a class of b1?". [/INST] SELECT "secr_numbers" FROM "1874_1898" WHERE "class"='b1';</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 "1874_1898" ( "class" text, "wheel_arrangement" text, "lcdr_number_s" text, "secr_numbers" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text );. Question: "Which class was made in 1880?". [/INST] SELECT "class" FROM "1874_1898" WHERE "year_made"='1880';</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 "eastern_conference_quarter_finals_vs_8" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );. Question: "What is the date of the game when attendance is more than 20,682?". [/INST] SELECT "date" FROM "eastern_conference_quarter_finals_vs_8" WHERE "attendance">'20,682';</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_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What game showed a home team score of 8.11 (59)?". [/INST] SELECT "date" FROM "round_16" WHERE "home_team_score"='8.11 (59)';</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_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where was the game played with an away team score of 14.17 (101)?". [/INST] SELECT "venue" FROM "round_16" WHERE "away_team_score"='14.17 (101)';</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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What place had an Away team get a score of 10.17 (77)?". [/INST] SELECT "venue" FROM "round_2" WHERE "away_team_score"='10.17 (77)';</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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team played the Away team from Richmond?". [/INST] SELECT "home_team" FROM "round_2" WHERE "away_team"='richmond';</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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the home teams score while playing the away team of south melbourne?". [/INST] SELECT "home_team_score" FROM "round_2" WHERE "away_team"='south 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the score of the away team while playing at the arden street oval?". [/INST] SELECT "away_team_score" FROM "round_2" WHERE "venue"='arden street 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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text, "free_practice_driver_s" text );. Question: "What are the rounds for the B tyres and Ferrari 053 engine +?". [/INST] SELECT "rounds" FROM "drivers_and_constructors" WHERE "tyre"='b' AND "engine"='ferrari 053';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text, "free_practice_driver_s" text );. Question: "What kind of chassis does Ricardo Zonta have?". [/INST] SELECT "chassis" FROM "drivers_and_constructors" WHERE "driver"='ricardo zonta';</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 "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text, "free_practice_driver_s" text );. Question: "What kind of free practice is there with a Ford RS2 engine +?". [/INST] SELECT "free_practice_driver_s" FROM "drivers_and_constructors" WHERE "engine"='ford rs2';</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 "ranking_i_jsselmeervogels_per_season" ( "season" text, "competition" text, "matches" real, "draw" real, "lost" real, "points" real );. Question: "What is the total number of matches with a loss less than 5 in the 2008/2009 season and has a draw larger than 9?". [/INST] SELECT COUNT("matches") FROM "ranking_i_jsselmeervogels_per_season" WHERE "lost"<5 AND "season"='2008/2009' AND "draw">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 "ranking_i_jsselmeervogels_per_season" ( "season" text, "competition" text, "matches" real, "draw" real, "lost" real, "points" real );. Question: "What competition has a score greater than 30, a draw less than 5, and a loss larger than 10?". [/INST] SELECT "competition" FROM "ranking_i_jsselmeervogels_per_season" WHERE "points">30 AND "draw"<5 AND "lost">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 "ranking_i_jsselmeervogels_per_season" ( "season" text, "competition" text, "matches" real, "draw" real, "lost" real, "points" real );. Question: "What is the sum of the losses that a match score larger than 26, a points score of 62, and a draw greater than 5?". [/INST] SELECT SUM("lost") FROM "ranking_i_jsselmeervogels_per_season" WHERE "matches">26 AND "points"=62 AND "draw">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 "u_s_nielsen_ratings" ( "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "weekly_rank" text );. Question: "What is the average rating for "a lost puppy dog"?". [/INST] SELECT AVG("rating") FROM "u_s_nielsen_ratings" WHERE "episode"='\"a lost puppy dog\"';</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, "visitor" text, "score" text, "home" text, "record" text );. Question: "What is the record for the game on January 19?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='january 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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "What is the score of the game on January 12?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='january 12';</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, "visitor" text, "score" text, "home" text, "record" text );. Question: "Who was the home team when the vistor team was the Montreal Canadiens on February 12?". [/INST] SELECT "home" FROM "game_log" WHERE "visitor"='montreal canadiens' AND "date"='february 12';</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 "broadcast_translators_of_wbhy_fm" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Tell me the city of license with frequency of Mhz of 90.3 fm". [/INST] SELECT "city_of_license" FROM "broadcast_translators_of_wbhy_fm" WHERE "frequency_m_hz"='90.3 fm';</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 "broadcast_translators_of_wbhy_fm" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the call sign for ERP W of 4". [/INST] SELECT "call_sign" FROM "broadcast_translators_of_wbhy_fm" WHERE "erp_w"=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 "broadcast_translators_of_wbhy_fm" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the frequence MHz for ERP W of 55". [/INST] SELECT "frequency_m_hz" FROM "broadcast_translators_of_wbhy_fm" WHERE "erp_w"=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 "broadcast_translators_of_wbhy_fm" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the FCC info for call sign of w279at". [/INST] SELECT "fcc_info" FROM "broadcast_translators_of_wbhy_fm" WHERE "call_sign"='w279at';</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 "broadcast_translators_of_wbhy_fm" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the call sign for ERP W of 27". [/INST] SELECT "call_sign" FROM "broadcast_translators_of_wbhy_fm" WHERE "erp_w"=27;</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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the date of the game that had a score of 3 – 1?". [/INST] SELECT "date" FROM "january" WHERE "score"='3 – 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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score of the game when the Boston Bruins were the visiting team?". [/INST] SELECT "score" FROM "january" WHERE "visitor"='boston bruins';</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 "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score with a 16–14–6 record?". [/INST] SELECT "score" FROM "december" WHERE "record"='16–14–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 "surplus_and_secondhand_acquisitions_1860" ( "class" text, "wheel_arrangement" text, "lcdr_number_s" text, "secr_numbers" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text );. Question: "What was the SECR number of the item made in 1861?". [/INST] SELECT "secr_numbers" FROM "surplus_and_secondhand_acquisitions_1860" WHERE "year_made"='1861';</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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Name the venue with a home team of geelong". [/INST] SELECT "venue" FROM "round_6" WHERE "home_team"='geelong';</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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Name the home team score for larger crowd than 11,918 for windy hill venue". [/INST] SELECT "home_team_score" FROM "round_6" WHERE "crowd">'11,918' AND "venue"='windy hill';</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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the Home team scored 14.14 (98), what did the Away Team score?". [/INST] SELECT "away_team_score" FROM "round_17" WHERE "home_team_score"='14.14 (98)';</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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the Venue was Punt Road Oval, who was the Home Team?". [/INST] SELECT "home_team" FROM "round_17" WHERE "venue"='punt road 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When Melbourne was the Away team, what was their score?". [/INST] SELECT "away_team_score" FROM "round_17" WHERE "away_team"='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 "formula_one_world_championship_drivers_a" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text );. Question: "Who is driver of the d6 chassis?". [/INST] SELECT "driver" FROM "formula_one_world_championship_drivers_a" WHERE "chassis"='d6';</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 "formula_one_world_championship_drivers_a" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text );. Question: "Who is the constructor for driver Niki Lauda and a chassis of mp4/1c?". [/INST] SELECT "constructor" FROM "formula_one_world_championship_drivers_a" WHERE "chassis"='mp4/1c' AND "driver"='niki lauda';</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 "formula_one_world_championship_drivers_a" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text );. Question: "Who is the Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine?". [/INST] SELECT "constructor" FROM "formula_one_world_championship_drivers_a" WHERE "driver"='piercarlo ghinzani' AND "engine"='ford cosworth dfv 3.0 v8';</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 "premiers" ( "year" real, "seniors" text, "reserves" text, "thirds_under_17_s" text, "fourths_under_14_s" text );. Question: "Which seniors have a year before 2007, Fourths (Under 14's) of kiewa-sandy creek, and a Reserve of mitta united?". [/INST] SELECT "seniors" FROM "premiers" WHERE "year"<2007 AND "fourths_under_14_s"='kiewa-sandy creek' AND "reserves"='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 "premiers" ( "year" real, "seniors" text, "reserves" text, "thirds_under_17_s" text, "fourths_under_14_s" text );. Question: "Which seniors have a year after 2005, a Reserve of kiewa-sandy creek, and Fourths (Under 14's) of kiewa-sandy creek?". [/INST] SELECT "seniors" FROM "premiers" WHERE "year">2005 AND "reserves"='kiewa-sandy creek' AND "fourths_under_14_s"='kiewa-sandy creek';</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 "premiers" ( "year" real, "seniors" text, "reserves" text, "thirds_under_17_s" text, "fourths_under_14_s" text );. Question: "Which Fourths (Under 14's) have Seniors of dederang mt beauty?". [/INST] SELECT "fourths_under_14_s" FROM "premiers" WHERE "seniors"='dederang mt beauty';</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 "premiers" ( "year" real, "seniors" text, "reserves" text, "thirds_under_17_s" text, "fourths_under_14_s" text );. Question: "Which Thirds (Under 17's) have a Reserve of barnawartha?". [/INST] SELECT "thirds_under_17_s" FROM "premiers" WHERE "reserves"='barnawartha';</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 "premiers" ( "year" real, "seniors" text, "reserves" text, "thirds_under_17_s" text, "fourths_under_14_s" text );. Question: "Which Seniors have YEAR before 2006, and Fourths (Under 14's) of kiewa-sandy creek?". [/INST] SELECT "seniors" FROM "premiers" WHERE "year"<2006 AND "fourths_under_14_s"='kiewa-sandy creek';</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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "When Jean Alesi had laps less than 24, what was his highest grid?". [/INST] SELECT MAX("grid") FROM "race" WHERE "driver"='jean alesi' AND "laps"<24;</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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many laps did Ricardo Zonta drive with a grid less than 14?". [/INST] SELECT SUM("laps") FROM "race" WHERE "grid"<14 AND "driver"='ricardo zonta';</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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was Alexander Wurz's highest grid with laps of less than 25?". [/INST] SELECT MAX("grid") FROM "race" WHERE "driver"='alexander wurz' AND "laps"<25;</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 "castiglioni_brothers" ( "title" text, "year" real, "country" text, "directors" text, "music" text, "notes" text );. Question: "How many years have a Title of Magia Nuda?". [/INST] SELECT COUNT("year") FROM "castiglioni_brothers" WHERE "title"='magia nuda';</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 "castiglioni_brothers" ( "title" text, "year" real, "country" text, "directors" text, "music" text, "notes" text );. Question: "What is the country that has a music writer of Angelo Francesco Lavagnino, written in 1969?". [/INST] SELECT "country" FROM "castiglioni_brothers" WHERE "music"='angelo francesco lavagnino' AND "year"=1969;</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 "castiglioni_brothers" ( "title" text, "year" real, "country" text, "directors" text, "music" text, "notes" text );. Question: "Which music has the notes of AKA Africa Uncensored?". [/INST] SELECT "music" FROM "castiglioni_brothers" WHERE "notes"='aka africa uncensored';</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 "7301_7400" ( "ngc_number" text, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );. Question: "What is Pegasus' right ascension with a 7318a NGC?". [/INST] SELECT "right_ascension_j2000" FROM "7301_7400" WHERE "constellation"='pegasus' AND "ngc_number"='7318a';</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 "7301_7400" ( "ngc_number" text, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );. Question: "What is the declination of the spiral galaxy Pegasus with 7337 NGC". [/INST] SELECT "declination_j2000" FROM "7301_7400" WHERE "object_type"='spiral galaxy' AND "constellation"='pegasus' AND "ngc_number"='7337';</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 "7301_7400" ( "ngc_number" text, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );. Question: "What is the right ascension of Pegasus with a 7343 NGC?". [/INST] SELECT "right_ascension_j2000" FROM "7301_7400" WHERE "constellation"='pegasus' AND "ngc_number"='7343';</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 "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score on October 13?". [/INST] SELECT "score" FROM "october" WHERE "date"='october 13';</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 "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Which team won when the visitor was Carolina?". [/INST] SELECT "decision" FROM "october" WHERE "visitor"='carolina';</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 "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score on October 31?". [/INST] SELECT "score" FROM "october" WHERE "date"='october 31';</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 "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Which team was home on October 13?". [/INST] SELECT "home" FROM "october" WHERE "date"='october 13';</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_football_clubs_in_italy" ( "team" text, "home_city" text, "stadium" text, "capacity" real, "2011_12_season" text );. Question: "What team had a capacity of over 26,542, a home city of milan, and finished the 2011-2012 season 6th in serie a?". [/INST] SELECT "team" FROM "list_of_football_clubs_in_italy" WHERE "capacity">'26,542' AND "home_city"='milan' AND "2011_12_season"='6th in serie a';</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_football_clubs_in_italy" ( "team" text, "home_city" text, "stadium" text, "capacity" real, "2011_12_season" text );. Question: "What is the home city for angelo massimino stadium?". [/INST] SELECT "home_city" FROM "list_of_football_clubs_in_italy" WHERE "stadium"='angelo massimino';</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 "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What is the H/A for 20 february 2007?". [/INST] SELECT "h_a" FROM "knockout_phase" WHERE "date"='20 february 2007';</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 "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "How many people attended on 2 may 2007?". [/INST] SELECT SUM("attendance") FROM "knockout_phase" WHERE "date"='2 may 2007';</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 "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "Which date has roma as opponent and a H/A of A?". [/INST] SELECT "date" FROM "knockout_phase" WHERE "opponents"='roma' AND "h_a"='a';</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 "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "Which round has Attendance larger than 41,000, a H/A of A, and a Result F–A of 1–2?". [/INST] SELECT "round" FROM "knockout_phase" WHERE "attendance">'41,000' AND "h_a"='a' AND "result_f_a"='1–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 "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "Which round happened on 10 april 2007?". [/INST] SELECT "round" FROM "knockout_phase" WHERE "date"='10 april 2007';</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 "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "Which round has an Opponent of lille, and a H / A of h?". [/INST] SELECT "round" FROM "knockout_phase" WHERE "opponents"='lille' AND "h_a"='h';</s>