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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Who was the opponent at the game when the record was 54-58?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='54-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "What was the score of the game when the record was 59-65?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='59-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Who was the opponent at the game that had a loss of Caldwell (10-11)?". [/INST] SELECT "opponent" FROM "game_log" WHERE "loss"='caldwell (10-11)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "Which opponent had a time of 1:26?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:26';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12?". [/INST] SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "record"='18-12';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text );. Question: "Which catalogue is from the UK region, and is on vinyl, and was dated in 1986?". [/INST] SELECT "catalogue" FROM "release_history_and_variations" WHERE "region"='uk' AND "format"='vinyl' AND "date"='1986';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text );. Question: "What region has a bronze label and a catalogue of 202 876-270?". [/INST] SELECT "region" FROM "release_history_and_variations" WHERE "label"='bronze' AND "catalogue"='202 876-270';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text );. Question: "Which label is from the Germany region?". [/INST] SELECT "label" FROM "release_history_and_variations" WHERE "region"='germany';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text );. Question: "What label has brol 34531 as it's catalogue?". [/INST] SELECT "label" FROM "release_history_and_variations" WHERE "catalogue"='brol 34531';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text );. Question: "Which label has UK for its region, is on a CD, and is dated from 1986?". [/INST] SELECT "label" FROM "release_history_and_variations" WHERE "region"='uk' AND "date"='1986' AND "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 "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text );. Question: "Which catalogue has essential, castle music as it's label?". [/INST] SELECT "catalogue" FROM "release_history_and_variations" WHERE "label"='essential, castle music';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "120_million_to_199_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's the period of a rock album released in 1973?". [/INST] SELECT "period_active" FROM "120_million_to_199_million_records" WHERE "release_year_of_first_charted_record"=1973 AND "genre"='rock';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the pick number for bill atessis". [/INST] SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "name"='bill atessis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the total number of overall for defensive tackle". [/INST] SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "position"='defensive tackle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "divided_in_countries" ( "country" text, "2008_list" real, "2009_list" real, "2010_list" real, "2011_list" real, "2012_list" real );. Question: "What is the 2012-list rank of a country with the lowest 2012-list rank out of all the countries with a 2010-list rank better than 13, a 2009-list rank of 0, a 2008-list rank lower than 4?". [/INST] SELECT MAX("2012_list") FROM "divided_in_countries" WHERE "2010_list"<13 AND "2009_list"=0 AND "2008_list">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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Which engine has daimler benz ag as an entrant?". [/INST] SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "entrant"='daimler benz ag';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "In which years was the to par +6?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "In 1991, what was the lowest total?". [/INST] SELECT MIN("total") FROM "made_the_cut" WHERE "year_s_won"='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 "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What are the total lanes that have a rank larger than 22?". [/INST] SELECT SUM("lane") FROM "heats" WHERE "rank">22;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?". [/INST] SELECT "name" FROM "heats" WHERE "rank">2 AND "lane"=1 AND "nationality"='hong kong';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?". [/INST] SELECT SUM("rank") FROM "heats" WHERE "nationality"='japan' AND "lane"<7 AND "heat"<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 "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real );. Question: "What was Jim Hoff's sum of losses and a wins smaller than 12?". [/INST] SELECT SUM("losses") FROM "managers" WHERE "manager"='jim hoff' AND "wins"<12;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real );. Question: "What was the average of games that were one in 1978 that were smaller than 141?". [/INST] SELECT AVG("wins") FROM "managers" WHERE "years"='1978' AND "games"<141;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real );. Question: "What was the sum of Richie Hebner winning games that were smaller 34?". [/INST] SELECT SUM("games") FROM "managers" WHERE "manager"='richie hebner' AND "wins"<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 "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real );. Question: "What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1?". [/INST] SELECT AVG("wins") FROM "managers" WHERE "games"<3 AND "manager"='george scherger' AND "losses"<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 "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );. Question: "When was the golden slipper race?". [/INST] SELECT "date" FROM "1994_95_season_as_a_two_year_old" WHERE "race"='golden slipper';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );. Question: "In which races did the jockey weigh less than 55.5 kg?". [/INST] SELECT "race" FROM "1994_95_season_as_a_two_year_old" WHERE "weight_kg"<55.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 "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );. Question: "What was the result of the Todman stakes race at rosehill?". [/INST] SELECT "result" FROM "1994_95_season_as_a_two_year_old" WHERE "venue"='rosehill' AND "race"='todman stakes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What Country has Player Ky Laffoon?". [/INST] SELECT "country" FROM "final_leaderboard" WHERE "player"='ky laffoon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What Player is from the Country United States and Money ($) of 356?". [/INST] SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "money"=356;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What Player has a To par of +1 and the Score 75-70-71-73=289?". [/INST] SELECT "player" FROM "final_leaderboard" WHERE "to_par"='+1' AND "score"='75-70-71-73=289';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_finals_29_12_17" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "What was the outcome for the Rome 2, Italy tournament?". [/INST] SELECT "outcome" FROM "doubles_finals_29_12_17" WHERE "tournament"='rome 2, italy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_finals_29_12_17" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?". [/INST] SELECT "outcome" FROM "doubles_finals_29_12_17" WHERE "opponents_in_the_final"='marius călugăru ciprian petre porumb';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many golds have a Total of 11, and a Bronze smaller than 3?". [/INST] SELECT SUM("gold") FROM "total" WHERE "total"=11 AND "bronze"<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 "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0?". [/INST] SELECT SUM("gold") FROM "total" WHERE "bronze"=0 AND "total">1 AND "nation"='chad' AND "silver">0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the smallest silver with a Gold of 1, and a Nation of lithuania?". [/INST] SELECT MIN("silver") FROM "total" WHERE "gold"=1 AND "nation"='lithuania';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12?". [/INST] SELECT COUNT("bronze") FROM "total" WHERE "gold">1 AND "rank"=2 AND "silver"<12;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Which Visiting Team is on december 23?". [/INST] SELECT "visiting_team" FROM "2000" WHERE "date"='december 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 "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Which Host Team has Final Score of 42-23?". [/INST] SELECT "host_team" FROM "2000" WHERE "final_score"='42-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 "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "When did Final Score of 31-7 happen?". [/INST] SELECT "date" FROM "2000" WHERE "final_score"='31-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What was the score of the Blue Jays game when their record was 75-68 and the attendance was larger than 33,736?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance">'33,736' AND "record"='75-68';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Which Tournament in 2010 also has Grand Slam tournaments in 2011". [/INST] SELECT "2010" FROM "singles_performance_timeline" WHERE "2011"='grand slam tournaments';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was the average attendance when the New York Mets were opponents with a record of 51-33?". [/INST] SELECT AVG("attendance") FROM "game_log" WHERE "opponent"='new york mets' AND "record"='51-33';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What visiting team played on October 18?". [/INST] SELECT "visiting_team" FROM "2001" WHERE "date"='october 18';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What visiting team played at 3com park on October 7?". [/INST] SELECT "visiting_team" FROM "2001" WHERE "stadium"='3com park' AND "date"='october 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 "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Which host team won on a final scoreline of 13-10?". [/INST] SELECT "host_team" FROM "2001" WHERE "final_score"='13-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 "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "In what stadium did a game result in a final scoreline reading 27-34?". [/INST] SELECT "stadium" FROM "2001" WHERE "final_score"='27-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 "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "In the game in which the Jacksonville Jaguars were hosts, what was the name of the visiting team?". [/INST] SELECT "visiting_team" FROM "2001" WHERE "host_team"='jacksonville jaguars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Which visiting team wound up with a final score of 18-40?". [/INST] SELECT "visiting_team" FROM "2001" WHERE "final_score"='18-40';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the sum of attendacne for 16 weeks". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "week"=16;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the result for week less than 7 and game sites of los angeles memorial coliseum". [/INST] SELECT "result" FROM "schedule" WHERE "week"<7 AND "game_site"='los angeles memorial coliseum';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the result for week 7". [/INST] SELECT "result" FROM "schedule" WHERE "week"=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 "rushing_sortable_options" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" text );. Question: "How many yards lost by the player with more gained than 51 and average/g of 3.6?". [/INST] SELECT COUNT("loss") FROM "rushing_sortable_options" WHERE "avg_g"='3.6' AND "gain">51;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing_sortable_options" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" text );. Question: "What are the gains for the player with average of 26.8 and lost yard fewer than 13?". [/INST] SELECT SUM("gain") FROM "rushing_sortable_options" WHERE "avg_g"='26.8' AND "loss"<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 "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "When did Mathieu play against Flavio Cipolla?". [/INST] SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='flavio cipolla';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "Which tournament had a final score of 6–3, 6–2?". [/INST] SELECT "tournament" FROM "singles" WHERE "score_in_the_final"='6–3, 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 "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "On which surface did Mathieu play against Antonio Veić?". [/INST] SELECT "surface" FROM "singles" WHERE "opponent_in_the_final"='antonio veić';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "When did Mathieu play against Antonio Veić?". [/INST] SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='antonio veić';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "When did Mathieu play against Andrey Golubev?". [/INST] SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='andrey golubev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text );. Question: "What opened with a drop height of 272feet?". [/INST] SELECT "opened" FROM "locations" WHERE "drop_height"='272feet';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text );. Question: "What was the speed of 200feet Giant Drop attraction?". [/INST] SELECT "speed" FROM "locations" WHERE "model"='giant drop' AND "drop_height"='200feet';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text );. Question: "What park opened in 1999?". [/INST] SELECT "park" FROM "locations" WHERE "opened"='1999';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Name the record for detroit and decision of denis". [/INST] SELECT "record" FROM "december" WHERE "home"='detroit' AND "decision"='denis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Name the average attendance with dallas visitor". [/INST] SELECT AVG("attendance") FROM "december" WHERE "visitor"='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 "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "How close to par was Tom Kite when he played?". [/INST] SELECT "to_par" FROM "second_round" WHERE "player"='tom kite';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which of the countries showed a score of 71-72=143?". [/INST] SELECT "country" FROM "second_round" WHERE "score"='71-72=143';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which country watch Tom Watson at t9 score 72-72=144?". [/INST] SELECT "country" FROM "second_round" WHERE "place"='t9' AND "score"='72-72=144' AND "player"='tom watson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What was the final score when the player was an e to par?". [/INST] SELECT "score" FROM "second_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 "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text );. Question: "What is the name of the team that has 307 attempts?". [/INST] SELECT "team" FROM "college_statistics" WHERE "attempts"='307';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text );. Question: "What is the name of the team that has 1,317 attempts?". [/INST] SELECT "team" FROM "college_statistics" WHERE "attempts"='1,317';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text );. Question: "What year was 2,242 yards achieved?". [/INST] SELECT "year" FROM "college_statistics" WHERE "yards"='2,242';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text );. Question: "Which team has a 59.8% completion rate?". [/INST] SELECT "team" FROM "college_statistics" WHERE "completion_pct"='59.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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );. Question: "Which year has has a Engine of maserati straight-6?". [/INST] SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );. Question: "What is the Point of Chassis of Lancia d50 in 1954". [/INST] SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "chassis"='lancia d50' AND "year"=1954;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "What is on at 8:00 before the 9:00 showing of Chuck?". [/INST] SELECT "8_00" FROM "tuesday" WHERE "9_00"='chuck';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "What show comes on at 9:00 on the channel that shows the Insider at 7:00?". [/INST] SELECT "9_00" FROM "tuesday" WHERE "7_00"='the insider';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "On the channel with The Biggest loser at 8:00, what's on at 7:30?". [/INST] SELECT "7_30" FROM "tuesday" WHERE "8_00"='the biggest loser';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "What's on at 7:30 before the 9:00 showing of the Tudors?". [/INST] SELECT "7_30" FROM "tuesday" WHERE "9_00"='the tudors';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );. Question: "If Gossip Girl is on at 7:30, what shows at 9:00?". [/INST] SELECT "9_00" FROM "tuesday" WHERE "7_30"='gossip girl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_average_in_a_career" ( "matches" real, "innings" real, "not_out" real, "high_score" text, "runs" real, "average" real );. Question: "What is the match total for a score over 299 and under 412 innings?". [/INST] SELECT SUM("matches") FROM "best_average_in_a_career" WHERE "high_score"='299' AND "innings"<412;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_average_in_a_career" ( "matches" real, "innings" real, "not_out" real, "high_score" text, "runs" real, "average" real );. Question: "What is the high run total associated with a high score of 385 and under 407 innings?". [/INST] SELECT MAX("runs") FROM "best_average_in_a_career" WHERE "high_score"='385' AND "innings"<407;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "Which 2nd leg has a 1st leg of 1-1 and is Team 1 djoliba ac?". [/INST] SELECT "2nd_leg" FROM "second_round" WHERE "1st_leg"='1-1' AND "team_1"='djoliba ac';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What Team 1 has union douala as Team 2?". [/INST] SELECT "team_1" FROM "second_round" WHERE "team_2"='union douala';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was the score of the game that had a loss of Cerutti (0-1)?". [/INST] SELECT "score" FROM "game_log" WHERE "loss"='cerutti (0-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Who was the opponent at the game that had a record of 93-54?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='93-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 "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What was the score to par for 156 strokes?". [/INST] SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total">156;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "How many strokes for arnold palmer with a to par of greater than 9?". [/INST] SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">9 AND "player"='arnold palmer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What was the score to par in 1960?". [/INST] SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1960';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rugby_germany_internationals_1989" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text );. Question: "What is the earliest first game for a rugby team that has 7 lost games and 0 draws?". [/INST] SELECT MIN("first_game") FROM "rugby_germany_internationals_1989" WHERE "lost"=7 AND "drawn"<0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rugby_germany_internationals_1989" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text );. Question: "How many games were played by a team that won 0.00% of their games and 0 draws?". [/INST] SELECT SUM("played") FROM "rugby_germany_internationals_1989" WHERE "percentage"='0.00%' AND "drawn"<0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );. Question: "Name the matches for the first match being 30 march 1997". [/INST] SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "1st_match"='30 march 1997';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );. Question: "Name the 1st match for brisbane bears". [/INST] SELECT "1st_match" FROM "team_wins_losses_and_draws" WHERE "team"='brisbane bears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );. Question: "Name the lost for matches of 1 928". [/INST] SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "matches"='1 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 "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );. Question: "Name the lost for % won of 55.37". [/INST] SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.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 "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );. Question: "Name the matches for gold coast". [/INST] SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "team"='gold coast';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );. Question: "Name the lost for % won of 55.37". [/INST] SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.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 "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );. Question: "What is the year when cable was 4.6%?". [/INST] SELECT "year" FROM "statistics" WHERE "cable"='4.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 "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );. Question: "What is the other for 2012?". [/INST] SELECT "other" FROM "statistics" WHERE "year"='2012';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );. Question: "What is the xDSL for the other of 0.6% and FTTx of 35.4%?". [/INST] SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "ft_tx"='35.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 "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );. Question: "What is the other for a 78.2% xDSL?". [/INST] SELECT "other" FROM "statistics" WHERE "x_dsl"='78.2%';</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.