instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_33676 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on October 29, 1989?
### Response:
|
SELECT "Result" FROM table_33676 WHERE "Date" = 'october 29, 1989'
|
### Instruction:
CREATE TABLE table_204_211 (
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.
-- what is the number of silver medals awarded to argentina ?
### Response:
|
SELECT "silver" FROM table_204_211 WHERE "nation" = 'argentina'
|
### Instruction:
CREATE TABLE table_9547 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was the opponent for the game played on December 19, 1999?
### Response:
|
SELECT "Opponent" FROM table_9547 WHERE "Date" = 'december 19, 1999'
|
### Instruction:
CREATE TABLE table_392 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Musical guest and song" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of the Series 1 episode?
### Response:
|
SELECT "Directed by" FROM table_392 WHERE "Series #" = '1'
|
### Instruction:
CREATE TABLE table_2700 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did M. Gounder win for Party A?
### Response:
|
SELECT COUNT("Party a") FROM table_2700 WHERE "Winner" = 'M. Gounder'
|
### Instruction:
CREATE TABLE table_10477224_1 (
sepal_length VARCHAR,
sepal_width VARCHAR,
petal_length VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sepal length for sepal width of 2.8 and petal length of 5.1
### Response:
|
SELECT sepal_length FROM table_10477224_1 WHERE sepal_width = "2.8" AND petal_length = "5.1"
|
### Instruction:
CREATE TABLE table_46633 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ergative for the genitive tkven(s)?
### Response:
|
SELECT "Ergative" FROM table_46633 WHERE "Genitive" = 'tkven(s)'
|
### Instruction:
CREATE TABLE table_38359 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year associated with 0 wins and 42 points?
### Response:
|
SELECT MIN("Year") FROM table_38359 WHERE "Wins" > '0' AND "Points" = '42'
|
### Instruction:
CREATE TABLE table_18067 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes have been directed by David Duchovny?
### Response:
|
SELECT COUNT("Title") FROM table_18067 WHERE "Directed by" = 'David Duchovny'
|
### Instruction:
CREATE TABLE table_39938 (
"singular" text,
"singular gender" text,
"plural" text,
"plural gender" text,
"meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the plural if the meaning is python and the plural gender is n?
### Response:
|
SELECT "plural" FROM table_39938 WHERE "plural gender" = 'n' AND "meaning" = 'python'
|
### Instruction:
CREATE TABLE table_203_475 (
id number,
"stage" number,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country had more stage winners than any other country ?
### Response:
|
SELECT "winner" FROM table_203_475 GROUP BY "winner" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_32 (
result VARCHAR,
competition VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?
### Response:
|
SELECT result FROM table_name_32 WHERE competition = "2006 fifa world cup qualifier" AND venue = "warner park sporting complex, bassaterre"
|
### Instruction:
CREATE TABLE table_63543 (
"Children of Earth" text,
"Run time" text,
"Writer" text,
"Director" text,
"Original airdate" text,
"Viewers (including HD) in millions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the writer of Children of Earth of 'day four'?
### Response:
|
SELECT "Writer" FROM table_63543 WHERE "Children of Earth" = 'day four'
|
### Instruction:
CREATE TABLE table_19303 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent in the Ohio 16 district?
### Response:
|
SELECT "Incumbent" FROM table_19303 WHERE "District" = 'Ohio 16'
|
### Instruction:
CREATE TABLE table_18675 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the candidates with dbeingtrict being kansas 5
### Response:
|
SELECT "Candidates" FROM table_18675 WHERE "District" = 'Kansas 5'
|
### Instruction:
CREATE TABLE table_8038 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the opponents in the game that ended in a score of 116-106?
### Response:
|
SELECT "Opponent" FROM table_8038 WHERE "Score" = '116-106'
|
### Instruction:
CREATE TABLE table_42489 (
"English" text,
"German" text,
"Dutch" text,
"Icelandic" text,
"Latin" text,
"Greek" text,
"Russian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Russian word for the Greek word greek?
### Response:
|
SELECT "Russian" FROM table_42489 WHERE "Greek" = 'greek'
|
### Instruction:
CREATE TABLE table_22574 (
"Episode #" real,
"Air date" text,
"Team 1" text,
"Players left after Round 1" text,
"Team 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was team 1 when the chalkheads were team 2?
### Response:
|
SELECT "Team 1" FROM table_22574 WHERE "Team 2" = 'Chalkheads'
|
### Instruction:
CREATE TABLE table_5549 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tournament on 22 October 2012?
### Response:
|
SELECT "Tournament" FROM table_5549 WHERE "Date" = '22 october 2012'
|
### Instruction:
CREATE TABLE table_79063 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent for game 75?
### Response:
|
SELECT "Opponent" FROM table_79063 WHERE "Game" = '75'
|
### Instruction:
CREATE TABLE table_50888 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was picked before 149 in round 9?
### Response:
|
SELECT "Player" FROM table_50888 WHERE "Pick" < '149' AND "Round" = '9'
|
### Instruction:
CREATE TABLE table_42399 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest draw number for the song ranked 6th with more than 43 points?
### Response:
|
SELECT MIN("Draw") FROM table_42399 WHERE "Points" > '43' AND "Rank" = '6th'
|
### Instruction:
CREATE TABLE table_204_593 (
id number,
"year" text,
"chairperson" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who served after maturi ramaro ?
### Response:
|
SELECT "chairperson" FROM table_204_593 WHERE "year" > (SELECT "year" FROM table_204_593 WHERE "chairperson" = 'maturiramarao') ORDER BY "year" LIMIT 1
|
### Instruction:
CREATE TABLE table_name_49 (
bumping_blocking VARCHAR,
ankle_tap VARCHAR,
steal_intercept_ball VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
### Response:
|
SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes"
|
### Instruction:
CREATE TABLE table_24356 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 2005 is the date/year how many measurements of attendance are there?
### Response:
|
SELECT COUNT("Attendance") FROM table_24356 WHERE "Date/Year" = '2005'
|
### Instruction:
CREATE TABLE table_204_596 (
id number,
"year" number,
"winners" text,
"score" text,
"runners up" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the difference in the scores for the game in 1955 .
### Response:
|
SELECT ABS("score" - "score") FROM table_204_596 WHERE "year" = 1955
|
### Instruction:
CREATE TABLE table_21082 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every year named for the latitude of 66.5N?
### Response:
|
SELECT "Year named" FROM table_21082 WHERE "Latitude" = '66.5N'
|
### Instruction:
CREATE TABLE table_74271 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of Christian Lefebvre?
### Response:
|
SELECT "Nationality" FROM table_74271 WHERE "Player" = 'Christian Lefebvre'
|
### Instruction:
CREATE TABLE table_15682 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chassis did team lotus use after 1964?
### Response:
|
SELECT "Chassis" FROM table_15682 WHERE "Entrant" = 'team lotus' AND "Year" > '1964'
|
### Instruction:
CREATE TABLE table_1136 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of weeks for at cleveland browns
### Response:
|
SELECT COUNT("Week") FROM table_1136 WHERE "Opponent" = 'at Cleveland Browns'
|
### Instruction:
CREATE TABLE table_19816 (
"Ido" text,
"English" text,
"Italian" text,
"French" text,
"German" text,
"Russian" text,
"Spanish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Spanish word for the French word filtrer?
### Response:
|
SELECT "Spanish" FROM table_19816 WHERE "French" = 'filtrer'
|
### Instruction:
CREATE TABLE table_64025 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the venue on 17/02/2008?
### Response:
|
SELECT "Venue" FROM table_64025 WHERE "Date" = '17/02/2008'
|
### Instruction:
CREATE TABLE table_49222 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Length (m) of the Koppenberg course?
### Response:
|
SELECT "Length (m)" FROM table_49222 WHERE "Name" = 'koppenberg'
|
### Instruction:
CREATE TABLE table_23912 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Accreditation" text,
"Founded" real,
"Enrollment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the control for Christopher Newport University?
### Response:
|
SELECT "Control" FROM table_23912 WHERE "School" = 'Christopher Newport University'
|
### Instruction:
CREATE TABLE table_10710364_2 (
sex_ratio__child_ INTEGER,
work_participation___percentage_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest child sex ratio in groups where employment is 31.3%?
### Response:
|
SELECT MIN(sex_ratio__child_) FROM table_10710364_2 WHERE work_participation___percentage_ = "31.3%"
|
### Instruction:
CREATE TABLE table_16508 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hand for 4 credits is 1600?
### Response:
|
SELECT "Hand" FROM table_16508 WHERE "4 credits" = '1600'
|
### Instruction:
CREATE TABLE table_204_743 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of drivers on the list ?
### Response:
|
SELECT COUNT("driver") FROM table_204_743
|
### Instruction:
CREATE TABLE table_22110 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the results of incumbent dave weldon?
### Response:
|
SELECT COUNT("Results") FROM table_22110 WHERE "Incumbent" = 'Dave Weldon'
|
### Instruction:
CREATE TABLE table_80356 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition had a 4-1 result, and a score of 4-1?
### Response:
|
SELECT "Competition" FROM table_80356 WHERE "Result" = '4-1' AND "Score" = '4-1'
|
### Instruction:
CREATE TABLE table_71251 (
"Romanized name" text,
"Name in Hangul" text,
"Name in Hanja" text,
"Gender" text,
"Birth year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What gender has Romanized name and kim yoon-yeong?
### Response:
|
SELECT "Gender" FROM table_71251 WHERE "Romanized name" = 'kim yoon-yeong'
|
### Instruction:
CREATE TABLE table_30312 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played mens doubles for the 1999 kobe tour?
### Response:
|
SELECT "Mens Doubles" FROM table_30312 WHERE "Year Location" = '1999 Kobe'
|
### Instruction:
CREATE TABLE table_1246 (
"No. in season" real,
"No. disc" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date for the episode directed by Peter Woeste?
### Response:
|
SELECT "Original air date" FROM table_1246 WHERE "Directed by" = 'Peter Woeste'
|
### Instruction:
CREATE TABLE table_9616 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was the opponent when the round was sf?
### Response:
|
SELECT "Opponent" FROM table_9616 WHERE "Round" = 'sf'
|
### Instruction:
CREATE TABLE table_61589 (
"Province, Community" text,
"Contestant" text,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is niurbi encarnaci n ynoa's height?
### Response:
|
SELECT "Height" FROM table_61589 WHERE "Contestant" = 'niurbi encarnación ynoa'
|
### Instruction:
CREATE TABLE table_203_759 (
id number,
"year" number,
"company" text,
"number of members affected" number,
"duration of strike" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many strikes had above 200,000 members affected ?
### Response:
|
SELECT COUNT(*) FROM table_203_759 WHERE "number of members affected" > 200000
|
### Instruction:
CREATE TABLE table_25277 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the party a for sriperumbudur
### Response:
|
SELECT "Party a" FROM table_25277 WHERE "Constituency" = 'Sriperumbudur'
|
### Instruction:
CREATE TABLE table_21711 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of the word who's second participle is laug?
### Response:
|
SELECT "Class" FROM table_21711 WHERE "Part 2" = 'laug'
|
### Instruction:
CREATE TABLE table_name_90 (
gzip VARCHAR,
lha_lzh VARCHAR,
stuffit VARCHAR,
bzip2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?
### Response:
|
SELECT gzip FROM table_name_90 WHERE stuffit = "no" AND bzip2 = "no" AND lha_lzh = "no"
|
### Instruction:
CREATE TABLE table_name_49 (
state VARCHAR,
city VARCHAR,
aam_accredited VARCHAR,
astc_member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?
### Response:
|
SELECT state FROM table_name_49 WHERE aam_accredited = "no" AND astc_member = "no" AND city = "tulsa"
|
### Instruction:
CREATE TABLE table_30295 (
"Vessel" text,
"Built" real,
"Max Speed" text,
"Length" text,
"Breadth" text,
"Flag" text,
"Propulsion" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the propulsion when the vessel is marianarray?
### Response:
|
SELECT "Propulsion" FROM table_30295 WHERE "Vessel" = 'Marianarray'
|
### Instruction:
CREATE TABLE table_204_761 (
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.
-- what is the number of gold medals won by japan ?
### Response:
|
SELECT "gold" FROM table_204_761 WHERE "nation" = 'japan'
|
### Instruction:
CREATE TABLE table_55293 (
"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.
-- What was the winning score when Damien McGrane was runner-up?
### Response:
|
SELECT "Winning score" FROM table_55293 WHERE "Runner(s)-up" = 'damien mcgrane'
|
### Instruction:
CREATE TABLE table_42682 (
"Frequency" text,
"Call sign" text,
"Format" text,
"Owner" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Format of the French Frequency with a Call sign of CKRL-FM?
### Response:
|
SELECT "Format" FROM table_42682 WHERE "Notes" = 'french' AND "Call sign" = 'ckrl-fm'
|
### Instruction:
CREATE TABLE table_25901 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the directed by season # 2
### Response:
|
SELECT "Directed by" FROM table_25901 WHERE "Season #" = '2'
|
### Instruction:
CREATE TABLE table_77649 (
"Team" text,
"Home city" text,
"Stadium" text,
"Capacity" real,
"2011\u201312 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home city for angelo massimino stadium?
### Response:
|
SELECT "Home city" FROM table_77649 WHERE "Stadium" = 'angelo massimino'
|
### Instruction:
CREATE TABLE table_204_170 (
id number,
"player" text,
"position" text,
"games\nstarted" text,
"hometown" text,
"height" text,
"weight" number,
"age" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who weighed the most ?
### Response:
|
SELECT "player" FROM table_204_170 ORDER BY "weight" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_22935 (
"Tie no" real,
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tie when team 2 is koper?
### Response:
|
SELECT MIN("Tie no") FROM table_22935 WHERE "Team 2" = 'Koper'
|
### Instruction:
CREATE TABLE table_77225 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Call Sign, when ERP W is greater than 50?
### Response:
|
SELECT "Call sign" FROM table_77225 WHERE "ERP W" > '50'
|
### Instruction:
CREATE TABLE table_13512105_3 (
winning_team VARCHAR,
winning_driver VARCHAR,
fastest_lap VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which brand have drivers who won with the names of ryan briscoe and tomas scheckter
### Response:
|
SELECT winning_team FROM table_13512105_3 WHERE winning_driver = "Ryan Briscoe" AND fastest_lap = "Tomas Scheckter"
|
### Instruction:
CREATE TABLE table_203_359 (
id number,
"outcome" text,
"year" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many consecutive years was there a hard surface at the championship ?
### Response:
|
SELECT COUNT("year") FROM table_203_359 WHERE "surface" = 'hard'
|
### Instruction:
CREATE TABLE table_204_261 (
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 nation ranked in first with the most amount of total medals ?
### Response:
|
SELECT "nation" FROM table_204_261 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_41436 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Event, when Date is August 20-August 27?
### Response:
|
SELECT "Event" FROM table_41436 WHERE "Date" = 'august 20-august 27'
|
### Instruction:
CREATE TABLE table_65631 (
"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.
-- How many constituents does udaipura have?
### Response:
|
SELECT "Constituency number" FROM table_65631 WHERE "Name" = 'udaipura'
|
### Instruction:
CREATE TABLE table_56085 (
"Character" text,
"Position" text,
"Actor" text,
"First Episode" text,
"Final Episode" text,
"Episodes Credited" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final episode credited of 187?
### Response:
|
SELECT "Final Episode" FROM table_56085 WHERE "Episodes Credited" = '187'
|
### Instruction:
CREATE TABLE table_36936 (
"Channel" real,
"Station" text,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Programming" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the video associated with a short name of KSTCDT2?
### Response:
|
SELECT "Video" FROM table_36936 WHERE "PSIP Short Name" = 'kstcdt2'
|
### Instruction:
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- number of candidates selected after 2000
### Response:
|
SELECT SUM("candidates elected") FROM table_203_330 WHERE "year of election" > 2000
|
### Instruction:
CREATE TABLE table_12879 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total for the Player who won in 1936?
### Response:
|
SELECT COUNT("Total") FROM table_12879 WHERE "Year(s) won" = '1936'
|
### Instruction:
CREATE TABLE table_43692 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of player chi-chi rodr guez, who has an e to par?
### Response:
|
SELECT "Country" FROM table_43692 WHERE "To par" = 'e' AND "Player" = 'chi-chi rodríguez'
|
### Instruction:
CREATE TABLE table_name_84 (
laps INTEGER,
grid VARCHAR,
time_retired VARCHAR,
manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of laps with an accident time/retired, aprilia manufacturer and a grid of 27?
### Response:
|
SELECT AVG(laps) FROM table_name_84 WHERE time_retired = "accident" AND manufacturer = "aprilia" AND grid = 27
|
### Instruction:
CREATE TABLE table_59884 (
"Pianist" text,
"Conductor" text,
"Record Company" text,
"Year of Recording" real,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year that a record was recorded with Libor Pesek as conductor?
### Response:
|
SELECT SUM("Year of Recording") FROM table_59884 WHERE "Conductor" = 'libor pesek'
|
### Instruction:
CREATE TABLE table_64913 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the duration of the Archers with Norman Painting as an actor?
### Response:
|
SELECT "Duration" FROM table_64913 WHERE "Soap Opera" = 'the archers' AND "Actor" = 'norman painting'
|
### Instruction:
CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does cerritos or la palma rank higher ?
### Response:
|
SELECT "city" FROM table_204_190 WHERE "city" IN ('cerritos', 'la palma') ORDER BY "rank" LIMIT 1
|
### Instruction:
CREATE TABLE table_30725 (
"Team" text,
"Head Coach" text,
"Years at School" real,
"Overall Record" text,
"Record at School" text,
"ACC Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record in the atlantic coast conference for the Miami team?
### Response:
|
SELECT "ACC Record" FROM table_30725 WHERE "Team" = 'Miami'
|
### Instruction:
CREATE TABLE table_25898 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode 'Woman'?
### Response:
|
SELECT "Directed by" FROM table_25898 WHERE "Title" = 'Woman'
|
### Instruction:
CREATE TABLE table_6908 (
"Name" text,
"Years" text,
"Tests" real,
"Drew" real,
"Lost" real,
"Win percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Win percentage where there were 5 lost and 0 is drew?
### Response:
|
SELECT "Win percentage" FROM table_6908 WHERE "Lost" = '5' AND "Drew" = '0'
|
### Instruction:
CREATE TABLE table_58711 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To par, when Country is 'United States', and when Player is 'Mark Brooks'?
### Response:
|
SELECT "To par" FROM table_58711 WHERE "Country" = 'united states' AND "Player" = 'mark brooks'
|
### Instruction:
CREATE TABLE table_37348 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did they play when dickey (0-1) recorded the loss?
### Response:
|
SELECT "Opponent" FROM table_37348 WHERE "Loss" = 'dickey (0-1)'
|
### Instruction:
CREATE TABLE table_204_886 (
id number,
"rank" number,
"swimmer" text,
"country" text,
"time" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many mexican swimmers ranked in the top 10 ?
### Response:
|
SELECT COUNT("swimmer") FROM table_204_886 WHERE "country" = 'mexico' AND "rank" <= 10
|
### Instruction:
CREATE TABLE table_2410 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 24:31 is the run time how many millions of viewers are there?
### Response:
|
SELECT "Viewers (in millions)" FROM table_2410 WHERE "Run time" = '24:31'
|
### Instruction:
CREATE TABLE table_50520 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With chem-s as the dative, what is the ergative?
### Response:
|
SELECT "Ergative" FROM table_50520 WHERE "Dative" = 'chem-s'
|
### Instruction:
CREATE TABLE table_name_37 (
lner_class VARCHAR,
passed_to_lner VARCHAR,
date_introduced VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which LNER class has been Passed to LNER larger than 3 and a introduced in 1895 98?
### Response:
|
SELECT lner_class FROM table_name_37 WHERE passed_to_lner > 3 AND date_introduced = "1895–98"
|
### Instruction:
CREATE TABLE table_10687 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people are in regions greater than 3?
### Response:
|
SELECT SUM("Population") FROM table_10687 WHERE "Region" > '3'
|
### Instruction:
CREATE TABLE table_9853 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On June 26, 2006 the game was played on what surface?
### Response:
|
SELECT "Surface" FROM table_9853 WHERE "Date" = 'june 26, 2006'
|
### Instruction:
CREATE TABLE table_37500 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game after week 3 against the New York Giants?
### Response:
|
SELECT "Result" FROM table_37500 WHERE "Week" > '3' AND "Opponent" = 'new york giants'
|
### Instruction:
CREATE TABLE table_43973 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player with a Jersey Number(s) greater than 30?
### Response:
|
SELECT "Player" FROM table_43973 WHERE "Jersey Number(s)" > '30'
|
### Instruction:
CREATE TABLE table_37431 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round of the defense player from the United States?
### Response:
|
SELECT "Round" FROM table_37431 WHERE "Position" = 'defense' AND "Nationality" = 'united states'
|
### Instruction:
CREATE TABLE table_32789 (
"Year" real,
"Player" text,
"Country" text,
"Team" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first year that Mario Lemieux from Canada won playing center?
### Response:
|
SELECT MIN("Year") FROM table_32789 WHERE "Country" = 'canada' AND "Position" = 'center' AND "Player" = 'mario lemieux'
|
### Instruction:
CREATE TABLE table_1637981_7 (
kalamazoo__azo_ VARCHAR,
lansing__lan_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?
### Response:
|
SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59"
|
### Instruction:
CREATE TABLE table_34604 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after 1987 and entrant of first racing what is the highest points?
### Response:
|
SELECT MAX("Points") FROM table_34604 WHERE "Entrant" = 'first racing' AND "Year" > '1987'
|
### Instruction:
CREATE TABLE table_72400 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was incumbent Noble Jones Gregory first elected?
### Response:
|
SELECT COUNT("First elected") FROM table_72400 WHERE "Incumbent" = 'Noble Jones Gregory'
|
### Instruction:
CREATE TABLE table_30558 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was drafted by the New York Rangers?
### Response:
|
SELECT "Player" FROM table_30558 WHERE "NHL team" = 'New York Rangers'
|
### Instruction:
CREATE TABLE table_31975 (
"Candidate" text,
"Party" text,
"Constituency" text,
"Year" text,
"Days" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1955 which party did Thomas Mitchell belong to?
### Response:
|
SELECT "Party" FROM table_31975 WHERE "Year" = '1955' AND "Candidate" = 'thomas mitchell'
|
### Instruction:
CREATE TABLE table_23340 (
"Contestant" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of the contestant whose background is as a financial consultant?
### Response:
|
SELECT "Hometown" FROM table_23340 WHERE "Background" = 'Financial consultant'
|
### Instruction:
CREATE TABLE table_75277 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which batter has a uni# of 31?
### Response:
|
SELECT "Bats" FROM table_75277 WHERE "Uni#" = '31'
|
### Instruction:
CREATE TABLE table_204_775 (
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.
-- how many teams did not win any gold medals in this event ?
### Response:
|
SELECT COUNT("nation") FROM table_204_775 WHERE "gold" = 0
|
### Instruction:
CREATE TABLE table_62 (
"Crop (kilotonnes)" text,
"New South Wales" real,
"Victoria" real,
"Queensland" real,
"Western Australia" real,
"South Australia" real,
"Tasmania" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the minimum tasmania value
### Response:
|
SELECT MIN("Tasmania") FROM table_62
|
### Instruction:
CREATE TABLE table_28047 (
"Series no." real,
"No. in season" real,
"Title" text,
"Written by" text,
"Directed by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people directed the episode that Joe Toplyn wrote?
### Response:
|
SELECT COUNT("Directed by") FROM table_28047 WHERE "Written by" = 'Joe Toplyn'
|
### Instruction:
CREATE TABLE table_60751 (
"Date" text,
"Time" text,
"Competition" text,
"Opponent" text,
"Ground" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the competition on 15 August 2008?
### Response:
|
SELECT "Competition" FROM table_60751 WHERE "Date" = '15 august 2008'
|
### Instruction:
CREATE TABLE table_49518 (
"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 Score of the Chicago Black Hawks Home game on March 28?
### Response:
|
SELECT "Score" FROM table_49518 WHERE "Home" = 'chicago black hawks' AND "Date" = 'march 28'
|
### Instruction:
CREATE TABLE table_20663 (
"Code" real,
"County" text,
"Former Province" text,
"Area (km 2 )" text,
"Population Census 2009" real,
"Capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capital of Bungoma county?
### Response:
|
SELECT "Capital" FROM table_20663 WHERE "County" = 'Bungoma'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.