text
stringlengths 369
840
|
---|
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "2010_wimbledon_championships" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text ); Write an SQL query that provides the solution to the following question: "Name the status for points 3185". [/INST] SELECT "status" FROM "2010_wimbledon_championships" WHERE "points"=3185; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "external_links" ( "order_number" text, "build_date" text, "serial_numbers" text, "country" text, "railroad" text, "numbers" text, "quantity" real ); Write an SQL query that provides the solution to the following question: "What are the numbers for the order number 713096-713119?". [/INST] SELECT "numbers" FROM "external_links" WHERE "order_number"='713096-713119'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "external_links" ( "order_number" text, "build_date" text, "serial_numbers" text, "country" text, "railroad" text, "numbers" text, "quantity" real ); Write an SQL query that provides the solution to the following question: "The numbers 801-812 are in which country?". [/INST] SELECT "country" FROM "external_links" WHERE "numbers"='801-812'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "external_links" ( "order_number" text, "build_date" text, "serial_numbers" text, "country" text, "railroad" text, "numbers" text, "quantity" real ); Write an SQL query that provides the solution to the following question: "What country has the order number 711871-711880?". [/INST] SELECT "country" FROM "external_links" WHERE "order_number"='711871-711880'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "external_links" ( "order_number" text, "build_date" text, "serial_numbers" text, "country" text, "railroad" text, "numbers" text, "quantity" real ); Write an SQL query that provides the solution to the following question: "The serial numbers 713096-713119 are in which country?". [/INST] SELECT "country" FROM "external_links" WHERE "serial_numbers"='713096-713119'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "external_links" ( "order_number" text, "build_date" text, "serial_numbers" text, "country" text, "railroad" text, "numbers" text, "quantity" real ); Write an SQL query that provides the solution to the following question: "The order number 713726-713735 has what serial number?". [/INST] SELECT "serial_numbers" FROM "external_links" WHERE "order_number"='713726-713735'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "external_links" ( "order_number" text, "build_date" text, "serial_numbers" text, "country" text, "railroad" text, "numbers" text, "quantity" real ); Write an SQL query that provides the solution to the following question: "How many railroads have the numbers 864-873?". [/INST] SELECT COUNT("railroad") FROM "external_links" WHERE "numbers"='864-873'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_23546266_1" ( "no" real, "executed_person" text, "date_of_execution" text, "method" text, "victim_s" text, "under_governor" text ); Write an SQL query that provides the solution to the following question: "What's the name of Linroy Bottoson's victim?". [/INST] SELECT "victim_s" FROM "table1_23546266_1" WHERE "executed_person"='Linroy Bottoson'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "number_of_dances" real, "total_points_earned" real, "average" text ); Write an SQL query that provides the solution to the following question: "What was the name of the couple if the number of dances is 6?". [/INST] SELECT "couple" FROM "average_chart" WHERE "number_of_dances"=6; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "number_of_dances" real, "total_points_earned" real, "average" text ); Write an SQL query that provides the solution to the following question: "What is the name of the couple if the total points earned is 161?". [/INST] SELECT "couple" FROM "average_chart" WHERE "total_points_earned"=161; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "number_of_dances" real, "total_points_earned" real, "average" text ); Write an SQL query that provides the solution to the following question: "What is the total points earned total number if the average is 21.3?". [/INST] SELECT COUNT("total_points_earned") FROM "average_chart" WHERE "average"='21.3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "number_of_dances" real, "total_points_earned" real, "average" text ); Write an SQL query that provides the solution to the following question: "What is the number of dances total number if the average is 22.3?". [/INST] SELECT COUNT("number_of_dances") FROM "average_chart" WHERE "average"='22.3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Write an SQL query that provides the solution to the following question: "Name the player that is 1.85 m". [/INST] SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='1.85'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Write an SQL query that provides the solution to the following question: "Name the height of demond greene". [/INST] SELECT "height_f" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Demond Greene'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Write an SQL query that provides the solution to the following question: "Name the height for the player born 1989 and height 2.11". [/INST] SELECT "height_f" FROM "fiba_euro_basket_2009_squads" WHERE "year_born"=1989 AND "height_m"='2.11'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Write an SQL query that provides the solution to the following question: "Name the height for the player born in 1981". [/INST] SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "year_born"=1981; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Write an SQL query that provides the solution to the following question: "Name the height for steffen hamann". [/INST] SELECT "height_f" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Steffen Hamann'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_23799653_1" ( "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 ); Write an SQL query that provides the solution to the following question: "When did the episode titled "Do you believe in magic" run for the first time?". [/INST] SELECT "original_air_date" FROM "table1_23799653_1" WHERE "title"='\"Do You Believe in Magic\"'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_23799653_1" ( "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 ); Write an SQL query that provides the solution to the following question: "Who wrote the episode whose director is Karen Gaviola?". [/INST] SELECT "written_by" FROM "table1_23799653_1" WHERE "directed_by"='Karen Gaviola'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_23799653_1" ( "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 ); Write an SQL query that provides the solution to the following question: "When did the episode viewed by 10.50 millions of people in the US run for the first time?". [/INST] SELECT "original_air_date" FROM "table1_23799653_1" WHERE "u_s_viewers_millions"='10.50'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_23799653_1" ( "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 ); Write an SQL query that provides the solution to the following question: "What's the name of the episode seen by 9.63 millions of people in the US, whose director is Laura Innes?". [/INST] SELECT "title" FROM "table1_23799653_1" WHERE "directed_by"='Laura Innes' AND "u_s_viewers_millions"='9.63'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "international_stats" ( "tournament" text, "games_played" real, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text ); Write an SQL query that provides the solution to the following question: "How many points per game have the tournament 2005 eurobasket?". [/INST] SELECT "points_per_game" FROM "international_stats" WHERE "tournament"='2005 EuroBasket'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "international_stats" ( "tournament" text, "games_played" real, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text ); Write an SQL query that provides the solution to the following question: "How may assists per game have 7.7 points per game?". [/INST] SELECT "assists_per_game" FROM "international_stats" WHERE "points_per_game"='7.7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "international_stats" ( "tournament" text, "games_played" real, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text ); Write an SQL query that provides the solution to the following question: "How many games played have 4.7 as points per game?". [/INST] SELECT "games_played" FROM "international_stats" WHERE "points_per_game"='4.7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "international_stats" ( "tournament" text, "games_played" real, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text ); Write an SQL query that provides the solution to the following question: "How many assists per game have 4.2 rebounds per game?". [/INST] SELECT "assists_per_game" FROM "international_stats" WHERE "rebounds_per_game"='4.2'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "international_stats" ( "tournament" text, "games_played" real, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text ); Write an SQL query that provides the solution to the following question: "How many assists per game in the tournament 2010 fiba world championship?". [/INST] SELECT "assists_per_game" FROM "international_stats" WHERE "tournament"='2010 FIBA World Championship'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "international_stats" ( "tournament" text, "games_played" real, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text ); Write an SQL query that provides the solution to the following question: "How many games played have 4.7 points per game?". [/INST] SELECT COUNT("games_played") FROM "international_stats" WHERE "points_per_game"='4.7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What was the average finish the year Bodine finished 3rd?". [/INST] SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "position"='3rd'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What position did he finish in 1987?". [/INST] SELECT "position" FROM "nascar_nationwide_series" WHERE "year"=1987; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What team was Bodine in when he had an average finish of 8.3?". [/INST] SELECT "team_s" FROM "nascar_nationwide_series" WHERE "avg_finish"='8.3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "How many years did he have an average finish of 11.7?". [/INST] SELECT COUNT("avg_start") FROM "nascar_nationwide_series" WHERE "avg_finish"='11.7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Write an SQL query that provides the solution to the following question: "What is the least value for week?". [/INST] SELECT MIN("week") FROM "schedule"; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Write an SQL query that provides the solution to the following question: "How many values for attendance on the date of September 5?". [/INST] SELECT COUNT("attendance") FROM "schedule" WHERE "date"='September 5'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Write an SQL query that provides the solution to the following question: "How many dates for the week of 4?". [/INST] SELECT COUNT("date") FROM "schedule" WHERE "week"=4; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Write an SQL query that provides the solution to the following question: "How many values for attendance on the date of August 26?". [/INST] SELECT COUNT("attendance") FROM "schedule" WHERE "date"='August 26'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "ladies" ( "rank" real, "ws_points" real, "name" text, "country" text, "08_09_i_o_best" real, "08_09_gp_jgp_best" real, "08_09_gp_jgp_2nd" real, "08_09_oi_best" real, "08_09_oi_2nd" real, "07_08_i_o_best" real, "07_08_gp_jgp_best" real, "07_08_gp_jgp_2nd" real, "07_08_oi_best" real, "07_08_oi_2nd" real ); Write an SQL query that provides the solution to the following question: "what is the total 07-08 gp/jgp 2nd with the name mao asada". [/INST] SELECT "07_08_gp_jgp_2nd" FROM "ladies" WHERE "name"='Mao Asada'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "ladies" ( "rank" real, "ws_points" real, "name" text, "country" text, "08_09_i_o_best" real, "08_09_gp_jgp_best" real, "08_09_gp_jgp_2nd" real, "08_09_oi_best" real, "08_09_oi_2nd" real, "07_08_i_o_best" real, "07_08_gp_jgp_best" real, "07_08_gp_jgp_2nd" real, "07_08_oi_best" real, "07_08_oi_2nd" real ); Write an SQL query that provides the solution to the following question: "08-09 gp/jgp 2nd is 213 and ws points will be what maximum". [/INST] SELECT MAX("ws_points") FROM "ladies" WHERE "08_09_gp_jgp_2nd"=213; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "coal_fired" ( "name" text, "location" text, "act_units" real, "stacks" text, "in_service_dates" text, "unit_capacity_2009" text, "nameplate_capacity_2009_mw" text, "owner_type" text, "owner_s_2009" text ); Write an SQL query that provides the solution to the following question: "Name the owners 2009 for south side indianapolis". [/INST] SELECT "owner_s_2009" FROM "coal_fired" WHERE "location"='South Side Indianapolis'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "coal_fired" ( "name" text, "location" text, "act_units" real, "stacks" text, "in_service_dates" text, "unit_capacity_2009" text, "nameplate_capacity_2009_mw" text, "owner_type" text, "owner_s_2009" text ); Write an SQL query that provides the solution to the following question: "Name the stacks for 1 1969 2 1995". [/INST] SELECT "stacks" FROM "coal_fired" WHERE "in_service_dates"='1 1969 2 1995'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "coal_fired" ( "name" text, "location" text, "act_units" real, "stacks" text, "in_service_dates" text, "unit_capacity_2009" text, "nameplate_capacity_2009_mw" text, "owner_type" text, "owner_s_2009" text ); Write an SQL query that provides the solution to the following question: "Name the number of stacks for 1 & 2 235 mw 3 & 4 88.2 mw". [/INST] SELECT COUNT("stacks") FROM "coal_fired" WHERE "unit_capacity_2009"='1 & 2 235 MW 3 & 4 88.2 MW'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "coal_fired" ( "name" text, "location" text, "act_units" real, "stacks" text, "in_service_dates" text, "unit_capacity_2009" text, "nameplate_capacity_2009_mw" text, "owner_type" text, "owner_s_2009" text ); Write an SQL query that provides the solution to the following question: "Name the number for service dates for hoosier energy for petersburg". [/INST] SELECT COUNT("in_service_dates") FROM "coal_fired" WHERE "owner_s_2009"='Hoosier Energy' AND "location"='Petersburg'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "supported_processors" ( "code_name" text, "brand_name" text, "model_list" text, "frequency" text, "cores_threads" text, "max_memory_speed" text ); Write an SQL query that provides the solution to the following question: "What frequency does model L34xx use?". [/INST] SELECT "frequency" FROM "supported_processors" WHERE "model_list"='L34xx'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "supported_processors" ( "code_name" text, "brand_name" text, "model_list" text, "frequency" text, "cores_threads" text, "max_memory_speed" text ); Write an SQL query that provides the solution to the following question: "What brand is model G6xxx?". [/INST] SELECT "brand_name" FROM "supported_processors" WHERE "model_list"='G6xxx'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "supported_processors" ( "code_name" text, "brand_name" text, "model_list" text, "frequency" text, "cores_threads" text, "max_memory_speed" text ); Write an SQL query that provides the solution to the following question: "What is the maximum memory speed for frequencies between 2.93-3.2ghz?". [/INST] SELECT "max_memory_speed" FROM "supported_processors" WHERE "frequency"='2.93-3.2GHz'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "supported_processors" ( "code_name" text, "brand_name" text, "model_list" text, "frequency" text, "cores_threads" text, "max_memory_speed" text ); Write an SQL query that provides the solution to the following question: "What brand is model I7-8xx?". [/INST] SELECT "brand_name" FROM "supported_processors" WHERE "model_list"='i7-8xx'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "supported_processors" ( "code_name" text, "brand_name" text, "model_list" text, "frequency" text, "cores_threads" text, "max_memory_speed" text ); Write an SQL query that provides the solution to the following question: "List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.". [/INST] SELECT "cores_threads" FROM "supported_processors" WHERE "max_memory_speed"='DDR3-1333' AND "frequency"='2.66-2.8GHz'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "supported_processors" ( "code_name" text, "brand_name" text, "model_list" text, "frequency" text, "cores_threads" text, "max_memory_speed" text ); Write an SQL query that provides the solution to the following question: "What frequency does the Pentium processor use?". [/INST] SELECT "frequency" FROM "supported_processors" WHERE "brand_name"='Pentium'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Write an SQL query that provides the solution to the following question: "How many different counts of the votes for Bush are there in the county where he got 69.7% of the votes?". [/INST] SELECT COUNT("bushnum") FROM "by_county" WHERE "bushpct"='69.7%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Write an SQL query that provides the solution to the following question: "What percentage of the votes in Oneida did Kerry win?". [/INST] SELECT "kerrypct" FROM "by_county" WHERE "county"='Oneida'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Write an SQL query that provides the solution to the following question: "What percentage of the people in Bonneville voted for Bush?". [/INST] SELECT "bushpct" FROM "by_county" WHERE "county"='Bonneville'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Write an SQL query that provides the solution to the following question: "What percentage of the votes were for others in the county where 462 people voted that way?". [/INST] SELECT "otherspct" FROM "by_county" WHERE "othersnum"=462; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Write an SQL query that provides the solution to the following question: "What's percentage voted for Busg in the county where Kerry got 37.6%?". [/INST] SELECT "bushpct" FROM "by_county" WHERE "kerrypct"='37.6%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Write an SQL query that provides the solution to the following question: "How many people voted for Kerry in the county where 8 voted for others?". [/INST] SELECT MIN("kerrynum") FROM "by_county" WHERE "othersnum"=8; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "denis_nizhegorodov_rus" text, "3_34_14" text, "cheboksary_russia" text, "11_may_2008" text ); Write an SQL query that provides the solution to the following question: "When 3:38:45 is 3:34:14 what is the date on May 11th, 2008?". [/INST] SELECT "11_may_2008" FROM "records" WHERE "3_34_14"='3:38:45'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "denis_nizhegorodov_rus" text, "3_34_14" text, "cheboksary_russia" text, "11_may_2008" text ); Write an SQL query that provides the solution to the following question: "When north american record is the world record who is the denis nizhegorodov ( rus )?". [/INST] SELECT "denis_nizhegorodov_rus" FROM "records" WHERE "world_record"='North American record'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "denis_nizhegorodov_rus" text, "3_34_14" text, "cheboksary_russia" text, "11_may_2008" text ); Write an SQL query that provides the solution to the following question: "When 3:41:20 is 3:34:14 what is cheboksary , russia?". [/INST] SELECT "cheboksary_russia" FROM "records" WHERE "3_34_14"='3:41:20'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "table" text, "incoming_manager" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "How many incoming managers were there after Roy Hodgson left the position for the Fulham team?". [/INST] SELECT COUNT("incoming_manager") FROM "managerial_changes" WHERE "outgoing_manager"='Roy Hodgson' AND "team"='Fulham'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "table" text, "incoming_manager" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "What is the table for the team Blackburn Rovers?". [/INST] SELECT "table" FROM "managerial_changes" WHERE "team"='Blackburn Rovers'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "table" text, "incoming_manager" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "What was the date of appointment for incoming manager Roy Hodgson and the team is Liverpool?". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Liverpool' AND "incoming_manager"='Roy Hodgson'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "table" text, "incoming_manager" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "What team has an incoming manager named Kenny Dalglish?". [/INST] SELECT "team" FROM "managerial_changes" WHERE "incoming_manager"='Kenny Dalglish'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "table" text, "incoming_manager" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "What is the date of vacancy for the Liverpool team with a table named pre-season?". [/INST] SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "table"='Pre-season' AND "team"='Liverpool'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "When steve mcclaren is the replacer what is the manner of departure?". [/INST] SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='Steve McClaren'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text ); Write an SQL query that provides the solution to the following question: "When 1. fc köln is the team what is the date of appointment?". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='1. FC Köln'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "major_tournaments_hosted" ( "year" real, "tournament" text, "winner" text, "margin_of_victory" text, "winners_share" real, "par" real, "course_length" text ); Write an SQL query that provides the solution to the following question: "When 1999 is the year how many tournaments are there?". [/INST] SELECT COUNT("tournament") FROM "major_tournaments_hosted" WHERE "year"=1999; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "major_tournaments_hosted" ( "year" real, "tournament" text, "winner" text, "margin_of_victory" text, "winners_share" real, "par" real, "course_length" text ); Write an SQL query that provides the solution to the following question: "When cary middlecoff is the winner how many pars are there?". [/INST] SELECT COUNT("par") FROM "major_tournaments_hosted" WHERE "winner"='Cary Middlecoff'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "major_tournaments_hosted" ( "year" real, "tournament" text, "winner" text, "margin_of_victory" text, "winners_share" real, "par" real, "course_length" text ); Write an SQL query that provides the solution to the following question: "When hale irwin is the winner what is the margin of victory?". [/INST] SELECT "margin_of_victory" FROM "major_tournaments_hosted" WHERE "winner"='Hale Irwin'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "major_tournaments_hosted" ( "year" real, "tournament" text, "winner" text, "margin_of_victory" text, "winners_share" real, "par" real, "course_length" text ); Write an SQL query that provides the solution to the following question: "When gary player is the winner what is the lowest winners share in dollars?". [/INST] SELECT MIN("winners_share") FROM "major_tournaments_hosted" WHERE "winner"='Gary Player'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_name" text, "founded" real, "affiliation" text, "enrollment" real, "year_joined" real ); Write an SQL query that provides the solution to the following question: "How many entries are there for founded when the location was springfield, ohio?". [/INST] SELECT COUNT("founded") FROM "former_members" WHERE "location"='Springfield, Ohio'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_name" text, "founded" real, "affiliation" text, "enrollment" real, "year_joined" real ); Write an SQL query that provides the solution to the following question: "What was the location for the team name of patriots?". [/INST] SELECT "location" FROM "former_members" WHERE "team_name"='Patriots'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_name" text, "founded" real, "affiliation" text, "enrollment" real, "year_joined" real ); Write an SQL query that provides the solution to the following question: "What is the location when founded was 1957?". [/INST] SELECT "location" FROM "former_members" WHERE "founded"=1957; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_name" text, "founded" real, "affiliation" text, "enrollment" real, "year_joined" real ); Write an SQL query that provides the solution to the following question: "What is the affiliation when the institution was ohio christian university?". [/INST] SELECT "affiliation" FROM "former_members" WHERE "institution"='Ohio Christian University'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_name" text, "founded" real, "affiliation" text, "enrollment" real, "year_joined" real ); Write an SQL query that provides the solution to the following question: "What is the institution that was located is circleville, ohio?". [/INST] SELECT "institution" FROM "former_members" WHERE "location"='Circleville, Ohio'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_name" text, "founded" real, "affiliation" text, "enrollment" real, "year_joined" real ); Write an SQL query that provides the solution to the following question: "What is the location for the team name of eagles?". [/INST] SELECT "location" FROM "former_members" WHERE "team_name"='Eagles'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "united_states" ( "episode_number_production_number" text, "title" text, "original_airdate" text, "rating_share_in_households" text, "18_49_rating_live_sd_live_7" text, "share" text, "live_sd_total_viewers" text, "live_7_day_dvr_total_viewers" text ); Write an SQL query that provides the solution to the following question: "When did the episode that had 5.09 million total viewers (both Live and SD types) first air?". [/INST] SELECT "original_airdate" FROM "united_states" WHERE "live_sd_total_viewers"='5.09 million'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "united_states" ( "episode_number_production_number" text, "title" text, "original_airdate" text, "rating_share_in_households" text, "18_49_rating_live_sd_live_7" text, "share" text, "live_sd_total_viewers" text, "live_7_day_dvr_total_viewers" text ); Write an SQL query that provides the solution to the following question: "How many total viewers (combined Live and SD) watched the episode with a share of 8?". [/INST] SELECT "live_7_day_dvr_total_viewers" FROM "united_states" WHERE "share"='8'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "united_states" ( "episode_number_production_number" text, "title" text, "original_airdate" text, "rating_share_in_households" text, "18_49_rating_live_sd_live_7" text, "share" text, "live_sd_total_viewers" text, "live_7_day_dvr_total_viewers" text ); Write an SQL query that provides the solution to the following question: "When did the fourth episode of the season (4 1-04) first air?". [/INST] SELECT "original_airdate" FROM "united_states" WHERE "episode_number_production_number"='4 1-04'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "united_states" ( "episode_number_production_number" text, "title" text, "original_airdate" text, "rating_share_in_households" text, "18_49_rating_live_sd_live_7" text, "share" text, "live_sd_total_viewers" text, "live_7_day_dvr_total_viewers" text ); Write an SQL query that provides the solution to the following question: "What are the "18–49 Rating Live+SD" ratings and "Live+7" ratings, respectively, for the episode that originally aired on October 14, 2009?". [/INST] SELECT "18_49_rating_live_sd_live_7" FROM "united_states" WHERE "original_airdate"='October 14, 2009'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "united_states" ( "episode_number_production_number" text, "title" text, "original_airdate" text, "rating_share_in_households" text, "18_49_rating_live_sd_live_7" text, "share" text, "live_sd_total_viewers" text, "live_7_day_dvr_total_viewers" text ); Write an SQL query that provides the solution to the following question: "When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?". [/INST] SELECT "original_airdate" FROM "united_states" WHERE "live_sd_total_viewers"='3.69 million'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table_of_winners_and_nominees" ( "year" real, "oscars" text, "noms" real, "wins" real, "film" text, "leading_actor" text, "leading_actress" text, "supporting_actor" text, "supporting_actress" text ); Write an SQL query that provides the solution to the following question: "Who was the leading actor in the film with a supporting actor named Cecil Kellaway?". [/INST] SELECT "leading_actor" FROM "table_of_winners_and_nominees" WHERE "supporting_actor"='Cecil Kellaway'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table_of_winners_and_nominees" ( "year" real, "oscars" text, "noms" real, "wins" real, "film" text, "leading_actor" text, "leading_actress" text, "supporting_actor" text, "supporting_actress" text ); Write an SQL query that provides the solution to the following question: "Who was the supporting actress in "For Whom the Bell Tolls"?". [/INST] SELECT "supporting_actress" FROM "table_of_winners_and_nominees" WHERE "film"='For Whom the Bell Tolls'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table_of_winners_and_nominees" ( "year" real, "oscars" text, "noms" real, "wins" real, "film" text, "leading_actor" text, "leading_actress" text, "supporting_actor" text, "supporting_actress" text ); Write an SQL query that provides the solution to the following question: "Who was the supporting actress in a film with Diane Keaton as the leading actress?". [/INST] SELECT "supporting_actress" FROM "table_of_winners_and_nominees" WHERE "leading_actress"='Diane Keaton'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table_of_winners_and_nominees" ( "year" real, "oscars" text, "noms" real, "wins" real, "film" text, "leading_actor" text, "leading_actress" text, "supporting_actor" text, "supporting_actress" text ); Write an SQL query that provides the solution to the following question: "Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?". [/INST] SELECT "leading_actress" FROM "table_of_winners_and_nominees" WHERE "leading_actor"='Warren Beatty' AND "oscars"='40th'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table_of_winners_and_nominees" ( "year" real, "oscars" text, "noms" real, "wins" real, "film" text, "leading_actor" text, "leading_actress" text, "supporting_actor" text, "supporting_actress" text ); Write an SQL query that provides the solution to the following question: "Which film had Charles Bickford as supporting actor?". [/INST] SELECT "film" FROM "table_of_winners_and_nominees" WHERE "supporting_actor"='Charles Bickford'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table_of_winners_and_nominees" ( "year" real, "oscars" text, "noms" real, "wins" real, "film" text, "leading_actor" text, "leading_actress" text, "supporting_actor" text, "supporting_actress" text ); Write an SQL query that provides the solution to the following question: "Who was the supporting actress in 1943?". [/INST] SELECT "supporting_actress" FROM "table_of_winners_and_nominees" WHERE "year"=1943; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real ); Write an SQL query that provides the solution to the following question: "How many episodes aired in Sydney in Week 3?". [/INST] SELECT COUNT("sydney") FROM "weekly_ratings" WHERE "week"=3; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real ); Write an SQL query that provides the solution to the following question: "How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?". [/INST] SELECT "sydney" FROM "weekly_ratings" WHERE "melbourne"=334000; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real ); Write an SQL query that provides the solution to the following question: "How many Adelaide viewers were there in Week 5?". [/INST] SELECT "adelaide" FROM "weekly_ratings" WHERE "week"=5; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real ); Write an SQL query that provides the solution to the following question: "What is the highest number of Brisbane viewers?". [/INST] SELECT MAX("brisbane") FROM "weekly_ratings"; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "nightly_rank" real ); Write an SQL query that provides the solution to the following question: "What was the rating in Brisbane the week it was 276000 in Melbourne? ". [/INST] SELECT MAX("brisbane") FROM "weekly_ratings" WHERE "melbourne"=276000; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "nightly_rank" real ); Write an SQL query that provides the solution to the following question: "What was the total rating on week 3? ". [/INST] SELECT "total" FROM "weekly_ratings" WHERE "week"=3; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "weekly_ratings" ( "week" real, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "nightly_rank" real ); Write an SQL query that provides the solution to the following question: "What was the rating for Brisbane the week that Adelaide had 94000?". [/INST] SELECT MIN("brisbane") FROM "weekly_ratings" WHERE "adelaide"=94000; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_24319661_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "How many millions of people in the US watched when Kevin Bray was director?". [/INST] SELECT "u_s_viewers_million" FROM "table1_24319661_3" WHERE "directed_by"='Kevin Bray'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_24319661_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "How many millions of people in the US watched the "Company Man" episode?". [/INST] SELECT "u_s_viewers_million" FROM "table1_24319661_3" WHERE "title"='\"Company Man\"'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_24319661_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "How many episodes in the season had 3.81 million US viewers?". [/INST] SELECT COUNT("no_in_season") FROM "table1_24319661_3" WHERE "u_s_viewers_million"='3.81'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_24319661_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "Who directed the episode "Point Blank"?". [/INST] SELECT "directed_by" FROM "table1_24319661_3" WHERE "title"='\"Point Blank\"'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_teams" ( "team" text, "city" text, "stadium" text, "capacity" real, "founded" real, "folded" real, "history" text ); Write an SQL query that provides the solution to the following question: "What is the maximum folded value of the team whose stadium is Fraser Field?". [/INST] SELECT MAX("folded") FROM "former_teams" WHERE "stadium"='Fraser Field'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "former_teams" ( "team" text, "city" text, "stadium" text, "capacity" real, "founded" real, "folded" real, "history" text ); Write an SQL query that provides the solution to the following question: "What is the maximum founded year of the Worcester Tornadoes?". [/INST] SELECT MAX("founded") FROM "former_teams" WHERE "team"='Worcester Tornadoes'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "series_1" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Write an SQL query that provides the solution to the following question: "How many viewers were there for airdate is 22 october 2009?". [/INST] SELECT MAX("viewers") FROM "series_1" WHERE "airdate"='22 October 2009'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "series_1" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Write an SQL query that provides the solution to the following question: "What is the cable rank for episode no. 4?". [/INST] SELECT "cable_rank" FROM "series_1" WHERE "episode_no"=4; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "series_1" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Write an SQL query that provides the solution to the following question: "Where where the bbc three weekly ranking for episode no. 5?". [/INST] SELECT "bbc_three_weekly_ranking" FROM "series_1" WHERE "episode_no"=5; </s> |
Subsets and Splits