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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "What is the date of the game at Arrowhead Stadium? ". [/INST] SELECT "date" FROM "schedule" WHERE "game_site"='Arrowhead 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: "Where was the game where attendance was 51478?". [/INST] SELECT "game_site" FROM "schedule" WHERE "attendance"=51478;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17971449_2" ( "country" text, "population_2011" real, "gdp_nominal_2010_us_millions" real, "military_expenditures_2011_us_millions" real, "military_expenditures_2011_pct_of_gdp" text, "defence_expenditures_2011_per_capita" real, "deployable_military_2011_thousands" text );. Question: "Name the deployable military (2011, thousands for gdp nominal for 468539". [/INST] SELECT "deployable_military_2011_thousands" FROM "table1_17971449_2" WHERE "gdp_nominal_2010_us_millions"=468539;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17971449_2" ( "country" text, "population_2011" real, "gdp_nominal_2010_us_millions" real, "military_expenditures_2011_us_millions" real, "military_expenditures_2011_pct_of_gdp" text, "defence_expenditures_2011_per_capita" real, "deployable_military_2011_thousands" text );. Question: "Name the military expenditures for 2011 for romania". [/INST] SELECT "military_expenditures_2011_us_millions" FROM "table1_17971449_2" WHERE "country"='Romania';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17971449_2" ( "country" text, "population_2011" real, "gdp_nominal_2010_us_millions" real, "military_expenditures_2011_us_millions" real, "military_expenditures_2011_pct_of_gdp" text, "defence_expenditures_2011_per_capita" real, "deployable_military_2011_thousands" text );. Question: "Name the population 2011 for luxembourg". [/INST] SELECT "population_2011" FROM "table1_17971449_2" WHERE "country"='Luxembourg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17971449_2" ( "country" text, "population_2011" real, "gdp_nominal_2010_us_millions" real, "military_expenditures_2011_us_millions" real, "military_expenditures_2011_pct_of_gdp" text, "defence_expenditures_2011_per_capita" real, "deployable_military_2011_thousands" text );. Question: "Name the gdp nominal 2010 for defence expenditures 2011 162". [/INST] SELECT "gdp_nominal_2010_us_millions" FROM "table1_17971449_2" WHERE "defence_expenditures_2011_per_capita"=162;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17971449_2" ( "country" text, "population_2011" real, "gdp_nominal_2010_us_millions" real, "military_expenditures_2011_us_millions" real, "military_expenditures_2011_pct_of_gdp" text, "defence_expenditures_2011_per_capita" real, "deployable_military_2011_thousands" text );. Question: "Name the deployable military 2011 for denmark". [/INST] SELECT "deployable_military_2011_thousands" FROM "table1_17971449_2" WHERE "country"='Denmark';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17971449_2" ( "country" text, "population_2011" real, "gdp_nominal_2010_us_millions" real, "military_expenditures_2011_us_millions" real, "military_expenditures_2011_pct_of_gdp" text, "defence_expenditures_2011_per_capita" real, "deployable_military_2011_thousands" text );. Question: "Name the country for deployable military is 23". [/INST] SELECT "country" FROM "table1_17971449_2" WHERE "deployable_military_2011_thousands"='23';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "List total loses forh the tauras tauragė team.". [/INST] SELECT COUNT("loses") FROM "1_lyga" WHERE "club"='Tauras Tauragė';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "List the number of goals scored to equal 58.". [/INST] SELECT MIN("goals_conceded") FROM "1_lyga" WHERE "points"=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 "table1_1802522_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)?". [/INST] SELECT COUNT("reason_for_change") FROM "table1_1802522_3" WHERE "successor"='Leonard B. Jordan (R)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1802522_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "What state had November 30, 1962 as the date of the successors formal installation?". [/INST] SELECT "state_class" FROM "table1_1802522_3" WHERE "date_of_successors_formal_installation"='November 30, 1962';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1802522_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "How many vacant seats were filled by newcomer Joseph H. Bottum (r)?". [/INST] SELECT COUNT("vacator") FROM "table1_1802522_3" WHERE "successor"='Joseph H. Bottum (R)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1805191_36" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "What are the results of those elections for which Marcy Kaptur is the incumbent?". [/INST] SELECT "results" FROM "table1_1805191_36" WHERE "incumbent"='Marcy Kaptur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1805191_36" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "What are the results of the elections in which Ted Strickland is seeking re-election?". [/INST] SELECT "results" FROM "table1_1805191_36" WHERE "incumbent"='Ted Strickland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1805191_36" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "Who are all of the candidates in elections where Dennis Kucinich was a candidate?". [/INST] SELECT "candidates" FROM "table1_1805191_36" WHERE "incumbent"='Dennis Kucinich';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1805191_36" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "Who were all the candidates in elections in which Steve Chabot was a candidate?". [/INST] SELECT "candidates" FROM "table1_1805191_36" WHERE "incumbent"='Steve Chabot';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18052353_4" ( "year" text, "governor" text, "lieutenant_governor" text, "secretary_of_state" text, "attorney_general" text, "treasurer" text, "state_senate" text, "state_assembly" text, "u_s_senator_class_i" text, "u_s_senator_class_iii" text, "u_s_house" text, "electoral_college_votes" text );. Question: "Who was treasurer in 2008?". [/INST] SELECT "treasurer" FROM "table1_18052353_4" WHERE "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 "table1_18052353_4" ( "year" text, "governor" text, "lieutenant_governor" text, "secretary_of_state" text, "attorney_general" text, "treasurer" text, "state_senate" text, "state_assembly" text, "u_s_senator_class_i" text, "u_s_senator_class_iii" text, "u_s_house" text, "electoral_college_votes" text );. Question: "What was the composition of the state assembly in 2008?". [/INST] SELECT "state_assembly" FROM "table1_18052353_4" WHERE "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 "table1_18055005_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text );. Question: "What's the series number of the episode with production code 329?". [/INST] SELECT "no_in_series" FROM "table1_18055005_1" WHERE "prod_code"='329';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18055005_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text );. Question: "What's the production code of the episode titled "Got to get her out of my house"?". [/INST] SELECT "prod_code" FROM "table1_18055005_1" WHERE "title"='\"Got to Get Her Out of My House\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18055005_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text );. Question: "What's the production code of the episode titled "He ain't a hottie, he's my brother"?". [/INST] SELECT "prod_code" FROM "table1_18055005_1" WHERE "title"='\"He Ain''t a Hottie, He''s My Brother\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18055005_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text );. Question: "What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein?". [/INST] SELECT "no_in_series" FROM "table1_18055005_1" WHERE "viewers_millions"='4.1' AND "written_by"='Douglas Lieblein';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winners_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text );. Question: "What year was the winners vote 55.99%?". [/INST] SELECT MIN("year") FROM "members_of_parliament" WHERE "winners_pct_votes"='55.99%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winners_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text );. Question: "Which party won, when the trailing votes were 29.37%". [/INST] SELECT "party_won" FROM "members_of_parliament" WHERE "trailing_party_pct_votes"='29.37%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winners_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text );. Question: "When the trailing votes was 25.88% who was the trailing party?". [/INST] SELECT "members_of_parliament" FROM "members_of_parliament" WHERE "trailing_party_pct_votes"='25.88%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winners_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text );. Question: "How many years was the trailing votes 25.34%". [/INST] SELECT COUNT("year") FROM "members_of_parliament" WHERE "trailing_party_pct_votes"='25.34%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winners_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text );. Question: "When the winners votes were 50.54% who were the members of parliment?". [/INST] SELECT "members_of_parliament" FROM "members_of_parliament" WHERE "winners_pct_votes"='50.54%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18102421_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 millions of U.S. viewers watched the episode directed by Allison Liddi-Brown? ". [/INST] SELECT "u_s_viewers_millions" FROM "table1_18102421_2" WHERE "directed_by"='Allison Liddi-Brown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18102421_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What number episode in the season was titled "Dead on Arrival"?". [/INST] SELECT MAX("no_in_season") FROM "table1_18102421_2" WHERE "title"='\"Dead on Arrival\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18102421_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What was the title of the episode that had 13.82 million U.S. viewers? ". [/INST] SELECT "title" FROM "table1_18102421_2" WHERE "u_s_viewers_millions"='13.82';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, "top_division_titles" real );. Question: "What was the club that won 10 top division titles?". [/INST] SELECT "club" FROM "clubs" WHERE "top_division_titles"=10;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, "top_division_titles" real );. Question: "When did the club UNAM played the first season in top division?". [/INST] SELECT "first_season_in_top_division" FROM "clubs" WHERE "club"='UNAM';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, "top_division_titles" real );. Question: "When was the 'first season of current spell in top division' if the first season in top division is in 1964-65?". [/INST] SELECT "first_season_of_current_spell_in_top_division" FROM "clubs" WHERE "first_season_in_top_division"='1964-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 "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, "top_division_titles" real );. Question: "How many top division titles were won during the 'first season of current spell in top division' in 1979-80?". [/INST] SELECT "top_division_titles" FROM "clubs" WHERE "first_season_of_current_spell_in_top_division"='1979-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 "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, "top_division_titles" real );. Question: "How many 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91?". [/INST] SELECT MAX("number_of_seasons_in_top_division") FROM "clubs" WHERE "first_season_in_top_division"='1990-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 "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, "top_division_titles" real );. Question: "How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63?". [/INST] SELECT "number_of_seasons_in_liga_mx" FROM "clubs" WHERE "first_season_of_current_spell_in_top_division"='1962-63';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18173916_8" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text );. Question: "which chapter was Transmitted on wednesday if the episode of "363 the hangover part ii" was transmitted on monday? ". [/INST] SELECT "wednesday" FROM "table1_18173916_8" WHERE "monday"='363 The Hangover Part II';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18173916_8" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text );. Question: "which episode was Transmitted on wednesday if the episode of "438 magic: the gathering mini masters tournament" was transmitted on thursday? ". [/INST] SELECT "wednesday" FROM "table1_18173916_8" WHERE "thursday"='438 Magic: The Gathering Mini Masters Tournament';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18173916_8" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text );. Question: "which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday? ". [/INST] SELECT "friday" FROM "table1_18173916_8" WHERE "tuesday"='414 Insanely Twisted Shadow Planet';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18173916_8" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text );. Question: "which episode was Transmitted on friday if the episode of "515 the adventures of tintin" was transmitted on monday? ". [/INST] SELECT "friday" FROM "table1_18173916_8" WHERE "monday"='515 The Adventures of Tintin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18173916_8" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text );. Question: "which episode was Transmitted on wednesday if the episode of "319 sucker punch" was transmitted on tuesday? ". [/INST] SELECT COUNT("wednesday") FROM "table1_18173916_8" WHERE "tuesday"='319 Sucker Punch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18173916_8" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text );. Question: "which episode was Transmitted on wednesday if the episode of "307 vs." was transmitted on friday? ". [/INST] SELECT "wednesday" FROM "table1_18173916_8" WHERE "friday"='307 VS.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text );. Question: "Name the scoring average for best finsih being t35". [/INST] SELECT "scoring_average" FROM "lpga_tour_career_summary" WHERE "best_finish"='T35';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text );. Question: "Name the number of top 10s for scoring rank of 9". [/INST] SELECT COUNT("top_10s") FROM "lpga_tour_career_summary" WHERE "scoring_rank"='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 "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text );. Question: "Name the cuts made for scoring rank is 3". [/INST] SELECT "cuts_made" FROM "lpga_tour_career_summary" WHERE "scoring_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 "victories_by_nationality" ( "country" text, "mens_open" real, "womens_open" real, "mens_wheelchair" real, "womens_wheelchair" real, "total" real );. Question: "How many are the total winners if 7 won the Men's Open?". [/INST] SELECT "total" FROM "victories_by_nationality" WHERE "mens_open"=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 "victories_by_nationality" ( "country" text, "mens_open" real, "womens_open" real, "mens_wheelchair" real, "womens_wheelchair" real, "total" real );. Question: "How many won the Men's Open if the players are from Sweden?". [/INST] SELECT COUNT("mens_open") FROM "victories_by_nationality" WHERE "country"='Sweden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "victories_by_nationality" ( "country" text, "mens_open" real, "womens_open" real, "mens_wheelchair" real, "womens_wheelchair" real, "total" real );. Question: "How many are the total winners from South Korea?". [/INST] SELECT "total" FROM "victories_by_nationality" WHERE "country"='South Korea';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_scorers" ( "p" real, "player" text, "position" text, "spl" real, "league_cup" real, "scottish_cup" real, "uefa_champions_league" real, "total" real );. Question: "When shaun maloney is the player what is the lowest p?". [/INST] SELECT MIN("p") FROM "top_scorers" WHERE "player"='Shaun Maloney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_scorers" ( "p" real, "player" text, "position" text, "spl" real, "league_cup" real, "scottish_cup" real, "uefa_champions_league" real, "total" real );. Question: "What is the highest amount of uefa champion leagues?". [/INST] SELECT MAX("uefa_champions_league") FROM "top_scorers";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_scorers" ( "p" real, "player" text, "position" text, "spl" real, "league_cup" real, "scottish_cup" real, "uefa_champions_league" real, "total" real );. Question: "When koki mizuno is the player what is the lowest league cup?". [/INST] SELECT MIN("league_cup") FROM "top_scorers" WHERE "player"='Koki Mizuno';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_scorers" ( "p" real, "player" text, "position" text, "spl" real, "league_cup" real, "scottish_cup" real, "uefa_champions_league" real, "total" real );. Question: "When koki mizuno is the player how man positions are there?". [/INST] SELECT COUNT("position") FROM "top_scorers" WHERE "player"='Koki Mizuno';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18268826_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: "What's the series number for the episode titled "Hunted"?". [/INST] SELECT MIN("no_in_series") FROM "table1_18268826_1" WHERE "title"='\"Hunted\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18268826_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 by different writers were seen by 3.24 million people in the US?". [/INST] SELECT COUNT("written_by") FROM "table1_18268826_1" WHERE "u_s_viewers_million"='3.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_18268826_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 different people directed the episode titled "Born under a bad sign"?". [/INST] SELECT COUNT("directed_by") FROM "table1_18268826_1" WHERE "title"='\"Born Under a Bad Sign\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18268826_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: "What's the season number of the episode viewed by 3.19 million people in the US?". [/INST] SELECT MAX("no_in_season") FROM "table1_18268826_1" WHERE "u_s_viewers_million"='3.19';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18268826_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's the writer of the episode seen by 3.25 million people in the US?". [/INST] SELECT "written_by" FROM "table1_18268826_1" WHERE "u_s_viewers_million"='3.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 "table1_18268826_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 directed the episode seen by 3.93 million people in the US?". [/INST] SELECT "directed_by" FROM "table1_18268826_1" WHERE "u_s_viewers_million"='3.93';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "venue" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );. Question: "What venue is in Wantagh, New York?". [/INST] SELECT "venue" FROM "not_all_data_are_listed_only_select_date" WHERE "city_state"='Wantagh, New York';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "venue" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );. Question: "How much do the tickets cost for August 7, 1987?". [/INST] SELECT "ticket_price_s" FROM "not_all_data_are_listed_only_select_date" WHERE "date_s"='August 7, 1987';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "venue" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );. Question: "How many tickets are sold for the Carver-Hawkeye Arena? ". [/INST] SELECT "ticket_sold_available" FROM "not_all_data_are_listed_only_select_date" WHERE "venue"='Carver-Hawkeye Arena';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliaments_of_king_edward_iv" ( "no" text, "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "When 1462/63 was the elected what was the no.?". [/INST] SELECT "no" FROM "parliaments_of_king_edward_iv" WHERE "elected"='1462/63';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliaments_of_king_edward_iv" ( "no" text, "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "When 1472 was the elected when was the assembled?". [/INST] SELECT "assembled" FROM "parliaments_of_king_edward_iv" WHERE "elected"='1472';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_6_august_13_and_14_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "How many different combinations of scores by individual judges were given to the contestant competing against Mukul Dev?". [/INST] SELECT COUNT("scores_by_each_individual_judge") FROM "week_6_august_13_and_14_2008" WHERE "co_contestant_yaar_vs_pyaar"='Mukul Dev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_6_august_13_and_14_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What was Kashmira Shah's position on August 14?". [/INST] SELECT "position" FROM "week_6_august_13_and_14_2008" WHERE "main_contestant"='Kashmira Shah' AND "date_performed"='August 14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_6_august_13_and_14_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What was the total score / week of the contestant who placed in the bottom 2 on august 14?". [/INST] SELECT "total_score_week" FROM "week_6_august_13_and_14_2008" WHERE "date_performed"='August 14' AND "position"='Bottom 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 "week_6_august_13_and_14_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What were the scores by the individual judges for Karanvir Bohra on August 13?". [/INST] SELECT "scores_by_each_individual_judge" FROM "week_6_august_13_and_14_2008" WHERE "main_contestant"='Karanvir Bohra' AND "date_performed"='August 13';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_4_july_30_and_31_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "Name the total number of main contestants for safe position for tina parekh". [/INST] SELECT COUNT("main_contestant") FROM "week_4_july_30_and_31_2008" WHERE "position"='Safe' AND "co_contestant_yaar_vs_pyaar"='Tina Parekh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_4_july_30_and_31_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "Name the status for karanvir bohra and date performed being july 30". [/INST] SELECT "status" FROM "week_4_july_30_and_31_2008" WHERE "main_contestant"='Karanvir Bohra' AND "date_performed"='July 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 "delegates" ( "province_community" text, "contestant" text, "age" real, "height" text, "hometown" text, "geographical_regions" text );. Question: "How tall is the contestant from Hato Mayor?". [/INST] SELECT "height" FROM "delegates" WHERE "province_community"='Hato Mayor';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "age" real, "height" text, "hometown" text, "geographical_regions" text );. Question: "What is the province where the age of the contestant is 27?". [/INST] SELECT "province_community" FROM "delegates" WHERE "age"=27;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wrestling" ( "class" text, "team" text, "103lbs" text, "112lbs" text, "119lbs" text, "125lbs" text, "130lbs" text, "135lbs" text, "140lbs" text );. Question: "Who weighed 135lbs that was in the same class as Treveor Grant (Lowry) at 119 lbs?". [/INST] SELECT "135lbs" FROM "wrestling" WHERE "119lbs"='Treveor Grant (Lowry)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wrestling" ( "class" text, "team" text, "103lbs" text, "112lbs" text, "119lbs" text, "125lbs" text, "130lbs" text, "135lbs" text, "140lbs" text );. Question: "Who weighed 135lbs that was on the same team as Tallon Ricci (White Pine) at 103 lbs?". [/INST] SELECT "135lbs" FROM "wrestling" WHERE "103lbs"='Tallon Ricci (White Pine)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wrestling" ( "class" text, "team" text, "103lbs" text, "112lbs" text, "119lbs" text, "125lbs" text, "130lbs" text, "135lbs" text, "140lbs" text );. Question: "Who weighed 135 lbs that was on the same team as Doug Del Porto (Galena) at 125 lbs?". [/INST] SELECT "135lbs" FROM "wrestling" WHERE "125lbs"='Doug Del Porto (Galena)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wrestling" ( "class" text, "team" text, "103lbs" text, "112lbs" text, "119lbs" text, "125lbs" text, "130lbs" text, "135lbs" text, "140lbs" text );. Question: "Which team included Tallon Ricci (White Pine) at 103 lbs?". [/INST] SELECT "team" FROM "wrestling" WHERE "103lbs"='Tallon Ricci (White Pine)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18367694_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "When "car wars" is the title what is the air date?". [/INST] SELECT "original_air_date" FROM "table1_18367694_3" WHERE "title"='\"Car Wars\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18367694_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "When "c'est la vinnie" is the title what is the air date?". [/INST] SELECT "original_air_date" FROM "table1_18367694_3" WHERE "title"='\"C''est la Vinnie\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18367694_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "When "to live and die in brentwood" is the title what is the largest production code?". [/INST] SELECT MAX("production_code") FROM "table1_18367694_3" WHERE "title"='\"To Live and Die in Brentwood\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18367694_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "When joan tewkesbury is the director what is the number in seasons?". [/INST] SELECT "no_in_season" FROM "table1_18367694_3" WHERE "directed_by"='Joan Tewkesbury';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many series did John Banas direct?". [/INST] SELECT "no_in_series" FROM "episodes" WHERE "directed_by"='John Banas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is the original air date in series 360?". [/INST] SELECT COUNT("original_air_date") FROM "episodes" WHERE "no_in_series"=360;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams" ( "team" text, "location" text, "county" text, "division" text, "home_ground" text, "coach" text, "captain" text );. Question: "Who is the coach of the team in Leicester? ". [/INST] SELECT "coach" FROM "teams" WHERE "location"='Leicester';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams" ( "team" text, "location" text, "county" text, "division" text, "home_ground" text, "coach" text, "captain" text );. Question: "What is the name of the team from Derbyshire county? ". [/INST] SELECT "team" FROM "teams" WHERE "county"='Derbyshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams" ( "team" text, "location" text, "county" text, "division" text, "home_ground" text, "coach" text, "captain" text );. Question: "Who is the captain of the Gloucestershire Gladiators? ". [/INST] SELECT "captain" FROM "teams" WHERE "team"='Gloucestershire Gladiators';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams" ( "team" text, "location" text, "county" text, "division" text, "home_ground" text, "coach" text, "captain" text );. Question: "Who is the captain of the team in Southampton? ". [/INST] SELECT "captain" FROM "teams" WHERE "location"='Southampton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams" ( "team" text, "location" text, "county" text, "division" text, "home_ground" text, "coach" text, "captain" text );. Question: "Where is the team in Sussex county located? ". [/INST] SELECT "location" FROM "teams" WHERE "county"='Sussex';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams" ( "team" text, "location" text, "county" text, "division" text, "home_ground" text, "coach" text, "captain" text );. Question: "Who is the captain of the team in Essex county? ". [/INST] SELECT "captain" FROM "teams" WHERE "county"='Essex';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1850282_5" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text );. Question: "there are in tobago species name helicops angulatus". [/INST] SELECT "tobago" FROM "table1_1850282_5" WHERE "species"='Helicops angulatus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1850282_5" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text );. Question: "are in tobago species liophis cobellus cobellus?". [/INST] SELECT "tobago" FROM "table1_1850282_5" WHERE "species"='Liophis cobellus cobellus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852270_7" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text );. Question: "Which U.S. Acres episode with Garfield episode 1 has a date of disaster?". [/INST] SELECT "u_s_acres_episode" FROM "table1_1852270_7" WHERE "garfield_episode_1"='Date of Disaster';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852270_7" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text );. Question: "Which Garfield episode 1 is mind over Melvin?". [/INST] SELECT "garfield_episode_1" FROM "table1_1852270_7" WHERE "u_s_acres_episode"='Mind Over Melvin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852270_7" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text );. Question: "Which Garfield episode 1 has Garfield episode 2 as the second penelope episode?". [/INST] SELECT "garfield_episode_1" FROM "table1_1852270_7" WHERE "garfield_episode_2"='The Second Penelope Episode';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852270_7" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text );. Question: "Which Garfield episode 2 is the pie-eyed piper?". [/INST] SELECT "garfield_episode_2" FROM "table1_1852270_7" WHERE "garfield_episode_1"='The Pie-Eyed Piper';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852650_1" ( "sl_no" real, "name_of_the_prabandham" text, "starting_from" real, "ending_with" real, "number_of_pasurams" real, "sung_by" text );. Question: "Name the most ending with". [/INST] SELECT MAX("ending_with") FROM "table1_1852650_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 "table1_1852650_1" ( "sl_no" real, "name_of_the_prabandham" text, "starting_from" real, "ending_with" real, "number_of_pasurams" real, "sung_by" text );. Question: "Name the most ending with for peyalvar". [/INST] SELECT MAX("ending_with") FROM "table1_1852650_1" WHERE "sung_by"='Peyalvar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852650_1" ( "sl_no" real, "name_of_the_prabandham" text, "starting_from" real, "ending_with" real, "number_of_pasurams" real, "sung_by" text );. Question: "Name the starting from thiruvezhukkurrirukkai". [/INST] SELECT MIN("starting_from") FROM "table1_1852650_1" WHERE "name_of_the_prabandham"='Thiruvezhukkurrirukkai';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1852650_1" ( "sl_no" real, "name_of_the_prabandham" text, "starting_from" real, "ending_with" real, "number_of_pasurams" real, "sung_by" text );. Question: "Name the starting from amalanadhi piran". [/INST] SELECT "starting_from" FROM "table1_1852650_1" WHERE "name_of_the_prabandham"='Amalanadhi piran';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18563954_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "Why did the change happened in Massachusetts (2)?". [/INST] SELECT "reason_for_change" FROM "table1_18563954_3" WHERE "state_class"='Massachusetts (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_18563954_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "How many different reasons are there for the change in Connecticut (3)?". [/INST] SELECT COUNT("reason_for_change") FROM "table1_18563954_3" WHERE "state_class"='Connecticut (3)';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.