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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );. Question: "What's was the location for fight against Liam Mccarty?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='liam mccarty';</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 "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "How many strokes off par was the winner in 1978?". [/INST] SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1978';</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 "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What was the average round score of the player who won in 1978?". [/INST] SELECT AVG("total") FROM "missed_the_cut" WHERE "year_s_won"='1978';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the money won by Frank Nobilo?". [/INST] SELECT COUNT("money") FROM "final_round" WHERE "player"='frank nobilo';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is Lee Westwood's score?". [/INST] SELECT "score" FROM "final_round" WHERE "player"='lee westwood';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "How much money has been won by Stephen Ames?". [/INST] SELECT "money" FROM "final_round" WHERE "player"='stephen ames';</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_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "How much Drawn has Goals Against of 81, and a Lost larger than 23?". [/INST] SELECT COUNT("drawn") FROM "second_division_final_table" WHERE "goals_against"=81 AND "lost">23;</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_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against?". [/INST] SELECT AVG("lost") FROM "second_division_final_table" WHERE "position">5 AND "points_1"='37' AND "goals_against"<63;</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_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38?". [/INST] SELECT COUNT("drawn") FROM "second_division_final_table" WHERE "goals_against">74 AND "lost"<20 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 "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "Which Position has Goals For of 52, and Goals Against larger than 70?". [/INST] SELECT MAX("position") FROM "second_division_final_table" WHERE "goals_for"=52 AND "goals_against">70;</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_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "Which Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59?". [/INST] SELECT AVG("played") FROM "second_division_final_table" WHERE "drawn"=4 AND "position"=9 AND "goals_against">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 "1960s_rams_10_9_1" ( "year" real, "date" text, "home_team" text, "result" text, "visiting_team" text, "venue" text, "attendance" real );. Question: "Who is the home team when the san francisco 49ers are visiting with a result of 42-14?". [/INST] SELECT "home_team" FROM "1960s_rams_10_9_1" WHERE "visiting_team"='san francisco 49ers' AND "result"='42-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 "1960s_rams_10_9_1" ( "year" real, "date" text, "home_team" text, "result" text, "visiting_team" text, "venue" text, "attendance" real );. Question: "When was the earliest year when the attendance was 77,254?". [/INST] SELECT MIN("year") FROM "1960s_rams_10_9_1" WHERE "attendance"='77,254';</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 "1960s_rams_10_9_1" ( "year" real, "date" text, "home_team" text, "result" text, "visiting_team" text, "venue" text, "attendance" real );. Question: "When the san francisco 49ers are visiting with an attendance of more than 45,532 on September 30, who was the home team?". [/INST] SELECT "home_team" FROM "1960s_rams_10_9_1" WHERE "visiting_team"='san francisco 49ers' AND "attendance">'45,532' AND "date"='september 30';</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 "1960s_rams_10_9_1" ( "year" real, "date" text, "home_team" text, "result" text, "visiting_team" text, "venue" text, "attendance" real );. Question: "What was the total attendance for a result of 7-23 before 1960?". [/INST] SELECT SUM("attendance") FROM "1960s_rams_10_9_1" WHERE "result"='7-23' AND "year"<1960;</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 "biosynthesis" ( "enzyme" text, "location" text, "substrate" text, "product" text, "chromosome" text, "omim" real, "porphyria" text );. Question: "What is the location of the enzyme Uroporphyrinogen iii Synthase?". [/INST] SELECT "location" FROM "biosynthesis" WHERE "enzyme"='uroporphyrinogen iii synthase';</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 "biosynthesis" ( "enzyme" text, "location" text, "substrate" text, "product" text, "chromosome" text, "omim" real, "porphyria" text );. Question: "What is protoporphyrin ix's substrate?". [/INST] SELECT "substrate" FROM "biosynthesis" WHERE "product"='protoporphyrin ix';</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 "biosynthesis" ( "enzyme" text, "location" text, "substrate" text, "product" text, "chromosome" text, "omim" real, "porphyria" text );. Question: "Which substrate has an OMIM of 176000?". [/INST] SELECT "substrate" FROM "biosynthesis" WHERE "omim"=176000;</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What was Anders Forsbrand's score when the TO par is +4?". [/INST] SELECT "score" FROM "second_round" WHERE "to_par"='+4' AND "player"='anders forsbrand';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which player scored 76-68=144?". [/INST] SELECT "player" FROM "second_round" WHERE "score"='76-68=144';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What did United States place when the player was Raymond Floyd?". [/INST] SELECT "place" FROM "second_round" WHERE "country"='united states' AND "player"='raymond floyd';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country did Raymond Floyd play for?". [/INST] SELECT "country" FROM "second_round" WHERE "player"='raymond floyd';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Greg Norman's place?". [/INST] SELECT "place" FROM "second_round" WHERE "player"='greg norman';</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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What place did Paul McGinley finish in?". [/INST] SELECT "place" FROM "first_round" WHERE "player"='paul mcginley';</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 "made_the_cut" ( "player" text, "country" text, "year_s_won" real, "total" real, "to_par" text, "finish" text );. Question: "What is Tiger Woods' to par?". [/INST] SELECT "to_par" FROM "made_the_cut" WHERE "player"='tiger woods';</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 "made_the_cut" ( "player" text, "country" text, "year_s_won" real, "total" real, "to_par" text, "finish" text );. Question: "What is the to par when the year(s) won is larger than 1999?". [/INST] SELECT "to_par" FROM "made_the_cut" WHERE "year_s_won">1999;</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 "most_effective_team_in_a_la_liga_season_" ( "rank" real, "club" text, "season" text, "goals" real, "apps" real );. Question: "What are the apps for less than 61 goals and before rank 6?". [/INST] SELECT SUM("apps") FROM "most_effective_team_in_a_la_liga_season_" WHERE "rank"<6 AND "goals"<61;</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 "most_effective_team_in_a_la_liga_season_" ( "rank" real, "club" text, "season" text, "goals" real, "apps" real );. Question: "What season was Barcelona ranked higher than 12, had more than 96 goals and had more than 26 apps?". [/INST] SELECT "season" FROM "most_effective_team_in_a_la_liga_season_" WHERE "apps">26 AND "club"='barcelona' AND "goals">96 AND "rank">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 "most_effective_team_in_a_la_liga_season_" ( "rank" real, "club" text, "season" text, "goals" real, "apps" real );. Question: "How many apps when the rank was after 13 and having more than 73 goals?". [/INST] SELECT AVG("apps") FROM "most_effective_team_in_a_la_liga_season_" WHERE "goals">73 AND "rank">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 "most_effective_team_in_a_la_liga_season_" ( "rank" real, "club" text, "season" text, "goals" real, "apps" real );. Question: "Who was the club having less than 22 apps and ranked less than 2?". [/INST] SELECT "club" FROM "most_effective_team_in_a_la_liga_season_" WHERE "apps"<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 "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "With a score of 68-65=133 and United States as the country what is the To par?". [/INST] SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "score"='68-65=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 "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Who is the golfer that golfs for Northern Ireland?". [/INST] SELECT "player" FROM "second_round" WHERE "country"='northern ireland';</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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "The golfer in place 1 if from what country?". [/INST] SELECT "country" FROM "second_round" WHERE "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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "On what date was Tie #26 played?". [/INST] SELECT "date" FROM "third_round_proper" WHERE "tie_no"='26';</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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "On what date was Tie #13 played?". [/INST] SELECT "date" FROM "third_round_proper" WHERE "tie_no"='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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "For which tie was Scunthorpe United the away team?". [/INST] SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='scunthorpe 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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the final score for the tie where Leeds United was the home team?". [/INST] SELECT "score" FROM "third_round_proper" WHERE "home_team"='leeds 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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "In the tie where Southampton was the away team, who was the home team?". [/INST] SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='southampton';</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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the name of the away team for Tie #19?". [/INST] SELECT "away_team" FROM "third_round_proper" WHERE "tie_no"='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 "1999_2000" ( "year" real, "awards_show" text, "nominees" text, "nominated_work" text, "results" text );. Question: "Which Nominated Work won in 2000?". [/INST] SELECT "nominated_work" FROM "1999_2000" WHERE "year"=2000 AND "results"='won';</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 "1999_2000" ( "year" real, "awards_show" text, "nominees" text, "nominated_work" text, "results" text );. Question: "What was the result in 2000?". [/INST] SELECT "results" FROM "1999_2000" WHERE "year"=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 "1999_2000" ( "year" real, "awards_show" text, "nominees" text, "nominated_work" text, "results" text );. Question: "What was the results of the 71st Academy Awards show?". [/INST] SELECT "results" FROM "1999_2000" WHERE "awards_show"='71st academy awards';</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" ( "rank" text, "capacity" real, "city" text, "state" text, "year_opened" text );. Question: "What is the city in Alabama that opened in 1996?". [/INST] SELECT "city" FROM "see_also" WHERE "year_opened"='1996' AND "state"='alabama';</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" ( "rank" text, "capacity" real, "city" text, "state" text, "year_opened" text );. Question: "What is the lowest capacity for 1903?". [/INST] SELECT MIN("capacity") FROM "see_also" WHERE "year_opened"='1903';</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" ( "rank" text, "capacity" real, "city" text, "state" text, "year_opened" text );. Question: "What was the year opened for North Carolina with a smaller than 21,500 capacity?". [/INST] SELECT "year_opened" FROM "see_also" WHERE "state"='north carolina' AND "capacity"<'21,500';</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" ( "rank" text, "capacity" real, "city" text, "state" text, "year_opened" text );. Question: "What is the rank for the year opened in 1959 in Pennsylvania?". [/INST] SELECT "rank" FROM "see_also" WHERE "year_opened"='1959' AND "state"='pennsylvania';</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_winners" ( "year" real, "date" text, "location" text, "winner" text, "loser" text, "weight_class" text );. Question: "How many years were lightweight class on february 28, 2009?". [/INST] SELECT COUNT("year") FROM "list_of_winners" WHERE "weight_class"='lightweight' AND "date"='february 28, 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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "How many weeks have a Result of t 10-10?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "result"='t 10-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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "Which Date has a Week smaller than 8, and an Opponent of atlanta falcons?". [/INST] SELECT "date" FROM "schedule" WHERE "week"<8 AND "opponent"='atlanta falcons';</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" real );. Question: "Which Result has an Opponent of minnesota vikings?". [/INST] SELECT "result" FROM "schedule" WHERE "opponent"='minnesota vikings';</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 "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" text );. Question: "What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?". [/INST] SELECT MAX("rank") FROM "semifinal_1" WHERE "time"='1:47.65' AND "lane">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 "sports_career" ( "country" text, "event" text, "time" text, "date" text, "place" text );. Question: "What is the Place of the half marathon Event?". [/INST] SELECT "place" FROM "sports_career" WHERE "event"='half marathon';</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 "sports_career" ( "country" text, "event" text, "time" text, "date" text, "place" text );. Question: "What is the Place of the Event on August 25, 2007?". [/INST] SELECT "place" FROM "sports_career" WHERE "date"='august 25, 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 "sports_career" ( "country" text, "event" text, "time" text, "date" text, "place" text );. Question: "What is the Country of the Half Marathon Event?". [/INST] SELECT "country" FROM "sports_career" WHERE "event"='half marathon';</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 "sports_career" ( "country" text, "event" text, "time" text, "date" text, "place" text );. Question: "What is the Country of the 10,000m Event?". [/INST] SELECT "country" FROM "sports_career" WHERE "event"='10,000m';</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 "sports_career" ( "country" text, "event" text, "time" text, "date" text, "place" text );. Question: "What is the Event labeled Country of (local competition)?". [/INST] SELECT "event" FROM "sports_career" WHERE "country"='(local competition)';</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 "sports_career" ( "country" text, "event" text, "time" text, "date" text, "place" text );. Question: "What is the Date of the Event with a Time of 2:23:47?". [/INST] SELECT "date" FROM "sports_career" WHERE "time"='2:23:47';</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 "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What is the rank of the time of 6:30.53?". [/INST] SELECT COUNT("rank") FROM "semifinal_a_b_2" WHERE "time"='6:30.53';</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 "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What is the names of the rowers that the time was 6:24.61?". [/INST] SELECT "rowers" FROM "semifinal_a_b_2" WHERE "time"='6:24.61';</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 "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What country has a rank smaller than 6, a time of 6:32.32 and notes of FB?". [/INST] SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"<6 AND "notes"='fb' AND "time"='6:32.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 "australia" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "Which actor played on Home and Away for 20 years?". [/INST] SELECT "actor" FROM "australia" WHERE "duration"='20 years' AND "soap_opera"='home and away';</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 "australia" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "What character was portrayed by the same actor for 12 years on Neighbours?". [/INST] SELECT "character" FROM "australia" WHERE "duration"='12 years' AND "soap_opera"='neighbours';</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 "australia" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "How long did Joyce Jacobs portray her character on her show?". [/INST] SELECT "duration" FROM "australia" WHERE "actor"='joyce jacobs';</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 "australia" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "Which actor played Harold Bishop for 17 years?". [/INST] SELECT "actor" FROM "australia" WHERE "duration"='17 years' AND "character"='harold bishop';</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 "australia" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "Which years did Martin Sacks work on a soap opera?". [/INST] SELECT "years" FROM "australia" WHERE "actor"='martin sacks';</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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text, "arena" text, "points" text );. Question: "What is the Arena when there were 65 points?". [/INST] SELECT "arena" FROM "regular_season" WHERE "points"='65';</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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text, "arena" text, "points" text );. Question: "What is the record when the score was 2–0?". [/INST] SELECT "record" FROM "regular_season" WHERE "score"='2–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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text, "arena" text, "points" text );. Question: "What were the points on February 10?". [/INST] SELECT "points" FROM "regular_season" WHERE "date"='february 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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text, "arena" text, "points" text );. Question: "What is the record at Palasport Olimpico?". [/INST] SELECT "record" FROM "regular_season" WHERE "arena"='palasport olimpico';</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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text, "arena" text, "points" text );. Question: "What is the points when the score was 3–1, and record was 25–19–11?". [/INST] SELECT "points" FROM "regular_season" WHERE "score"='3–1' AND "record"='25–19–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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text, "arena" text, "points" text );. Question: "What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)?". [/INST] SELECT "record" FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "loss"='bryzgalov (10–11–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 "races" ( "date" text, "track" text, "race" text, "finish" text, "fin_time" text, "last_1_4" text, "driver" text, "trainer" text );. Question: "What is the finishing time with a 2/1q finish on the Meadowlands track?". [/INST] SELECT "fin_time" FROM "races" WHERE "finish"='2/1q' AND "track"='the meadowlands';</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 "races" ( "date" text, "track" text, "race" text, "finish" text, "fin_time" text, "last_1_4" text, "driver" text, "trainer" text );. Question: "What is the last 1/4 for the QUA race with a finishing time of 2:03.1?". [/INST] SELECT "last_1_4" FROM "races" WHERE "race"='qua' AND "fin_time"='2:03.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 "race_4_junior_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "How many ranks have 1:01.14.62 as the time, with michael russell as the rider?". [/INST] SELECT COUNT("rank") FROM "race_4_junior_manx_grand_prix" WHERE "time"='1:01.14.62' AND "rider"='michael russell';</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_4_junior_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What time has phil mcgurk as the rider?". [/INST] SELECT "time" FROM "race_4_junior_manx_grand_prix" WHERE "rider"='phil mcgurk';</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_4_junior_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "How many ranks have michael russell as the rider?". [/INST] SELECT SUM("rank") FROM "race_4_junior_manx_grand_prix" WHERE "rider"='michael russell';</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 "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many goals were conceded by the team with more than 21 points more than 5 draws and less than 18 games played?". [/INST] SELECT SUM("goals_conceded") FROM "standings" WHERE "draw">5 AND "points">21 AND "played"<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 "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many goals were conceded by teams with 32 points, more than 2 losses and more than 22 goals scored?". [/INST] SELECT COUNT("goals_conceded") FROM "standings" WHERE "points"=32 AND "lost">2 AND "goals_scored">22;</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 "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many points did the team have that conceded 41 goals and finish in a place larger than 10?". [/INST] SELECT COUNT("points") FROM "standings" WHERE "goals_conceded"=41 AND "place">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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text );. Question: "Who was the opponent in week 13?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"=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 "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );. Question: "What location has kingsmen as the mascot?". [/INST] SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='kingsmen';</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 "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );. Question: "What location has an enrollment greater than 1,313, and kingsmen as the mascot?". [/INST] SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">'1,313' AND "mascot"='kingsmen';</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 "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );. Question: "What IHSAA Football Class has 20 elkhart as the county?". [/INST] SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "county"='20 elkhart';</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 "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );. Question: "What school has south bend as the location, with indians as the mascot?". [/INST] SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "location"='south bend' AND "mascot"='indians';</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 "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "What name has Fakel New Urengoy as the 2008 club?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='fakel new urengoy';</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 "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "What shows for height for the 2008 club of Stade Poitevin Poitiers?". [/INST] SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='stade poitevin poitiers';</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 "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "What is the name for the 2008 club of Azs olsztyn?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='azs olsztyn';</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 "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "What is the spike for the 2008 club of Lokomotiv Novosibirsk?". [/INST] SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='lokomotiv novosibirsk';</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 "balance_beam_ef_qualifiers" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );. Question: "What's the total that the position is less than 1?". [/INST] SELECT MIN("total") FROM "balance_beam_ef_qualifiers" WHERE "position"<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 "balance_beam_ef_qualifiers" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );. Question: "What the B Score when the total is 16.125 and the position is less than 7?". [/INST] SELECT SUM("b_score") FROM "balance_beam_ef_qualifiers" WHERE "position"<7 AND "total"=16.125;</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 "horizontal_bar_event_final_qualifiers" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real );. Question: "What was the total rating that had a score higher than 7 and a b score smaller than 8.65?". [/INST] SELECT SUM("total") FROM "horizontal_bar_event_final_qualifiers" WHERE "a_score">7 AND "b_score"<8.65;</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 "horizontal_bar_event_final_qualifiers" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real );. Question: "Which gymnast had a b score of 8.95 and an a score less than 6.9". [/INST] SELECT "gymnast" FROM "horizontal_bar_event_final_qualifiers" WHERE "b_score"=8.95 AND "a_score"<6.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 "tournaments" ( "year" real, "winners" text, "runner_up" text, "third_place" text, "fourth_place" text, "best_goalkeeper" text, "top_goal_scorer_s" text );. Question: "Who were the winners in 1998?". [/INST] SELECT "winners" FROM "tournaments" WHERE "year"=1998;</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 "tournaments" ( "year" real, "winners" text, "runner_up" text, "third_place" text, "fourth_place" text, "best_goalkeeper" text, "top_goal_scorer_s" text );. Question: "What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo?". [/INST] SELECT AVG("year") FROM "tournaments" WHERE "runner_up"='portugal' AND "third_place"='italy' AND "best_goalkeeper"='nuno hidalgo';</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 "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text );. Question: "What is the college pick for 213?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "pick"=213;</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 "fa_trophy" ( "round" text, "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text, "attendance" real );. Question: "what is the round on 21 february 2009?". [/INST] SELECT "round" FROM "fa_trophy" WHERE "date"='21 february 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 "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text, "year_left" real, "conference_joined" text );. Question: "What is the highest enrollment for rochester community school?". [/INST] SELECT MAX("enrollment") FROM "former_members" WHERE "school"='rochester community';</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 "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text, "year_left" real, "conference_joined" text );. Question: "What is the average enrollment that has hot dogs as the mascot, with a year joined later than 1926?". [/INST] SELECT AVG("enrollment") FROM "former_members" WHERE "mascot"='hot dogs' AND "year_joined">1926;</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 "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text, "year_left" real, "conference_joined" text );. Question: "What is the lowest enrollment that has Lafayette as the location?". [/INST] SELECT MIN("enrollment") FROM "former_members" WHERE "location"='lafayette';</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 "singles" ( "location" text, "year" text, "champion" text, "runner_up" text, "score" text, "name" text );. Question: "Who was runner-up in the 2006 Pacific Life Open?". [/INST] SELECT "runner_up" FROM "singles" WHERE "name"='pacific life open' AND "year"='2006';</s>