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 "series_1" ( "episode" text, "first_broadcast" text, "graemes_guest" text, "jeremys_guest" text, "votes_pct" text );. Question: "what is the number of the episode where maria mcerlane where gramer guest". [/INST] SELECT "episode" FROM "series_1" WHERE "graemes_guest"='Maria McErlane';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_1" ( "episode" text, "first_broadcast" text, "graemes_guest" text, "jeremys_guest" text, "votes_pct" text );. Question: "what is the name of the graemest guest of episode 1x03". [/INST] SELECT "graemes_guest" FROM "series_1" WHERE "episode"='1x03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "provinces" ( "province" text, "provincial_capital" text, "largest_city" text, "area_km_2" real, "population_2013" real );. Question: "what is the largest city where the population is 6620100?". [/INST] SELECT "largest_city" FROM "provinces" WHERE "population_2013"=6620100;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "provinces" ( "province" text, "provincial_capital" text, "largest_city" text, "area_km_2" real, "population_2013" real );. Question: "what is the largest city where the province is eastern cape?". [/INST] SELECT "largest_city" FROM "provinces" WHERE "province"='Eastern Cape';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "provinces" ( "province" text, "provincial_capital" text, "largest_city" text, "area_km_2" real, "population_2013" real );. Question: "what is minimum area where the largest city is bloemfontein?". [/INST] SELECT MIN("area_km_2") FROM "provinces" WHERE "largest_city"='Bloemfontein';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "provinces" ( "province" text, "provincial_capital" text, "largest_city" text, "area_km_2" real, "population_2013" real );. Question: "what is the numbe of provincial captial where the population is 1162900?". [/INST] SELECT COUNT("provincial_capital") FROM "provinces" WHERE "population_2013"=1162900;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "provinces" ( "province" text, "provincial_capital" text, "largest_city" text, "area_km_2" real, "population_2013" real );. Question: "what is the number of provincial captial where the province is northern cape?". [/INST] SELECT COUNT("provincial_capital") FROM "provinces" WHERE "province"='Northern Cape';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_11_by_passenger_traffic_1985_2011" ( "rank" real, "airport" text, "location" text, "iata" text, "1985_86" real, "1990_91" real, "1995_96" real, "2000_01" real, "2005_06" real, "2007_08" real, "2009_10" real, "2010_11" real );. Question: "What is the IATA of the airport with 3848 traffic in 2010-11?". [/INST] SELECT "iata" FROM "top_11_by_passenger_traffic_1985_2011" WHERE "2010_11"=3848;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_11_by_passenger_traffic_1985_2011" ( "rank" real, "airport" text, "location" text, "iata" text, "1985_86" real, "1990_91" real, "1995_96" real, "2000_01" real, "2005_06" real, "2007_08" real, "2009_10" real, "2010_11" real );. Question: "What is the airport with the IATA MEL?". [/INST] SELECT COUNT("airport") FROM "top_11_by_passenger_traffic_1985_2011" WHERE "iata"='MEL';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_11_by_passenger_traffic_1985_2011" ( "rank" real, "airport" text, "location" text, "iata" text, "1985_86" real, "1990_91" real, "1995_96" real, "2000_01" real, "2005_06" real, "2007_08" real, "2009_10" real, "2010_11" real );. Question: "What is the location of the airport that had a traffic of 3258 in 2009-10". [/INST] SELECT "location" FROM "top_11_by_passenger_traffic_1985_2011" WHERE "2009_10"=3258;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_174266_6" ( "year" real, "total" text, "less_than_a_year" real, "one_year" real, "two_years" real, "three_years" real, "four_years" real, "5_9_years" real, "10_14_years" real, "15_19_years" real, "20_24_years" real, "25_and_more" real, "unknown" real );. Question: "If unknown is larger than 1.0, what is the maximum two year amount?". [/INST] SELECT MAX("two_years") FROM "table1_174266_6" WHERE "unknown">1.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 "table1_174266_6" ( "year" real, "total" text, "less_than_a_year" real, "one_year" real, "two_years" real, "three_years" real, "four_years" real, "5_9_years" real, "10_14_years" real, "15_19_years" real, "20_24_years" real, "25_and_more" real, "unknown" real );. Question: "If two years is 159, what is the amount for one year?". [/INST] SELECT MIN("one_year") FROM "table1_174266_6" WHERE "two_years"=159;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_174266_6" ( "year" real, "total" text, "less_than_a_year" real, "one_year" real, "two_years" real, "three_years" real, "four_years" real, "5_9_years" real, "10_14_years" real, "15_19_years" real, "20_24_years" real, "25_and_more" real, "unknown" real );. Question: "If the year is 2010, what is the minimum amount of years 5-9?". [/INST] SELECT MIN("5_9_years") FROM "table1_174266_6" WHERE "year"=2010;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_174266_6" ( "year" real, "total" text, "less_than_a_year" real, "one_year" real, "two_years" real, "three_years" real, "four_years" real, "5_9_years" real, "10_14_years" real, "15_19_years" real, "20_24_years" real, "25_and_more" real, "unknown" real );. Question: "If year 20-24 is 24, what is the amount for three years?". [/INST] SELECT "three_years" FROM "table1_174266_6" WHERE "20_24_years"=24;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17467147_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" real );. Question: "When "the telenovela" is the title how many series numbers are there?". [/INST] SELECT COUNT("series_num") FROM "table1_17467147_1" WHERE "title"='\"The Telenovela\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17467147_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" real );. Question: "When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series number?". [/INST] SELECT "series_num" FROM "table1_17467147_1" WHERE "directed_by"='Patrick Norris' AND "written_by"='Debra J. Fisher & Erica Messer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17467147_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" real );. Question: "When there are 12.70 million u.s. viewers who is the director?". [/INST] SELECT "directed_by" FROM "table1_17467147_1" WHERE "u_s_viewers_million"='12.70';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17481974_1" ( "episode_num" real, "title" text, "director" text, "screenwriter" text, "original_airdate" text, "english_airdate" text );. Question: "What is the number of theWhat is the number of the chapter that is called "breakthrough" "burēku surū" (ブレーク·スルー)?". [/INST] SELECT MIN("episode_num") FROM "table1_17481974_1" WHERE "title"='\"Breakthrough\" \"Burēku surū\" (ブレーク·スルー)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17481974_1" ( "episode_num" real, "title" text, "director" text, "screenwriter" text, "original_airdate" text, "english_airdate" text );. Question: "Which is the number of the episode "rook gave" "rūku dīo" (デ デ ィ オ ー ル) which aired on July 14, 2003". [/INST] SELECT MIN("episode_num") FROM "table1_17481974_1" WHERE "original_airdate"='July 14, 2003';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17481974_1" ( "episode_num" real, "title" text, "director" text, "screenwriter" text, "original_airdate" text, "english_airdate" text );. Question: "What are the numbers of episodes that were broadcast on September 1, 2003". [/INST] SELECT "episode_num" FROM "table1_17481974_1" WHERE "original_airdate"='September 1, 2003';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17481974_1" ( "episode_num" real, "title" text, "director" text, "screenwriter" text, "original_airdate" text, "english_airdate" text );. Question: "Which are dates of transmission in English of the title "takeback" "tēkubakku" (テークバック)". [/INST] SELECT "english_airdate" FROM "table1_17481974_1" WHERE "title"='\"Takeback\" \"Tēkubakku\" (テークバック)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many viewers did Episode #5 have?". [/INST] SELECT "viewers_millions" FROM "ratings" WHERE "episode_num"=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 "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many share values are listed for the episode with a rating/share value of 2.6/8?". [/INST] SELECT COUNT("share") FROM "ratings" WHERE "rating_share_18_49"='2.6/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 "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many episodes were originally aired Saturday, May 30, 2009?". [/INST] SELECT COUNT("episode_num") FROM "ratings" WHERE "us_air_date"='Saturday, May 30, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" text );. Question: "What is the rating of the episode with a rating/share of 0.9/4?". [/INST] SELECT "rating" FROM "ratings" WHERE "rating_share_18_49"='0.9/4';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many episodes aired Saturday, July 11, 2009". [/INST] SELECT COUNT("episode_num") FROM "ratings" WHERE "us_air_date"='Saturday, July 11, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many rating/share values does the episode aired on Saturday, May 9, 2009?". [/INST] SELECT COUNT("rating_share_18_49") FROM "ratings" WHERE "us_air_date"='Saturday, May 9, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "source" text, "dates_administered" text, "democrat_christine_gregoire" text, "republican_dino_rossi" text, "lead_margin" text );. Question: "What was the percentage democrat Christine Gregoire was polling when the republican Dino Rossi was polling at 44% and the lead margin was 4?". [/INST] SELECT "democrat_christine_gregoire" FROM "opinion_polling_for_the_united_states_gu" WHERE "lead_margin"='4' AND "republican_dino_rossi"='44%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "source" text, "dates_administered" text, "democrat_christine_gregoire" text, "republican_dino_rossi" text, "lead_margin" text );. Question: "How many polls show a result where democrat Christine Gregoire was polling at 50% and had a lead margin of 2?". [/INST] SELECT COUNT("source") FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_christine_gregoire"='50%' AND "lead_margin"='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 "table1_1756264_2" ( "company_name" text, "holding_companies" real, "subsidiaries" real, "description_of_activities" text, "parent_holding_company" text );. Question: "How many subsidiaries of Postermobile Limited?". [/INST] SELECT "subsidiaries" FROM "table1_1756264_2" WHERE "company_name"='POSTERMOBILE LIMITED';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1756264_2" ( "company_name" text, "holding_companies" real, "subsidiaries" real, "description_of_activities" text, "parent_holding_company" text );. Question: "What activities does Clear Channel Entertainment Facilitation Limited engage in?". [/INST] SELECT "description_of_activities" FROM "table1_1756264_2" WHERE "company_name"='CLEAR CHANNEL ENTERTAINMENT FACILITATION LIMITED';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1756264_2" ( "company_name" text, "holding_companies" real, "subsidiaries" real, "description_of_activities" text, "parent_holding_company" text );. Question: "How many subsidiaries of company F M Media Limited?". [/INST] SELECT "subsidiaries" FROM "table1_1756264_2" WHERE "company_name"='F M MEDIA LIMITED';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1756264_2" ( "company_name" text, "holding_companies" real, "subsidiaries" real, "description_of_activities" text, "parent_holding_company" text );. Question: "How many subsidiaries are there of Postermobile Advertising Limited?". [/INST] SELECT MIN("subsidiaries") FROM "table1_1756264_2" WHERE "company_name"='POSTERMOBILE ADVERTISING LIMITED';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1756264_2" ( "company_name" text, "holding_companies" real, "subsidiaries" real, "description_of_activities" text, "parent_holding_company" text );. Question: "What is the largest number of holding companies?". [/INST] SELECT MAX("holding_companies") FROM "table1_1756264_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 "table1_1756264_2" ( "company_name" text, "holding_companies" real, "subsidiaries" real, "description_of_activities" text, "parent_holding_company" text );. Question: "How many companies have Postermobile Limited as a parent company?". [/INST] SELECT COUNT("company_name") FROM "table1_1756264_2" WHERE "parent_holding_company"='POSTERMOBILE LIMITED';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalscorers" ( "player" text, "league" real, "scottish_cup" real, "league_cup" real, "challenge_cup" real, "total" real );. Question: "Name the total number of league cup for mark roberts". [/INST] SELECT COUNT("league_cup") FROM "goalscorers" WHERE "player"='Mark Roberts';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalscorers" ( "player" text, "league" real, "scottish_cup" real, "league_cup" real, "challenge_cup" real, "total" real );. Question: "Name the total number of league for 5". [/INST] SELECT COUNT("league") FROM "goalscorers" WHERE "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 "goalscorers" ( "player" text, "league" real, "scottish_cup" real, "league_cup" real, "challenge_cup" real, "total" real );. Question: "Name the maximum leagure for 0 scottish cup". [/INST] SELECT MAX("league") FROM "goalscorers" WHERE "scottish_cup"=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 "goalscorers" ( "player" text, "league" real, "scottish_cup" real, "league_cup" real, "challenge_cup" real, "total" real );. Question: "Name the most challenge cup for damon gray". [/INST] SELECT MAX("challenge_cup") FROM "goalscorers" WHERE "player"='Damon Gray';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalscorers" ( "player" text, "league" real, "scottish_cup" real, "league_cup" real, "challenge_cup" real, "total" real );. Question: "Name the league for paul paton". [/INST] SELECT "league" FROM "goalscorers" WHERE "player"='Paul Paton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17623902_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What was the original air date of this episode that was written by Debbie Sarjeant?". [/INST] SELECT "original_air_date" FROM "table1_17623902_1" WHERE "written_by"='Debbie Sarjeant';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17623902_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "How many episodes did Julie Martin wrote for the show If every episode has its own production code?". [/INST] SELECT COUNT("production_code") FROM "table1_17623902_1" WHERE "written_by"='Julie Martin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Name the total number of series for april 26". [/INST] SELECT COUNT("series") FROM "playoffs" WHERE "date"='April 26';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Name the number of high rebounds for april 21". [/INST] SELECT COUNT("high_rebounds") FROM "playoffs" WHERE "date"='April 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 "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Name the number of location attendance for april 24". [/INST] SELECT COUNT("location_attendance") FROM "playoffs" WHERE "date"='April 24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "What is the name where the type is listed as free agent and the country is ngr eng?". [/INST] SELECT "name" FROM "in" WHERE "type"='Free Agent' AND "country"='NGR ENG';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "What is listed in p when the type is listed as free agent 1?". [/INST] SELECT "p" FROM "in" WHERE "type"='Free Agent 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 "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "What is the end when moving from is listed as cary clarets?". [/INST] SELECT "ends" FROM "in" WHERE "moving_from"='Cary Clarets';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "What is the name of the country where moving from is listed as bristol city?". [/INST] SELECT "country" FROM "in" WHERE "moving_from"='Bristol City';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17641206_6" ( "episode" real, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "duration" text, "viewership" text );. Question: "Name the number of duration for viewership of 5.46 million". [/INST] SELECT COUNT("duration") FROM "table1_17641206_6" WHERE "viewership"='5.46 million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17641206_6" ( "episode" real, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "duration" text, "viewership" text );. Question: "Name the total number of episodes written by david cantor". [/INST] SELECT COUNT("episode") FROM "table1_17641206_6" WHERE "written_by"='David Cantor';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17641206_6" ( "episode" real, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "duration" text, "viewership" text );. Question: "Name the total number of original titles written by john sullivan and keith lindsay". [/INST] SELECT COUNT("original_title") FROM "table1_17641206_6" WHERE "written_by"='John Sullivan and Keith Lindsay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17641206_6" ( "episode" real, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "duration" text, "viewership" text );. Question: "Name the original title for 6.05 million viewership". [/INST] SELECT "original_title" FROM "table1_17641206_6" WHERE "viewership"='6.05 million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_seasons_1994_2003" ( "season" real, "winners" text, "total_wins" real, "runners_up" text, "third_place" text, "fourth_placed" text, "number_of_clubs" real );. Question: "Who took third-place when there were 4 total wins?". [/INST] SELECT "third_place" FROM "professional_seasons_1994_2003" WHERE "total_wins"=4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_seasons_1994_2003" ( "season" real, "winners" text, "total_wins" real, "runners_up" text, "third_place" text, "fourth_placed" text, "number_of_clubs" real );. Question: "What is the total number of clubs when the runner-up was Liaoning Fushun?". [/INST] SELECT COUNT("number_of_clubs") FROM "professional_seasons_1994_2003" WHERE "runners_up"='Liaoning Fushun';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_seasons_1994_2003" ( "season" real, "winners" text, "total_wins" real, "runners_up" text, "third_place" text, "fourth_placed" text, "number_of_clubs" real );. Question: "Who was placed fourth when third was Beijing Guoan and the winner was Dalian Wanda and wins total was 4?". [/INST] SELECT "fourth_placed" FROM "professional_seasons_1994_2003" WHERE "third_place"='Beijing Guoan' AND "winners"='Dalian Wanda' AND "total_wins"=4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_seasons_1994_2003" ( "season" real, "winners" text, "total_wins" real, "runners_up" text, "third_place" text, "fourth_placed" text, "number_of_clubs" real );. Question: "Who was placed third when the ruuner up was Guangzhou Apollo?". [/INST] SELECT "third_place" FROM "professional_seasons_1994_2003" WHERE "runners_up"='Guangzhou Apollo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_seasons_1994_2003" ( "season" real, "winners" text, "total_wins" real, "runners_up" text, "third_place" text, "fourth_placed" text, "number_of_clubs" real );. Question: "Who was placed third in 2001?". [/INST] SELECT "third_place" FROM "professional_seasons_1994_2003" WHERE "season"=2001;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text );. Question: "What is the census ranking for the Perth parish?". [/INST] SELECT "census_ranking" FROM "parishes" WHERE "official_name"='Perth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text );. Question: "What is the minimum population of the parish with a 750.51 km area?". [/INST] SELECT MIN("population") FROM "parishes" WHERE "area_km_2"='750.51';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text );. Question: "What is the census ranking of the Perth parish?". [/INST] SELECT "census_ranking" FROM "parishes" WHERE "official_name"='Perth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "with the amount of tries at 89, how many win's were there?". [/INST] SELECT "won" FROM "league_table" WHERE "tries_against"='89';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "For club Swansea Uplands RFC, what is the amount of tries against?". [/INST] SELECT "tries_against" FROM "league_table" WHERE "club"='Swansea Uplands RFC';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "What is the total amount of points when the given won is 9?". [/INST] SELECT "points" FROM "league_table" WHERE "won"='9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "With the given points of 51, what was the total number of the try bonus?". [/INST] SELECT COUNT("try_bonus") FROM "league_table" WHERE "points"='51';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "With the given loss of 4, what was the number of tries?". [/INST] SELECT COUNT("tries_for") FROM "league_table" WHERE "lost"='4';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "With the given points of 667, what was the number of tries against?". [/INST] SELECT "tries_against" FROM "league_table" WHERE "points_for"='667';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dvd_releases" ( "dvd_title" text, "no_of_discs" real, "year" text, "no_of_episodes" real, "region_1" text, "region_2" text, "region_4" text );. Question: "What is the largest number of episodes for a 1989 season dvd release? ". [/INST] SELECT MAX("no_of_episodes") FROM "dvd_releases" WHERE "year"='1989';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dvd_releases" ( "dvd_title" text, "no_of_discs" real, "year" text, "no_of_episodes" real, "region_1" text, "region_2" text, "region_4" text );. Question: "How many dvd titled "series 5" were released having a release date or a non available date in region 2?". [/INST] SELECT COUNT("region_2") FROM "dvd_releases" WHERE "dvd_title"='Series 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 "table1_17672500_19" ( "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text );. Question: "Who are all the stage winners where the team classification is Caisse D'epargne?". [/INST] SELECT "stage_winner" FROM "table1_17672500_19" WHERE "team_classification"='Caisse d''Epargne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17758010_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What is every "directed by" when the title is "One To Go" (part 2)?". [/INST] SELECT "directed_by" FROM "table1_17758010_2" WHERE "title"='\"One to Go\" (Part 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 "table1_17758010_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "How many original air dates have U.S. Views (millions) of 19.49?". [/INST] SELECT COUNT("original_air_date") FROM "table1_17758010_2" WHERE "u_s_viewers_millions"='19.49';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17758010_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What is the lowest no. in series?". [/INST] SELECT MIN("no_in_series") FROM "table1_17758010_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 "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "The opponent was the New York Jets on what week? ". [/INST] SELECT "week" FROM "regular_season" WHERE "opponent"='New York Jets';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "Where was the December 12, 1965 game? ". [/INST] SELECT "game_site" FROM "regular_season" WHERE "date"='December 12, 1965';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "How many attended game(s) against the boston patriots?". [/INST] SELECT "attendance" FROM "regular_season" WHERE "opponent"='Boston Patriots';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vowel_plus_consonant" ( "ending" text, "american" text, "british" text, "australian" text, "examples" text );. Question: "which examples are pronounced ɪs in american". [/INST] SELECT "examples" FROM "vowel_plus_consonant" WHERE "american"='ɪs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vowel_plus_consonant" ( "ending" text, "american" text, "british" text, "australian" text, "examples" text );. Question: "which examples are pronounced et in australian". [/INST] SELECT "examples" FROM "vowel_plus_consonant" WHERE "australian"='et';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vowel_plus_consonant" ( "ending" text, "american" text, "british" text, "australian" text, "examples" text );. Question: "how many endings have american pronounciation əs". [/INST] SELECT COUNT("australian") FROM "vowel_plus_consonant" WHERE "american"='əs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vowel_plus_consonant" ( "ending" text, "american" text, "british" text, "australian" text, "examples" text );. Question: "what are the endings of examples achilles, appendices, fæces". [/INST] SELECT "ending" FROM "vowel_plus_consonant" WHERE "examples"='Achilles, appendices, fæces';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nbc_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text );. Question: "What is the callsign for the Cebu station?". [/INST] SELECT "callsign" FROM "nbc_radio_stations" WHERE "location"='Cebu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nbc_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text );. Question: "What is the number of brand where the power is 5kw?". [/INST] SELECT COUNT("branding") FROM "nbc_radio_stations" WHERE "power_k_w"='5kW';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nbc_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text );. Question: "What is the callsign for the Cebu station?". [/INST] SELECT "callsign" FROM "nbc_radio_stations" WHERE "location"='Cebu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nbc_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text );. Question: "What is the power of the Baguio station?". [/INST] SELECT "power_k_w" FROM "nbc_radio_stations" WHERE "location"='Baguio';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nbc_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text );. Question: "How many stations are called radyo5 101.9 news fm?". [/INST] SELECT COUNT("location") FROM "nbc_radio_stations" WHERE "branding"='Radyo5 101.9 News FM';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_h_yanger" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "What is the church name for the church located in Kyrkjebø?". [/INST] SELECT "church_name" FROM "churches_in_h_yanger" WHERE "location_of_the_church"='Kyrkjebø';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_h_yanger" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "What is the sub-parish for the church names Høyanger Kyrkje?". [/INST] SELECT "sub_parish_sogn" FROM "churches_in_h_yanger" WHERE "church_name"='Høyanger kyrkje';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_h_yanger" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "What is the total number of churches built in 1916?". [/INST] SELECT COUNT("location_of_the_church") FROM "churches_in_h_yanger" WHERE "year_built"=1916;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_h_yanger" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "What is the total number of churches named Høyanger Kyrkje?". [/INST] SELECT COUNT("sub_parish_sogn") FROM "churches_in_h_yanger" WHERE "church_name"='Høyanger kyrkje';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_h_yanger" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "What is the church name located in Høyanger?". [/INST] SELECT "church_name" FROM "churches_in_h_yanger" WHERE "location_of_the_church"='Høyanger';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_h_yanger" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "What is the location of the church when the church name is Ortnevik Kyrkje?". [/INST] SELECT "location_of_the_church" FROM "churches_in_h_yanger" WHERE "church_name"='Ortnevik kyrkje';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "Name the total number for sub parish sokn for 1865". [/INST] SELECT COUNT("sub_parish_sokn") FROM "churches_in_bremanger" WHERE "year_built"=1865;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "Name the location of the church for berle kyrkje". [/INST] SELECT "location_of_the_church" FROM "churches_in_bremanger" WHERE "church_name"='Berle kyrkje';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "Name the location of the church for bremanger". [/INST] SELECT "location_of_the_church" FROM "churches_in_bremanger" WHERE "sub_parish_sokn"='Bremanger';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text );. Question: "Name the most year built for davik kyrkje". [/INST] SELECT MAX("year_built") FROM "churches_in_bremanger" WHERE "church_name"='Davik Kyrkje';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17861265_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Who was the episode writer when the viewers reached 3.03 million in the US?". [/INST] SELECT "written_by" FROM "table1_17861265_1" WHERE "u_s_viewers_million"='3.03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17861265_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Who wrote the last episode (episode 15) of season 3?". [/INST] SELECT "written_by" FROM "table1_17861265_1" WHERE "no_in_season"=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 "table1_17861265_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many episodes did Cliff Bole directed in season 3?". [/INST] SELECT COUNT("title") FROM "table1_17861265_1" WHERE "directed_by"='Cliff Bole';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "game_site" text, "record" text, "attendance" real );. Question: "What is the record when the game was at the San Diego Stadium? ". [/INST] SELECT "record" FROM "schedule" WHERE "game_site"='San Diego Stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "How many results are there when the game was at the Atlanta-Fulton county stadium? ". [/INST] SELECT COUNT("result") FROM "schedule" WHERE "game_site"='Atlanta-Fulton County Stadium';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.