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 "k" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What school/club team has tim kempton as the player?". [/INST] SELECT "school_club_team" FROM "k" WHERE "player"='tim kempton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "In the game where they played the Pittsburgh Steelers, what was the attendance?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='pittsburgh steelers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "In the game on or before week 9, who was the opponent when the attendance was 61,626?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"<9 AND "attendance"='61,626';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "On November 20, 1994, what was the result of the game?". [/INST] SELECT "result" FROM "schedule" WHERE "date"='november 20, 1994';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "phase_ii" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the team #2 with Deport as team #1?". [/INST] SELECT "team_num2" FROM "phase_ii" WHERE "team_num1"='deport';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "phase_ii" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 2nd leg for the team #2 junior?". [/INST] SELECT "2nd_leg" FROM "phase_ii" WHERE "team_num2"='junior';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "phase_ii" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 1st leg with a junior team #2?". [/INST] SELECT "1st_leg" FROM "phase_ii" WHERE "team_num2"='junior';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the rank with 0 bronze?". [/INST] SELECT AVG("rank") FROM "medals_table" WHERE "bronze"<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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total where the gold is larger than 2?". [/INST] SELECT COUNT("total") FROM "medals_table" WHERE "gold">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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the smallest number of gold where the total is less than 3 and the silver count is 2?". [/INST] SELECT MIN("gold") FROM "medals_table" WHERE "silver"=2 AND "total"<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 "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "Which Against has a Drawn smaller than 5, and a Lost smaller than 6, and a Points larger than 36?". [/INST] SELECT COUNT("against") FROM "campeonato_paulista" WHERE "drawn"<5 AND "lost"<6 AND "points">36;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position smaller than 12, and a Drawn smaller than 2?". [/INST] SELECT AVG("played") FROM "campeonato_paulista" WHERE "lost">9 AND "points"<15 AND "position"<12 AND "drawn"<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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "How many weeks have october 31, 1954 as the date?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "date"='october 31, 1954';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real );. Question: "What party took office after 1993 with Senator Michael Galloway?". [/INST] SELECT "party" FROM "senate" WHERE "took_office">1993 AND "senator"='michael galloway';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real );. Question: "What year did Senator Ken Armbrister take office?". [/INST] SELECT "took_office" FROM "senate" WHERE "senator"='ken armbrister';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the sum of Bronze when the total is more than 27?". [/INST] SELECT SUM("bronze") FROM "medal_table" WHERE "total">27;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of Bronze when gold is more than 1 and nation is total?". [/INST] SELECT COUNT("bronze") FROM "medal_table" WHERE "gold">1 AND "nation"='total';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average Bronze for rank 3 and total is more than 8?". [/INST] SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='3' AND "total">8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the sum of Total when rank is 2?". [/INST] SELECT SUM("total") FROM "medal_table" WHERE "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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1?". [/INST] SELECT "nation" FROM "medal_table" WHERE "total"<27 AND "gold"<1 AND "bronze">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 "power_stations" ( "name" text, "year_commissioned" real, "gross_head_metres" real, "installed_capacity_megawatts" real, "average_annual_output_million_k_wh" real );. Question: "What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20?". [/INST] SELECT MIN("year_commissioned") FROM "power_stations" WHERE "average_annual_output_million_k_wh">58 AND "installed_capacity_megawatts"=20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "power_stations" ( "name" text, "year_commissioned" real, "gross_head_metres" real, "installed_capacity_megawatts" real, "average_annual_output_million_k_wh" real );. Question: "What is the Average annual output for Culligran power station with an Installed capacity less than 19?". [/INST] SELECT AVG("average_annual_output_million_k_wh") FROM "power_stations" WHERE "name"='culligran' AND "installed_capacity_megawatts"<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 "power_stations" ( "name" text, "year_commissioned" real, "gross_head_metres" real, "installed_capacity_megawatts" real, "average_annual_output_million_k_wh" real );. Question: "What is the Year Commissioned of the power stationo with a Gross head of less than 18?". [/INST] SELECT AVG("year_commissioned") FROM "power_stations" WHERE "gross_head_metres"<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 "power_stations" ( "name" text, "year_commissioned" real, "gross_head_metres" real, "installed_capacity_megawatts" real, "average_annual_output_million_k_wh" real );. Question: "What is the Year commissioned of the power station with a Gross head of 60 metres and Average annual output of less than 59 million KWh?". [/INST] SELECT MAX("year_commissioned") FROM "power_stations" WHERE "gross_head_metres"=60 AND "average_annual_output_million_k_wh"<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 "external_links" ( "code" text, "district" text, "headquarters" text, "population_2011" real, "area_km" real, "density_km" real, "official_website" text );. Question: "What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?". [/INST] SELECT SUM("area_km") FROM "external_links" WHERE "density_km">462 AND "official_website"='http://krishna.nic.in/';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sdi_vs_other_vw_group_diesel_engines" ( "engine_model" text, "engine_displacement" text, "valvetrain" text, "max_power_k_w_ps" text, "rpm_for_max_power" text, "max_torque_nm_ft_lbf" text, "rpm_for_max_torque" text );. Question: "What is the valvetrain with an engine model that is engine model?". [/INST] SELECT "valvetrain" FROM "sdi_vs_other_vw_group_diesel_engines" WHERE "engine_model"='engine model';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What is the Position of the player from Vanderbilt?". [/INST] SELECT "position" FROM "t" WHERE "school_club_team"='vanderbilt';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What is Stephen Thompson's School/Club Team?". [/INST] SELECT "school_club_team" FROM "t" WHERE "player"='stephen thompson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real, "block" real );. Question: "How many spikes have 28.09.1981 as the date of birth, with a block greater than 318?". [/INST] SELECT SUM("spike") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "date_of_birth"='28.09.1981' AND "block">318;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_overview" ( "season" real, "episodes" real, "season_premiere" text, "season_finale" text, "dvd_release_date" text );. Question: "On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8?". [/INST] SELECT "dvd_release_date" FROM "series_overview" WHERE "season"<8 AND "episodes"<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 "series_overview" ( "season" real, "episodes" real, "season_premiere" text, "season_finale" text, "dvd_release_date" text );. Question: "Which season had fewer than 13 episodes and aired its season finale on February 20, 2011?". [/INST] SELECT COUNT("season") FROM "series_overview" WHERE "episodes"<13 AND "season_finale"='february 20, 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 "third_round" ( "match_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );. Question: "After Match 43, what was the Attendance of the Match with a Score of 2-4?". [/INST] SELECT MAX("attendance") FROM "third_round" WHERE "match_no">43 AND "score"='2-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 "june" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );. Question: "When the runner-up is listed as Gigi Fernández Natalia Zvereva and the week is 26 June 2 weeks, who are the semi finalists?". [/INST] SELECT "semi_finalists" FROM "june" WHERE "runner_up"='gigi fernández natalia zvereva' AND "week_of"='26 june 2 weeks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "june" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );. Question: "Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa Sánchez Vicario?". [/INST] SELECT "winner" FROM "june" WHERE "week_of"='26 june 2 weeks' AND "runner_up"='arantxa sánchez vicario';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "june" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );. Question: "Who are the semi finalists on the week of 12 june, when the runner-up is listed as Lori McNeil?". [/INST] SELECT "semi_finalists" FROM "june" WHERE "week_of"='12 june' AND "runner_up"='lori mcneil';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "june" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );. Question: "When the Tier is listed as tier iii, who is the Winner?". [/INST] SELECT "winner" FROM "june" WHERE "tier"='tier iii';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "june" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );. Question: "In which week is the winner listed as Jana Novotná Arantxa Sánchez Vicario 5–7, 7–5, 6–4?". [/INST] SELECT "week_of" FROM "june" WHERE "winner"='jana novotná arantxa sánchez vicario 5–7, 7–5, 6–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 "j" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "Who was the Player that spent the Year 2005 in Orlando?". [/INST] SELECT "player" FROM "j" WHERE "years_in_orlando"='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 "j" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What was the Position of the Player, Britton Johnsen?". [/INST] SELECT "position" FROM "j" WHERE "player"='britton johnsen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "Who was the Player that had the Position, guard-forward?". [/INST] SELECT "player" FROM "j" WHERE "position"='guard-forward';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "windows_server_2008_r2_edition_compariso" ( "features" text, "foundation" text, "standard" text, "enterprise" text, "datacenter" text, "itanium" text );. Question: "Which Features have Yes listed under Datacenter?". [/INST] SELECT "features" FROM "windows_server_2008_r2_edition_compariso" WHERE "datacenter"='yes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "windows_server_2008_r2_edition_compariso" ( "features" text, "foundation" text, "standard" text, "enterprise" text, "datacenter" text, "itanium" text );. Question: "What is the Datacenter for the Fault Tolerant Memory Sync Feature that has Yes for Itanium and No for Standard?". [/INST] SELECT "datacenter" FROM "windows_server_2008_r2_edition_compariso" WHERE "standard"='no' AND "itanium"='yes' AND "features"='fault tolerant memory sync';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "windows_server_2008_r2_edition_compariso" ( "features" text, "foundation" text, "standard" text, "enterprise" text, "datacenter" text, "itanium" text );. Question: "Which Foundation has an Enterprise of 2?". [/INST] SELECT "foundation" FROM "windows_server_2008_r2_edition_compariso" WHERE "enterprise"='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 "windows_server_2008_r2_edition_compariso" ( "features" text, "foundation" text, "standard" text, "enterprise" text, "datacenter" text, "itanium" text );. Question: "What is the Datacenter for the Memory modules: hot addition Feature that has Yes listed for Itanium?". [/INST] SELECT "datacenter" FROM "windows_server_2008_r2_edition_compariso" WHERE "itanium"='yes' AND "features"='memory modules: hot addition';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "windows_server_2008_r2_edition_compariso" ( "features" text, "foundation" text, "standard" text, "enterprise" text, "datacenter" text, "itanium" text );. Question: "What is the Enterprise for teh memory modules: hot replacement Feature that has a Datacenter of Yes?". [/INST] SELECT "enterprise" FROM "windows_server_2008_r2_edition_compariso" WHERE "datacenter"='yes' AND "features"='memory modules: hot replacement';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "windows_server_2008_r2_edition_compariso" ( "features" text, "foundation" text, "standard" text, "enterprise" text, "datacenter" text, "itanium" text );. Question: "What Datacenter is listed against the network access connections: rras Feature?". [/INST] SELECT "datacenter" FROM "windows_server_2008_r2_edition_compariso" WHERE "features"='network access connections: rras';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "caspian" ( "model_number" text, "frequency" text, "l2_cache" text, "fpu_width" text, "multi_1" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the L2 cache with a 13.5x multi 1?". [/INST] SELECT "l2_cache" FROM "caspian" WHERE "multi_1"='13.5x';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "caspian" ( "model_number" text, "frequency" text, "l2_cache" text, "fpu_width" text, "multi_1" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?". [/INST] SELECT "socket" FROM "caspian" WHERE "release_date"='september 10, 2009' AND "order_part_number"='amm300dbo22gq';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "caspian" ( "model_number" text, "frequency" text, "l2_cache" text, "fpu_width" text, "multi_1" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the order part number with a 12.5x multi 1?". [/INST] SELECT "order_part_number" FROM "caspian" WHERE "multi_1"='12.5x';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "caspian" ( "model_number" text, "frequency" text, "l2_cache" text, "fpu_width" text, "multi_1" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the frequency of the tmm500dbo22gq order part number?". [/INST] SELECT "frequency" FROM "caspian" WHERE "order_part_number"='tmm500dbo22gq';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "caspian" ( "model_number" text, "frequency" text, "l2_cache" text, "fpu_width" text, "multi_1" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1?". [/INST] SELECT "l2_cache" FROM "caspian" WHERE "release_date"='september 10, 2009' AND "fpu_width"='128-bit' AND "multi_1"='12x';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "caspian" ( "model_number" text, "frequency" text, "l2_cache" text, "fpu_width" text, "multi_1" text, "socket" text, "release_date" text, "order_part_number" text );. Question: "What is the release date of the 2x 512 kb L2 cache with a 11x multi 1, and a FPU width of 128-bit?". [/INST] SELECT "release_date" FROM "caspian" WHERE "l2_cache"='2x 512 kb' AND "multi_1"='11x' AND "fpu_width"='128-bit';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What Player has a College that is alberta?". [/INST] SELECT "player" FROM "round_five" WHERE "college"='alberta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What College has a Player that is jermaine romans?". [/INST] SELECT "college" FROM "round_five" WHERE "player"='jermaine romans';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which Score has a Date of 28 february 1953, and a Tie no of 3?". [/INST] SELECT "score" FROM "sixth_round_proper" WHERE "date"='28 february 1953' AND "tie_no"='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 "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which Home team has a Score of 0–1, and an Away team of tottenham hotspur?". [/INST] SELECT "home_team" FROM "sixth_round_proper" WHERE "score"='0–1' AND "away_team"='tottenham hotspur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which Score has a Tie no of 1?". [/INST] SELECT "score" FROM "sixth_round_proper" WHERE "tie_no"='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 "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which Home team has an Away team of everton?". [/INST] SELECT "home_team" FROM "sixth_round_proper" WHERE "away_team"='everton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which Tie no has a Score of 0–1, and a Date of 9 march 1953?". [/INST] SELECT "tie_no" FROM "sixth_round_proper" WHERE "score"='0–1' AND "date"='9 march 1953';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which Score has a Home team of aston villa?". [/INST] SELECT "score" FROM "sixth_round_proper" WHERE "home_team"='aston villa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thematic_channels" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is the Language for Canale Aste?". [/INST] SELECT "language" FROM "thematic_channels" WHERE "television_service"='canale aste';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thematic_channels" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is the Country with Reteconomy as the Television service?". [/INST] SELECT "country" FROM "thematic_channels" WHERE "television_service"='reteconomy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thematic_channels" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is the HDTV when documentaries are the content?". [/INST] SELECT "hdtv" FROM "thematic_channels" WHERE "content"='documentaries';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thematic_channels" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is the Language when the Reteconomy is the television service?". [/INST] SELECT "language" FROM "thematic_channels" WHERE "television_service"='reteconomy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "thematic_channels" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is the HDTV for the Rai Nettuno Sat Uno Television service?". [/INST] SELECT "hdtv" FROM "thematic_channels" WHERE "television_service"='rai nettuno sat uno';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the lowest Week when the result was l 13–10, November 30, 1975, with more than 44,982 people in attendance?". [/INST] SELECT MIN("week") FROM "schedule" WHERE "result"='l 13–10' AND "date"='november 30, 1975' AND "attendance">'44,982';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the highest Week when the opponent was the los angeles rams, with more than 37,382 in Attendance?". [/INST] SELECT MAX("week") FROM "schedule" WHERE "opponent"='los angeles rams' AND "attendance">'37,382';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the highest Week when the opponent was kansas city chiefs, with more than 26,469 in attendance?". [/INST] SELECT MAX("week") FROM "schedule" WHERE "opponent"='kansas city chiefs' AND "attendance">'26,469';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the lowest Week when the result was l 6–0?". [/INST] SELECT MIN("week") FROM "schedule" WHERE "result"='l 6–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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the average Week when the result was w 28–20, and there were more than 46,888 in attendance?". [/INST] SELECT AVG("week") FROM "schedule" WHERE "result"='w 28–20' AND "attendance">'46,888';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "one_day_bowling_statistics" ( "player" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" text, "economy" real, "best_bowling" text );. Question: "What is the lowest Overs with a Run that is 18?". [/INST] SELECT MIN("overs") FROM "one_day_bowling_statistics" WHERE "runs"=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 "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What score has charlton athletic as the away team?". [/INST] SELECT "score" FROM "third_round_proper" WHERE "away_team"='charlton athletic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 home team has coventry city as the away team?". [/INST] SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='coventry city';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text );. Question: "What is the average Pick when the round was less than 6 for kenneth green?". [/INST] SELECT AVG("pick") FROM "draft_picks" WHERE "round"<6 AND "player"='kenneth green';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real, "goals_matches" real );. Question: "What average goals have matches less than 228?". [/INST] SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<228;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real, "goals_matches" real );. Question: "How many goals/matches have 153 as the goals with matches greater than 352?". [/INST] SELECT SUM("goals_matches") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=153 AND "matches">352;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real, "goals_matches" real );. Question: "What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378?". [/INST] SELECT MIN("goals") FROM "list_of_top_association_football_goal_sc" WHERE "goals_matches">0.43 AND "name"='joachim streich' AND "matches">378;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real, "goals_matches" real );. Question: "What years have goals less than 229, and 440 as matches?". [/INST] SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "goals"<229 AND "matches"=440;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_japan_rugby_football_championship_fi" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text );. Question: "What team was the winner when the runner-up shows both teams awarded championship after a draw.?". [/INST] SELECT "winner" FROM "all_japan_rugby_football_championship_fi" WHERE "runner_up"='both teams awarded championship after a draw.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_japan_rugby_football_championship_fi" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text );. Question: "What is the Score when the winner was suntory sungoliath, and the number attendance was n/a?". [/INST] SELECT "score" FROM "all_japan_rugby_football_championship_fi" WHERE "winner"='suntory sungoliath' AND "attendance"='n/a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_japan_rugby_football_championship_fi" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text );. Question: "What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th?". [/INST] SELECT "attendance" FROM "all_japan_rugby_football_championship_fi" WHERE "runner_up"='suntory sungoliath' AND "title"='46th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_japan_rugby_football_championship_fi" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text );. Question: "What is the Attendance number for the title of 44th?". [/INST] SELECT "attendance" FROM "all_japan_rugby_football_championship_fi" WHERE "title"='44th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_japan_rugby_football_championship_fi" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text );. Question: "What is the Title when the winner was suntory sungoliath, and a Season of 2011-12 details?". [/INST] SELECT "title" FROM "all_japan_rugby_football_championship_fi" WHERE "winner"='suntory sungoliath' AND "season"='2011-12 details';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_japan_rugby_football_championship_fi" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text );. Question: "What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath?". [/INST] SELECT "score" FROM "all_japan_rugby_football_championship_fi" WHERE "winner"='sanyo wild knights' AND "runner_up"='suntory sungoliath';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which Position has a Pick # lower than 278 for Player Charles Benson?". [/INST] SELECT "position" FROM "nfl_draft" WHERE "pick_num"<278 AND "player"='charles benson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which Player has a Pick # lower than 223 and a Defensive End Position?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "pick_num"<223 AND "position"='defensive end';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "If the Position is Running Back what is the Total number of Pick #?". [/INST] SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "position"='running back';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which College has Player Mark Brown and a Pick # greater than 195?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "pick_num">195 AND "player"='mark brown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What was the average Position for which the amount Drawn was less than 0?". [/INST] SELECT AVG("position") FROM "campeonato_paulista" WHERE "drawn"<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 "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What was the total number of Points when the value Difference was 13, and when the value Lost was greater than 3?". [/INST] SELECT SUM("points") FROM "campeonato_paulista" WHERE "difference"='13' AND "lost">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 "popular_support" ( "1996_general" real, "1999_european" real, "2001_general" real, "2004_european" real, "2006_general" real, "2008_general" real, "2009_european" real, "2013_general" real );. Question: "How many values for 1999 European correspond to a value more than 4.7 in 2009 European, general 2001 more than 7.5, 2006 general at 10, and more than 9.4 in general 2008?". [/INST] SELECT COUNT("1999_european") FROM "popular_support" WHERE "2009_european">4.7 AND "2001_general">7.5 AND "2006_general"=10 AND "2008_general">9.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 "popular_support" ( "1996_general" real, "1999_european" real, "2001_general" real, "2004_european" real, "2006_general" real, "2008_general" real, "2009_european" real, "2013_general" real );. Question: "What is the highest value for general 2008 when there is less than 5.5 in European 2009, more than 5.8 in general 2006, more than 3.3 in general 2001, and less than 3.6 for 2004 European?". [/INST] SELECT MAX("2008_general") FROM "popular_support" WHERE "2009_european"<5.5 AND "2006_general">5.8 AND "2001_general">3.3 AND "2004_european"<3.6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "popular_support" ( "1996_general" real, "1999_european" real, "2001_general" real, "2004_european" real, "2006_general" real, "2008_general" real, "2009_european" real, "2013_general" real );. Question: "What is the lowest value for 2004 European when 1999 European is 3.3 and less than 4.4 in 1996 general?". [/INST] SELECT MIN("2004_european") FROM "popular_support" WHERE "1999_european"=3.3 AND "1996_general"<4.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 "popular_support" ( "1996_general" real, "1999_european" real, "2001_general" real, "2004_european" real, "2006_general" real, "2008_general" real, "2009_european" real, "2013_general" real );. Question: "What is the average value for general 2001 with more than 4.8 in 1999 European, 7.7 in 2006 general, and more than 9 in 1996 general?". [/INST] SELECT AVG("2001_general") FROM "popular_support" WHERE "1999_european">4.8 AND "2006_general"=7.7 AND "1996_general">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 "popular_support" ( "1996_general" real, "1999_european" real, "2001_general" real, "2004_european" real, "2006_general" real, "2008_general" real, "2009_european" real, "2013_general" real );. Question: "What was the value for 2004 European with less than 7.5 in general 2001, less than 6.4 in 2009 European, and less than 1.5 in general 2013 with 4.3 in 2008 general?". [/INST] SELECT "2004_european" FROM "popular_support" WHERE "2001_general"<7.5 AND "2009_european"<6.4 AND "2013_general"<1.5 AND "2008_general"=4.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 "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "Who won with the song kemenangan cinta?". [/INST] SELECT "winner" FROM "winners" WHERE "winning_song"='kemenangan cinta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "Which winning song had a debut album in progress?". [/INST] SELECT "winning_song" FROM "winners" WHERE "debut_album"='in progress';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "Which album debuted in season 2 (2005)?". [/INST] SELECT "debut_album" FROM "winners" WHERE "season"='season 2 (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 "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "Which English winning song had the winner aris runtuwene?". [/INST] SELECT "winning_song_english_title" FROM "winners" WHERE "winner"='aris runtuwene';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "Which winning song was sung by aku tetap milikmu?". [/INST] SELECT "winning_song_english_title" FROM "winners" WHERE "winning_song"='aku tetap milikmu';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.