instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_36827 (
"Title" text,
"Genre" text,
"C=64" text,
"ZX Spectrum" text,
"Others" text,
"Year" real,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years have a Title of kriegspiel?
### Response:
|
SELECT COUNT("Year") FROM table_36827 WHERE "Title" = 'kriegspiel'
|
### Instruction:
CREATE TABLE table_10244 (
"Software" text,
"Calculations" text,
"Macros" text,
"Loci" text,
"Animations" text,
"Multilingual" text,
"Proofs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is there Loci in the Cinderella software?
### Response:
|
SELECT "Loci" FROM table_10244 WHERE "Software" = 'cinderella'
|
### Instruction:
CREATE TABLE table_203_370 (
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.
-- which competition is listed the most in this chart ?
### Response:
|
SELECT "competition" FROM table_203_370 GROUP BY "competition" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_751 (
"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 in the election when james patrick sutton was incumbent?
### Response:
|
SELECT "Candidates" FROM table_751 WHERE "Incumbent" = 'James Patrick Sutton'
|
### Instruction:
CREATE TABLE table_name_28 (
draws INTEGER,
byes VARCHAR,
wins VARCHAR,
peel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0?
### Response:
|
SELECT AVG(draws) FROM table_name_28 WHERE wins = 10 AND peel = "south mandurah" AND byes > 0
|
### Instruction:
CREATE TABLE table_65728 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many picks on average did Jay Bruchak have before round 6?
### Response:
|
SELECT AVG("Pick") FROM table_65728 WHERE "Player" = 'jay bruchak' AND "Round" < '6'
|
### Instruction:
CREATE TABLE table_44581 (
"Season" text,
"Zone" real,
"Champion" text,
"Second" text,
"Third" text,
"Top scorer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Third has a Champion of metalurh novomoskovsk?
### Response:
|
SELECT "Third" FROM table_44581 WHERE "Champion" = 'metalurh novomoskovsk'
|
### Instruction:
CREATE TABLE table_8672 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team that had attendance under 2614 and a home team of Victoria?
### Response:
|
SELECT "Away" FROM table_8672 WHERE "Attendance" < '2614' AND "Home" = 'victoria'
|
### Instruction:
CREATE TABLE table_name_98 (
_kah__atau_tidak_ VARCHAR,
language_dialect VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)?
### Response:
|
SELECT _kah__atau_tidak_ FROM table_name_98 WHERE "basikal" = "basikal" AND language_dialect = "malay language (informal)"
|
### Instruction:
CREATE TABLE table_43699 (
"Rank" real,
"Date" text,
"Attendance" real,
"Opponent" text,
"Texas Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on September 26, 2009?
### Response:
|
SELECT "Opponent" FROM table_43699 WHERE "Date" = 'september 26, 2009'
|
### Instruction:
CREATE TABLE table_52629 (
"Week" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent that has attendance of 76,965
### Response:
|
SELECT "Opponent" FROM table_52629 WHERE "Attendance" = '76,965'
|
### Instruction:
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Draw a bar chart for what are the different classes of races, and how many races correspond to each?
### Response:
|
SELECT Class, COUNT(*) FROM race GROUP BY Class
|
### Instruction:
CREATE TABLE table_25966 (
"Year" real,
"Host City" text,
"Host School" text,
"Champion" text,
"Second Place" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the champions in years where michigan technological university was in third place?
### Response:
|
SELECT "Champion" FROM table_25966 WHERE "Third Place" = 'Michigan Technological University'
|
### Instruction:
CREATE TABLE table_68025 (
"Year" real,
"Result" text,
"Award" text,
"Category" text,
"Nominated work" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the award for the 2009 songwriter of the year?
### Response:
|
SELECT "Award" FROM table_68025 WHERE "Year" = '2009' AND "Category" = 'songwriter of the year'
|
### Instruction:
CREATE TABLE table_14752049_6 (
country VARCHAR,
change__2011_to_2012_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the change (2011 to 2012) is +13.4% what is the country?
### Response:
|
SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "+13.4%"
|
### Instruction:
CREATE TABLE table_25064 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many reasons for change were listed when Edward Hempstead was the successor?
### Response:
|
SELECT COUNT("Reason for change") FROM table_25064 WHERE "Successor" = 'Edward Hempstead'
|
### Instruction:
CREATE TABLE table_70067 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average bronze had a silver greater than 2 and a gold larger than 7?
### Response:
|
SELECT AVG("Bronze") FROM table_70067 WHERE "Silver" > '2' AND "Gold" > '7'
|
### Instruction:
CREATE TABLE table_48860 (
"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 Score, when Country is United States, and when Player is 'Arnold Palmer'?
### Response:
|
SELECT "Score" FROM table_48860 WHERE "Country" = 'united states' AND "Player" = 'arnold palmer'
|
### Instruction:
CREATE TABLE table_54017 (
"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.
-- Where does Carlton play?
### Response:
|
SELECT "Venue" FROM table_54017 WHERE "Home team" = 'carlton'
|
### Instruction:
CREATE TABLE table_204_429 (
id number,
"battle" text,
"location" text,
"date(s)" text,
"engagement remarks" text,
"victor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total amount of m -lrb- mexican -rrb- victories ?
### Response:
|
SELECT COUNT(*) FROM table_204_429 WHERE "victor" = 'm'
|
### Instruction:
CREATE TABLE table_name_64 (
gold INTEGER,
total VARCHAR,
silver VARCHAR,
bronze VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?
### Response:
|
SELECT AVG(gold) FROM table_name_64 WHERE bronze = 1 AND type = "winter" AND silver < 3 AND total < 4
|
### Instruction:
CREATE TABLE table_14242 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round was the defensive tackle picked after 187?
### Response:
|
SELECT AVG("Round") FROM table_14242 WHERE "Position" = 'defensive tackle' AND "Pick #" > '187'
|
### Instruction:
CREATE TABLE table_18294 (
"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 party with dbeingtrict being massachusetts 3
### Response:
|
SELECT "Party" FROM table_18294 WHERE "District" = 'Massachusetts 3'
|
### Instruction:
CREATE TABLE table_name_61 (
cuts_made INTEGER,
wins VARCHAR,
top_25 VARCHAR,
top_5 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0
### Response:
|
SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 0
|
### Instruction:
CREATE TABLE table_203_211 (
id number,
"pos." number,
"time" text,
"athlete" text,
"country" text,
"venue" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many athletes were faster than 12.40 seconds ?
### Response:
|
SELECT COUNT("athlete") FROM table_203_211 WHERE "time" < 12.40
|
### Instruction:
CREATE TABLE table_1595 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at area 191.43 what is the total number of census ranking?
### Response:
|
SELECT COUNT("Census Ranking") FROM table_1595 WHERE "Area km 2" = '191.43'
|
### Instruction:
CREATE TABLE table_23992 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- state the status of pick # 32
### Response:
|
SELECT "Status" FROM table_23992 WHERE "Pick #" = '32'
|
### Instruction:
CREATE TABLE table_202_122 (
id number,
"rank" number,
"title" text,
"studio" text,
"actor/actress" text,
"director" text,
"gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many films star eddie murphy ?
### Response:
|
SELECT COUNT("title") FROM table_202_122 WHERE "actor/actress" = 'eddie murphy'
|
### Instruction:
CREATE TABLE table_75665 (
"Wrestler" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the wrestler, super parka, with the title with a reign of 2?
### Response:
|
SELECT "Location" FROM table_75665 WHERE "Wrestler" = 'super parka' AND "Reign" = '2'
|
### Instruction:
CREATE TABLE table_41819 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the competition on November 10?
### Response:
|
SELECT "Score" FROM table_41819 WHERE "Date" = 'november 10'
|
### Instruction:
CREATE TABLE table_45280 (
"Series Number" real,
"Number of Episodes" real,
"Original Air Date" real,
"DVD Region 2 release date" text,
"DVD Region 1 release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original air date of series number 10?
### Response:
|
SELECT AVG("Original Air Date") FROM table_45280 WHERE "Series Number" = '10'
|
### Instruction:
CREATE TABLE table_18415 (
"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 district is incumbent elmer j. holland from?
### Response:
|
SELECT "District" FROM table_18415 WHERE "Incumbent" = 'Elmer J. Holland'
|
### Instruction:
CREATE TABLE table_204_937 (
id number,
"rank" number,
"lane" number,
"athlete" text,
"time" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who placed after manjeet kaur ?
### Response:
|
SELECT "athlete" FROM table_204_937 WHERE id = (SELECT id FROM table_204_937 WHERE "athlete" = 'manjeet kaur') + 1
|
### Instruction:
CREATE TABLE table_204_101 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer (s)" text,
"sample(s)" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of songs with a length over 4 minutes ?
### Response:
|
SELECT COUNT("title") FROM table_204_101 WHERE "length" >= 4
|
### Instruction:
CREATE TABLE table_204_771 (
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 countries in this competition had more than two silver medals ?
### Response:
|
SELECT COUNT("nation") FROM table_204_771 WHERE "silver" > 2
|
### Instruction:
CREATE TABLE table_203_818 (
id number,
"kategori" text,
"1995" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many categories are listed on this chart ?
### Response:
|
SELECT COUNT("kategori") FROM table_203_818
|
### Instruction:
CREATE TABLE table_name_60 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?
### Response:
|
SELECT MAX(week) FROM table_name_60 WHERE date = "november 12, 1967" AND attendance < 34 OFFSET 761
|
### Instruction:
CREATE TABLE table_77120 (
"Day 1" text,
"Day 2" text,
"Day 3" text,
"Day 4" text,
"Day 5" text,
"Wednesday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the day 1 when day 5 is math?
### Response:
|
SELECT "Day 1" FROM table_77120 WHERE "Day 5" = 'math'
|
### Instruction:
CREATE TABLE table_204_374 (
id number,
"event" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number,
"ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which paralymics year had the largest number of medals overall ?
### Response:
|
SELECT "event" FROM table_204_374 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_50170 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Max pressure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the muzzle velocity for the .38 long colt cartridge?
### Response:
|
SELECT "Muzzle velocity" FROM table_50170 WHERE "Cartridge" = '.38 long colt'
|
### Instruction:
CREATE TABLE table_15194 (
"Name" text,
"Race" text,
"Current age" real,
"Age at offense" real,
"Years on death row" real,
"Location of offense" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the prisoner's name that is currently 29 years old?
### Response:
|
SELECT "Name" FROM table_15194 WHERE "Current age" = '29'
|
### Instruction:
CREATE TABLE table_name_4 (
position INTEGER,
draws VARCHAR,
goals_against VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44
### Response:
|
SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16
|
### Instruction:
CREATE TABLE table_77901 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top grid that laps less than 66 and a retried engine?
### Response:
|
SELECT MAX("Grid") FROM table_77901 WHERE "Time/Retired" = 'engine' AND "Laps" < '66'
|
### Instruction:
CREATE TABLE table_22559 (
"Date" real,
"Single" text,
"Backed with" text,
"Record label" text,
"Format" text,
"Other details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the 'other details' (number released) for 'is my love will follow me'?
### Response:
|
SELECT "Other details" FROM table_22559 WHERE "Single" = 'My Love Will Follow Me'
|
### Instruction:
CREATE TABLE table_22453 (
"Candidate" text,
"Background" text,
"Original Team" text,
"Age" real,
"Hometown" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When austin, texas is the hometown what is the lowest age?
### Response:
|
SELECT MIN("Age") FROM table_22453 WHERE "Hometown" = 'Austin, Texas'
|
### Instruction:
CREATE TABLE table_203_499 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average score of the players from the united states ?
### Response:
|
SELECT AVG("score") FROM table_203_499 WHERE "country" = 'united states'
|
### Instruction:
CREATE TABLE table_36822 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition in Budapest, Hungary gave a result of 8th?
### Response:
|
SELECT "Competition" FROM table_36822 WHERE "Position" = '8th' AND "Venue" = 'budapest, hungary'
|
### Instruction:
CREATE TABLE table_23182 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the school whose students are nicknamed Panthers located?
### Response:
|
SELECT "Location" FROM table_23182 WHERE "Nickname" = 'Panthers'
|
### Instruction:
CREATE TABLE table_73754 (
"Season" real,
"Winner" text,
"Runner-Up" text,
"Third Place" text,
"Contestants" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many contestants were there when the runner-up was S rgio Abreu?
### Response:
|
SELECT MAX("Contestants") FROM table_73754 WHERE "Runner-Up" = 'Sérgio Abreu'
|
### Instruction:
CREATE TABLE table_32169 (
"Date" text,
"Venue" text,
"Result" text,
"Scored" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest scored in the 2010 east asian football championship?
### Response:
|
SELECT MAX("Scored") FROM table_32169 WHERE "Competition" = '2010 east asian football championship'
|
### Instruction:
CREATE TABLE table_70068 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the total was 11 and silver was greater than 4 what was the highest gold?
### Response:
|
SELECT MAX("Gold") FROM table_70068 WHERE "Total" = '11' AND "Silver" > '4'
|
### Instruction:
CREATE TABLE table_41377 (
"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 was the 2nd leg score for the tie that had a 5-0 first leg score?
### Response:
|
SELECT "2nd leg" FROM table_41377 WHERE "1st leg" = '5-0'
|
### Instruction:
CREATE TABLE table_59333 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Opponent is 'Daniel Gimeno-Traver'?
### Response:
|
SELECT "Score" FROM table_59333 WHERE "Opponent" = 'daniel gimeno-traver'
|
### Instruction:
CREATE TABLE table_34875 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum for the game with a score of 103 126?
### Response:
|
SELECT SUM("Game") FROM table_34875 WHERE "Score" = '103–126'
|
### Instruction:
CREATE TABLE table_9878 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date prior to Week 14 was the Record 7-1?
### Response:
|
SELECT "Date" FROM table_9878 WHERE "Week" < '14' AND "Record" = '7-1'
|
### Instruction:
CREATE TABLE table_name_51 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the last time, since December 14, 1986, that the attendance was lower than 47,096?
### Response:
|
SELECT MAX(week) FROM table_name_51 WHERE date = "december 14, 1986" AND attendance < 47 OFFSET 096
|
### Instruction:
CREATE TABLE table_204_903 (
id number,
"title" text,
"character" text,
"broadcaster" text,
"episodes" number,
"date" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- were there more than four episodes that featured cynthia ?
### Response:
|
SELECT (SELECT "episodes" FROM table_204_903 WHERE "character" = 'cynthia') > 4
|
### Instruction:
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of actors, ordered alphabetically?
### Response:
|
SELECT name FROM actor ORDER BY name
|
### Instruction:
CREATE TABLE table_19221 (
"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.
-- How many episodes had a broadcast date and run time of 24:43?
### Response:
|
SELECT COUNT("Broadcast date") FROM table_19221 WHERE "Run time" = '24:43'
|
### Instruction:
CREATE TABLE table_30101 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power kW" text,
"Coverage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the frequency for 103.7 energy fm dipolog*
### Response:
|
SELECT "Frequency" FROM table_30101 WHERE "Branding" = '103.7 Energy FM Dipolog*'
|
### Instruction:
CREATE TABLE table_67081 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest numbered lane of Sue Rolph with a rank under 5?
### Response:
|
SELECT MIN("Lane") FROM table_67081 WHERE "Name" = 'sue rolph' AND "Rank" < '5'
|
### Instruction:
CREATE TABLE table_48194 (
"Test flight" text,
"Date" text,
"Speed" text,
"Altitude" text,
"Crew" text,
"Duration" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What it Duration, when Test Flight is Free Flight #3?
### Response:
|
SELECT "Duration" FROM table_48194 WHERE "Test flight" = 'free flight #3'
|
### Instruction:
CREATE TABLE table_70212 (
"Grand Prix" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the pole positon for korean grand prix
### Response:
|
SELECT "Pole position" FROM table_70212 WHERE "Grand Prix" = 'korean grand prix'
|
### Instruction:
CREATE TABLE table_38454 (
"Line" text,
"Speed" text,
"Length" text,
"Construction begun" text,
"Expected start of revenue services" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length when the expected start of revenue is more than 2017?
### Response:
|
SELECT "Length" FROM table_38454 WHERE "Expected start of revenue services" > '2017'
|
### Instruction:
CREATE TABLE building (
name VARCHAR,
building_id VARCHAR
)
CREATE TABLE institution (
building_id VARCHAR,
founded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the names of buildings except for those having an institution founded in 2003.
### Response:
|
SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003
|
### Instruction:
CREATE TABLE table_12927 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a to par larger than 5 and a player John Mahaffey?
### Response:
|
SELECT "Country" FROM table_12927 WHERE "To par" > '5' AND "Player" = 'john mahaffey'
|
### Instruction:
CREATE TABLE table_203_771 (
id number,
"#" number,
"artist" text,
"featuring" text,
"title" text,
"version" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title of the first track on the best of benassi bros greatest hit album ?
### Response:
|
SELECT "title" FROM table_203_771 ORDER BY "#" LIMIT 1
|
### Instruction:
CREATE TABLE table_60537 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue number(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Label has a Country of canada, and a Format of cd/digital download?
### Response:
|
SELECT "Label" FROM table_60537 WHERE "Country" = 'canada' AND "Format" = 'cd/digital download'
|
### Instruction:
CREATE TABLE table_name_56 (
year INTEGER,
role VARCHAR,
director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?
### Response:
|
SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley"
|
### Instruction:
CREATE TABLE table_name_37 (
position INTEGER,
played VARCHAR,
points VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest position with 32-6 points and less then 59 goals when there are more than 38 played?
### Response:
|
SELECT MIN(position) FROM table_name_37 WHERE points = "32-6" AND goals_against < 59 AND played > 38
|
### Instruction:
CREATE TABLE table_63465 (
"Team" text,
"Location" text,
"County" text,
"Division" text,
"Home ground" text,
"Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the captain of the team coached by Giles White?
### Response:
|
SELECT "Captain" FROM table_63465 WHERE "Coach" = 'giles white'
|
### Instruction:
CREATE TABLE table_11655 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote series number 99?
### Response:
|
SELECT "Written by" FROM table_11655 WHERE "Series #" = '99'
|
### Instruction:
CREATE TABLE table_1965650_11 (
nhl_team VARCHAR,
college_junior_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What NHL team was the player from Calgary Centennials (WCHL) drafted for?
### Response:
|
SELECT nhl_team FROM table_1965650_11 WHERE college_junior_club_team = "Calgary Centennials (WCHL)"
|
### Instruction:
CREATE TABLE table_21561 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who left a position on 24 January?
### Response:
|
SELECT "Outgoing manager" FROM table_21561 WHERE "Date of vacancy" = '24 January'
|
### Instruction:
CREATE TABLE table_18745 (
"Frequency" text,
"Call sign" text,
"Name" text,
"Format" text,
"Owner" text,
"Target city/ market" text,
"City of license" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What station has the call number K213cl
### Response:
|
SELECT "Format" FROM table_18745 WHERE "Call sign" = 'K213CL'
|
### Instruction:
CREATE TABLE table_6566 (
"Rank" 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 number of silver medals of the team ranked 7 with more than 1 total medal?
### Response:
|
SELECT COUNT("Silver") FROM table_6566 WHERE "Rank" = '7' AND "Total" > '1'
|
### Instruction:
CREATE TABLE table_50190 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Surface was the match against Malek Jaziri played?
### Response:
|
SELECT "Surface" FROM table_50190 WHERE "Opponent" = 'malek jaziri'
|
### Instruction:
CREATE TABLE table_28561 (
"Film Festival" text,
"Date of ceremony" text,
"Category" text,
"Participants/Recipients" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What film festival was the participant/recipient Isao Tomita?
### Response:
|
SELECT "Film Festival" FROM table_28561 WHERE "Participants/Recipients" = 'Isao Tomita'
|
### Instruction:
CREATE TABLE table_204_235 (
id number,
"season" text,
"team" text,
"country" text,
"competition" text,
"matches" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of goals he scored in 2005 ?
### Response:
|
SELECT "goals" FROM table_204_235 WHERE "season" = 2005
|
### Instruction:
CREATE TABLE table_38901 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Pos have a Driver of todd bodine, and a Car # larger than 30?
### Response:
|
SELECT COUNT("Pos.") FROM table_38901 WHERE "Driver" = 'todd bodine' AND "Car #" > '30'
|
### 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.
-- how many bronze medals did el salvador win ?
### Response:
|
SELECT "bronze" FROM table_204_785 WHERE "nation" = 'el salvador'
|
### Instruction:
CREATE TABLE table_50756 (
"Year" text,
"Total matches" real,
"Total W-L-H" text,
"Singles W-L-H" text,
"Points won" real,
"Points %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT YEAR HAD 5 TOTAL MATCHES?
### Response:
|
SELECT "Year" FROM table_50756 WHERE "Total matches" = '5'
|
### Instruction:
CREATE TABLE table_51402 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the start of the competitor with a qualifying time of 84.300?
### Response:
|
SELECT "Start" FROM table_51402 WHERE "Qual" = '84.300'
|
### Instruction:
CREATE TABLE table_4089 (
"Track no." real,
"Track" text,
"Original Artist" text,
"Soloist(s)" text,
"Vocal Percussionist" text,
"Arranger(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the track whent the vocal percussionist is unknown?
### Response:
|
SELECT "Track" FROM table_4089 WHERE "Vocal Percussionist" = 'unknown'
|
### Instruction:
CREATE TABLE table_9703 (
"Year" real,
"Association" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the association that Daniel Mananta belonged to after 2011?
### Response:
|
SELECT "Association" FROM table_9703 WHERE "Nominee" = 'daniel mananta' AND "Year" > '2011'
|
### Instruction:
CREATE TABLE table_31803 (
"Year" real,
"Date" text,
"Event" text,
"Days" text,
"Stages" text,
"Acts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the Monsters of Rock show with 12 bands?
### Response:
|
SELECT "Date" FROM table_31803 WHERE "Event" = 'monsters of rock' AND "Acts" = '12 bands'
|
### Instruction:
CREATE TABLE table_40335 (
"Year" text,
"GP/GS" text,
"Shots" real,
"Goals" real,
"Assists" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Points that were in a Year that was 2005?
### Response:
|
SELECT COUNT("Points") FROM table_40335 WHERE "Year" = '2005'
|
### 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.
-- what is the number of silver medals won by italy ?
### Response:
|
SELECT "silver" FROM table_204_297 WHERE "nation" = 'italy'
|
### Instruction:
CREATE TABLE employees (
first_name VARCHAR,
last_name VARCHAR,
hire_date VARCHAR,
salary VARCHAR,
department_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.
### Response:
|
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%'
|
### Instruction:
CREATE TABLE table_47506 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds in the event when record is 1-5?
### Response:
|
SELECT COUNT("Round") FROM table_47506 WHERE "Record" = '1-5'
|
### Instruction:
CREATE TABLE table_204_421 (
id number,
"name" text,
"nationality" text,
"position" text,
"spartak career" text,
"appearances" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player has the most appearances with the club ?
### Response:
|
SELECT "name" FROM table_204_421 ORDER BY "appearances" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_14699 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Liu Limin's time in heat 4?
### Response:
|
SELECT "Time" FROM table_14699 WHERE "Heat" = '4' AND "Name" = 'liu limin'
|
### Instruction:
CREATE TABLE table_31421 (
"Official name" text,
"INE code" real,
"Name in Spanish" text,
"Name in Basque" text,
"Population (2007)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the INE code of the municipality whose official name is Berantevilla?
### Response:
|
SELECT MAX("INE code") FROM table_31421 WHERE "Official name" = 'Berantevilla'
|
### Instruction:
CREATE TABLE table_33035 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game did Jets have an attendance of 78,722?
### Response:
|
SELECT "Game site" FROM table_33035 WHERE "Attendance" = '78,722'
|
### Instruction:
CREATE TABLE table_14697 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top rank with a time of 2:19.86?
### Response:
|
SELECT MAX("Rank") FROM table_14697 WHERE "Time" = '2:19.86'
|
### Instruction:
CREATE TABLE table_18290 (
"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 incumbent with district being massachusetts 2
### Response:
|
SELECT "Incumbent" FROM table_18290 WHERE "District" = 'Massachusetts 2'
|
### Instruction:
CREATE TABLE table_14756 (
"Series" text,
"Name" text,
"Hometown" text,
"Occupation" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of Aden Theobald from the hometown of London?
### Response:
|
SELECT "Status" FROM table_14756 WHERE "Hometown" = 'london' AND "Name" = 'aden theobald'
|
### Instruction:
CREATE TABLE table_58165 (
"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 the name of the team with a qual 1 time of 1:17.481?
### Response:
|
SELECT "Team" FROM table_58165 WHERE "Qual 1" = '1:17.481'
|
### Instruction:
CREATE TABLE table_17883 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the height for the player born in 1980 and center?
### Response:
|
SELECT "Height" FROM table_17883 WHERE "Year born" = '1980' AND "Position" = 'Center'
|
### Instruction:
CREATE TABLE table_name_49 (
crude_birth_rate__per_1000_ INTEGER,
natural_change VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Natural change of 42 689 has which lowest Crude birth rate (per 1000)?
### Response:
|
SELECT MIN(crude_birth_rate__per_1000_) FROM table_name_49 WHERE natural_change = "42 689"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.