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 "0_6_0" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );. Question: "Which Class has a Quantity made of 29?". [/INST] SELECT "class" FROM "0_6_0" WHERE "quantity_made"='29';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the Theme Song of the Yukan Club?". [/INST] SELECT "theme_song_s" FROM "2007_fall_season" WHERE "romaji_title"='yukan club';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the Theme Song of 働きマン?". [/INST] SELECT "theme_song_s" FROM "2007_fall_season" WHERE "japanese_title"='働きマン';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%?". [/INST] SELECT "theme_song_s" FROM "2007_fall_season" WHERE "tv_station"='fuji tv' AND "average_ratings"='16.65%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the Theme Song of Iryu -Team Medical Dragon-2?". [/INST] SELECT "theme_song_s" FROM "2007_fall_season" WHERE "romaji_title"='iryu -team medical dragon-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 "2007_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What Episode has a Theme Song of koh+ "kissして" (kiss shite)?". [/INST] SELECT MIN("episodes") FROM "2007_fall_season" WHERE "theme_song_s"='koh+ \"kissして\" (kiss shite)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_6_6_4_construction_roster" ( "railroad_quantity" text, "class" text, "road_numbers" text, "builder" text, "build_year" text );. Question: "what is the road numbers when the build year is 1943, the railroad (quantity) is clinchfield railroad (12 new, 6 secondhand)?". [/INST] SELECT "road_numbers" FROM "4_6_6_4_construction_roster" WHERE "build_year"='1943' AND "railroad_quantity"='clinchfield railroad (12 new, 6 secondhand)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_6_6_4_construction_roster" ( "railroad_quantity" text, "class" text, "road_numbers" text, "builder" text, "build_year" text );. Question: "what is the road numbers when the builder is alco, the railroad (quantity) is union pacific railroad (105) and the class is csa-2?". [/INST] SELECT "road_numbers" FROM "4_6_6_4_construction_roster" WHERE "builder"='alco' AND "railroad_quantity"='union pacific railroad (105)' AND "class"='csa-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 "4_6_6_4_construction_roster" ( "railroad_quantity" text, "class" text, "road_numbers" text, "builder" text, "build_year" text );. Question: "what is the road numbers when the class is z-7?". [/INST] SELECT "road_numbers" FROM "4_6_6_4_construction_roster" WHERE "class"='z-7';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "featured_artist_one_hit_wonders" ( "song" text, "featured_artist" text, "main_artist" text, "peak_date" text, "peak" real );. Question: "What was the peak date of Kelis's song?". [/INST] SELECT "peak_date" FROM "featured_artist_one_hit_wonders" WHERE "main_artist"='kelis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more?". [/INST] SELECT "nationality" FROM "semifinal_2" WHERE "lane">4 AND "rank">5;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "Who was the opponent the falcons played against on week 3?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"=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 "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );. Question: "what is the highest podiums when the stage wins is 91 and the points is less than 140?". [/INST] SELECT MAX("podiums") FROM "constructors" WHERE "stage_wins"=91 AND "points"<140;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );. Question: "what is the average wins when the podiums is more than 1, points is 80 and starts is less than 28?". [/INST] SELECT AVG("wins") FROM "constructors" WHERE "podiums">1 AND "points"=80 AND "starts"<28;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );. Question: "what is the total number of points when the constructor is citroën total world rally team and the wins is less than 7?". [/INST] SELECT COUNT("points") FROM "constructors" WHERE "constructor"='citroën total world rally team' AND "wins"<7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );. Question: "what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?". [/INST] SELECT MAX("points") FROM "constructors" WHERE "chassis"='focus rs wrc 08 and 09' AND "stage_wins">91;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rookie_rallye_classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );. Question: "What driver had a total time of 16:58?". [/INST] SELECT "driver" FROM "rookie_rallye_classic_competition" WHERE "total_time"='16:58';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rookie_rallye_classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );. Question: "What's the lowest capacity when the margin is 03:30?". [/INST] SELECT MIN("capacity") FROM "rookie_rallye_classic_competition" WHERE "margin"='03:30';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rookie_rallye_classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );. Question: "Which vehicle has a class 6c3g?". [/INST] SELECT "vehicle" FROM "rookie_rallye_classic_competition" WHERE "class"='6c3g';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rookie_rallye_classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );. Question: "What is the lowest capacity for the 1975 toyota celica 1600gt?". [/INST] SELECT MIN("capacity") FROM "rookie_rallye_classic_competition" WHERE "vehicle"='1975 toyota celica 1600gt';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_6" ( "lane" real, "athlete" text, "nationality" text, "time" text, "react" real );. Question: "who is the athlete when react is 0.164?". [/INST] SELECT "athlete" FROM "heat_6" WHERE "react"=0.164;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_6" ( "lane" real, "athlete" text, "nationality" text, "time" text, "react" real );. Question: "what is the lowest lane when react is more than 0.164 and the nationality is guinea?". [/INST] SELECT MIN("lane") FROM "heat_6" WHERE "react">0.164 AND "nationality"='guinea';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_retired" text );. Question: "What is the year retired of the locomotive which had the quantity made of 25?". [/INST] SELECT "year_s_retired" FROM "2_8_2" WHERE "quantity_made"='25';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_retired" text );. Question: "Which class had a quantity made of 20?". [/INST] SELECT "class" FROM "2_8_2" WHERE "quantity_made"='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 "2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_retired" text );. Question: "What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25?". [/INST] SELECT "class" FROM "2_8_2" WHERE "wheel_arrangement"='2-8-2' AND "quantity_made"='25';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_retired" text );. Question: "What is the quantity preserved to the locomotive with a quantity made of 6?". [/INST] SELECT "quantity_preserved" FROM "2_8_2" WHERE "quantity_made"='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 "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );. Question: "What is Beohari's highest number of electorates?". [/INST] SELECT MAX("number_of_electorates_2009") FROM "assembly_segments" WHERE "name"='beohari';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );. Question: "What is the district with 79 constituency number?". [/INST] SELECT "district" FROM "assembly_segments" WHERE "constituency_number"='79';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );. Question: "What is Beohari's reserved for (SC/ST/None)?". [/INST] SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "name"='beohari';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_ultras_of_africa" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real );. Question: "What is the sum of the prominence in m of moussa ali terara peak?". [/INST] SELECT SUM("prominence_m") FROM "list_of_ultras_of_africa" WHERE "peak"='moussa ali terara';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_ultras_of_africa" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real );. Question: "What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358?". [/INST] SELECT COUNT("prominence_m") FROM "list_of_ultras_of_africa" WHERE "country"='ethiopia' AND "col_m"=1728 AND "elevation_m"<'3,358';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "daytona_500_results" ( "year" real, "team" text, "manufacturer" text, "start" real, "finish" real );. Question: "Which team had a start of 8 in years under 2008?". [/INST] SELECT "team" FROM "daytona_500_results" WHERE "start"=8 AND "year"<2008;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "daytona_500_results" ( "year" real, "team" text, "manufacturer" text, "start" real, "finish" real );. Question: "What was Jeff's finish in 2011?". [/INST] SELECT SUM("finish") FROM "daytona_500_results" WHERE "year"=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 "daytona_500_results" ( "year" real, "team" text, "manufacturer" text, "start" real, "finish" real );. Question: "What is the number of finishes having a start of 15?". [/INST] SELECT COUNT("finish") FROM "daytona_500_results" WHERE "start"=15;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real );. Question: "How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?". [/INST] SELECT COUNT("2011_1_h") FROM "popularity_of_terrestrial_tv_stations" WHERE "2006"=27.4 AND "2007">27.7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real );. Question: "What is the highest 2011 1H value for a 2005 over 28?". [/INST] SELECT MAX("2011_1_h") FROM "popularity_of_terrestrial_tv_stations" WHERE "2005">28;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real );. Question: "What is the number of 2008 values having a 2006 under 17.3, 2010 over 4, and 2011 1H of 20?". [/INST] SELECT COUNT("2008") FROM "popularity_of_terrestrial_tv_stations" WHERE "2006"<17.3 AND "2010">4 AND "2011_1_h"=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 "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real );. Question: "What is the average 2007 value for a 2006 of 2.8 and 2009 under 20?". [/INST] SELECT AVG("2007") FROM "popularity_of_terrestrial_tv_stations" WHERE "2009"<20 AND "2006"=2.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 "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text );. Question: "What was the round for Villa Park?". [/INST] SELECT "round" FROM "fa_cup" WHERE "venue"='villa park';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "l" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What is latitude when 2010 population is 24 and water is more than 0.319?". [/INST] SELECT MAX("latitude") FROM "l" WHERE "pop_2010"=24 AND "water_sqmi">0.319;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "comparison_of_atypical_antipsychotics" ( "generic_name" text, "trade_name" text, "fda_approved" text, "tga_approved" text, "ema_approved" text, "mhra_approved" text );. Question: "Is Blonanserin MHRA approved?". [/INST] SELECT "mhra_approved" FROM "comparison_of_atypical_antipsychotics" WHERE "generic_name"='blonanserin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "What is the home team when kwong wah was the away team?". [/INST] SELECT "home_team" FROM "second_round" WHERE "away_team"='kwong wah';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time?". [/INST] SELECT "score" FROM "second_round" WHERE "time"='14:30' AND "venue"='happy valley recreation ground pitch #2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "What is the venue of the match with a 14:30 time and sun source as the away team?". [/INST] SELECT "venue" FROM "second_round" WHERE "time"='14:30' AND "away_team"='sun source';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "What is the away team when solon was the home team?". [/INST] SELECT "away_team" FROM "second_round" WHERE "home_team"='solon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is Elizabeth Simmonds' average lane number?". [/INST] SELECT AVG("lane") FROM "semifinal_1" WHERE "name"='elizabeth simmonds';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is Laure Manaudou's highest rank?". [/INST] SELECT MAX("rank") FROM "semifinal_1" WHERE "name"='laure manaudou';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_usage_share_of_desktop_browsers_d" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other" text );. Question: "What internet explorer has 1.67% as the opera, with 2012 q1 as the period?". [/INST] SELECT "internet_explorer" FROM "global_usage_share_of_desktop_browsers_d" WHERE "opera"='1.67%' AND "period"='2012 q1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_usage_share_of_desktop_browsers_d" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other" text );. Question: "What safari has 2012 q4 as the period?". [/INST] SELECT "safari" FROM "global_usage_share_of_desktop_browsers_d" WHERE "period"='2012 q4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_usage_share_of_desktop_browsers_d" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other" text );. Question: "What period has 53.52% as the internet explorer?". [/INST] SELECT "period" FROM "global_usage_share_of_desktop_browsers_d" WHERE "internet_explorer"='53.52%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_usage_share_of_desktop_browsers_d" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other" text );. Question: "What is the other that has 20.80% as the firefox?". [/INST] SELECT "other" FROM "global_usage_share_of_desktop_browsers_d" WHERE "firefox"='20.80%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_usage_share_of_desktop_browsers_d" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other" text );. Question: "What opera has 19.87% as the firefox?". [/INST] SELECT "opera" FROM "global_usage_share_of_desktop_browsers_d" WHERE "firefox"='19.87%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "How many total Time listings have a 0.209 React entry and a Rank that is greater than 7?". [/INST] SELECT COUNT("time") FROM "heat_2" WHERE "react"=0.209 AND "rank">7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "How many total Rank listings have Liu Xiaosheng listed as the athlete with a react entry that is smaller than 0.245?". [/INST] SELECT COUNT("rank") FROM "heat_2" WHERE "athlete"='liu xiaosheng' AND "react"<0.245;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What is the total average for Rank entries where the Lane listed is smaller than 4 and the Nationality listed is San Marino?". [/INST] SELECT AVG("rank") FROM "heat_2" WHERE "lane"<4 AND "nationality"='san marino';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What Lane has a 0.209 React entered with a Rank entry that is larger than 6?". [/INST] SELECT "lane" FROM "heat_2" WHERE "react">0.209 AND "rank">6;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "Which Notes have a Competition of world championships, and a Position of 2nd?". [/INST] SELECT "notes" FROM "achievements" WHERE "competition"='world championships' AND "position"='2nd';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What was the venue after 2012?". [/INST] SELECT "venue" FROM "achievements" WHERE "year">2012;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What were the notes in 2011?". [/INST] SELECT "notes" FROM "achievements" WHERE "year"=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 "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "Which Year has a Position of 9th?". [/INST] SELECT AVG("year") FROM "achievements" WHERE "position"='9th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "what is the name when the 2008 club is zarechie odintsovo?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='zarechie odintsovo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "what is the name when the 2008 club is uralochka?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='uralochka';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "what is the name when the 2008 club is uralochka?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='uralochka';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_centers" ( "area" text, "state_province" text, "csa_cma_2009_population" real, "projected_2025_population" text, "projected_increase_2009_2025" text );. Question: "What's the CSA/CMA Population in IA-IL?". [/INST] SELECT MAX("csa_cma_2009_population") FROM "population_centers" WHERE "state_province"='ia-il';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_centers" ( "area" text, "state_province" text, "csa_cma_2009_population" real, "projected_2025_population" text, "projected_increase_2009_2025" text );. Question: "What's the projected population of IN-MI?". [/INST] SELECT "projected_2025_population" FROM "population_centers" WHERE "state_province"='in-mi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "nationality" text, "time" text );. Question: "Can you tell me the Rank that has the Lane of 6, and the Heat of 2?". [/INST] SELECT "rank" FROM "heats" WHERE "lane"=6 AND "heat"=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 "heats" ( "rank" real, "heat" real, "lane" real, "nationality" text, "time" text );. Question: "Can you tell me the Time that has the Heat of 1, and the Lane of 2?". [/INST] SELECT "time" FROM "heats" WHERE "heat"=1 AND "lane"=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 "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "What is the Game # that scored 87-92?". [/INST] SELECT SUM("game") FROM "game_log" WHERE "score"='87-92';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text );. Question: "What is the lowest rank that spain got?". [/INST] SELECT MIN("rank") FROM "semifinals" WHERE "nation"='spain';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the result from the 2000 asian cup qualification?". [/INST] SELECT "result" FROM "international_goals" WHERE "competition"='2000 asian cup qualification';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "On what date was the game that had a score of 7–0?". [/INST] SELECT "date" FROM "international_goals" WHERE "score"='7–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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the result of the game that was played on february 27, 2000?". [/INST] SELECT "result" FROM "international_goals" WHERE "date"='february 27, 2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "During what competition was a game played with a score of 3–1?". [/INST] SELECT "competition" FROM "international_goals" WHERE "score"='3–1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the score from the king's cup 2000?". [/INST] SELECT "score" FROM "international_goals" WHERE "competition"='king''s cup 2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the tie number when the home team is Port Vale?". [/INST] SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='port vale';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the score in the Liverpool home game?". [/INST] SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='liverpool';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which away team has a tie number of 3?". [/INST] SELECT "away_team" FROM "fourth_round_proper" WHERE "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 "social_and_economic_indicators_for_latin" ( "country" text, "human_development_2012_hdi" real, "gdp_ppp_2012_us_per_capita" text, "real_gdp_growth_2011_pct" text, "income_inequality_2011_gini" text, "poverty_2009_hpi_1_pct" real, "extreme_poverty_2011_1_25_us_pct" text, "literacy_2010_pct" real, "life_expectancy_2011_years" real, "murder_2012_rate_per_100_000" text, "peace_2012_gpi" real );. Question: "What murder (2012) rate per 100,00 also has a 1.616 as the peace (2012) GPI?". [/INST] SELECT "murder_2012_rate_per_100_000" FROM "social_and_economic_indicators_for_latin" WHERE "peace_2012_gpi"=1.616;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "social_and_economic_indicators_for_latin" ( "country" text, "human_development_2012_hdi" real, "gdp_ppp_2012_us_per_capita" text, "real_gdp_growth_2011_pct" text, "income_inequality_2011_gini" text, "poverty_2009_hpi_1_pct" real, "extreme_poverty_2011_1_25_us_pct" text, "literacy_2010_pct" real, "life_expectancy_2011_years" real, "murder_2012_rate_per_100_000" text, "peace_2012_gpi" real );. Question: "What is the sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284?". [/INST] SELECT COUNT("poverty_2009_hpi_1_pct") FROM "social_and_economic_indicators_for_latin" WHERE "gdp_ppp_2012_us_per_capita"='11,284';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "social_and_economic_indicators_for_latin" ( "country" text, "human_development_2012_hdi" real, "gdp_ppp_2012_us_per_capita" text, "real_gdp_growth_2011_pct" text, "income_inequality_2011_gini" text, "poverty_2009_hpi_1_pct" real, "extreme_poverty_2011_1_25_us_pct" text, "literacy_2010_pct" real, "life_expectancy_2011_years" real, "murder_2012_rate_per_100_000" text, "peace_2012_gpi" real );. Question: "What is the total poverty (2009) HPI-1 % when the extreme poverty (2011) <1.25 US$ % of 16.9, and the human development (2012) HDI is less than 0.581?". [/INST] SELECT SUM("poverty_2009_hpi_1_pct") FROM "social_and_economic_indicators_for_latin" WHERE "extreme_poverty_2011_1_25_us_pct"='16.9' AND "human_development_2012_hdi"<0.581;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What are the notes with the time 6:24.21?". [/INST] SELECT "notes" FROM "heat_1" WHERE "time"='6:24.21';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What country is ranked #2?". [/INST] SELECT "country" FROM "heat_1" 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 "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What's the time of Rank 3?". [/INST] SELECT "time" FROM "heat_1" WHERE "rank"=3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_nationality" ( "country" text, "total_drivers" real, "championship_titles" text, "race_entries_starts" text, "poles" real, "wins" real, "podiums" real, "fastest_laps" real, "points" text );. Question: "How many titles for the nation with less than 3 fastest laps and 22 podiums?". [/INST] SELECT "championship_titles" FROM "by_nationality" WHERE "fastest_laps"<3 AND "podiums"=22;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_nationality" ( "country" text, "total_drivers" real, "championship_titles" text, "race_entries_starts" text, "poles" real, "wins" real, "podiums" real, "fastest_laps" real, "points" text );. Question: "How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?". [/INST] SELECT MIN("fastest_laps") FROM "by_nationality" WHERE "race_entries_starts"='32 (30)' AND "podiums"<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 "national_final_february_26_2002" ( "draw" real, "singer" text, "song" text, "televoting_votes" text, "jury" text, "place" text );. Question: "The song "2 Be Together" had what jury?". [/INST] SELECT "jury" FROM "national_final_february_26_2002" WHERE "song"='\"2 be together\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final_february_26_2002" ( "draw" real, "singer" text, "song" text, "televoting_votes" text, "jury" text, "place" text );. Question: "Kostas Bigalis & Mirella Fragkopoulou the singer had what has the jury?". [/INST] SELECT "jury" FROM "national_final_february_26_2002" WHERE "singer"='kostas bigalis & mirella fragkopoulou';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final_february_26_2002" ( "draw" real, "singer" text, "song" text, "televoting_votes" text, "jury" text, "place" text );. Question: "What is the greatest draw that has 4th for place?". [/INST] SELECT MAX("draw") FROM "national_final_february_26_2002" WHERE "place"='4th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final_february_26_2002" ( "draw" real, "singer" text, "song" text, "televoting_votes" text, "jury" text, "place" text );. Question: "Singer Maria-Louiza & Not 4 Sale had what jury?". [/INST] SELECT "jury" FROM "national_final_february_26_2002" WHERE "singer"='maria-louiza & not 4 sale';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final_february_26_2002" ( "draw" real, "singer" text, "song" text, "televoting_votes" text, "jury" text, "place" text );. Question: "What song was 2nd (25,517) in televoting (votes)?". [/INST] SELECT "song" FROM "national_final_february_26_2002" WHERE "televoting_votes"='2nd (25,517)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualification" ( "rank" real, "group" text, "athlete" text, "nationality" text, "result" real );. Question: "What is the average rank for Group A athlete Yanina Karolchyk, and a result higher than 18?". [/INST] SELECT AVG("rank") FROM "qualification" WHERE "group"='a' AND "athlete"='yanina karolchyk' AND "result">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 "qualification" ( "rank" real, "group" text, "athlete" text, "nationality" text, "result" real );. Question: "Which athlete, has an 18.55 result". [/INST] SELECT "athlete" FROM "qualification" WHERE "result"=18.55;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" real );. Question: "Who has a Result of 54.67?". [/INST] SELECT "name" FROM "semifinals" WHERE "result"=54.67;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" real );. Question: "Which Nationality has a Heat smaller than 2, and a Rank of 15?". [/INST] SELECT "nationality" FROM "semifinals" WHERE "heat"<2 AND "rank"=15;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" real );. Question: "Which Rank has a Name of tsvetelina kirilova, and a Result smaller than 55.97?". [/INST] SELECT MAX("rank") FROM "semifinals" WHERE "name"='tsvetelina kirilova' AND "result"<55.97;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" real );. Question: "Which Heat has a Nationality of bulgaria, and a Result larger than 55.97?". [/INST] SELECT MIN("heat") FROM "semifinals" WHERE "nationality"='bulgaria' AND "result">55.97;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "community_shuttle" ( "year" text, "builder" text, "model" text, "length_ft" real, "propulsion" text, "fleet_series" text, "total" text, "notes" text );. Question: "What are the notes for Ford when the total is 5?". [/INST] SELECT "notes" FROM "community_shuttle" WHERE "builder"='ford' AND "total"='5';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "community_shuttle" ( "year" text, "builder" text, "model" text, "length_ft" real, "propulsion" text, "fleet_series" text, "total" text, "notes" text );. Question: "Which builder has a fleet series of s057-s061?". [/INST] SELECT "builder" FROM "community_shuttle" WHERE "fleet_series"='s057-s061';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "community_shuttle" ( "year" text, "builder" text, "model" text, "length_ft" real, "propulsion" text, "fleet_series" text, "total" text, "notes" text );. Question: "How many international builders are there?". [/INST] SELECT "total" FROM "community_shuttle" WHERE "builder"='international';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "community_shuttle" ( "year" text, "builder" text, "model" text, "length_ft" real, "propulsion" text, "fleet_series" text, "total" text, "notes" text );. Question: "Which model with a fleet series of s410-s434?". [/INST] SELECT "model" FROM "community_shuttle" WHERE "fleet_series"='s410-s434';</s>