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 "2010_senior_classic_practice_times_and_l" ( "rank" real, "rider" text, "sat_21_aug" text, "mon_23_aug" text, "tues_24_aug" text, "wed_25_aug" text, "thurs_26_aug" text, "fri_27_aug" text, "sat_28_aug" text );. Question: "What was the time on Monday August 23rd for Steve Linsdell 499cc royal enfield seeley?". [/INST] SELECT "mon_23_aug" FROM "2010_senior_classic_practice_times_and_l" WHERE "rider"='Steve Linsdell 499cc Royal Enfield Seeley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5500_series_gainestown" ( "model" text, "speed_g_hz" text, "l3_cache_mb" real, "qpi_speed_gt_s" text, "ddr3_clock_m_hz" real, "tdp_w" real, "cores" real, "threads" real, "turbo_boost" text );. Question: "Does the model e5504 have a turbo boost?". [/INST] SELECT "turbo_boost" FROM "5500_series_gainestown" WHERE "model"='E5504';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5500_series_gainestown" ( "model" text, "speed_g_hz" text, "l3_cache_mb" real, "qpi_speed_gt_s" text, "ddr3_clock_m_hz" real, "tdp_w" real, "cores" real, "threads" real, "turbo_boost" text );. Question: "What is the speed of model x5560?". [/INST] SELECT "speed_g_hz" FROM "5500_series_gainestown" WHERE "model"='X5560';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5500_series_gainestown" ( "model" text, "speed_g_hz" text, "l3_cache_mb" real, "qpi_speed_gt_s" text, "ddr3_clock_m_hz" real, "tdp_w" real, "cores" real, "threads" real, "turbo_boost" text );. Question: "What is the maximum L3 cache of the processor whose speed is 2.00 GHZ, has a QPI speed of 4.8 gt/s, and is model e5504?". [/INST] SELECT MAX("l3_cache_mb") FROM "5500_series_gainestown" WHERE "qpi_speed_gt_s"='4.8' AND "speed_g_hz"='2.00' AND "model"='E5504';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5500_series_gainestown" ( "model" text, "speed_g_hz" text, "l3_cache_mb" real, "qpi_speed_gt_s" text, "ddr3_clock_m_hz" real, "tdp_w" real, "cores" real, "threads" real, "turbo_boost" text );. Question: "How many models numbered L5506 have a QPI speed?". [/INST] SELECT COUNT("qpi_speed_gt_s") FROM "5500_series_gainestown" WHERE "model"='L5506';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes_and_ratings" ( "episode" real, "airdate" text, "game_1" text, "game_2" text, "game_3" text, "viewers" text );. Question: "What was game 3 when there were under 2.61m viewers?". [/INST] SELECT "game_3" FROM "episodes_and_ratings" WHERE "viewers"='Under 2.61m';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes_and_ratings" ( "episode" real, "airdate" text, "game_1" text, "game_2" text, "game_3" text, "viewers" text );. Question: "How many episodes had 4.44m viewers?". [/INST] SELECT COUNT("episode") FROM "episodes_and_ratings" WHERE "viewers"='4.44m';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text );. Question: "What committees do the district 46 members serve on?". [/INST] SELECT "committee" FROM "members" WHERE "district"='46';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_statistics" ( "position" text, "nationality" text, "name" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real );. Question: "Name the least league apps for total apps of 5 ". [/INST] SELECT MIN("league_apps") FROM "player_statistics" WHERE "total_apps"=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 "player_statistics" ( "position" text, "nationality" text, "name" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real );. Question: "Name the least fa cup goals with fa cup apps being 2 and fw ". [/INST] SELECT MIN("fa_cup_goals") FROM "player_statistics" WHERE "fa_cup_apps"=2 AND "position"='FW';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_statistics" ( "position" text, "nationality" text, "name" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real );. Question: "Name the total apps for league apps being 4". [/INST] SELECT "total_apps" FROM "player_statistics" WHERE "league_apps"=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 "table1_27114708_2" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Please mention those appointment dates those are replaced by alfredo aglietti". [/INST] SELECT "date_of_appointment" FROM "table1_27114708_2" WHERE "replaced_by"='Alfredo Aglietti';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27114708_2" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Mention all the applicable team who are replaced by gianluca atzori". [/INST] SELECT "team" FROM "table1_27114708_2" WHERE "replaced_by"='Gianluca Atzori';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27114708_2" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "For team reggina please mention all the outgoing manager ". [/INST] SELECT "outgoing_manager" FROM "table1_27114708_2" WHERE "team"='Reggina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27114708_2" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "For team ascoli please mention all the appointment date.". [/INST] SELECT "date_of_appointment" FROM "table1_27114708_2" WHERE "team"='Ascoli';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27114708_2" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "For outgoing manager is alberto malesani mention all the applicable replaced by person". [/INST] SELECT "replaced_by" FROM "table1_27114708_2" WHERE "outgoing_manager"='Alberto Malesani';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27114708_2" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "For livorno team mention all the manner of departure". [/INST] SELECT "manner_of_departure" FROM "table1_27114708_2" WHERE "team"='Livorno';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27115960_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Phil Klemmer wrote all titles and production code is 3t6455. ". [/INST] SELECT "title" FROM "table1_27115960_1" WHERE "written_by"='Phil Klemmer' AND "production_code"='3T6455';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27115960_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Season 9 all the titles were no. in series.". [/INST] SELECT "title" FROM "table1_27115960_1" WHERE "no_in_series"=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 "table1_27115960_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Title is the total number where u.s. viewers (million) is 7.56.". [/INST] SELECT COUNT("title") FROM "table1_27115960_1" WHERE "u_s_viewers_million"='7.56';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_3" ( "total_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many items appear in the written by column in episode 3?". [/INST] SELECT COUNT("written_by") FROM "season_3" WHERE "episode_num"=3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_3" ( "total_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What episode was written by Matt Maclennan?". [/INST] SELECT MAX("episode_num") FROM "season_3" WHERE "written_by"='Matt MacLennan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_3" ( "total_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is largest total number that was written by Sheri Elwood?". [/INST] SELECT MAX("total_num") FROM "season_3" WHERE "written_by"='Sheri Elwood';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27218002_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "ratings" text );. Question: "Name the number of ratings for "forests of prejudice"". [/INST] SELECT COUNT("ratings") FROM "table1_27218002_1" WHERE "title"='\"Forests of Prejudice\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27218002_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "ratings" text );. Question: "Name the air date for ratings of 2.19 million". [/INST] SELECT "originalairdate" FROM "table1_27218002_1" WHERE "ratings"='2.19 Million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27218002_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "ratings" text );. Question: "Name who directed the air date of 12 july 2010". [/INST] SELECT "directed_by" FROM "table1_27218002_1" WHERE "originalairdate"='12 July 2010';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27218002_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "ratings" text );. Question: "Name the least episode number for jonathan harvey". [/INST] SELECT MIN("episode_num") FROM "table1_27218002_1" WHERE "written_by"='Jonathan Harvey';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27218002_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "ratings" text );. Question: "Name the total number of written by for 26 july 2010". [/INST] SELECT COUNT("written_by") FROM "table1_27218002_1" WHERE "originalairdate"='26 July 2010';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_results" ( "season" text, "division" text, "date" text, "home_team" text, "result" text, "away_team" text );. Question: "Which season had a result of 1–0 (aet)?". [/INST] SELECT "season" FROM "all_time_results" WHERE "result"='1–0 (aet)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_results" ( "season" text, "division" text, "date" text, "home_team" text, "result" text, "away_team" text );. Question: "What is the date in the 2007-08 season where the away team was the kaizer chiefs?". [/INST] SELECT "date" FROM "all_time_results" WHERE "season"='2007-08' AND "away_team"='Kaizer Chiefs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_results" ( "season" text, "division" text, "date" text, "home_team" text, "result" text, "away_team" text );. Question: "How many dates are shown for the home team of orlando pirates and result of 1–3?". [/INST] SELECT COUNT("date") FROM "all_time_results" WHERE "home_team"='Orlando Pirates' AND "result"='1–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 "all_time_results" ( "season" text, "division" text, "date" text, "home_team" text, "result" text, "away_team" text );. Question: "What is the division where the result was 0–2?". [/INST] SELECT "division" FROM "all_time_results" WHERE "result"='0–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 "all_time_results" ( "season" text, "division" text, "date" text, "home_team" text, "result" text, "away_team" text );. Question: "What is the date where the home team was kaizer chiefs and the division was mtn 8 semi-final?". [/INST] SELECT "date" FROM "all_time_results" WHERE "home_team"='Kaizer Chiefs' AND "division"='MTN 8 Semi-final';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lion_65_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "ht" text, "mult_1" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What are the L2 cache specifications of part number amql64dam22gg?". [/INST] SELECT "l2_cache" FROM "lion_65_nm" WHERE "order_part_number"='AMQL64DAM22GG';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lion_65_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "ht" text, "mult_1" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the operating voltage of part number amql64dam22gg?". [/INST] SELECT "voltage" FROM "lion_65_nm" WHERE "order_part_number"='AMQL64DAM22GG';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lion_65_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "ht" text, "mult_1" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What are the possible multipliers for 1900MHz processors?". [/INST] SELECT "mult_1" FROM "lion_65_nm" WHERE "frequency"='1900MHz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lion_65_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "ht" text, "mult_1" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "How many thermal design power levels does part number amql65dam22gg have?". [/INST] SELECT COUNT("tdp") FROM "lion_65_nm" WHERE "order_part_number"='AMQL65DAM22GG';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lion_65_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "ht" text, "mult_1" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What kind of sockets does a 2100MHz Athlon X2 QL-64 use?". [/INST] SELECT "socket" FROM "lion_65_nm" WHERE "frequency"='2100MHz' AND "model_number"='Athlon X2 QL-64';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "iran_asian_cup_captains" ( "num" real, "matches_as_captain" text, "player" text, "asian_cup_played_as_a_captain" text, "years_active" text, "caps_goals" text );. Question: "What is the total number of years active listings where Asian Cup played as a captain is Japan 1992?". [/INST] SELECT COUNT("years_active") FROM "iran_asian_cup_captains" WHERE "asian_cup_played_as_a_captain"='Japan 1992';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "iran_asian_cup_captains" ( "num" real, "matches_as_captain" text, "player" text, "asian_cup_played_as_a_captain" text, "years_active" text, "caps_goals" text );. Question: "How many matches as captain were played where Asian Cup played as a captain is Qatar 1988". [/INST] SELECT "matches_as_captain" FROM "iran_asian_cup_captains" WHERE "asian_cup_played_as_a_captain"='Qatar 1988';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "iran_asian_cup_captains" ( "num" real, "matches_as_captain" text, "player" text, "asian_cup_played_as_a_captain" text, "years_active" text, "caps_goals" text );. Question: "What were the years active where Asian Cup played as a captain is Iran 1976?". [/INST] SELECT "years_active" FROM "iran_asian_cup_captains" WHERE "asian_cup_played_as_a_captain"='Iran 1976';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "iran_asian_cup_captains" ( "num" real, "matches_as_captain" text, "player" text, "asian_cup_played_as_a_captain" text, "years_active" text, "caps_goals" text );. Question: "What were the years active where Asian Cup played as a captain is Qatar 1988?". [/INST] SELECT "years_active" FROM "iran_asian_cup_captains" WHERE "asian_cup_played_as_a_captain"='Qatar 1988';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_nationality" ( "country" text, "total_drivers" real, "champions" text, "championships" text, "current_3_november_2013" real, "first_driver_s" text, "last_current_driver_s_3_november_2013" text );. Question: "Who is the first driver(s) when the country is romania?". [/INST] SELECT "first_driver_s" FROM "by_nationality" WHERE "country"='Romania';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_nationality" ( "country" text, "total_drivers" real, "champions" text, "championships" text, "current_3_november_2013" real, "first_driver_s" text, "last_current_driver_s_3_november_2013" text );. Question: "How many times is last/current driver(s) 3 november 2013 is adderly fong ( 2013 )?". [/INST] SELECT COUNT("country") FROM "by_nationality" WHERE "last_current_driver_s_3_november_2013"='Adderly Fong ( 2013 )';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_nationality" ( "country" text, "total_drivers" real, "champions" text, "championships" text, "current_3_november_2013" real, "first_driver_s" text, "last_current_driver_s_3_november_2013" text );. Question: "Who is the last/current driver(s) 3 november 2013 when first driver(s) is marlon stöckinger , kotaro sakurai ( 2011 )?". [/INST] SELECT "last_current_driver_s_3_november_2013" FROM "by_nationality" WHERE "first_driver_s"='Marlon Stöckinger , Kotaro Sakurai ( 2011 )';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_nationality" ( "country" text, "total_drivers" real, "champions" text, "championships" text, "current_3_november_2013" real, "first_driver_s" text, "last_current_driver_s_3_november_2013" text );. Question: "What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )?". [/INST] SELECT "country" FROM "by_nationality" WHERE "last_current_driver_s_3_november_2013"='Daniel Abt ( 2012 )';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "magners_league" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "bonus_points" text, "points" text );. Question: " How many losses did the club who had 9 bonus points and 11 wins have?". [/INST] SELECT "lost" FROM "magners_league" WHERE "bonus_points"='9' AND "won"='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 "magners_league" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "bonus_points" text, "points" text );. Question: "How many bonus points did the club who had 379 points for have?". [/INST] SELECT "bonus_points" FROM "magners_league" WHERE "points_for"='379';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "magners_league" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "bonus_points" text, "points" text );. Question: "Which club had 5 bonus points?". [/INST] SELECT "club" FROM "magners_league" WHERE "bonus_points"='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 "magners_league" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "bonus_points" text, "points" text );. Question: "How many bonus points did the club who had 18 losses have?". [/INST] SELECT "bonus_points" FROM "magners_league" WHERE "lost"='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 "magners_league" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "bonus_points" text, "points" text );. Question: "How many points for did Munster have?". [/INST] SELECT "points_for" FROM "magners_league" WHERE "club"='Munster';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "magners_league" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "bonus_points" text, "points" text );. Question: "How many points against did the club who had 353 points for have? ". [/INST] SELECT "points_against" FROM "magners_league" WHERE "points_for"='353';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "What was the team the Suns played against in game number 4?". [/INST] SELECT "team" FROM "game_log" WHERE "game"=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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Who got the most points in game number 5?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=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 "release_history" ( "version" text, "codename" text, "edition" text, "code_base" text, "compatible_repository" text, "default_desktop_environment" text, "release_date" text );. Question: "What is the default desktop environment when the code base is ubuntu 8.04 and edition is fluxbox ce?". [/INST] SELECT "default_desktop_environment" FROM "release_history" WHERE "code_base"='Ubuntu 8.04' AND "edition"='Fluxbox CE';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "version" text, "codename" text, "edition" text, "code_base" text, "compatible_repository" text, "default_desktop_environment" text, "release_date" text );. Question: "What is the compatible repository when the version is old version, no longer supported: 9 and default desktop environment is lxde?". [/INST] SELECT "compatible_repository" FROM "release_history" WHERE "version"='Old version, no longer supported: 9' AND "default_desktop_environment"='LXDE';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "version" text, "codename" text, "edition" text, "code_base" text, "compatible_repository" text, "default_desktop_environment" text, "release_date" text );. Question: "What is the the codename when the code base is ubuntu 8.04 and the edition is fluxbox ce?". [/INST] SELECT "codename" FROM "release_history" WHERE "code_base"='Ubuntu 8.04' AND "edition"='Fluxbox CE';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "version" text, "codename" text, "edition" text, "code_base" text, "compatible_repository" text, "default_desktop_environment" text, "release_date" text );. Question: "What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04?". [/INST] SELECT "default_desktop_environment" FROM "release_history" WHERE "edition"='KDE' AND "compatible_repository"='Ubuntu 13.04';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "version" text, "codename" text, "edition" text, "code_base" text, "compatible_repository" text, "default_desktop_environment" text, "release_date" text );. Question: "What is the version when the codename is ada?". [/INST] SELECT "version" FROM "release_history" WHERE "codename"='Ada';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "version" text, "codename" text, "edition" text, "code_base" text, "compatible_repository" text, "default_desktop_environment" text, "release_date" text );. Question: "What is the version when the compatible reposityory is xubuntu 10.04". [/INST] SELECT "version" FROM "release_history" WHERE "compatible_repository"='Xubuntu 10.04';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27366772_3" ( "district" text, "armenian" text, "population_2001" real, "area_km" text, "neighborhoods" text );. Question: "What is the highest population in 2001?". [/INST] SELECT MAX("population_2001") FROM "table1_27366772_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 "table1_27366772_3" ( "district" text, "armenian" text, "population_2001" real, "area_km" text, "neighborhoods" text );. Question: "What district is known in Armenian as քանաքեր-զեյթուն?". [/INST] SELECT "district" FROM "table1_27366772_3" WHERE "armenian"='Քանաքեր-Զեյթուն';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27366772_3" ( "district" text, "armenian" text, "population_2001" real, "area_km" text, "neighborhoods" text );. Question: "What is the Armenian name of the district that is 8.37 km² large?". [/INST] SELECT "armenian" FROM "table1_27366772_3" WHERE "area_km"='8.37';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "atlantic_university_sport" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" text );. Question: "What is the name of the soccer stadium in NL providence?". [/INST] SELECT "soccer_stadium" FROM "atlantic_university_sport" WHERE "province"='NL';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "atlantic_university_sport" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" text );. Question: "which providence's soccer stadium was founded in 2005?". [/INST] SELECT "province" FROM "atlantic_university_sport" WHERE "founded"=2005;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "atlantic_university_sport" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" text );. Question: "What is the team mascot for the soccer team in Charlottetown?". [/INST] SELECT "varsity_name" FROM "atlantic_university_sport" WHERE "city"='Charlottetown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "atlantic_university_sport" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" text );. Question: "Which province has the soccer stadium that holds 4,000 people?". [/INST] SELECT "province" FROM "atlantic_university_sport" WHERE "stadium_capacity"='4,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "atlantic_university_sport" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" text );. Question: "Which University's soccer stadium in named Moncton Stadium?". [/INST] SELECT "university" FROM "atlantic_university_sport" WHERE "soccer_stadium"='Moncton Stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_members" ( "institution" text, "city" text, "nickname" text, "founded" real, "affiliation" text, "enrollment" real, "tenure" text, "current_womens_lacrosse_conference" text );. Question: "Name the current womens lacrosse conference for 6000 enrollment". [/INST] SELECT "current_womens_lacrosse_conference" FROM "final_members" WHERE "enrollment"=6000;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_members" ( "institution" text, "city" text, "nickname" text, "founded" real, "affiliation" text, "enrollment" real, "tenure" text, "current_womens_lacrosse_conference" text );. Question: "Name the city for enrollment being 19900". [/INST] SELECT "city" FROM "final_members" WHERE "enrollment"=19900;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_members" ( "institution" text, "city" text, "nickname" text, "founded" real, "affiliation" text, "enrollment" real, "tenure" text, "current_womens_lacrosse_conference" text );. Question: "Name the current womens lacrosse conference for bison". [/INST] SELECT "current_womens_lacrosse_conference" FROM "final_members" WHERE "nickname"='Bison';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_members" ( "institution" text, "city" text, "nickname" text, "founded" real, "affiliation" text, "enrollment" real, "tenure" text, "current_womens_lacrosse_conference" text );. Question: "Name the most founded for bison". [/INST] SELECT MAX("founded") FROM "final_members" WHERE "nickname"='Bison';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "k" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "How many weeks was K.Maro at #1?". [/INST] SELECT MAX("weeks_at_num1") FROM "k" WHERE "artist"='K.Maro';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "k" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "How many weeks was France at #1?". [/INST] SELECT MAX("weeks_at_num1") FROM "k" WHERE "country"='France';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "t" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "Name the number one singles for week 1 being 5". [/INST] SELECT "number_one_single_s" FROM "t" WHERE "weeks_at_num1"=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 "t" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "Name the straight to number 1 for tribal king". [/INST] SELECT "straight_to_num1" FROM "t" WHERE "artist"='Tribal King';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "d" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "Name the number one singles for desvarieux, jacob". [/INST] SELECT "number_one_single_s" FROM "d" WHERE "artist"='Desvarieux, Jacob';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "d" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "Name the least weeks at number 1 for 1988". [/INST] SELECT MIN("weeks_at_num1") FROM "d" WHERE "year"=1988;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27450976_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What is the name of the episode that was written by Scott M. Gimple?". [/INST] SELECT "title" FROM "table1_27450976_1" WHERE "written_by"='Scott M. Gimple';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27450976_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What is the title of the episode with a production code of 2j5504?". [/INST] SELECT "title" FROM "table1_27450976_1" WHERE "production_code"='2J5504';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27450976_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many people wrote the episode with a production code of 2j5507?". [/INST] SELECT COUNT("written_by") FROM "table1_27450976_1" WHERE "production_code"='2J5507';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27491610_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What was the latest number in series that was directed by Skip Sudduth?". [/INST] SELECT MAX("no_in_series") FROM "table1_27491610_2" WHERE "directed_by"='Skip Sudduth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27491610_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What number in season had 10.18 million US viewers?". [/INST] SELECT "no_in_season" FROM "table1_27491610_2" WHERE "u_s_viewers_millions"='10.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 "table1_27491610_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What was the original air date of the episode that was directed by Alex Zakrzewski?". [/INST] SELECT "original_air_date" FROM "table1_27491610_2" WHERE "directed_by"='Alex Zakrzewski';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_27491610_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What number in season is number 141 in series?". [/INST] SELECT MAX("no_in_season") FROM "table1_27491610_2" WHERE "no_in_series"=141;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "creation" ( "province" text, "formed_date" text, "formed_from" text, "dissolution_date" text, "reason" text );. Question: "What province was New Plymouth formed from?". [/INST] SELECT "formed_from" FROM "creation" WHERE "province"='New Plymouth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "creation" ( "province" text, "formed_date" text, "formed_from" text, "dissolution_date" text, "reason" text );. Question: "Why was Otago formed?". [/INST] SELECT "reason" FROM "creation" WHERE "province"='Otago';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "creation" ( "province" text, "formed_date" text, "formed_from" text, "dissolution_date" text, "reason" text );. Question: "What provinces were formed from New Munster?". [/INST] SELECT "province" FROM "creation" WHERE "formed_from"='New Munster';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "creation" ( "province" text, "formed_date" text, "formed_from" text, "dissolution_date" text, "reason" text );. Question: "How many provinces are named Wellington?". [/INST] SELECT COUNT("formed_date") FROM "creation" WHERE "province"='Wellington';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "creation" ( "province" text, "formed_date" text, "formed_from" text, "dissolution_date" text, "reason" text );. Question: "What provinces were formed from New Munster?". [/INST] SELECT "province" FROM "creation" WHERE "formed_from"='New Munster';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "january" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "If the decision was by Lalime, when in January was it made?". [/INST] SELECT "january" FROM "game_log" WHERE "decision"='Lalime';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "january" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "If the game was on January 21, which game was it?". [/INST] SELECT MAX("game") FROM "game_log" WHERE "january"=21;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "january" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "If the score is 5-3, who made the decision?". [/INST] SELECT "decision" FROM "game_log" WHERE "score"='5-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 "game_log" ( "game" real, "january" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "If the opponent was the Philadelphia flyers, what was the record?". [/INST] SELECT "record" FROM "game_log" WHERE "opponent"='Philadelphia Flyers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "january" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "If the record was 22-21-5, who was the opponent?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='22-21-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 "game_log" ( "game" real, "january" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "If the opponent was @ Boston Bruins, what was the Location/Attendance?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "opponent"='@ 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 "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What day in February was the team 17-29-7?". [/INST] SELECT MAX("february") FROM "regular_season" WHERE "record"='17-29-7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What was the teams record when they played the ottawa senators?". [/INST] SELECT "record" FROM "regular_season" WHERE "opponent"='Ottawa Senators';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "february" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What was the team's rcord on february 1?". [/INST] SELECT "record" FROM "regular_season" WHERE "february"=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 "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What day in February did the team play the boston bruins?". [/INST] SELECT "february" FROM "regular_season" WHERE "opponent"='Boston Bruins';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.