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 "champions_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which Date has a Runner(s)-up of fred funk?". [/INST] SELECT "date" FROM "champions_tour_wins_5" WHERE "runner_s_up"='fred funk';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "champions_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which Tournament has a Date of jul 14, 2013?". [/INST] SELECT "tournament" FROM "champions_tour_wins_5" WHERE "date"='jul 14, 2013';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "champions_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which Margin of victory has a Tournament of u.s. senior open?". [/INST] SELECT "margin_of_victory" FROM "champions_tour_wins_5" WHERE "tournament"='u.s. senior open';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "champions_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which Date has a Runner(s)-up of bernhard langer, and a Tournament of at&t championship?". [/INST] SELECT "date" FROM "champions_tour_wins_5" WHERE "runner_s_up"='bernhard langer' AND "tournament"='at&t championship';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "champions_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which Date has a Margin of victory of 5 strokes, and a Winning score of β13 (67-73-64-63=267)?". [/INST] SELECT "date" FROM "champions_tour_wins_5" WHERE "margin_of_victory"='5 strokes' AND "winning_score"='β13 (67-73-64-63=267)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list" ( "county" text, "population_2011" real, "population_2006" real, "change_pct" real, "area_km" real, "population_density" real );. Question: "What is the Population density that has a Change (%) higher than 10.4, and a Population (2011) less than 8574, in the County of Queens?". [/INST] SELECT AVG("population_density") FROM "list" WHERE "change_pct">10.4 AND "county"='queens' AND "population_2011"<8574;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list" ( "county" text, "population_2011" real, "population_2006" real, "change_pct" real, "area_km" real, "population_density" real );. Question: "What was the Population (2011) when the Population (2006) was less than 7083, and the Population density less than 342.8, and the Change (%) of 5, and an Area (kmΒ²) larger than 4.5?". [/INST] SELECT COUNT("population_2011") FROM "list" WHERE "population_2006"<7083 AND "population_density"<342.8 AND "change_pct"=5 AND "area_km">4.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 "list" ( "county" text, "population_2011" real, "population_2006" real, "change_pct" real, "area_km" real, "population_density" real );. Question: "What was the Area (kmΒ²) when the Population (2011) was 8574, and the Population density was larger than 381.4?". [/INST] SELECT AVG("area_km") FROM "list" WHERE "population_2011"=8574 AND "population_density">381.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 "list" ( "county" text, "population_2011" real, "population_2006" real, "change_pct" real, "area_km" real, "population_density" real );. Question: "In the County of Prince, what was the highest Population density when the Area (kmΒ²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?". [/INST] SELECT MAX("population_density") FROM "list" WHERE "county"='prince' AND "area_km">3.02 AND "population_2006">786 AND "population_2011"<1135;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What is the lowest Against when the played is more than 10?". [/INST] SELECT MIN("against") FROM "campeonato_paulista" WHERE "played">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 "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What is the sum of Against when the lost is more than 7?". [/INST] SELECT SUM("against") FROM "campeonato_paulista" WHERE "lost">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 "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What is the highest Drawn when the lost is 7 and the points are more than 4, and the against is less than 22?". [/INST] SELECT MAX("drawn") FROM "campeonato_paulista" WHERE "lost"=7 AND "points">4 AND "against"<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 "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What team has an against more than 8, lost of 7, and the position is 5?". [/INST] SELECT "team" FROM "campeonato_paulista" WHERE "against">8 AND "lost"=7 AND "position"=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 "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );. Question: "What is the Against when the drawn is 5?". [/INST] SELECT "against" FROM "campeonato_paulista" WHERE "drawn"=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 "awards" ( "year" real, "film" text, "awards" text, "category" text, "result" text );. Question: "How many years were there for the 62nd golden globe awards?". [/INST] SELECT SUM("year") FROM "awards" WHERE "awards"='62nd golden globe awards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards" ( "year" real, "film" text, "awards" text, "category" text, "result" text );. Question: "What was the result for years prior to 2005?". [/INST] SELECT "result" FROM "awards" WHERE "year"<2005;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards" ( "year" real, "film" text, "awards" text, "category" text, "result" text );. Question: "Which awards happened more recently than 2005?". [/INST] SELECT "awards" FROM "awards" WHERE "year">2005;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "homicide_rates" ( "capital_region" text, "1997" real, "1998" real, "1999" real, "2000" real, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real );. Question: "How many 2007's have a 2000 greater than 56,6, 23,2 as 2006, and a 1998 greater than 61,1?". [/INST] SELECT SUM("2007") FROM "homicide_rates" WHERE "2000">'56,6' AND "2006"='23,2' AND "1998">'61,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 "homicide_rates" ( "capital_region" text, "1997" real, "1998" real, "1999" real, "2000" real, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real );. Question: "How many 2007's have a 2003 less than 36,4, 27,9 as a 2001, and a 1999 less than 25,2?". [/INST] SELECT SUM("2007") FROM "homicide_rates" WHERE "2003"<'36,4' AND "2001"='27,9' AND "1999"<'25,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 "homicide_rates" ( "capital_region" text, "1997" real, "1998" real, "1999" real, "2000" real, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real );. Question: "What is the average 2000 that has a 1997 greater than 34,6, a 2006 greater than 38,7, and a 2998 less than 76?". [/INST] SELECT AVG("2000") FROM "homicide_rates" WHERE "1997">'34,6' AND "2006">'38,7' AND "1998"<76;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "steel_challenge_women_s_world_records" ( "stage" text, "shooter" text, "time" real, "avg_run" real, "year" real );. Question: "What is the total years with average runs less than 4.75 and a time of 14.26?". [/INST] SELECT COUNT("year") FROM "steel_challenge_women_s_world_records" WHERE "time"=14.26 AND "avg_run"<4.75;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "steel_challenge_women_s_world_records" ( "stage" text, "shooter" text, "time" real, "avg_run" real, "year" real );. Question: "What is the total amount of time for years prior to 2013 when speed option is the stage?". [/INST] SELECT SUM("time") FROM "steel_challenge_women_s_world_records" WHERE "stage"='speed option' AND "year"<2013;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "judges" ( "name" text, "appointed" text, "prior_position" text, "province" text, "nominated_by" text );. Question: "What was the prior position held by Wyman Webb?". [/INST] SELECT "prior_position" FROM "judges" WHERE "name"='wyman webb';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "judges" ( "name" text, "appointed" text, "prior_position" text, "province" text, "nominated_by" text );. Question: "Who was appointed on October 21, 2011 from Quebec?". [/INST] SELECT "name" FROM "judges" WHERE "province"='quebec' AND "appointed"='october 21, 2011';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_ten" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "The Away High Park Demons was which Ground?". [/INST] SELECT "ground" FROM "round_ten" WHERE "away"='high park demons';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_ten" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "With the Ground of Humber College North at 12:00, what was the Away?". [/INST] SELECT "away" FROM "round_ten" WHERE "ground"='humber college north' AND "time"='12:00';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_ten" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "Who has the Home Score of 52-54?". [/INST] SELECT "home" FROM "round_ten" WHERE "score"='52-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 "round_ten" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "When did the High Park Demons play Away?". [/INST] SELECT "date" FROM "round_ten" WHERE "away"='high park demons';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What tournament that Fernando Roca is the runner-up?". [/INST] SELECT "tournament" FROM "european_tour_wins_8" WHERE "runner_s_up"='fernando roca';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What is the winning score for the runner-up Ernie Els?". [/INST] SELECT "winning_score" FROM "european_tour_wins_8" WHERE "runner_s_up"='ernie els';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real );. Question: "How many people attended when Wake Forest played Virginia Tech?". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='virginia tech';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sport" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is Country, when Television Service is Eurosport 2?". [/INST] SELECT "country" FROM "sport" WHERE "television_service"='eurosport 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 "sport" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is Package/Option, when Content is Poker?". [/INST] SELECT "package_option" FROM "sport" WHERE "content"='poker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sport" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is Language, when Content is Sport, when HDTV is No, and when Television Service is ESPN America?". [/INST] SELECT "language" FROM "sport" WHERE "content"='sport' AND "hdtv"='no' AND "television_service"='espn america';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sport" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is Package/Option, when Content is Tennis?". [/INST] SELECT "package_option" FROM "sport" WHERE "content"='tennis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sport" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );. Question: "What is Television Service, when Content is Calcio, and when Package/Option is Option?". [/INST] SELECT "television_service" FROM "sport" WHERE "content"='calcio' AND "package_option"='option';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text, "notes" text );. Question: "What is the Novelty of the dinosaur that was named by the Author, Zhiming, and whose Notes are, "carcharodontosaurid"?". [/INST] SELECT "novelty" FROM "newly_named_dinosaurs" WHERE "authors"='zhiming' AND "notes"='carcharodontosaurid';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text, "notes" text );. Question: "What is the Name of the dinosaur that was discovered in the Location, China, and whose Notes are, "described from a single tooth"?". [/INST] SELECT "name" FROM "newly_named_dinosaurs" WHERE "location"='china' AND "notes"='described from a single tooth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text, "notes" text );. Question: "What is the Name of the dinosaur, whose notes are, "n ornithischia of uncertain placement"?". [/INST] SELECT "name" FROM "newly_named_dinosaurs" WHERE "notes"='n ornithischia of uncertain placement';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text, "notes" text );. Question: "What is the Status of the dinosaur, whose notes are, "n coelurosauria"?". [/INST] SELECT "status" FROM "newly_named_dinosaurs" WHERE "notes"='n coelurosauria';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text, "notes" text );. Question: "What are the Notes of the dinosaur, whose Status is nomen dubium, and whose Location is China?". [/INST] SELECT "notes" FROM "newly_named_dinosaurs" WHERE "status"='nomen dubium' AND "location"='china';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text, "notes" text );. Question: "What is the Novelty of the dinosaur, whose naming Author was Galton?". [/INST] SELECT "novelty" FROM "newly_named_dinosaurs" WHERE "authors"='galton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the number listed under against when there were less than 13 losses and less than 2 byes?". [/INST] SELECT COUNT("against") FROM "2012_ladder" WHERE "losses"<13 AND "byes"<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 "2012_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the highest number listed under against when there were 15 losses and more than 1 win?". [/INST] SELECT MAX("against") FROM "2012_ladder" WHERE "losses"=15 AND "wins">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_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the average number of Byes when there were less than 0 losses and were against 1247?". [/INST] SELECT AVG("byes") FROM "2012_ladder" WHERE "against"=1247 AND "draws"<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 "2012_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the highest number listed under against when there were less than 3 wins and less than 15 losses?". [/INST] SELECT MAX("against") FROM "2012_ladder" WHERE "wins"<3 AND "losses"<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 "economic_growth" ( "member_state_sorted_by_gdp" text, "gdp_in_s_billion_of_usd_2012" real, "gdp_pct_of_eu_2012" text, "annual_change_pct_of_gdp_2012" text, "gdp_per_capita_in_ppp_us_2012" real, "public_debt_pct_of_gdp_2013_q1" real, "deficit_surplus_pct_of_gdp_2012" text, "inflation_pct_annual_2012" real, "unemp_pct_2013_m7" real );. Question: "What is the deficit/surplus % of the 2012 GDP of the country with a GDP in billions of USD in 2012 less than 1,352.1, a GDP per capita in PPP US dollars in 2012 greater than 21,615, public debt % of GDP in the 2013 Q1 less than 75.4, and an inflation % annual in 2012 of 2.9?". [/INST] SELECT "deficit_surplus_pct_of_gdp_2012" FROM "economic_growth" WHERE "gdp_in_s_billion_of_usd_2012"<'1,352.1' AND "gdp_per_capita_in_ppp_us_2012">'21,615' AND "public_debt_pct_of_gdp_2013_q1"<75.4 AND "inflation_pct_annual_2012"=2.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 "economic_growth" ( "member_state_sorted_by_gdp" text, "gdp_in_s_billion_of_usd_2012" real, "gdp_pct_of_eu_2012" text, "annual_change_pct_of_gdp_2012" text, "gdp_per_capita_in_ppp_us_2012" real, "public_debt_pct_of_gdp_2013_q1" real, "deficit_surplus_pct_of_gdp_2012" text, "inflation_pct_annual_2012" real, "unemp_pct_2013_m7" real );. Question: "What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191?". [/INST] SELECT AVG("public_debt_pct_of_gdp_2013_q1") FROM "economic_growth" WHERE "member_state_sorted_by_gdp"='czech republic' AND "gdp_per_capita_in_ppp_us_2012">'27,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 "economic_growth" ( "member_state_sorted_by_gdp" text, "gdp_in_s_billion_of_usd_2012" real, "gdp_pct_of_eu_2012" text, "annual_change_pct_of_gdp_2012" text, "gdp_per_capita_in_ppp_us_2012" real, "public_debt_pct_of_gdp_2013_q1" real, "deficit_surplus_pct_of_gdp_2012" text, "inflation_pct_annual_2012" real, "unemp_pct_2013_m7" real );. Question: "What is the largest inflation % annual in 2012 of the country with a public debt % of GDP in 2013 Q1 greater than 88.2 and a GDP % of EU in 2012 of 2.9%?". [/INST] SELECT MAX("inflation_pct_annual_2012") FROM "economic_growth" WHERE "public_debt_pct_of_gdp_2013_q1">88.2 AND "gdp_pct_of_eu_2012"='2.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 "economic_growth" ( "member_state_sorted_by_gdp" text, "gdp_in_s_billion_of_usd_2012" real, "gdp_pct_of_eu_2012" text, "annual_change_pct_of_gdp_2012" text, "gdp_per_capita_in_ppp_us_2012" real, "public_debt_pct_of_gdp_2013_q1" real, "deficit_surplus_pct_of_gdp_2012" text, "inflation_pct_annual_2012" real, "unemp_pct_2013_m7" real );. Question: "What is the GDP % of EU in 2012 of the country with a GDP in billions of USD in 2012 of 256.3?". [/INST] SELECT "gdp_pct_of_eu_2012" FROM "economic_growth" WHERE "gdp_in_s_billion_of_usd_2012"=256.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 "dominant_seventh_chords" ( "chord" text, "root" text, "major_third" text, "perfect_fifth" text, "minor_seventh" text );. Question: "What is the Chord with a Major that is third of e?". [/INST] SELECT "chord" FROM "dominant_seventh_chords" WHERE "major_third"='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 "dominant_seventh_chords" ( "chord" text, "root" text, "major_third" text, "perfect_fifth" text, "minor_seventh" text );. Question: "What is the Chord with a Minor that is seventh of f?". [/INST] SELECT "chord" FROM "dominant_seventh_chords" WHERE "minor_seventh"='f';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dominant_seventh_chords" ( "chord" text, "root" text, "major_third" text, "perfect_fifth" text, "minor_seventh" text );. Question: "What is the Major third with a Perfect fifth that is d?". [/INST] SELECT "major_third" FROM "dominant_seventh_chords" WHERE "perfect_fifth"='d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dominant_seventh_chords" ( "chord" text, "root" text, "major_third" text, "perfect_fifth" text, "minor_seventh" text );. Question: "What is the Perfect fifth with a Minor that is seventh of d?". [/INST] SELECT "perfect_fifth" FROM "dominant_seventh_chords" WHERE "minor_seventh"='d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Where was the game, and how many attended the game on january 2?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "date"='january 2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the Location and Attendance with a Record of 21β22?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "record"='21β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 "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real );. Question: "What was the date of the game against North Carolina?". [/INST] SELECT "date" FROM "schedule" WHERE "opponent"='north carolina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_box_score" ( "player" text, "fg_pct" real, "3_fga" real, "3_fgm" real, "3_fg_pct" real, "ft_pct" real, "off_reb" real, "def_reb" real, "total_reb" real, "asst" real );. Question: "What is the total number of offensive rebounds for players with more than 124 3-point attempts?". [/INST] SELECT COUNT("off_reb") FROM "season_box_score" WHERE "3_fga">124;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_box_score" ( "player" text, "fg_pct" real, "3_fga" real, "3_fgm" real, "3_fg_pct" real, "ft_pct" real, "off_reb" real, "def_reb" real, "total_reb" real, "asst" real );. Question: "How many FG percent values are associated with 59 assists and offensive rebounds under 40?". [/INST] SELECT COUNT("fg_pct") FROM "season_box_score" WHERE "asst"=59 AND "off_reb"<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 "season_box_score" ( "player" text, "fg_pct" real, "3_fga" real, "3_fgm" real, "3_fg_pct" real, "ft_pct" real, "off_reb" real, "def_reb" real, "total_reb" real, "asst" real );. Question: "What is the total number of offensive rebounds for players with under 65 total rebounds, 5 defensive rebounds, and under 7 assists?". [/INST] SELECT COUNT("off_reb") FROM "season_box_score" WHERE "total_reb"<65 AND "def_reb"=5 AND "asst"<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 "1970s_return_to_success_and_uefa_cup_sem" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text );. Question: "Which Round has a Competition of uefa cup, and a Series of 5β2?". [/INST] SELECT "round" FROM "1970s_return_to_success_and_uefa_cup_sem" WHERE "competition"='uefa cup' AND "series"='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 "1970s_return_to_success_and_uefa_cup_sem" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text );. Question: "Which Series has a Home of 2β0, and an Opponent of panathinaikos?". [/INST] SELECT "series" FROM "1970s_return_to_success_and_uefa_cup_sem" WHERE "home"='2β0' AND "opponent"='panathinaikos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970s_return_to_success_and_uefa_cup_sem" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text );. Question: "Which Home has a Competition of european cup, and a Round of qf?". [/INST] SELECT "home" FROM "1970s_return_to_success_and_uefa_cup_sem" WHERE "competition"='european cup' AND "round"='qf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970s_return_to_success_and_uefa_cup_sem" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text );. Question: "Which Season has an Opponent of hibernians?". [/INST] SELECT "season" FROM "1970s_return_to_success_and_uefa_cup_sem" WHERE "opponent"='hibernians';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970s_return_to_success_and_uefa_cup_sem" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text );. Question: "Which Opponent has an Away of 1β1, and a Home of 3β3?". [/INST] SELECT "opponent" FROM "1970s_return_to_success_and_uefa_cup_sem" WHERE "away"='1β1' AND "home"='3β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 "1970s_return_to_success_and_uefa_cup_sem" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text );. Question: "Which Home has a Round of r1, and an Opponent of dundee united?". [/INST] SELECT "home" FROM "1970s_return_to_success_and_uefa_cup_sem" WHERE "round"='r1' AND "opponent"='dundee united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results_pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text );. Question: "What is the set 2 the has 1 set of 21-25, and 4 sets of 25-20?". [/INST] SELECT "set_2" FROM "results_pool_a" WHERE "set_1"='21-25' AND "set_4"='25-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 "rushing" ( "player" text, "att" real, "yards" text, "avg" text, "long" text, "fum_l" real );. Question: "What is Domenik Hixon's average rush?". [/INST] SELECT "avg" FROM "rushing" WHERE "player"='domenik hixon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes" ( "episode_num" real, "title" text, "air_date" text, "rating" real, "share" real, "18_49" real, "viewers" real, "rank" text );. Question: "What is the total number of Viewers when the rank is #40?". [/INST] SELECT COUNT("viewers") FROM "episodes" WHERE "rank"='#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 "episodes" ( "episode_num" real, "title" text, "air_date" text, "rating" real, "share" real, "18_49" real, "viewers" real, "rank" text );. Question: "What is the average Episode # with a share of 9, and #35 is rank and less than 8.21 viewers?". [/INST] SELECT AVG("episode_num") FROM "episodes" WHERE "share"=9 AND "rank"='#35' AND "viewers"<8.21;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes" ( "episode_num" real, "title" text, "air_date" text, "rating" real, "share" real, "18_49" real, "viewers" real, "rank" text );. Question: "What is the average Episode # with a 7 share and 18β49 is less than 2 and the Air Date of may 21, 2009?". [/INST] SELECT AVG("episode_num") FROM "episodes" WHERE "share"=7 AND "18_49"<2 AND "air_date"='may 21, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes" ( "episode_num" real, "title" text, "air_date" text, "rating" real, "share" real, "18_49" real, "viewers" real, "rank" text );. Question: "What is the lowest Viewers that has an Episode #higher than 58 with a title of "curveball" less than 4.1 rating?". [/INST] SELECT MIN("viewers") FROM "episodes" WHERE "episode_num">58 AND "title"='\"curveball\"' AND "rating"<4.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 "episodes" ( "episode_num" real, "title" text, "air_date" text, "rating" real, "share" real, "18_49" real, "viewers" real, "rank" text );. Question: "What is the Air Date that has a 18β49 larger than 1.9, less than 7.54 viewers and a rating less than 4.9?". [/INST] SELECT "air_date" FROM "episodes" WHERE "18_49">1.9 AND "viewers"<7.54 AND "rating"<4.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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2?". [/INST] SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='egypt (egy)' AND "gold"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of Silver with a Total that is smaller than 1?". [/INST] SELECT COUNT("silver") FROM "medal_table" WHERE "total"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest Total with a Rank that is smaller than 4 and a Nation of tunisia (tun) with a Gold that is smaller than 2?". [/INST] SELECT MAX("total") FROM "medal_table" WHERE "rank"<4 AND "nation"='tunisia (tun)' AND "gold"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average Total with a Nation of ethiopia (eth) and a Rank that is larger than 9?". [/INST] SELECT AVG("total") FROM "medal_table" WHERE "nation"='ethiopia (eth)' AND "rank">9;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "From which region is the album with release date of 19 June 2007?". [/INST] SELECT "region" FROM "release_history" WHERE "date"='19 june 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which label released the catalog Magik Muzik CD 07 on 28 March 2007?". [/INST] SELECT "label" FROM "release_history" WHERE "date"='28 march 2007' AND "catalog"='magik muzik cd 07';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "For the catalog title DP068-07, what formats are available?". [/INST] SELECT "format" FROM "release_history" WHERE "catalog"='dp068-07';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_ministers_for_sport" ( "order" text, "minister" text, "party" text, "prime_minister" text, "term_start" text, "term_end" text, "term_in_office" text );. Question: "What is the Term in office with an Order that is 9?". [/INST] SELECT "term_in_office" FROM "list_of_ministers_for_sport" WHERE "order"='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 "quer_taro_and_atletico_san_luis" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What competition has June 19, 2004 as the date?". [/INST] SELECT "competition" FROM "quer_taro_and_atletico_san_luis" WHERE "date"='june 19, 2004';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quer_taro_and_atletico_san_luis" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What result has January 21, 2002 as the date?". [/INST] SELECT "result" FROM "quer_taro_and_atletico_san_luis" WHERE "date"='january 21, 2002';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quer_taro_and_atletico_san_luis" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What date has alamodome, san antonio, united states as the venue?". [/INST] SELECT "date" FROM "quer_taro_and_atletico_san_luis" WHERE "venue"='alamodome, san antonio, 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 "quer_taro_and_atletico_san_luis" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?". [/INST] SELECT "date" FROM "quer_taro_and_atletico_san_luis" WHERE "competition"='2006 fifa world cup qualification' AND "venue"='alamodome, san antonio, 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 "all_time_medal_table_1966_2013" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the rank of the nation with more than 0 silver medals and 38 bronze medals?". [/INST] SELECT "rank" FROM "all_time_medal_table_1966_2013" WHERE "silver">0 AND "bronze"=38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_twelve_houses" ( "house" text, "sign" text, "latin_motto" text, "translation" text, "modern_title_of_house" text );. Question: "Which astrological sign has the Latin motto of Vita?". [/INST] SELECT "sign" FROM "the_twelve_houses" WHERE "latin_motto"='vita';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_twelve_houses" ( "house" text, "sign" text, "latin_motto" text, "translation" text, "modern_title_of_house" text );. Question: "What is the translation of the sign of Aquarius?". [/INST] SELECT "translation" FROM "the_twelve_houses" WHERE "sign"='aquarius';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_twelve_houses" ( "house" text, "sign" text, "latin_motto" text, "translation" text, "modern_title_of_house" text );. Question: "Which modern house title translates to prison?". [/INST] SELECT "modern_title_of_house" FROM "the_twelve_houses" WHERE "translation"='prison';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_twelve_houses" ( "house" text, "sign" text, "latin_motto" text, "translation" text, "modern_title_of_house" text );. Question: "What is the Latin motto of the sign that translates to spouse?". [/INST] SELECT "latin_motto" FROM "the_twelve_houses" WHERE "translation"='spouse';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_twelve_houses" ( "house" text, "sign" text, "latin_motto" text, "translation" text, "modern_title_of_house" text );. Question: "What is the modern house title of the 1st house?". [/INST] SELECT "modern_title_of_house" FROM "the_twelve_houses" WHERE "house"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_twelve_houses" ( "house" text, "sign" text, "latin_motto" text, "translation" text, "modern_title_of_house" text );. Question: "Which sign has a modern house title of House of Partnerships?". [/INST] SELECT "sign" FROM "the_twelve_houses" WHERE "modern_title_of_house"='house of partnerships';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "defensive" ( "player" text, "tackles" real, "solo" real, "assts" real, "sacks" real, "int_yards" real, "int_avg" real, "int_td" real, "fum_rec" real, "fum_rec_td" real );. Question: "What is the sum for the int yards that has an assts more than 3, and player Jay Alford?". [/INST] SELECT SUM("int_yards") FROM "defensive" WHERE "assts">3 AND "player"='jay alford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_six" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Time with a Score that is 80-34?". [/INST] SELECT "time" FROM "round_six" WHERE "score"='80-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 "round_six" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Date with a Home that is hamilton wildcats?". [/INST] SELECT "date" FROM "round_six" WHERE "home"='hamilton wildcats';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_six" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Ground with a Date that is 2008-06-20?". [/INST] SELECT "ground" FROM "round_six" WHERE "date"='2008-06-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 "round_six" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Away with a Ground that is humber college lakeshore?". [/INST] SELECT "away" FROM "round_six" WHERE "ground"='humber college lakeshore';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_six" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Time with a Ground that is humber college north?". [/INST] SELECT "time" FROM "round_six" WHERE "ground"='humber college north';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_six" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Away with a Ground that is humber college north?". [/INST] SELECT "away" FROM "round_six" WHERE "ground"='humber college north';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round_num" real, "pick_num" text, "player" text, "position" text, "college" text );. Question: "What is the College with a Round # that is 290?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "round_num"=290;</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.