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 "class" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text );. Question: "Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939". [/INST] SELECT "name" FROM "class" WHERE "laid_down"='22 september 1939' AND "commissioned"='30 august 1941';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What is the score when there was a Loss of birkbeck (0β3)?". [/INST] SELECT "score" FROM "game_log" WHERE "loss"='birkbeck (0β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 "bioinformatics" ( "application" text, "expected_speed_up" text, "gpu" text, "multi_gpu_support" text, "release_status" text );. Question: "Which GPU has the cushaw application?". [/INST] SELECT "gpu" FROM "bioinformatics" WHERE "application"='cushaw';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bioinformatics" ( "application" text, "expected_speed_up" text, "gpu" text, "multi_gpu_support" text, "release_status" text );. Question: "What is the expected speed up of the gpu-hmmer application?". [/INST] SELECT "expected_speed_up" FROM "bioinformatics" WHERE "application"='gpu-hmmer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Who was the host team at the game at the Cleveland Browns Stadium?". [/INST] SELECT "host_team" FROM "1999" WHERE "stadium"='cleveland browns 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 "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What was the final score when the Buffalo Bills were the visiting team?". [/INST] SELECT "final_score" FROM "1999" WHERE "visiting_team"='buffalo bills';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What was the final score when the Denver Broncos were the visiting team?". [/INST] SELECT "final_score" FROM "1999" WHERE "visiting_team"='denver broncos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What is the date that a game at the Alltel Stadium had a final score of 6-20?". [/INST] SELECT "date" FROM "1999" WHERE "stadium"='alltel stadium' AND "final_score"='6-20';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text );. Question: "what is the average season when results is less than 2 times in 2nd and more than 6 times in 3rd?". [/INST] SELECT AVG("season") FROM "by_season" WHERE "2nd_pl"<2 AND "3rd_pl">6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text );. Question: "How many times was the motorcycle ducati 916 2nd place when wins is less than 7?". [/INST] SELECT SUM("2nd_pl") FROM "by_season" WHERE "motorcycle"='ducati 916' AND "wins"<7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text );. Question: "Who is the champion when the motorcycle is ducati 916 and 2nd place is less than 5?". [/INST] SELECT "champion" FROM "by_season" WHERE "motorcycle"='ducati 916' AND "2nd_pl"<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 "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What Catalog has a label of Alfa records and a date of November 21, 1980?". [/INST] SELECT "catalog" FROM "release_history" WHERE "label"='alfa records' AND "date"='november 21, 1980';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What catalog has a format of ED remaster CD and a date of December 19, 2001?". [/INST] SELECT "catalog" FROM "release_history" WHERE "format"='ed remaster cd' AND "date"='december 19, 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 "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What Date has a label of alfa records?". [/INST] SELECT "date" FROM "release_history" WHERE "label"='alfa records';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What region has the label of alfa records and the date of January 23, 1987?". [/INST] SELECT "region" FROM "release_history" WHERE "label"='alfa records' AND "date"='january 23, 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 "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What date has the format of CD and catalog of alca-274?". [/INST] SELECT "date" FROM "release_history" WHERE "format"='cd' AND "catalog"='alca-274';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What date has the format of cd?". [/INST] SELECT "date" FROM "release_history" WHERE "format"='cd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "What is the Decile number for St Mary's Catholic School?". [/INST] SELECT "decile" FROM "otorohanga_district" WHERE "name"='st mary''s catholic school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Which Authority is set for Hauturu School?". [/INST] SELECT "authority" FROM "otorohanga_district" WHERE "name"='hauturu school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "What School is in the kio kio area?". [/INST] SELECT "name" FROM "otorohanga_district" WHERE "area"='kio kio';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text );. Question: "What race is in the 5th position?". [/INST] SELECT "race" FROM "2012_tt_results" WHERE "position"='5th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text );. Question: "What Replica has a race of supersport race 1?". [/INST] SELECT "replica" FROM "2012_tt_results" WHERE "race"='supersport race 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 "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text );. Question: "What replica has the 5th position?". [/INST] SELECT "replica" FROM "2012_tt_results" WHERE "position"='5th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );. Question: "When a Sigma 7 has a standard byte string, what is the value for the decimal?". [/INST] SELECT "decimal" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "model"='sigma 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 "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );. Question: "What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512?". [/INST] SELECT "byte_string" FROM "32_bit_systems" WHERE "memory_map"='standard' AND "decimal"='standard' AND "floating_point"='standard' AND "max_memory_kwords"<512;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );. Question: "What model has both a standard byte string and floating-point?". [/INST] SELECT "model" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "floating_point"='standard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );. Question: "On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map?". [/INST] SELECT "memory_map" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "max_memory_kwords">128 AND "model"='sigma 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 "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );. Question: "What is the decimal value when the memory map and byte string are standard, and the max memory is 512?". [/INST] SELECT "decimal" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "memory_map"='standard' AND "max_memory_kwords"=512;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );. Question: "Who was the co-driver in the DNF position in the GT1 class?". [/INST] SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf' AND "class"='gt1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );. Question: "Which co-driver was part of team Martini Lancia earlier than 1986?". [/INST] SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "year"<1986 AND "team"='martini lancia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );. Question: "The Le Mans Porsche team Joest Racing is in which class?". [/INST] SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='le mans porsche team joest racing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "Name the build date for total produced of 146". [/INST] SELECT "build_date" FROM "switchers_s_series" WHERE "total_produced"=146;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "Name the model for specification of dl-066". [/INST] SELECT "model" FROM "switchers_s_series" WHERE "specification"='dl-066';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "Name the power output for model of s-13". [/INST] SELECT "power_output" FROM "switchers_s_series" WHERE "model"='s-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 "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );. Question: "What's the worst score for the worst dancer(s) john barnes, with a best score of 36?". [/INST] SELECT "worst_score" FROM "highest_and_lowest_scoring_performances" WHERE "best_score"=36 AND "worst_dancer_s"='john barnes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );. Question: "What's the worst dance of jive dancer(s)?". [/INST] SELECT "worst_dancer_s" FROM "highest_and_lowest_scoring_performances" WHERE "dance"='jive';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );. Question: "What's the best score, with the worst dancer(s) gethin jones/kenny logan?". [/INST] SELECT "best_score" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='gethin jones/kenny logan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );. Question: "What's the best average score with a bad score of 15?". [/INST] SELECT AVG("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_score"=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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What is the name of the opponent that has a record of 66-69?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='66-69';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What was Olin Dutra's score?". [/INST] SELECT "score" FROM "final_round" WHERE "player"='olin dutra';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What was Craig Wood's score?". [/INST] SELECT "score" FROM "final_round" WHERE "player"='craig wood';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What was Paul Runyan's score?". [/INST] SELECT "score" FROM "final_round" WHERE "player"='paul runyan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What country has a To par of e?". [/INST] SELECT "country" FROM "final_round" WHERE "to_par"='e';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "june_draft" ( "round" real, "name" text, "position" text, "school" text, "signed" text );. Question: "What position for the player from villa park high school?". [/INST] SELECT "position" FROM "june_draft" WHERE "school"='villa park high school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of medals by the Czech republic?". [/INST] SELECT "total" FROM "medal_table" WHERE "nation"='czech republic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many gold medals does the country ranked higher than 2 with more than 8 bronze have?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "rank"<2 AND "bronze">8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?". [/INST] SELECT MAX("rank") FROM "medal_table" WHERE "gold"<3 AND "silver">2 AND "total"<5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "When is the record 5-4?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='5-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 "100_million_to_119_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text );. Question: "What is the Genre when the Artist is Prince?". [/INST] SELECT "genre" FROM "100_million_to_119_million_records" WHERE "artist"='prince';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "100_million_to_119_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text );. Question: "What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States?". [/INST] SELECT "genre" FROM "100_million_to_119_million_records" WHERE "release_year_of_first_charted_record"=1968 AND "country_of_origin"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "numbering" ( "year" real, "rr_class" text, "rr_nos" text, "builder" text, "builder_nos" text, "gwr_br_nos" text );. Question: "Name the builder numbers with RR class of a1 and year less than 1916". [/INST] SELECT "builder_nos" FROM "numbering" WHERE "rr_class"='a1' AND "year"<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 "numbering" ( "year" real, "rr_class" text, "rr_nos" text, "builder" text, "builder_nos" text, "gwr_br_nos" text );. Question: "Name the RR numbers of hudswell clarke and years before 1914". [/INST] SELECT "rr_nos" FROM "numbering" WHERE "builder"='hudswell clarke' AND "year"<1914;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round_sunday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "hole" text );. Question: "What is the To par has the presence of Vijay Singh?". [/INST] SELECT "to_par" FROM "final_round_sunday" WHERE "player"='vijay singh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "qual" text, "rank" text, "finish" text, "laps" text );. Question: "How many laps did Dick Rathmann complete when he ranked 14?". [/INST] SELECT "laps" FROM "indy_500_results" WHERE "rank"='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 "indy_500_results" ( "year" text, "qual" text, "rank" text, "finish" text, "laps" text );. Question: "What was Dick Rathmann's Finish the year he Qualed at 130.928?". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "qual"='130.928';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "What is the average total produced when the prime mover is 12-251c?". [/INST] SELECT AVG("total_produced") FROM "4_axle_units" WHERE "prime_mover"='12-251c';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "What is the build date when total produced is 2?". [/INST] SELECT "build_date" FROM "4_axle_units" WHERE "total_produced"=2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "What is the smallest total produced with a model of M-420?". [/INST] SELECT MIN("total_produced") FROM "4_axle_units" WHERE "model"='m-420';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "What is the prime mover for a build date in 1975?". [/INST] SELECT "prime_mover" FROM "4_axle_units" WHERE "build_date"='1975';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "What model has a total produced more than 5 and a prime move of 12-251c?". [/INST] SELECT "model" FROM "4_axle_units" WHERE "total_produced">5 AND "prime_mover"='12-251c';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the date of the home Detroit game with a decision of Joseph and a record of 27β13β5β2?". [/INST] SELECT "date" FROM "january" WHERE "decision"='joseph' AND "home"='detroit' AND "record"='27β13β5β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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score of the home Dallas game that had a decision of Legace?". [/INST] SELECT "score" FROM "january" WHERE "decision"='legace' AND "home"='dallas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score of the game that had a record of 26β13β4β2 and a decision of Joseph?". [/INST] SELECT "score" FROM "january" WHERE "decision"='joseph' AND "record"='26β13β4β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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Who was the visiting team when the record was 28β14β6β2?". [/INST] SELECT "visitor" FROM "january" WHERE "record"='28β14β6β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 "complete_international_formula_3000_resu" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );. Question: "What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?". [/INST] SELECT MIN("points") FROM "complete_international_formula_3000_resu" WHERE "engine"='mugen v8' AND "chassis"='reynard 91d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );. Question: "What are the highest points that have a Mugen V8 engine and happened in 1991?". [/INST] SELECT MAX("points") FROM "complete_international_formula_3000_resu" WHERE "engine"='mugen v8' AND "year"=1991;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "How many years did John Player Lotus used Cosworth v8?". [/INST] SELECT SUM("year") FROM "complete_formula_one_results" WHERE "engine"='cosworth v8' AND "entrant"='john player lotus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Who used Eurobrun er189b after 1989?". [/INST] SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1989 AND "chassis"='eurobrun er189b';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Who used Ford v8 and Jordan 191 after 1990 and got 8 points?". [/INST] SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1990 AND "engine"='ford v8' AND "points"=8 AND "chassis"='jordan 191';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );. Question: "What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977?". [/INST] SELECT "leftfielder" FROM "opening_day_starting_lineups" WHERE "second_baseman"='davey lopes' AND "first_baseman"='steve garvey' AND "shortstop"='bill russell' AND "year">1977;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );. Question: "What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver?". [/INST] SELECT "shortstop" FROM "opening_day_starting_lineups" WHERE "catcher"='johnny roseboro' AND "third_baseman"='jim lefebvre' AND "second_baseman"='nate oliver';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );. Question: "Who was the First Baseman when the Shortstop was zoilo versalles?". [/INST] SELECT "first_baseman" FROM "opening_day_starting_lineups" WHERE "shortstop"='zoilo versalles';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );. Question: "What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983?". [/INST] SELECT "leftfielder" FROM "opening_day_starting_lineups" WHERE "shortstop"='bill russell' AND "second_baseman"='steve sax' AND "year"=1983;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant?". [/INST] SELECT MIN("year") FROM "complete_formula_one_results" WHERE "points"<3 AND "entrant"='parmalat forti ford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the average Points when equipe ligier gauloises blondes is the entrant?". [/INST] SELECT AVG("points") FROM "complete_formula_one_results" WHERE "entrant"='equipe ligier gauloises blondes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the smallest amount of points for parmalat forti ford entrant later than 1995?". [/INST] SELECT MIN("points") FROM "complete_formula_one_results" WHERE "entrant"='parmalat forti ford' AND "year">1995;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the company that made the chassis for the entrant danka arrows yamaha?". [/INST] SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='danka arrows yamaha';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What college did Ray Graves attend?". [/INST] SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "name"='ray graves';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What number pick was Bill Athey?". [/INST] SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "name"='bill athey';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is John Cole's overall pick number?". [/INST] SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='john cole';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );. Question: "What is the date of the locomotive with a Waterford class?". [/INST] SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='waterford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );. Question: "What is the date of the locomotive named Blacklion Glencar?". [/INST] SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "names"='blacklion glencar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );. Question: "What is the quantity made of the locomotive with a Waterford class?". [/INST] SELECT "quantity_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='waterford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );. Question: "What is the class of the locomotive with a quantity made of 1 and a 0-6-0t type?". [/INST] SELECT "class" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "quantity_made"='1' AND "type"='0-6-0t';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );. Question: "What is the class of the locomotive with a 0-4-0st type?". [/INST] SELECT "class" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "type"='0-4-0st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );. Question: "What is the name of the locomotive with a Glencar class?". [/INST] SELECT "names" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='glencar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "What country has signed type moving from porto?". [/INST] SELECT "country" FROM "in" WHERE "type"='signed' AND "moving_from"='porto';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "Which transfer window was moving from borussia dortmund?". [/INST] SELECT "transfer_window" FROM "in" WHERE "moving_from"='borussia dortmund';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "What is moving from esp with transfer fee of youth system?". [/INST] SELECT "moving_from" FROM "in" WHERE "country"='esp' AND "transfer_fee"='youth system';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "What is the transfer window in esp with promoted type and more than 2010 ends?". [/INST] SELECT "transfer_window" FROM "in" WHERE "country"='esp' AND "type"='promoted' AND "ends">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 "nominations" ( "week_2" text, "week_4" text, "week_6" text, "week_11" text, "week_12" text, "week_13" text, "week_15" text );. Question: "Who is the week 12 for the week 2 with Magda Tomek?". [/INST] SELECT "week_12" FROM "nominations" WHERE "week_2"='magda tomek';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nominations" ( "week_2" text, "week_4" text, "week_6" text, "week_11" text, "week_12" text, "week_13" text, "week_15" text );. Question: "Who is the week 12 for the week 4 of Gerard Ewelina?". [/INST] SELECT "week_12" FROM "nominations" WHERE "week_4"='gerard ewelina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text );. Question: "Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds?". [/INST] SELECT "points" FROM "usa" WHERE "rebounds"='al jefferson (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 "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text );. Question: "Who was the leader in Steals when Travis Watson (9) was the leader in Rebounds?". [/INST] SELECT "steals" FROM "usa" WHERE "rebounds"='travis watson (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 "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text );. Question: "What was the 1st Year Al Harrington (9) the leader in Rebounds?". [/INST] SELECT MIN("year") FROM "usa" WHERE "rebounds"='al harrington (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 "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text );. Question: "Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?". [/INST] SELECT "points" FROM "usa" WHERE "steals"='3 tied (2)' AND "assists"='2 tied (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 "top_scorers" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );. Question: "Name the average with tally of 0-29 and total more than 29". [/INST] SELECT AVG("average") FROM "top_scorers" WHERE "tally"='0-29' AND "total">29;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_scorers" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );. Question: "Name the tally with total less than 27 and average more than 3.41". [/INST] SELECT "tally" FROM "top_scorers" WHERE "total"<27 AND "average">3.41;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year?". [/INST] SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "entrant"='h h gould';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956?". [/INST] SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='goulds'' garage (bristol)' AND "engine"='maserati straight-6' AND "year"<1956;</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.