instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### 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.
-- which country has the largest amount of total medals ?
### Response:
|
SELECT "nation" FROM table_204_775 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_489 (
id number,
"rank" number,
"name" text,
"height" text,
"floors" number,
"year" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many of these buildings were built after 1975
### Response:
|
SELECT COUNT("name") FROM table_204_489 WHERE "year" > 1975
|
### Instruction:
CREATE TABLE table_204_979 (
id number,
"place" number,
"nation" text,
"5 hoops" text,
"3 balls,\n2 ribbons" text,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what country had the least in the 5 hoops category
### Response:
|
SELECT "nation" FROM table_204_979 ORDER BY "5 hoops" LIMIT 1
|
### Instruction:
CREATE TABLE table_203_175 (
id number,
"rank" text,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which nation was the only one to receive 3 medals ?
### Response:
|
SELECT "nation" FROM table_203_175 WHERE "total" = 3
|
### Instruction:
CREATE TABLE table_18637 (
"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.
-- what's the district with first elected being 1938
### Response:
|
SELECT "District" FROM table_18637 WHERE "First elected" = '1938'
|
### Instruction:
CREATE TABLE table_66903 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average year for 0 points and ferrari v8?
### Response:
|
SELECT AVG("Year") FROM table_66903 WHERE "Points" = '0' AND "Engine" = 'ferrari v8'
|
### Instruction:
CREATE TABLE table_50393 (
"Round" real,
"Pick" text,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Round was OL Player Richard Zulys picked?
### Response:
|
SELECT SUM("Round") FROM table_50393 WHERE "Position" = 'ol' AND "Player" = 'richard zulys'
|
### Instruction:
CREATE TABLE table_204_392 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"country" text,
"domed or retractable roof" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which stadium holds the most people ?
### Response:
|
SELECT "stadium" FROM table_204_392 ORDER BY "capacity" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_2610582_2 (
power_kw__erp_ VARCHAR,
location__transmitter_site_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The location (transmitter site) San Fernando, Pampanga ** has what Power kW (ERP)?
### Response:
|
SELECT power_kw__erp_ FROM table_2610582_2 WHERE location__transmitter_site_ = "San Fernando, Pampanga **"
|
### Instruction:
CREATE TABLE table_51924 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has an Away team of carlton?
### Response:
|
SELECT "Home team" FROM table_51924 WHERE "Away team" = 'carlton'
|
### Instruction:
CREATE TABLE table_5336 (
"Metro Vincity" text,
"Venue Location" text,
"Address" text,
"Opened" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What metro vincity has the venue that opened in 1999?
### Response:
|
SELECT "Metro Vincity" FROM table_5336 WHERE "Opened" = '1999'
|
### Instruction:
CREATE TABLE table_4666 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player is from the united states and started playing in 1965?
### Response:
|
SELECT "Player" FROM table_4666 WHERE "Nationality" = 'united states' AND "From" = '1965'
|
### Instruction:
CREATE TABLE table_52742 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the best rank with a time of 1:05.14.10?
### Response:
|
SELECT MAX("Rank") FROM table_52742 WHERE "Time" = '1:05.14.10'
|
### Instruction:
CREATE TABLE table_59231 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest First Elected, when District is 'Massachusetts 10'?
### Response:
|
SELECT MIN("First elected") FROM table_59231 WHERE "District" = 'massachusetts 10'
|
### Instruction:
CREATE TABLE table_45426 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the player from that wears the number 29?
### Response:
|
SELECT "From" FROM table_45426 WHERE "Jersey Number(s)" = '29'
|
### Instruction:
CREATE TABLE table_19719 (
"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.
-- On which date was the game played at Tiger Stadium?
### Response:
|
SELECT "Date" FROM table_19719 WHERE "Game Site" = 'Tiger Stadium'
|
### Instruction:
CREATE TABLE table_46076 (
"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 sum of the total number of medals when silver is less than 0?
### Response:
|
SELECT COUNT("Total") FROM table_46076 WHERE "Silver" < '0'
|
### Instruction:
CREATE TABLE table_name_6 (
game INTEGER,
december VARCHAR,
points VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?
### Response:
|
SELECT AVG(game) FROM table_name_6 WHERE points = 53 AND opponent = "@ minnesota north stars" AND december > 30
|
### Instruction:
CREATE TABLE table_72419 (
"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.
-- How many in total were elected first in lost renomination?
### Response:
|
SELECT COUNT("First elected") FROM table_72419 WHERE "Result" = 'Lost renomination'
|
### Instruction:
CREATE TABLE table_58827 (
"Year" real,
"Artist" text,
"Title" text,
"Format" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the artist after 2012 with CD, LP as the format?
### Response:
|
SELECT "Artist" FROM table_58827 WHERE "Year" > '2012' AND "Format" = 'cd, lp'
|
### Instruction:
CREATE TABLE table_78672 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place when the score was 71-69-71=211?
### Response:
|
SELECT "Place" FROM table_78672 WHERE "Score" = '71-69-71=211'
|
### Instruction:
CREATE TABLE table_48852 (
"Date" text,
"Pos." text,
"Player" text,
"From club" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Transfer fee of 750,000 [x]?
### Response:
|
SELECT "Player" FROM table_48852 WHERE "Transfer fee" = '£750,000 [x]'
|
### Instruction:
CREATE TABLE table_203_270 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year was first time to win an event
### Response:
|
SELECT "year" FROM table_203_270 WHERE "position" = 1 ORDER BY "year" LIMIT 1
|
### Instruction:
CREATE TABLE table_39331 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is k275av call sign's highest erp w?
### Response:
|
SELECT MAX("ERP W") FROM table_39331 WHERE "Call sign" = 'k275av'
|
### Instruction:
CREATE TABLE table_3591 (
"Team" text,
"Manager" text,
"Chairman" text,
"Team captain" text,
"Kit maker" text,
"Sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many kit makers are there for Louis Carey's team?
### Response:
|
SELECT COUNT("Kit maker") FROM table_3591 WHERE "Team captain" = 'Louis Carey'
|
### Instruction:
CREATE TABLE table_38866 (
"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 margin of victory over Brad Faxon?
### Response:
|
SELECT "Margin of victory" FROM table_38866 WHERE "Runner(s)-up" = 'brad faxon'
|
### Instruction:
CREATE TABLE table_17737 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording ?" text,
"Release date" text,
"Single / Pack" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist has a song titled 'Soothsayer'?
### Response:
|
SELECT "Artist" FROM table_17737 WHERE "Song title" = 'Soothsayer'
|
### Instruction:
CREATE TABLE table_8337 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Qual 1, when Qual 2 is 1:27.537?
### Response:
|
SELECT "Qual 1" FROM table_8337 WHERE "Qual 2" = '1:27.537'
|
### Instruction:
CREATE TABLE table_67375 (
"Year" text,
"Men's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the women's doubles pair in 1952?
### Response:
|
SELECT "Women's doubles" FROM table_67375 WHERE "Year" = '1952'
|
### Instruction:
CREATE TABLE table_55827 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team of the April 14 game?
### Response:
|
SELECT "Home" FROM table_55827 WHERE "Date" = 'april 14'
|
### Instruction:
CREATE TABLE table_31589 (
"Member" text,
"Electorate" text,
"Province" text,
"MP's term" text,
"Election date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the MP's term who was elected from grey and bell?
### Response:
|
SELECT "MP's term" FROM table_31589 WHERE "Electorate" = 'grey and bell'
|
### Instruction:
CREATE TABLE table_203_133 (
id number,
"year" number,
"japanese title" text,
"english title" text,
"role" text,
"network" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many roles did actor ikuta toma have in 2009 ?
### Response:
|
SELECT COUNT("role") FROM table_203_133 WHERE "year" = 2009
|
### Instruction:
CREATE TABLE table_204_71 (
id number,
"rank" number,
"heat" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number of competitors from nigeria .
### Response:
|
SELECT COUNT("name") FROM table_204_71 WHERE "nationality" = 'nigeria'
|
### Instruction:
CREATE TABLE table_27493 (
"Season" real,
"Champion" text,
"Runner-up" text,
"Third Place" text,
"Top scorer" text,
"Best Player" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the champion of the 1994 season?
### Response:
|
SELECT "Champion" FROM table_27493 WHERE "Season" = '1994'
|
### Instruction:
CREATE TABLE table_203_576 (
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 gold medals did japan win ?
### Response:
|
SELECT "gold" FROM table_203_576 WHERE "nation" = 'japan'
|
### Instruction:
CREATE TABLE table_204_232 (
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 gold medals did brazil win ?
### Response:
|
SELECT "gold" FROM table_204_232 WHERE "nation" = 'brazil'
|
### Instruction:
CREATE TABLE table_24001 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Cardinals points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the game for record being 3-0
### Response:
|
SELECT "Game" FROM table_24001 WHERE "Record" = '3-0'
|
### Instruction:
CREATE TABLE table_16762 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the winning driver where the circuit name is posillipo?
### Response:
|
SELECT "Winning driver" FROM table_16762 WHERE "Circuit" = 'Posillipo'
|
### Instruction:
CREATE TABLE table_72608 (
"Episode #" text,
"Country" text,
"City" text,
"Martial Art/Style" text,
"Masters" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did episode 1.8 air?
### Response:
|
SELECT COUNT("Original Airdate") FROM table_72608 WHERE "Episode #" = '1.8'
|
### Instruction:
CREATE TABLE table_611 (
"Model number" text,
"Printer ports" text,
"Network ports" text,
"Network protocols" text,
"Firmware" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the printer ports included in the EX Plus3 model number?
### Response:
|
SELECT "Printer ports" FROM table_611 WHERE "Model number" = 'EX Plus3'
|
### Instruction:
CREATE TABLE table_75950 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Driver Ricardo Sperafico has what as his average laps?
### Response:
|
SELECT AVG("Laps") FROM table_75950 WHERE "Driver" = 'ricardo sperafico'
|
### Instruction:
CREATE TABLE table_76517 (
"Verb" text,
"2 (VF)" text,
"2 (F)" text,
"3 (F)" text,
"2/3 (P)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2(vf) for ?
### Response:
|
SELECT "2 (VF)" FROM table_76517 WHERE "2 (F)" = 'তুমি বললে'
|
### Instruction:
CREATE TABLE table_21721 (
"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 class is the verb wich its part 3 is heldu
### Response:
|
SELECT "Class" FROM table_21721 WHERE "Part 3" = 'heldu'
|
### Instruction:
CREATE TABLE table_23387 (
"Team & Boat name" text,
"Sail no." text,
"Flag" text,
"Design Firm" text,
"Builder" text,
"Skipper" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who build the boat where Ken Read was the skipper?
### Response:
|
SELECT "Builder" FROM table_23387 WHERE "Skipper" = 'Ken Read'
|
### Instruction:
CREATE TABLE table_204_311 (
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 won more than 6 medals total ?
### Response:
|
SELECT COUNT("nation") FROM table_204_311 WHERE "total" > 6
|
### Instruction:
CREATE TABLE table_203_490 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the game on what date had the most attendance ?
### Response:
|
SELECT "date" FROM table_203_490 ORDER BY "attendance" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_2144436_1 (
population__2010_ INTEGER,
population__2000_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2010 population when the 2000 population is 5720?
### Response:
|
SELECT MAX(population__2010_) FROM table_2144436_1 WHERE population__2000_ = 5720
|
### Instruction:
CREATE TABLE table_46471 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds had a race name of anglia tv trophy?
### Response:
|
SELECT COUNT("Round") FROM table_46471 WHERE "Name" = 'anglia tv trophy'
|
### Instruction:
CREATE TABLE table_33948 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date did the tournament final with the clay surface take place?
### Response:
|
SELECT "Date" FROM table_33948 WHERE "Surface" = 'clay'
|
### Instruction:
CREATE TABLE table_18575 (
"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.
-- What are the candidates for new york 35?
### Response:
|
SELECT "Candidates" FROM table_18575 WHERE "District" = 'New York 35'
|
### Instruction:
CREATE TABLE table_41945 (
"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 Place, when Score is less than 67, and when Country is South Africa?
### Response:
|
SELECT "Place" FROM table_41945 WHERE "Score" < '67' AND "Country" = 'south africa'
|
### Instruction:
CREATE TABLE table_name_37 (
goals_against INTEGER,
points VARCHAR,
games VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals against have 64 for games, a loss less than 12, with points greater than 107?
### Response:
|
SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107
|
### Instruction:
CREATE TABLE table_51422 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the competition that had a win result and a score of 3-1?
### Response:
|
SELECT "Competition" FROM table_51422 WHERE "Result" = 'win' AND "Score" = '3-1'
|
### Instruction:
CREATE TABLE table_49122 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent on November 20, 1966?
### Response:
|
SELECT "Opponent" FROM table_49122 WHERE "Date" = 'november 20, 1966'
|
### Instruction:
CREATE TABLE table_62206 (
"Date From" text,
"Date To" text,
"Pos." text,
"Name" text,
"Moving To" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the player loaned out on 27 november 2008 move to ?
### Response:
|
SELECT "Moving To" FROM table_62206 WHERE "Date From" = '27 november 2008'
|
### Instruction:
CREATE TABLE table_2132 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Zoe and Matt's result?
### Response:
|
SELECT "Result" FROM table_2132 WHERE "Couple" = 'Zoe and Matt'
|
### Instruction:
CREATE TABLE table_39167 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Time" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has 2:59 as the time?
### Response:
|
SELECT "Date" FROM table_39167 WHERE "Time" = '2:59'
|
### Instruction:
CREATE TABLE table_41736 (
"Date" text,
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production cost when the producer is raintree pictures?
### Response:
|
SELECT "Production Cost" FROM table_41736 WHERE "Producer" = 'raintree pictures'
|
### Instruction:
CREATE TABLE table_204_922 (
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 nations won at least three silver medals ?
### Response:
|
SELECT COUNT("nation") FROM table_204_922 WHERE "silver" >= 3
|
### Instruction:
CREATE TABLE table_54090 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the spurs were the visitors?
### Response:
|
SELECT "Score" FROM table_54090 WHERE "Visitor" = 'spurs'
|
### Instruction:
CREATE TABLE table_60298 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event has 8 as the rank points, with 20 as the total?
### Response:
|
SELECT "Event" FROM table_60298 WHERE "Rank points" = '8' AND "Total" = '20'
|
### Instruction:
CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the year of the first election ?
### Response:
|
SELECT "election year" FROM table_204_54 WHERE "pondicherry assembly" = 'first'
|
### Instruction:
CREATE TABLE table_204_785 (
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 county had the most bronze medals ?
### Response:
|
SELECT "nation" FROM table_204_785 ORDER BY "bronze" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_203_538 (
id number,
"flight" text,
"date" text,
"payload nickname" text,
"payload" text,
"orbit" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only flight to be canceled ?
### Response:
|
SELECT "flight" FROM table_203_538 WHERE "result" = 'canceled'
|
### Instruction:
CREATE TABLE table_4098 (
"Position" text,
"Name" text,
"Jockey" text,
"Age" real,
"Weight (st, lb)" text,
"Starting price" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the distance of jockey Jason Titley?
### Response:
|
SELECT "Distance" FROM table_4098 WHERE "Jockey" = 'Jason Titley'
|
### Instruction:
CREATE TABLE table_22097588_9 (
spent_per_voter___php__ VARCHAR,
spent_per_vote___php__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was spent per voter when the spent per vote was 20.07?
### Response:
|
SELECT spent_per_voter___php__ FROM table_22097588_9 WHERE spent_per_vote___php__ = "20.07"
|
### Instruction:
CREATE TABLE table_45437 (
"Concessionaire" text,
"FA Division(s)" text,
"Gauge" text,
"Length, km" real,
"Takeover Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FA Division has a length of 2704 km?
### Response:
|
SELECT "FA Division(s)" FROM table_45437 WHERE "Length, km" = '2704'
|
### Instruction:
CREATE TABLE table_66133 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the height of the player that had a 2008 club of iller bankasi?
### Response:
|
SELECT "Height" FROM table_66133 WHERE "2008 club" = 'iller bankasi'
|
### Instruction:
CREATE TABLE table_28905 (
"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.
-- Name the candidates for pennsylvania 14
### Response:
|
SELECT "Candidates" FROM table_28905 WHERE "District" = 'Pennsylvania 14'
|
### Instruction:
CREATE TABLE table_55722 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winning drive of iv grand prix de caen?
### Response:
|
SELECT "Winning driver" FROM table_55722 WHERE "Race Name" = 'iv grand prix de caen'
|
### Instruction:
CREATE TABLE table_70892 (
"Date" text,
"Round" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was on 7 January 2003?
### Response:
|
SELECT "Round" FROM table_70892 WHERE "Date" = '7 january 2003'
|
### Instruction:
CREATE TABLE table_name_95 (
silver INTEGER,
nation VARCHAR,
total VARCHAR,
bronze VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
### Response:
|
SELECT MAX(silver) FROM table_name_95 WHERE bronze < 3 AND gold < 1 AND total = 1 AND nation = "ireland"
|
### Instruction:
CREATE TABLE table_19348 (
"Model" text,
"Year model" text,
"Engine" text,
"Cylinder volume" text,
"Power" text,
"Torque" text,
"Fuel system" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year model for 1.3
### Response:
|
SELECT "Year model" FROM table_19348 WHERE "Model" = '1.3'
|
### Instruction:
CREATE TABLE table_18307 (
"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.
-- What candidates were featured in the 1974 election?
### Response:
|
SELECT "Candidates" FROM table_18307 WHERE "First elected" = '1974'
|
### Instruction:
CREATE TABLE table_204_982 (
id number,
"party/electoral alliance" text,
"seats" number,
"change" number,
"votes" number,
"%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name a party that got , at most , 2 % of the votes .
### Response:
|
SELECT "party/electoral alliance" FROM table_204_982 WHERE "%" <= 2
|
### Instruction:
CREATE TABLE table_40843 (
"Western Title" text,
"Chinese Title" text,
"Pinyin" text,
"Released Date" text,
"Genre" text,
"Game Modes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the western title for the puzzle genre?
### Response:
|
SELECT "Western Title" FROM table_40843 WHERE "Genre" = 'puzzle'
|
### Instruction:
CREATE TABLE table_62500 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which club had football at Mitchel Athletic Field?
### Response:
|
SELECT "Club" FROM table_62500 WHERE "Sport" = 'football' AND "Venue" = 'mitchel athletic field'
|
### Instruction:
CREATE TABLE table_49664 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2013 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- SHOW THE Name who has a 2013 club of vol ro z rich?
### Response:
|
SELECT "Name" FROM table_49664 WHERE "2013 club" = 'voléro zürich'
|
### Instruction:
CREATE TABLE table_name_51 (
category VARCHAR,
actor_actress VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What category was al pacino nominated for in the film, glengarry glen ross?
### Response:
|
SELECT category FROM table_name_51 WHERE actor_actress = "al pacino" AND film_title_used_in_nomination = "glengarry glen ross"
|
### Instruction:
CREATE TABLE table_2618102_1 (
no_in_season INTEGER,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least number in season for brad markowitz, william n. fordes & ren balcer
### Response:
|
SELECT MIN(no_in_season) FROM table_2618102_1 WHERE written_by = "Brad Markowitz, William N. Fordes & René Balcer"
|
### Instruction:
CREATE TABLE table_204_894 (
id number,
"season" number,
"winner" text,
"score" text,
"runners-up" text,
"venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of times was the venue manny ramjohn stadium ?
### Response:
|
SELECT COUNT(*) FROM table_204_894 WHERE "venue" = 'manny ramjohn stadium'
|
### Instruction:
CREATE TABLE table_44296 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date for Round 2r?
### Response:
|
SELECT "Date" FROM table_44296 WHERE "Round" = '2r'
|
### Instruction:
CREATE TABLE table_203_497 (
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.
-- who has won the most bronze medals ?
### Response:
|
SELECT "nation" FROM table_203_497 ORDER BY "bronze" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_71904 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the record was 18-20?
### Response:
|
SELECT "Score" FROM table_71904 WHERE "Record" = '18-20'
|
### Instruction:
CREATE TABLE table_76552 (
"Date" text,
"Captain 1" text,
"Team 2" text,
"Captain 2" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team 2 has a Captain 1 of final?
### Response:
|
SELECT "Team 2" FROM table_76552 WHERE "Captain 1" = 'final'
|
### Instruction:
CREATE TABLE table_12443 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the To par of the player with a Finish of T20?
### Response:
|
SELECT "To par" FROM table_12443 WHERE "Finish" = 't20'
|
### Instruction:
CREATE TABLE table_10210 (
"Rank" real,
"Stadium" text,
"Capacity" real,
"Location" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
### Response:
|
SELECT "Stadium" FROM table_10210 WHERE "Location" = 'carrick-on-shannon'
|
### Instruction:
CREATE TABLE table_77822 (
"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 score of the Chiefs November 27, 1994 game?
### Response:
|
SELECT "Result" FROM table_77822 WHERE "Date" = 'november 27, 1994'
|
### Instruction:
CREATE TABLE table_203_379 (
id number,
"first issued" text,
"design" text,
"slogan" text,
"serial format" text,
"serials issued" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year was the last license plate issued ?
### Response:
|
SELECT "first issued" FROM table_203_379 ORDER BY "first issued" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_10171 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest laps for time/retired of engine and grid of 5
### Response:
|
SELECT MAX("Laps") FROM table_10171 WHERE "Time/Retired" = 'engine' AND "Grid" = '5'
|
### Instruction:
CREATE TABLE table_name_30 (
population VARCHAR,
height__m_ VARCHAR,
area___ha__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?
### Response:
|
SELECT population FROM table_name_30 WHERE height__m_ = 15 AND area___ha__ = "00017 17"
|
### Instruction:
CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country had the highest total amount of medals ?
### Response:
|
SELECT "npc" FROM table_203_707 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_9514 (
"Party" text,
"Leader" text,
"Seats" text,
"% of seats" text,
"First Pref votes" text,
"% FPv" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Leader has Spoilt Votes as % of Seats?
### Response:
|
SELECT "Leader" FROM table_9514 WHERE "% of seats" = 'spoilt votes'
|
### Instruction:
CREATE TABLE table_32598 (
"Name" text,
"Party" text,
"Province (Division)" text,
"Date appointed" text,
"Appointed by" text,
"Left office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party does Claudette Tardif belong to?
### Response:
|
SELECT "Party" FROM table_32598 WHERE "Name" = 'claudette tardif'
|
### Instruction:
CREATE TABLE table_41179 (
"Team" text,
"Match" text,
"Points" text,
"Draw" text,
"Lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Draw for match 10, and the team was skra warszawa?
### Response:
|
SELECT "Draw" FROM table_41179 WHERE "Match" = '10' AND "Team" = 'skra warszawa'
|
### Instruction:
CREATE TABLE table_1908877_2 (
top_division_titles VARCHAR,
position_in_2012_13 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many clubs achieved the 5th position in 2012-13?
### Response:
|
SELECT COUNT(top_division_titles) FROM table_1908877_2 WHERE position_in_2012_13 = "5th"
|
### Instruction:
CREATE TABLE table_8968 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the match lasted 2:16 how was it decided?
### Response:
|
SELECT "Method" FROM table_8968 WHERE "Time" = '2:16'
|
### Instruction:
CREATE TABLE table_19922 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the segment B of episode 242?
### Response:
|
SELECT "Segment B" FROM table_19922 WHERE "Episode" = '242'
|
### Instruction:
CREATE TABLE table_70492 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Pts. \u2021" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tyres were used with the mp4/14 chassis?
### Response:
|
SELECT "Tyres" FROM table_70492 WHERE "Chassis" = 'mp4/14'
|
### Instruction:
CREATE TABLE table_name_49 (
points INTEGER,
driver VARCHAR,
average_pre_2010 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest amount of points driver Romain Grosjean, who has an average pre-2010 less than 0, has?
### Response:
|
SELECT MIN(points) FROM table_name_49 WHERE driver = "romain grosjean" AND average_pre_2010 < 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.