instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_79912 (
"Name" text,
"Period" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of FA cups Steve Whitwor... | SELECT AVG("FA Cup") FROM table_79912 WHERE "Name" = 'steve whitworth' AND "Total" < '400' |
### Instruction:
CREATE TABLE table_203_163 (
id number,
"year" number,
"total" number,
"serbs" text,
"hungarians" text,
"germans" text,
"romanians" text,
"slovaks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first year t... | SELECT MIN("year") FROM table_203_163 WHERE "romanians" < 51000 |
### Instruction:
CREATE TABLE table_77929 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Home Team while Calgary was visiting ... | SELECT "Home" FROM table_77929 WHERE "Visitor" = 'calgary' AND "Attendance" > '15,655' |
### Instruction:
CREATE TABLE table_66457 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue did the 2000 tiger cup take place at on November 10, 2000?
### Response:
| SELECT "Venue" FROM table_66457 WHERE "Competition" = '2000 tiger cup' AND "Date" = 'november 10, 2000' |
### Instruction:
CREATE TABLE table_23640 (
"County" text,
"Obama %" text,
"Obama #" real,
"McCain %" text,
"McCain #" real,
"Others %" text,
"Others #" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of voters chose McCain in... | SELECT "McCain %" FROM table_23640 WHERE "Others %" = '1.1%' |
### Instruction:
CREATE TABLE table_26487 (
"Year" real,
"Putri Pariwisata Indonesia" text,
"1st Runner Up" text,
"2nd Runner Up" text,
"3rd Runner Up" text,
"4th Runner Up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won 2nd place when r... | SELECT "1st Runner Up" FROM table_26487 WHERE "2nd Runner Up" = 'Ratna Mariana' |
### Instruction:
CREATE TABLE table_72084 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Capital ( exonym )" FROM table_72084 WHERE "Capital ( endonym )" = 'St. John''s' |
### Instruction:
CREATE TABLE TRANSACTIONS (
transaction_id VARCHAR
)
CREATE TABLE Transactions_Lots (
lot_id VARCHAR,
transaction_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the average amount of transactions for different lots, ordered by a... | SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction) |
### Instruction:
CREATE TABLE table_name_24 (
semi_final_heat_host VARCHAR,
national_final_main_host VARCHAR,
national_final_co_host VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the host for the semi final heat, when Terry Wogan was the Nation... | SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = "terry wogan" AND national_final_co_host = "gaby roslin" |
### Instruction:
CREATE TABLE table_45331 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Week, when Opponent is At Chicago Bears, and when Attendanc... | SELECT COUNT("Week") FROM table_45331 WHERE "Opponent" = 'at chicago bears' AND "Attendance" > '49,070' |
### Instruction:
CREATE TABLE table_71404 (
"As of September 1, 2012" text,
"vs. Protoss" text,
"vs. Terran" text,
"vs. Zerg" text,
"vs. all" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value vs. Zerg with a September 1, 2012 best str... | SELECT "vs. Zerg" FROM table_71404 WHERE "As of September 1, 2012" = 'best streak' |
### Instruction:
CREATE TABLE table_204_672 (
id number,
"year" number,
"title" text,
"label" text,
"uk singles chart" number,
"u.s. billboard hot 100 chart" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which single -lrb- s -rrb- had the hig... | SELECT "title" FROM table_204_672 WHERE "uk singles chart" = (SELECT MIN("uk singles chart") FROM table_204_672) |
### Instruction:
CREATE TABLE table_204_516 (
id number,
"date" text,
"opponents" text,
"h / a" text,
"result\nf - a" text,
"scorers" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the difference in score betwee... | SELECT ABS("result\nf - a" - "result\nf - a") FROM table_204_516 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_55305 (
"Year" real,
"Animal" text,
"Artist" text,
"Finish" text,
"Mintage" real,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Red Breasted Nuthatch coins created before 2007 were mint... | SELECT AVG("Mintage") FROM table_55305 WHERE "Animal" = 'red breasted nuthatch' AND "Year" < '2007' |
### Instruction:
CREATE TABLE table_64477 (
"Date" real,
"Doubles, I Class" real,
"Doubles, II Class" real,
"Greater Doubles" real,
"Doubles" real,
"Semidoubles" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Greater Doub... | SELECT AVG("Greater Doubles") FROM table_64477 WHERE "Doubles, II Class" < '17' |
### Instruction:
CREATE TABLE table_20157 (
"Kinship" text,
"Proto-Austronesian" text,
"Proto-Malayo-Polynesian" text,
"Proto-Oceanic" text,
"Proto-Polynesian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the proto-austrronesian for *pine, *p... | SELECT "Proto-Austronesian" FROM table_20157 WHERE "Proto-Oceanic" = '*pine, *papine' |
### Instruction:
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
-- U... | SELECT allergytype FROM allergy_type GROUP BY allergytype ORDER BY COUNT(*) LIMIT 1 |
### Instruction:
CREATE TABLE table_80320 (
"Source" text,
"Dates Administered" text,
"Terry McAuliffe" text,
"Brian Moran" text,
"Creigh Deeds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percentage of Terry McAuliffe that has a Date... | SELECT "Terry McAuliffe" FROM table_80320 WHERE "Dates Administered" = 'may 31 – june 2' |
### Instruction:
CREATE TABLE table_name_50 (
percentage_of_marine_area__foreez_ INTEGER,
ecozone VARCHAR,
percentage_of_total_area__foreez_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest percentage of marine area for Pacific Marine ... | SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = "pacific marine" AND percentage_of_total_area__foreez_ > 3.1 |
### Instruction:
CREATE TABLE table_9990 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Pick, when Nationality is 'United States', when College is 'New Mex... | SELECT MAX("Pick") FROM table_9990 WHERE "Nationality" = 'united states' AND "College" = 'new mexico state' AND "Round" > '6' |
### Instruction:
CREATE TABLE table_204_143 (
id number,
"national park" text,
"region" text,
"land area (km2)" number,
"established" number,
"visitation (2009)" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was t... | SELECT "visitation (2009)" FROM table_204_143 WHERE "national park" = 'hiidenportti' |
### Instruction:
CREATE TABLE table_71622 (
"Rank" text,
"Region" text,
"Total GDP (\u20ac bn )" text,
"% growth" text,
"Per capita" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Region that has a Total GDP ( bn ) of 11,745.353?
### R... | SELECT "Region" FROM table_71622 WHERE "Total GDP (\u20ac bn )" = '€11,745.353' |
### Instruction:
CREATE TABLE table_203_808 (
id number,
"rank" number,
"peak name" text,
"elevation" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many feet separate the 7th and 8th ranked highest peaks ?
#... | SELECT (SELECT "elevation" FROM table_203_808 WHERE "rank" = 7) - (SELECT "elevation" FROM table_203_808 WHERE "rank" = 8) |
### Instruction:
CREATE TABLE table_33052 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Home team's score ... | SELECT "Home team score" FROM table_33052 WHERE "Away team score" = '12.6 (78)' |
### Instruction:
CREATE TABLE table_49236 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Round is greater than 8, when Pick # is greater than 234, and when... | SELECT "Player" FROM table_49236 WHERE "Round" > '8' AND "Pick #" > '234' AND "College" = 'louisville' |
### Instruction:
CREATE TABLE table_64827 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many golds have a bronze greater than 1, a silver greater than 1, with ... | SELECT COUNT("Gold") FROM table_64827 WHERE "Bronze" > '1' AND "Silver" > '1' AND "Rank" = 'total' |
### Instruction:
CREATE TABLE table_5219 (
"Variant id" text,
"5\u2019UTR splice" text,
"Coding" text,
"3\u2019UTR sequence" text,
"GenBank id" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Variant id has the GenBank id of nm_005411.4?
### ... | SELECT "Variant id" FROM table_5219 WHERE "GenBank id" = 'nm_005411.4' |
### Instruction:
CREATE TABLE table_40682 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of rank when silver is more than 1, gold is 2, and total ... | SELECT SUM("Rank") FROM table_40682 WHERE "Silver" > '1' AND "Gold" = '2' AND "Total" > '4' |
### Instruction:
CREATE TABLE table_28791 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT "U.S. viewers (millions)" FROM table_28791 WHERE "Title" = 'The Last Word' |
### Instruction:
CREATE TABLE table_27437 (
"City" text,
"Population" real,
"Registered voters" text,
"Democratic" text,
"Republican" text,
"D\u2013R spread" text,
"Other" text,
"No party preference" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "City" FROM table_27437 WHERE "Democratic" = '42.5%' |
### Instruction:
CREATE TABLE Visits_Restaurant (
Id VARCHAR
)
CREATE TABLE Restaurant (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in... | SELECT Restaurant.ResName, SUM(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY SUM(Visits_Restaurant.Spent) LIMIT 1 |
### Instruction:
CREATE TABLE table_23738 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real,
"Others%" text,
"Others#" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most abama number fo... | SELECT MAX("Obama#") FROM table_23738 WHERE "McCain#" = '29266' |
### Instruction:
CREATE TABLE table_68377 (
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who attended the school in 2007, that Kiara Spivey attended in 2008?
### Respons... | SELECT "2007" FROM table_68377 WHERE "2008" = 'kiara spivey' |
### Instruction:
CREATE TABLE table_204_353 (
id number,
"no." number,
"date/time" text,
"aircraft" text,
"foe" text,
"result" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date after number 4 ... | SELECT "date/time" FROM table_204_353 WHERE id > (SELECT id FROM table_204_353 WHERE "no." = 4) ORDER BY id LIMIT 1 |
### Instruction:
CREATE TABLE table_27088 (
"Rank" text,
"Player" text,
"Nationality" text,
"Team" text,
"Opponent" text,
"Score" text,
"Competition" text,
"Vote percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the playe... | SELECT "Player" FROM table_27088 WHERE "Nationality" = 'Netherlands' AND "Team" = 'Netherlands' |
### Instruction:
CREATE TABLE table_29415 (
"Pronoun" text,
"Present" text,
"1st" text,
"2nd" text,
"perfect" text,
"aorist" text,
"imperfect" text,
"pluperfect" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pronoun when bud... | SELECT "Pronoun" FROM table_29415 WHERE "2nd" = 'budemo mogli/le' |
### Instruction:
CREATE TABLE table_42074 (
"Category" text,
"Frequency" text,
"White" text,
"Brown" text,
"Black" text,
"Amerindian" text,
"Yellow" text,
"Total" text,
"difference between White and Black" real
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "White" FROM table_42074 WHERE "Black" = '38,05%' |
### Instruction:
CREATE TABLE table_8131 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the Game on January 20 with Visitor Toronto Maple Leafs with a Score of ... | SELECT "Record" FROM table_8131 WHERE "Score" = '3–1' AND "Visitor" = 'toronto maple leafs' AND "Date" = 'january 20' |
### Instruction:
CREATE TABLE table_204_227 (
id number,
"week" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team is the next opponent following the first lo... | SELECT "opponent" FROM table_204_227 WHERE id = (SELECT id FROM table_204_227 WHERE "result" = loss ORDER BY id LIMIT 1) + 1 |
### Instruction:
CREATE TABLE table_17611 (
"Week" real,
"Craigs vote" text,
"Arlenes vote" text,
"Brunos vote" text,
"Lens vote" text,
"Safe" text,
"Eliminated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of brun... | SELECT COUNT("Brunos vote") FROM table_17611 WHERE "Eliminated" = 'Willie and Erin' |
### Instruction:
CREATE TABLE table_55405 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest gold with a total of 4 and less than 2 silver for liechte... | SELECT MIN("Gold") FROM table_55405 WHERE "Total" = '4' AND "Nation" = 'liechtenstein' AND "Silver" < '2' |
### Instruction:
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director |
### Instruction:
CREATE TABLE table_31331 (
"Manufacturer" text,
"Model" text,
"Intro Date" text,
"Interface" text,
"OS" text,
"Price (USD)" real,
"Price" text,
"Throughput" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the intr... | SELECT "Intro Date" FROM table_31331 WHERE "Throughput" = '16 Mbit/s' |
### Instruction:
CREATE TABLE table_30012 (
"Season" real,
"Driver" text,
"Owner" text,
"No." real,
"Manufacturer" text,
"Starts" text,
"Wins" real,
"Top Tens" real,
"Poles" real,
"Points (margin)" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Manufacturer" FROM table_30012 WHERE "No." = '50' |
### Instruction:
CREATE TABLE table_38780 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Highest smaller than 3,378, and a Stadium of cappielow has what ave... | SELECT AVG("Capacity") FROM table_38780 WHERE "Highest" < '3,378' AND "Stadium" = 'cappielow' |
### Instruction:
CREATE TABLE table_204_297 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team -lrb- s -rrb- have the least amount o... | SELECT "nation" FROM table_204_297 WHERE "silver" = (SELECT MIN("silver") FROM table_204_297) |
### Instruction:
CREATE TABLE table_train_247 (
"id" int,
"mini_mental_state_examination_mmse" int,
"creatinine_consistently" float,
"creatinine_clearance_cl" float,
"seizure_disorder" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT * FROM table_train_247 WHERE age >= 30 AND age <= 80 |
### Instruction:
CREATE TABLE table_52988 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue has a score of 14.15... | SELECT "Venue" FROM table_52988 WHERE "Away team score" = '14.15 (99)' |
### Instruction:
CREATE TABLE table_64780 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the constituency number ... | SELECT "Constituency number" FROM table_64780 WHERE "Reserved for ( SC / ST /None)" = 'none' AND "District" = 'seoni' |
### Instruction:
CREATE TABLE table_70578 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the top-25 with wins less than 1 and event... | SELECT SUM("Top-25") FROM table_70578 WHERE "Wins" < '1' AND "Events" = '12' |
### Instruction:
CREATE TABLE table_54780 (
"Rank" real,
"Club" text,
"Gold" real,
"Big Silver" real,
"Small Silver" real,
"Bronze" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For clubs that have 0 gold and less than 5 poin... | SELECT AVG("Bronze") FROM table_54780 WHERE "Points" < '5' AND "Gold" < '0' |
### Instruction:
CREATE TABLE table_2788 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "High rebounds" FROM table_2788 WHERE "Record" = '27-54' |
### Instruction:
CREATE TABLE table_18767 (
"Rank" real,
"Place" text,
"County" text,
"Per Capita Income" text,
"Median House- hold Income" text,
"Population" real,
"Number of Households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what i... | SELECT MAX("Rank") FROM table_18767 WHERE "Per Capita Income" = '$17,013' |
### Instruction:
CREATE TABLE table_8125 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Tournament of national jewish hospital open, an... | SELECT "Date" FROM table_8125 WHERE "Tournament" = 'national jewish hospital open' AND "Runner(s)-up" = 'pat bradley' |
### Instruction:
CREATE TABLE table_20409 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date of winning sco... | SELECT "Date" FROM table_20409 WHERE "Winning score" = '67-67-63=197' |
### Instruction:
CREATE TABLE table_33670 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ON WHAT DATE DID THE HOME TEAM ... | SELECT "Date" FROM table_33670 WHERE "Home team score" = '12.16 (88)' |
### Instruction:
CREATE TABLE table_16047 (
"\u2193 Function / Genus \u2192" text,
"Shigella" text,
"Salmonella" text,
"Yersinia" text,
"Escherichia" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the function / genus with shigella being spa3... | SELECT "\u2193 Function / Genus \u2192" FROM table_16047 WHERE "Shigella" = 'Spa32' |
### Instruction:
CREATE TABLE table_54577 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How large is the crowd with an ... | SELECT COUNT("Crowd") FROM table_54577 WHERE "Away team score" = '7.13 (55)' |
### Instruction:
CREATE TABLE table_79458 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" real,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest production number released on 1955-04-02 with i. fr... | SELECT MAX("Production Number") FROM table_79458 WHERE "Director" = 'i. freleng' AND "Release date" = '1955-04-02' |
### Instruction:
CREATE TABLE table_43002 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Time" text,
"Jockey" text,
"Winner/2nd" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Distance" FROM table_43002 WHERE "Venue" = 'sale' |
### Instruction:
CREATE TABLE table_23023 (
"Country" text,
"Total Drivers" real,
"Champions" real,
"Championships" real,
"Current March 20, 2010" real,
"First driver(s)" text,
"Last/Current driver(s) March 20, 2010" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT MIN("Championships") FROM table_23023 |
### Instruction:
CREATE TABLE table_2283 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who direc... | SELECT "Directed by" FROM table_2283 WHERE "Original air date" = 'July15,2012' |
### Instruction:
CREATE TABLE table_train_67 (
"id" int,
"corticosteroid_therapy" bool,
"viral_infection" bool,
"active_infection" bool,
"hiv_infection" bool,
"neutropenia" int,
"receiving_prednisolone" int,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following q... | SELECT * FROM table_train_67 WHERE hiv_infection = 1 |
### Instruction:
CREATE TABLE table_27958 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mea... | SELECT "meas. num." FROM table_27958 WHERE "description" = 'Obscenity and sexual conduct bill' |
### Instruction:
CREATE TABLE table_38517 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Winning score of 14 (66-64-68-68=266)?
### R... | SELECT "Date" FROM table_38517 WHERE "Winning score" = '–14 (66-64-68-68=266)' |
### Instruction:
CREATE TABLE table_10651 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the least amount of laps that George Eaton completed that has a time/retire... | SELECT MIN("Laps") FROM table_10651 WHERE "Time/Retired" = 'engine' AND "Grid" > '8' AND "Driver" = 'george eaton' |
### Instruction:
CREATE TABLE catalog_structure (
catalog_level_name VARCHAR,
catalog_level_number VARCHAR
)
CREATE TABLE catalog_contents (
catalog_level_number VARCHAR,
price_in_dollars VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the le... | SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 |
### Instruction:
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T1.name = 'DVD drive' |
### Instruction:
CREATE TABLE table_17865 (
"Constituency" text,
"Electorate" real,
"s Spoilt vote" real,
"Total poll (%)" text,
"For (%)" text,
"Against (%)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all total poll percentages when th... | SELECT "Total poll (%)" FROM table_17865 WHERE "For (%)" = '59,532 (54)' |
### Instruction:
CREATE TABLE table_31960 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the average bronze for total of 19 and silver of 8 with rank of 31
... | SELECT AVG("Bronze") FROM table_31960 WHERE "Total" = '19' AND "Silver" = '8' AND "Rank" = '31' |
### Instruction:
CREATE TABLE table_name_83 (
gross_revenue__1986_ VARCHAR,
tickets_sold___available VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)?
### Resp... | SELECT gross_revenue__1986_ FROM table_name_83 WHERE tickets_sold___available = "24,000 / 24,000 (100%)" |
### Instruction:
CREATE TABLE table_78208 (
"Date(s) conducted" text,
"Polling organisation/client" text,
"Cons" text,
"Plaid Cymru" text,
"Lib Dem" text,
"Others" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the others f... | SELECT "Others" FROM table_78208 WHERE "Cons" = '21%' AND "Lead" = '24%' |
### Instruction:
CREATE TABLE table_77691 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team played against ... | SELECT "Home team" FROM table_77691 WHERE "Away team score" = '13.19 (97)' |
### Instruction:
CREATE TABLE table_35206 (
"Date" text,
"Event" text,
"Location" text,
"Attendance" text,
"PPV Buyrate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was t... | SELECT "PPV Buyrate" FROM table_35206 WHERE "Date" = 'september 10' AND "Event" = 'strikeforce: heavyweight grand prix semifinals' |
### Instruction:
CREATE TABLE table_38484 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" real,
"Best" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?
### Res... | SELECT "Qual 1" FROM table_38484 WHERE "Best" < '58.669' AND "Qual 2" < '57.897' |
### Instruction:
CREATE TABLE table_22222 (
"Enzyme" text,
"Location" text,
"Substrate" text,
"Product" text,
"Chromosome" text,
"EC" text,
"OMIM" real,
"Porphyria" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the subtrate for ... | SELECT "Substrate" FROM table_22222 WHERE "Enzyme" = 'ALA dehydratase' |
### Instruction:
CREATE TABLE table_21234 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Location Attendance" FROM table_21234 WHERE "Date" = 'November 21' |
### Instruction:
CREATE TABLE people (
People_ID VARCHAR
)
CREATE TABLE employment (
People_ID VARCHAR,
Company_ID VARCHAR
)
CREATE TABLE company (
Name VARCHAR,
Company_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the names of compan... | SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name |
### Instruction:
CREATE TABLE table_6788 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Total" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for Report he... | SELECT "Report" FROM table_6788 WHERE "Set 1" = '19–25' |
### Instruction:
CREATE TABLE table_46316 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the match th... | SELECT "Res." FROM table_46316 WHERE "Round" = '1' AND "Time" = '2:48' |
### Instruction:
CREATE TABLE table_29741 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Score") FROM table_29741 WHERE "High assists" = 'Terrence Williams (9)' |
### Instruction:
CREATE TABLE table_53575 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Tyre" FROM table_53575 WHERE "Fastest lap" = 'paul russo' |
### Instruction:
CREATE TABLE table_15247 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score in a 2002 fifa world cup qualification that wa... | SELECT "Result" FROM table_15247 WHERE "Competition" = '2002 fifa world cup qualification' AND "Goal" < '10' |
### Instruction:
CREATE TABLE table_58688 (
"Stage" text,
"Winner" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What gene... | SELECT "General classification" FROM table_58688 WHERE "Mountains classification" = 'david de la fuente' AND "Points classification" = 'thor hushovd' |
### Instruction:
CREATE TABLE table_32680 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the crowd with an Away ... | SELECT AVG("Crowd") FROM table_32680 WHERE "Away team score" = '8.11 (59)' |
### Instruction:
CREATE TABLE table_36839 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bats have Throws of r, and a DOB of 22 may 1973?
### Response:... | SELECT "Bats" FROM table_36839 WHERE "Throws" = 'r' AND "D.O.B." = '22 may 1973' |
### Instruction:
CREATE TABLE table_204_89 (
id number,
"team" text,
"truck(s)" text,
"#" number,
"driver(s)" text,
"primary sponsor(s)" text,
"listed owner(s)" text,
"crew chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many p... | SELECT COUNT("driver(s)") FROM table_204_89 WHERE "truck(s)" <> 'chevrolet silverado' |
### Instruction:
CREATE TABLE table_73653 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Ho... | SELECT "U.S. viewers (million)" FROM table_73653 WHERE "Title" = 'Company Man' |
### Instruction:
CREATE TABLE table_53852 (
"Rank" real,
"Date" text,
"Stadium" text,
"Opponent" text,
"Competition" text,
"Score Scotland's score is shown first." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Scotland's score at the r... | SELECT "Score Scotland's score is shown first." FROM table_53852 WHERE "Competition" = 'bhc' AND "Rank" = '3' |
### Instruction:
CREATE TABLE table_35422 (
"Name" text,
"Innhabitants" real,
"Area" real,
"Mayor" text,
"Party" text,
"Municipal code" real,
"Language form" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Municipal code of the FRP... | SELECT SUM("Municipal code") FROM table_35422 WHERE "Party" = 'frp' AND "Area" = '100' |
### Instruction:
CREATE TABLE table_75702 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Byes have Against of 1076 and Wins smaller than 13?
### Re... | SELECT AVG("Byes") FROM table_75702 WHERE "Against" = '1076' AND "Wins" < '13' |
### Instruction:
CREATE TABLE table_43094 (
"Week" real,
"Date" text,
"Opponent" text,
"Time" text,
"Game Site" text,
"Result/Score" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result/sc... | SELECT "Result/Score" FROM table_43094 WHERE "Match Report" = 'recap' AND "Week" = '14' |
### Instruction:
CREATE TABLE table_73028 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Time Frame" text,
"Starring Actors" text,
"Theme Song(s)" text,
"Episodes" real,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Average Ratings" FROM table_73028 WHERE "TV Station" = 'TV Asahi' |
### Instruction:
CREATE TABLE table_13462 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" text,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Japanese Title of the Episode on NTV Station wit... | SELECT "Japanese Title" FROM table_13462 WHERE "TV Station" = 'ntv' AND "Romaji Title" = 'kuitan 2' |
### Instruction:
CREATE TABLE table_31337 (
"Constituency No." real,
"Vidhan Sabha Constituency" text,
"Reservation for SC/ST" text,
"District" text,
"Lok Sabha" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many were in the Kargahar (vidhan sa... | SELECT MIN("Constituency No.") FROM table_31337 WHERE "Vidhan Sabha Constituency" = 'Kargahar (Vidhan Sabha constituency)' |
### Instruction:
CREATE TABLE table_9108 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT AVG("Wins") FROM table_9108 WHERE "Goals against" < '10' |
### Instruction:
CREATE TABLE table_46765 (
"Name" text,
"Seasons" real,
"Matches" real,
"Win %" text,
"Draw" real,
"Draw %" text,
"Lose" real,
"Lose %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of matches... | SELECT AVG("Matches") FROM table_46765 WHERE "Name" = 'leonardo' AND "Seasons" > '1' |
### Instruction:
CREATE TABLE table_60609 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Census Ranking has an Area km 2 larger than 753.06, and an Of... | SELECT "Census Ranking" FROM table_60609 WHERE "Area km 2" > '753.06' AND "Official Name" = 'stanley' |
### Instruction:
CREATE TABLE table_204_307 (
id number,
"year" number,
"english title" text,
"chinese title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was alec su in more films in 2009 or 2011 ?
### Response:
| SELECT "year" FROM table_204_307 WHERE "year" IN (2009, 2011) GROUP BY "year" ORDER BY COUNT("english title") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_48672 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Record" FROM table_48672 WHERE "High rebounds" = 'marc gasol (8)' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.