instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_68617 (
"Date" text,
"Location" text,
"Nature of incident" text,
"Circumstances" text,
"Casualties" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What happened on 2009-09-05?
### Response:
|
SELECT "Circumstances" FROM table_68617 WHERE "Date" = '2009-09-05'
|
### Instruction:
CREATE TABLE table_65490 (
"Year" real,
"Venue" text,
"Men's Open" text,
"Women's Open" text,
"Men's 35s" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Men's Open when the venue is Perth?
### Response:
|
SELECT "Men's Open" FROM table_65490 WHERE "Venue" = 'perth'
|
### Instruction:
CREATE TABLE table_62527 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country had a Player with a Score of 72-66-72=210?
### Response:
|
SELECT "Country" FROM table_62527 WHERE "Score" = '72-66-72=210'
|
### Instruction:
CREATE TABLE table_53974 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player comes from the Hometown of Wichita, KS?
### Response:
|
SELECT "Player" FROM table_53974 WHERE "Hometown" = 'wichita, ks'
|
### Instruction:
CREATE TABLE table_4787 (
"Year" real,
"BB Pop" text,
"BB CW" text,
"BB EL" text,
"CB CW" text,
"RIAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the CB CW of the song which has a BB Pop of 11?
### Response:
|
SELECT "CB CW" FROM table_4787 WHERE "BB Pop" = '11'
|
### Instruction:
CREATE TABLE table_16751596_13 (
dates_administered VARCHAR,
poll_source VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the poll source is research 2000/daily kos, what is the total number of dates administered?
### Response:
|
SELECT COUNT(dates_administered) FROM table_16751596_13 WHERE poll_source = "Research 2000/Daily Kos"
|
### Instruction:
CREATE TABLE table_203_777 (
id number,
"years" text,
"building" text,
"city" text,
"height (ctbuh)" text,
"floors" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only building in canada to have more than 60 floors ?
### Response:
|
SELECT "building" FROM table_203_777 WHERE "floors" > 60
|
### Instruction:
CREATE TABLE table_14301 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the player who won $3,600?
### Response:
|
SELECT "Score" FROM table_14301 WHERE "Money ( $ )" = '3,600'
|
### Instruction:
CREATE TABLE table_48556 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface was played on during the week of August 10?
### Response:
|
SELECT "Surface" FROM table_48556 WHERE "Week" = 'august 10'
|
### Instruction:
CREATE TABLE table_69676 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in the venue of Seoul that resulted in 8-0?
### Response:
|
SELECT "Score" FROM table_69676 WHERE "Venue" = 'seoul' AND "Result" = '8-0'
|
### Instruction:
CREATE TABLE table_204_74 (
id number,
"#" number,
"title" text,
"producers" text,
"guest performers" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last track produced by mr. lee ?
### Response:
|
SELECT "title" FROM table_204_74 WHERE "producers" = 'mr. lee' ORDER BY "#" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_22702 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the english title for album # 2nd
### Response:
|
SELECT "English Title" FROM table_22702 WHERE "Album#" = '2nd'
|
### Instruction:
CREATE TABLE table_60526 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many households have yadkin as the county?
### Response:
|
SELECT "Number of households" FROM table_60526 WHERE "County" = 'yadkin'
|
### Instruction:
CREATE TABLE table_17388 (
"No. in series" 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 WROTE 'DAD'S DEAD
### Response:
|
SELECT "Written by" FROM table_17388 WHERE "Title" = 'Dad''s Dead'
|
### Instruction:
CREATE TABLE table_54060 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manufacturer has a Time/Retired of +15.665?
### Response:
|
SELECT "Manufacturer" FROM table_54060 WHERE "Time/Retired" = '+15.665'
|
### Instruction:
CREATE TABLE table_8123 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Runner(s)-up has a Tournament of cameron park open?
### Response:
|
SELECT "Runner(s)-up" FROM table_8123 WHERE "Tournament" = 'cameron park open'
|
### Instruction:
CREATE TABLE table_53959 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the home team with a 4-6-0 record?
### Response:
|
SELECT "Home" FROM table_53959 WHERE "Record" = '4-6-0'
|
### Instruction:
CREATE TABLE table_52227 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Attendance on April 28?
### Response:
|
SELECT SUM("Attendance") FROM table_52227 WHERE "Date" = 'april 28'
|
### Instruction:
CREATE TABLE table_17389 (
"No. in series" 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 AUTHORED 'RED ASPHALT'?
### Response:
|
SELECT "Written by" FROM table_17389 WHERE "Title" = 'Red Asphalt'
|
### Instruction:
CREATE TABLE table_51577 (
"Club" text,
"Leagues" text,
"Venue" text,
"Location" text,
"Capacity" real,
"Established" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of a1 women's - handball?
### Response:
|
SELECT "Location" FROM table_51577 WHERE "Leagues" = 'a1 women''s - handball'
|
### Instruction:
CREATE TABLE table_24004 (
"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.
-- What game date had the record of 1-2?
### Response:
|
SELECT "Date" FROM table_24004 WHERE "Record" = '1-2'
|
### Instruction:
CREATE TABLE table_28143 (
"Camera" text,
"Filter" text,
"Wavelength" text,
"Total exposure time" text,
"Exposures" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the filter when the wavelength is 222mm (k-band)?
### Response:
|
SELECT "Filter" FROM table_28143 WHERE "Wavelength" = '222mm (K-band)'
|
### Instruction:
CREATE TABLE table_6 (
"No" real,
"Date" text,
"Round" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the race in Misano?
### Response:
|
SELECT "Date" FROM table_6 WHERE "Circuit" = 'Misano'
|
### Instruction:
CREATE TABLE table_79768 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the call sign with frequency of 89.5
### Response:
|
SELECT "Call sign" FROM table_79768 WHERE "Frequency MHz" = '89.5'
|
### Instruction:
CREATE TABLE table_204_676 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the year previous to 2005 ?
### Response:
|
SELECT MAX("year") FROM table_204_676 WHERE "year" < 2005
|
### Instruction:
CREATE TABLE table_22577693_1 (
host_nation_s_ VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)?
### Response:
|
SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)"
|
### Instruction:
CREATE TABLE table_52218 (
"Year" text,
"Builder" text,
"Motors" text,
"Trailers" text,
"Control Trailers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the trailers for 1931 and builder of mccw
### Response:
|
SELECT "Trailers" FROM table_52218 WHERE "Year" = '1931' AND "Builder" = 'mccw'
|
### Instruction:
CREATE TABLE table_62888 (
"Name" text,
"Tests" real,
"Club" text,
"Career caps" real,
"Tour Apps" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tour Apps when the career caps show 15?
### Response:
|
SELECT "Tour Apps" FROM table_62888 WHERE "Career caps" = '15'
|
### Instruction:
CREATE TABLE table_18216 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did incumbent Howard Coble belong to?
### Response:
|
SELECT "Party" FROM table_18216 WHERE "Incumbent" = 'Howard Coble'
|
### Instruction:
CREATE TABLE table_65972 (
"Rank" real,
"Player" text,
"From" text,
"Transfer Fee (\u20ac millions)" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was Alex Song signed from after 2010?
### Response:
|
SELECT "From" FROM table_65972 WHERE "Year" > '2010' AND "Player" = 'alex song'
|
### Instruction:
CREATE TABLE table_name_19 (
record_as_played VARCHAR,
regular_season_vacated VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is shown for Record as played with a Regular season Vacated of 24 0 later than 1997?
### Response:
|
SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = "24–0" AND season > 1997
|
### Instruction:
CREATE TABLE table_24803 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the surface of the French Championships?
### Response:
|
SELECT "Surface" FROM table_24803 WHERE "Championship" = 'French Championships'
|
### Instruction:
CREATE TABLE table_32960 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which IATA is associated with China and an ICAO of ZSPD?
### Response:
|
SELECT "IATA" FROM table_32960 WHERE "Country" = 'china' AND "ICAO" = 'zspd'
|
### Instruction:
CREATE TABLE table_168274_1 (
company VARCHAR,
index_weighting___percentage__at_17_january_2013 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the company where index weighting % is 11.96
### Response:
|
SELECT company FROM table_168274_1 WHERE index_weighting___percentage__at_17_january_2013 = "11.96"
|
### Instruction:
CREATE TABLE table_66335 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Height of the Player from the 2008 Club of RPA Perugia?
### Response:
|
SELECT "Height" FROM table_66335 WHERE "2008 club" = 'rpa perugia'
|
### Instruction:
CREATE TABLE table_4281 (
"Umpire" text,
"Country" text,
"Panel" text,
"Matches" real,
"WC Matches" real,
"2011 WC" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the umpire when the wc match was 10
### Response:
|
SELECT "Umpire" FROM table_4281 WHERE "WC Matches" = '10'
|
### Instruction:
CREATE TABLE table_2337 (
"School" text,
"Main location" text,
"Control" text,
"Type" text,
"Enrollment (2005)" real,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the main location for public and masters university
### Response:
|
SELECT "Main location" FROM table_2337 WHERE "Control" = 'Public' AND "Type" = 'Masters university'
|
### Instruction:
CREATE TABLE table_name_76 (
cuts_made INTEGER,
events VARCHAR,
wins VARCHAR,
top_25 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How man cuts were there of players who had 0 wins but had 1 player in the top 25 with more than 4 events?
### Response:
|
SELECT SUM(cuts_made) FROM table_name_76 WHERE wins = 0 AND top_25 = 1 AND events > 4
|
### Instruction:
CREATE TABLE table_204_542 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won by the most points at home ?
### Response:
|
SELECT "club" FROM table_204_542 ORDER BY "home" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_77 (
id number,
"number" text,
"builder" text,
"type" text,
"date" text,
"works number" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different types of diesel locomotives are dated after 1980 ?
### Response:
|
SELECT COUNT("number") FROM table_204_77 WHERE "date" > 1980
|
### Instruction:
CREATE TABLE table_21535453_1 (
brian_moran VARCHAR,
source VARCHAR,
creigh_deeds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%?
### Response:
|
SELECT brian_moran FROM table_21535453_1 WHERE source = "Survey USA" AND creigh_deeds = "26%"
|
### Instruction:
CREATE TABLE film (
title VARCHAR,
film_id VARCHAR
)
CREATE TABLE inventory (
film_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which film has the most copies in the inventory? List both title and id.
### Response:
|
SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_87 (
quantity INTEGER,
year_s__of_manufacture VARCHAR,
seats VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?
### Response:
|
SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40"
|
### Instruction:
CREATE TABLE table_60103 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the girl of the week after nicole woodruff in the same month?
### Response:
|
SELECT "Week 5" FROM table_60103 WHERE "Week 4" = 'nicole woodruff'
|
### Instruction:
CREATE TABLE table_18099 (
"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 was the earliest year someone was first elected from Massachusetts 3
### Response:
|
SELECT MIN("First elected") FROM table_18099 WHERE "District" = 'Massachusetts 3'
|
### Instruction:
CREATE TABLE table_47658 (
"Nat." text,
"Name" text,
"Since" text,
"Goals" real,
"Ends" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Nat., when Name is 'F bregas ( Captain )'?
### Response:
|
SELECT "Nat." FROM table_47658 WHERE "Name" = 'fàbregas ( captain )'
|
### Instruction:
CREATE TABLE table_name_70 (
avg_finish INTEGER,
position VARCHAR,
top_5 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?
### Response:
|
SELECT MIN(avg_finish) FROM table_name_70 WHERE position = "40th" AND top_5 > 0
|
### Instruction:
CREATE TABLE table_name_64 (
edition INTEGER,
runner_up VARCHAR,
year VARCHAR,
third VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the edition after 2003 when the Third was Tikve and Sileks was the runner-up?
### Response:
|
SELECT MIN(edition) FROM table_name_64 WHERE year > 2003 AND third = "tikveš" AND runner_up = "sileks"
|
### Instruction:
CREATE TABLE table_73890 (
"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.
-- name the title of the episode that ed sherin directed.
### Response:
|
SELECT "Title" FROM table_73890 WHERE "Directed by" = 'Ed Sherin'
|
### Instruction:
CREATE TABLE table_name_39 (
position VARCHAR,
player VARCHAR,
height VARCHAR,
year_born VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does Sergio Rodr guez, who is less than 1.96 tall and was born after 1980, play?
### Response:
|
SELECT position FROM table_name_39 WHERE height < 1.96 AND year_born > 1980 AND player = "sergio rodríguez"
|
### Instruction:
CREATE TABLE table_204_313 (
id number,
"date" text,
"operation" text,
"location" text,
"type" text,
"information" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which was the longest nato operation in terms of time ?
### Response:
|
SELECT "operation" FROM table_204_313 ORDER BY JULIANDAY("date") - JULIANDAY("date") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_11257 (
"Margin" real,
"Opponent" text,
"Score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the match against the St. George Illawarra Dragons?
### Response:
|
SELECT "Date" FROM table_11257 WHERE "Opponent" = 'st. george illawarra dragons'
|
### Instruction:
CREATE TABLE table_19535 (
"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.
-- How many positions does rene villemure play?
### Response:
|
SELECT COUNT("Position") FROM table_19535 WHERE "Player" = 'Rene Villemure'
|
### Instruction:
CREATE TABLE table_name_58 (
conference_joined VARCHAR,
location VARCHAR,
county VARCHAR,
year_joined VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the conference joined for the county 69 ripley in 1952 in versailles?
### Response:
|
SELECT conference_joined FROM table_name_58 WHERE county = "69 ripley" AND year_joined = 1952 AND location = "versailles"
|
### Instruction:
CREATE TABLE table_203_325 (
id number,
"year" number,
"title" text,
"(english)" text,
"ifpi israel certification" text,
"label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many albums did david d'or release with the hed arzi label ?
### Response:
|
SELECT COUNT("title") FROM table_203_325 WHERE "label" = 'hed arzi'
|
### Instruction:
CREATE TABLE table_6911 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Unit has Authors of dalla vecchia, wild, & reitner?
### Response:
|
SELECT "Unit" FROM table_6911 WHERE "Authors" = 'dalla vecchia, wild, & reitner'
|
### Instruction:
CREATE TABLE table_57455 (
"Finals" real,
"Team" text,
"Wins" real,
"Losses" real,
"Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many percentages have losses fewer than 1 with finals appearances of 4?
### Response:
|
SELECT COUNT("Pct.") FROM table_57455 WHERE "Losses" < '1' AND "Finals" = '4'
|
### Instruction:
CREATE TABLE table_29585 (
"Represent" real,
"Contestant" text,
"Age" real,
"Sizes" text,
"Height" text,
"Hometown" text,
"Agency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the oldest and lives in veraguas
### Response:
|
SELECT MAX("Age") FROM table_29585 WHERE "Hometown" = 'Veraguas'
|
### Instruction:
CREATE TABLE table_50581 (
"Team" text,
"Make" text,
"Drivers" text,
"Tyre" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the driver with a tyre of k for Avanzza Rosso?
### Response:
|
SELECT "Drivers" FROM table_50581 WHERE "Tyre" = 'k' AND "Team" = 'avanzza rosso'
|
### Instruction:
CREATE TABLE table_name_36 (
launched VARCHAR,
builder VARCHAR,
laid_down VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?
### Response:
|
SELECT launched FROM table_name_36 WHERE builder = "fujinagata shipyards, japan" AND laid_down = "20 october 1924"
|
### Instruction:
CREATE TABLE table_67433 (
"Ranking" real,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the person with 50 goals and rank 3?
### Response:
|
SELECT "Nationality" FROM table_67433 WHERE "Goals" = '50' AND "Ranking" = '3'
|
### Instruction:
CREATE TABLE table_202_85 (
id number,
"club" text,
"league" text,
"sport" text,
"venue" text,
"established" number,
"championships" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when were the madison mallards established ?
### Response:
|
SELECT "established" FROM table_202_85 WHERE "club" = 'madison mallards'
|
### Instruction:
CREATE TABLE table_62627 (
"Year" real,
"Winner" text,
"Finalist" text,
"Result" text,
"City" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner of fc gr n-wei wolfen?
### Response:
|
SELECT "Winner" FROM table_62627 WHERE "Finalist" = 'fc grün-weiß wolfen'
|
### Instruction:
CREATE TABLE table_80416 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game that was played on week 15?
### Response:
|
SELECT "Result" FROM table_80416 WHERE "Week" = '15'
|
### Instruction:
CREATE TABLE table_19 (
"Equivalent NATO Rank Code" text,
"Rank in Spanish" text,
"Rank in English" text,
"Commonwealth equivalent" text,
"US Air Force equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give me a list of all spanish officer titles that could receive recognition as group captain in english
### Response:
|
SELECT "Rank in English" FROM table_19 WHERE "Commonwealth equivalent" = 'Group Captain'
|
### Instruction:
CREATE TABLE table_204_320 (
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 have at least 2 bronze medals ?
### Response:
|
SELECT COUNT("nation") FROM table_204_320 WHERE "bronze" >= 2
|
### Instruction:
CREATE TABLE table_77013 (
"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.
-- Bob Love Category:Articles with hCards is from where?
### Response:
|
SELECT "From" FROM table_77013 WHERE "Player" = 'bob love category:articles with hcards'
|
### Instruction:
CREATE TABLE table_name_73 (
country VARCHAR,
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of the player with playoff money and a score of 66-67-70-67=270?
### Response:
|
SELECT country FROM table_name_73 WHERE money___$__ = "playoff" AND score = 66 - 67 - 70 - 67 = 270
|
### Instruction:
CREATE TABLE table_36398 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of the Coca-cola classic 12 hours of sebring race?
### Response:
|
SELECT "Class" FROM table_36398 WHERE "Race" = 'coca-cola classic 12 hours of sebring'
|
### Instruction:
CREATE TABLE table_18540 (
"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 is the number of candidates for pennsylvania 3
### Response:
|
SELECT COUNT("Candidates") FROM table_18540 WHERE "District" = 'Pennsylvania 3'
|
### Instruction:
CREATE TABLE table_204_523 (
id number,
"week" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did a game result in a loss ?
### Response:
|
SELECT COUNT(*) FROM table_204_523 WHERE "result" = 'loss'
|
### Instruction:
CREATE TABLE table_1360997_3 (
weight__kg_ VARCHAR,
winner_2nd VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are there for weight when the winner is 1st - defier and venue is randwick?
### Response:
|
SELECT COUNT(weight__kg_) FROM table_1360997_3 WHERE winner_2nd = "1st - Defier" AND venue = "Randwick"
|
### Instruction:
CREATE TABLE table_49053 (
"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 the class for the ERP W of 500?
### Response:
|
SELECT "Class" FROM table_49053 WHERE "ERP W" = '500'
|
### Instruction:
CREATE TABLE table_203_126 (
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.
-- which opponent had the largest amount of points scored ?
### Response:
|
SELECT "opponent#" FROM table_203_126 ORDER BY "result" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_53185 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Cornerback has the lowest Pick # and Round of less than 1?
### Response:
|
SELECT MIN("Pick #") FROM table_53185 WHERE "Position" = 'cornerback' AND "Round" < '1'
|
### Instruction:
CREATE TABLE table_name_53 (
matches VARCHAR,
draw VARCHAR,
lost VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of matches with a loss less than 5 in the 2008/2009 season and has a draw larger than 9?
### Response:
|
SELECT COUNT(matches) FROM table_name_53 WHERE lost < 5 AND season = "2008/2009" AND draw > 9
|
### Instruction:
CREATE TABLE table_52995 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Result listed that has a Date of June 12, 1997?
### Response:
|
SELECT "Result" FROM table_52995 WHERE "Date" = 'june 12, 1997'
|
### Instruction:
CREATE TABLE candidate (
people_id VARCHAR,
unsure_rate INTEGER
)
CREATE TABLE people (
sex VARCHAR,
people_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which gender got the highest average uncertain ratio.
### Response:
|
SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_75554 (
"Driver" text,
"Seasons" text,
"Entries" real,
"Wins" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season did jackie stewart enter with entries less than 215?
### Response:
|
SELECT "Seasons" FROM table_75554 WHERE "Entries" < '215' AND "Driver" = 'jackie stewart'
|
### Instruction:
CREATE TABLE table_29094 (
"Series #" real,
"Episode #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The episode with the title 'Written in Dust' is what episode #?
### Response:
|
SELECT "Episode #" FROM table_29094 WHERE "Title" = 'Written in Dust'
|
### Instruction:
CREATE TABLE table_204_276 (
id number,
"record" text,
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text,
"round" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which method is listed the least ?
### Response:
|
SELECT "method" FROM table_204_276 GROUP BY "method" ORDER BY COUNT(*) LIMIT 1
|
### Instruction:
CREATE TABLE table_name_21 (
losses INTEGER,
south_west_dfl VARCHAR,
byes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Losses have a South West DFL of branxholme-wallacedale, and less than 2 Byes?
### Response:
|
SELECT AVG(losses) FROM table_name_21 WHERE south_west_dfl = "branxholme-wallacedale" AND byes < 2
|
### Instruction:
CREATE TABLE table_37310 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the draw with less than 107 points by the artist Jan Johansen?
### Response:
|
SELECT COUNT("Draw") FROM table_37310 WHERE "Artist" = 'jan johansen' AND "Points" < '107'
|
### Instruction:
CREATE TABLE table_28844 (
"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 are the candidates for the Pennsylvania 11 district?
### Response:
|
SELECT "Candidates" FROM table_28844 WHERE "District" = 'Pennsylvania 11'
|
### Instruction:
CREATE TABLE table_name_83 (
others_percentage VARCHAR,
others_number VARCHAR,
kerry_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value Others% when the value Others# is greater than 147 and the value Kerry% is 39.6%?
### Response:
|
SELECT others_percentage FROM table_name_83 WHERE others_number > 147 AND kerry_percentage = "39.6%"
|
### Instruction:
CREATE TABLE table_20644 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original title for the counterfeiters
### Response:
|
SELECT "Original title" FROM table_20644 WHERE "Film title used in nomination" = 'The Counterfeiters'
|
### Instruction:
CREATE TABLE table_2 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which club was in toronto 2003-06
### Response:
|
SELECT "School/Club Team" FROM table_2 WHERE "Years in Toronto" = '2003-06'
|
### Instruction:
CREATE TABLE table_47676 (
"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 Team 2, when 2nd Leg is 0-3 1?
### Response:
|
SELECT "Team 2" FROM table_47676 WHERE "2nd leg" = '0-3 1'
|
### Instruction:
CREATE TABLE table_39230 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record after the game at the Astrodome?
### Response:
|
SELECT "Record" FROM table_39230 WHERE "Location" = 'astrodome'
|
### Instruction:
CREATE TABLE table_name_21 (
john_b_anderson VARCHAR,
phil_crane VARCHAR,
ronald_reagan VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the john b. anderson for ronald reagan of 43% and phil crane of 0%
### Response:
|
SELECT john_b_anderson FROM table_name_21 WHERE phil_crane = "0%" AND ronald_reagan = "43%"
|
### Instruction:
CREATE TABLE table_41999 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many districts featured the democrat nicholas von stein?
### Response:
|
SELECT COUNT("District") FROM table_41999 WHERE "Democratic" = 'nicholas von stein'
|
### Instruction:
CREATE TABLE table_name_71 (
runner_up VARCHAR,
rank VARCHAR,
last_win VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
### Response:
|
SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13
|
### Instruction:
CREATE TABLE table_50518 (
"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 instrumental has tkven-i as the genitive?
### Response:
|
SELECT "Instrumental" FROM table_50518 WHERE "Genitive" = 'tkven-i'
|
### Instruction:
CREATE TABLE table_45587 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of state has a royal house of ji and has a ruler?
### Response:
|
SELECT "Type" FROM table_45587 WHERE "Royal house" = 'ji' AND "Title" = 'ruler'
|
### Instruction:
CREATE TABLE table_1759 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The opponent was the New York Jets on what week?
### Response:
|
SELECT "Week" FROM table_1759 WHERE "Opponent" = 'New York Jets'
|
### Instruction:
CREATE TABLE table_77903 (
"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 roger williamson lapped less than 7?
### Response:
|
SELECT MAX("Grid") FROM table_77903 WHERE "Driver" = 'roger williamson' AND "Laps" < '7'
|
### Instruction:
CREATE TABLE table_204_423 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name with the only listing date on april 14 , 1961
### Response:
|
SELECT "name" FROM table_204_423 WHERE "listing date" = 'april 14, 1961'
|
### Instruction:
CREATE TABLE table_9181 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the census ranking when the area km 2 is 173.4?
### Response:
|
SELECT "Census Ranking" FROM table_9181 WHERE "Area km 2" = '173.4'
|
### Instruction:
CREATE TABLE table_60272 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of team 2 Stade Lavallois (D1)?
### Response:
|
SELECT "Score" FROM table_60272 WHERE "Team 2" = 'stade lavallois (d1)'
|
### Instruction:
CREATE TABLE table_38492 (
"Number" real,
"Station" text,
"Japanese" text,
"Distance (km)" real,
"Stop" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of Tamagaki station with an l stop?
### Response:
|
SELECT "Location" FROM table_38492 WHERE "Stop" = 'l' AND "Station" = 'tamagaki'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.