instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_56406 (
"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.
-- I want the manner of d... | SELECT "Manner of departure" FROM table_56406 WHERE "Date of appointment" = '12 october 2007' |
### Instruction:
CREATE TABLE table_74691 (
"Tujunga" text,
"La Crescenta- Montrose" text,
"Glendale" text,
"La Ca\u00f1ada Flintridge" text,
"Pasadena" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percentage of Tujunja when Pasadena i... | SELECT "Tujunga" FROM table_74691 WHERE "Pasadena" = '33%' |
### Instruction:
CREATE TABLE table_2016 (
"Pos" real,
"No" real,
"Driver" text,
"Constructor" text,
"Q1 order" real,
"Q1 time" text,
"Q1 pos" real,
"Q1+Q2 time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when q1 pos is 8 what is the... | SELECT "Q1+Q2 time" FROM table_2016 WHERE "Q1 pos" = '8' |
### Instruction:
CREATE TABLE table_2460 (
"#" real,
"Japanese title" text,
"R\u014dmaji" text,
"Japanese translation" text,
"Vocalist" text,
"Episodes used" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When momoiro clover z is the vocalist ho... | SELECT COUNT("Japanese title") FROM table_2460 WHERE "Vocalist" = 'Momoiro Clover Z' |
### Instruction:
CREATE TABLE table_204_296 (
id number,
"rank" number,
"athlete" text,
"qual" number,
"final" number,
"total" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who scored higher in total score of the two athlete... | SELECT "athlete" FROM table_204_296 WHERE "athlete" = 'urs' ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_22216 (
"Year" real,
"Delegate" text,
"Hometown" text,
"Pageant" text,
"Result" text,
"Other awards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where pageant is elite model look and year is bigger than 199... | SELECT "Delegate" FROM table_22216 WHERE "Pageant" = 'Elite Model Look' AND "Year" > '1993.0' |
### Instruction:
CREATE TABLE table_27663 (
"Date" text,
"Tournament" text,
"Location" text,
"Opponent" text,
"Stadium" text,
"Score" text,
"Indian Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the location is Yangon, Myanmar, w... | SELECT COUNT("Opponent") FROM table_27663 WHERE "Location" = 'Yangon, Myanmar' |
### Instruction:
CREATE TABLE table_47931 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the opponent in the final when the score was 6 3, 2 6, 7 5?
#... | SELECT "Opponent in the final" FROM table_47931 WHERE "Score" = '6–3, 2–6, 7–5' |
### Instruction:
CREATE TABLE table_204_324 (
id number,
"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.
-- who were the 6 teams to play in the first leg of the 2011 caf u-23 champ... | SELECT "team 1", "team 2" FROM table_204_324 WHERE NOT "1st leg" IS NULL |
### Instruction:
CREATE TABLE table_32039 (
"Manager" text,
"Ukraine career" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Win %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total win % of manager viktor prokopenko, when he los... | SELECT COUNT("Win %") FROM table_32039 WHERE "Manager" = 'viktor prokopenko' AND "Lost" < '2' |
### Instruction:
CREATE TABLE table_70811 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Assists that has a Blocks of 2 tied (1) with a Year larger th... | SELECT "Assists" FROM table_70811 WHERE "Blocks" = '2 tied (1)' AND "Year" > '1995' |
### Instruction:
CREATE TABLE table_10525 (
"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 silver when gold is 1 and the rank is less than 3 for japan?
### ... | SELECT "Silver" FROM table_10525 WHERE "Gold" = '1' AND "Rank" < '3' AND "Nation" = 'japan' |
### Instruction:
CREATE TABLE table_55614 (
"Network" text,
"8:00 PM" text,
"8:30 PM" text,
"9:00 PM" text,
"9:30 PM" text,
"10:00 PM" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is on at 9:00pm on the channel of smallville?
### Respon... | SELECT "9:00 PM" FROM table_55614 WHERE "8:00 PM" = 'smallville' |
### Instruction:
CREATE TABLE table_72600 (
"Year" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all values for Womens Double... | SELECT "Womens doubles" FROM table_72600 WHERE "Year" = '2000/2001' |
### Instruction:
CREATE TABLE table_47546 (
"Game" real,
"Date" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent for a game over 31... | SELECT "Opponent" FROM table_47546 WHERE "Game" > '31' AND "Date" > '30' |
### Instruction:
CREATE TABLE table_203_586 (
id number,
"#" number,
"nation" text,
"qualification tournament" text,
"place in qt" number,
"sailor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which nation came in last in the 2007 worlds quali... | SELECT "nation" FROM table_203_586 WHERE "qualification tournament" = '2007 worlds' ORDER BY "place in qt" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_69139 (
"Representative" text,
"Years" text,
"State" text,
"Party" text,
"Lifespan" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What years did the Representative from Iowa with a lifespan of 1880 1942 serve?
... | SELECT "Years" FROM table_69139 WHERE "State" = 'iowa' AND "Lifespan" = '1880–1942' |
### Instruction:
CREATE TABLE table_56908 (
"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.
-- When the home team scored 8.8 (... | SELECT "Away team" FROM table_56908 WHERE "Home team score" = '8.8 (56)' |
### Instruction:
CREATE TABLE table_27919 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What numbered me... | SELECT "meas. num" FROM table_27919 WHERE "% YES" = '58.29%' |
### Instruction:
CREATE TABLE table_52153 (
"Date" text,
"Venue" text,
"Result" text,
"Competition" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1948-10-28, in what Venue was the Competition of International Match held?
### Resp... | SELECT "Venue" FROM table_52153 WHERE "Competition" = 'international match' AND "Date" = '1948-10-28' |
### Instruction:
CREATE TABLE table_73452 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all di... | SELECT "Directed by" FROM table_73452 WHERE "Viewers (in millions)" = '1.945' |
### Instruction:
CREATE TABLE table_203_58 (
id number,
"airline" text,
"airline (in russian)" text,
"licence #" number,
"icao" text,
"iata" text,
"domestic code" text,
"callsign" text,
"photo" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "airline" FROM table_203_58 ORDER BY "licence #" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_19198 (
"Chassis Manufacturer" text,
"Chassis Model" text,
"Body Model" text,
"Number in Fleet" real,
"Fleet Numbers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis manufacturer is for fleet numbers ... | SELECT "Chassis Manufacturer" FROM table_19198 WHERE "Fleet Numbers" = '2530-2558' |
### Instruction:
CREATE TABLE table_22236 (
"Candidates" text,
"Votes Khuzestan" real,
"% of votes Khuzestan" text,
"Votes Nationally" real,
"% of votes nationally" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes Khuzestan were there w... | SELECT MIN("Votes Khuzestan") FROM table_22236 WHERE "% of votes Khuzestan" = '34.50' |
### Instruction:
CREATE TABLE table_28610 (
"Round" real,
"Location" text,
"Country" text,
"Date" text,
"Fastest Qualifying" text,
"Winning Pilot" text,
"Winning Aircraft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When united arab emira... | SELECT COUNT("Fastest Qualifying") FROM table_28610 WHERE "Country" = 'United Arab Emirates' |
### Instruction:
CREATE TABLE table_204_992 (
id number,
"team" text,
"manager" text,
"city" text,
"stadium" text,
"capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most amount of people that can attend a deportivo saprissa g... | SELECT "capacity" FROM table_204_992 WHERE "team" = 'deportivo saprissa' AND "stadium" = 'ricardo saprissa' |
### Instruction:
CREATE TABLE table_26671 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people are en... | SELECT MIN("Enrollment") FROM table_26671 WHERE "Location" = 'Milwaukee, Wisconsin' |
### Instruction:
CREATE TABLE table_name_60 (
winning_party_2007 VARCHAR,
constituency VARCHAR,
result VARCHAR,
swing_to_gain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the winning party 2007 for result of labour hold and swing to gain less ... | SELECT winning_party_2007 FROM table_name_60 WHERE result = "labour hold" AND swing_to_gain < 7.11 AND constituency = "wrexham" |
### Instruction:
CREATE TABLE table_24757 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT "No. in series" FROM table_24757 WHERE "Title" = 'Call of Silence' |
### Instruction:
CREATE TABLE table_28256 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Prod. code" real,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who d... | SELECT "Director" FROM table_28256 WHERE "Title" = 'Hammers and Veils' |
### Instruction:
CREATE TABLE table_24028 (
"Ep." real,
"Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the title that aired for n... | SELECT "Title" FROM table_24028 WHERE "Original air date" = 'November 08, 1985' |
### Instruction:
CREATE TABLE table_74923 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest November that has a game less than 12, and @ detr... | SELECT MAX("November") FROM table_74923 WHERE "Game" < '12' AND "Opponent" = '@ detroit red wings' |
### Instruction:
CREATE TABLE table_13516 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time for the match th... | SELECT "Time" FROM table_13516 WHERE "Res." = 'loss' AND "Round" < '3' |
### Instruction:
CREATE TABLE table_10159 (
"Election" text,
"D\u00e1il" text,
"Share of votes" text,
"Seats" real,
"Total seats" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the total number of seats is under 144, and the seats won is 32, whic... | SELECT "Election" FROM table_10159 WHERE "Total seats" < '144' AND "Seats" = '32' |
### Instruction:
CREATE TABLE table_203_518 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined\nmac" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the... | SELECT "enrollment" FROM table_203_518 WHERE "institution" = 'misericordia university' |
### Instruction:
CREATE TABLE table_29807 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Record") FROM table_29807 WHERE "Date" = 'November 24' |
### Instruction:
CREATE TABLE table_203_762 (
id number,
"#" number,
"date" text,
"film" text,
"gross" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the previous film to air before collateral damage ?
### Response:
| SELECT "film" FROM table_203_762 WHERE "date" < (SELECT "date" FROM table_203_762 WHERE "film" = 'collateral damage') ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_62419 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pick # has a Nationality of canada, and a Team fr... | SELECT MIN("Pick #") FROM table_62419 WHERE "Nationality" = 'canada' AND "Team from" = 'sudbury wolves' |
### Instruction:
CREATE TABLE problems (
problem_id VARCHAR,
reported_by_staff_id VARCHAR
)
CREATE TABLE staff (
staff_id VARCHAR,
staff_last_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the ids of the problems that are reported by the s... | SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco" |
### Instruction:
CREATE TABLE table_203_519 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the ... | SELECT MAX("points") - MIN("points") FROM table_203_519 |
### Instruction:
CREATE TABLE table_43095 (
"Week" real,
"Date" text,
"Opponent" text,
"Time" text,
"Game Site" text,
"Result/Score" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks have w... | SELECT SUM("Week") FROM table_43095 WHERE "Result/Score" = 'w 51-29' |
### Instruction:
CREATE TABLE table_60232 (
"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 total number of First Elected, when Party is 'Democratic', and wh... | SELECT COUNT("First elected") FROM table_60232 WHERE "Party" = 'democratic' AND "District" = 'tennessee 5' |
### 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.
-- which country has more medals , colombia or vene... | SELECT "nation" FROM table_204_232 WHERE "nation" IN ('colombia', 'venezuela') ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_15984 (
"Week" real,
"Dance/song" text,
"Horwood" text,
"Goodman" text,
"Dixon" text,
"Tonioli" text,
"Total" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many songs received a 10 ... | SELECT COUNT("Tonioli") FROM table_15984 WHERE "Goodman" = '10' |
### Instruction:
CREATE TABLE table_32959 (
"Institution" text,
"Government" real,
"Aided" real,
"Unaided" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Institution has a Total smaller than 13, a Government amount of 1, and an A... | SELECT "Institution" FROM table_32959 WHERE "Total" < '13' AND "Government" = '1' AND "Aided" = '0' |
### Instruction:
CREATE TABLE table_2238 (
"No" real,
"Season" real,
"Ep" real,
"Title" text,
"Writer" text,
"Director" text,
"Original airdate" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of writers fo... | SELECT COUNT("Writer") FROM table_2238 WHERE "Original airdate" = '15 July 1967' |
### Instruction:
CREATE TABLE table_857 (
"Rnd" real,
"Circuit" text,
"GTP Winning Team" text,
"GTO Winning Team" text,
"GTU Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different results came out of the ... | SELECT COUNT("Results") FROM table_857 WHERE "GTU Winning Team" = '#98 All American Racers' |
### Instruction:
CREATE TABLE table_49111 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is the home t... | SELECT COUNT("Crowd") FROM table_49111 WHERE "Home team" = 'wollongong hawks' |
### Instruction:
CREATE TABLE table_72451 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was... | SELECT "Result" FROM table_72451 WHERE "Race" = 'Railway Stakes' |
### Instruction:
CREATE TABLE table_204_609 (
id number,
"year" number,
"car" number,
"start" number,
"qual" number,
"rank" number,
"finish" number,
"laps" number,
"led" number,
"retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT(*) FROM table_204_609 WHERE "finish" < 10 |
### Instruction:
CREATE TABLE table_9287 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?
### Response... | SELECT "Opponent" FROM table_9287 WHERE "October" < '31' AND "Game" > '5' AND "Record" = '2-3-1' |
### Instruction:
CREATE TABLE table_202_244 (
id number,
"rank" number,
"title" text,
"studio" text,
"actors" text,
"gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the second highest grossing film of 1977 .
### Response:
| SELECT "title" FROM table_202_244 WHERE id <> (SELECT id FROM table_202_244 ORDER BY "gross" DESC LIMIT 1) ORDER BY "gross" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_62253 (
"Draw" real,
"Televotes" text,
"Televote Points" text,
"Jury Points" text,
"Total" text,
"Final Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the televote points for 0 jury points and ... | SELECT "Televote Points" FROM table_62253 WHERE "Jury Points" = '0' AND "Draw" = '23' |
### Instruction:
CREATE TABLE table_19951 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In episode 115 what is seen being... | SELECT "Segment B" FROM table_19951 WHERE "Segment C" = 'British Police Helmets' |
### Instruction:
CREATE TABLE table_37280 (
"Rocket" text,
"Country" text,
"Type" text,
"Launches" real,
"Successes" real,
"Failures" real,
"Partial failures" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of succe... | SELECT MAX("Successes") FROM table_37280 WHERE "Launches" > '1' AND "Failures" < '0' |
### Instruction:
CREATE TABLE table_39698 (
"Call sign" text,
"Launched" text,
"Transmitting from" text,
"Coverage" text,
"Languages" text,
"Frequency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the station with a coverage of yucat ... | SELECT "Transmitting from" FROM table_39698 WHERE "Coverage" = 'yucatán quintana roo campeche' |
### Instruction:
CREATE TABLE table_name_98 (
population INTEGER,
per_capita_income VARCHAR,
number_of_households VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population when the Per capita income of $18,884, and a Number of households smal... | SELECT SUM(population) FROM table_name_98 WHERE per_capita_income = "$18,884" AND number_of_households < 14 OFFSET 485 |
### Instruction:
CREATE TABLE table_16849531_2 (
ncbi_accession_number__mrna_protein_ VARCHAR,
length__bp_aa_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NCBI Accession Number for the length of 5304bp/377aa?
### Response:
| SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE length__bp_aa_ = "5304bp/377aa" |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Type, COUNT(*) FROM ship GROUP BY Type |
### Instruction:
CREATE TABLE table_31679 (
"Year" real,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text,
"Avg. Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What division has finalist playof... | SELECT "Division" FROM table_31679 WHERE "Playoffs" = 'finalist' AND "Open Cup" = '3rd round' |
### Instruction:
CREATE TABLE table_29866 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Record") FROM table_29866 WHERE "Date" = 'October 6' |
### Instruction:
CREATE TABLE table_41827 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"Socialist ticket" text,
"Constitutional ticket" text,
"Law Preservation ticket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wa... | SELECT "Constitutional ticket" FROM table_41827 WHERE "Republican ticket" = 'charles b. sears' |
### Instruction:
CREATE TABLE table_69383 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the value 'League Cup', when the Total is less than... | SELECT SUM("League Cup") FROM table_69383 WHERE "Total" < '1' AND "League" < '0' |
### Instruction:
CREATE TABLE table_204_655 (
id number,
"year" number,
"winner" text,
"album" text,
"other finalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won the award after p money won it in 2005 ?
### Response:
| SELECT "winner" FROM table_204_655 WHERE "year" > (SELECT "year" FROM table_204_655 WHERE "winner" = 'p-money') ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE table_74166 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High rebounds" FROM table_74166 WHERE "Date" = 'December 12' |
### Instruction:
CREATE TABLE table_12099 (
"Date" text,
"Epicenter" text,
"Magnitude" text,
"Intensity" text,
"Casualties" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many casualties were in the earthquake with an unknown intensity and an ep... | SELECT "Casualties" FROM table_12099 WHERE "Intensity" = 'unknown' AND "Epicenter" = 'bouïra province' |
### Instruction:
CREATE TABLE table_2375 (
"Title/Subject" text,
"Public Office" text,
"Artist" text,
"Date Painted/Created" text,
"Medium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the subject of the bronze sculpture who was a colonist... | SELECT "Title/Subject" FROM table_2375 WHERE "Medium" = 'Bronze' AND "Public Office" = 'colonist and soldier in Ville Marie, New France' |
### Instruction:
CREATE TABLE table_78377 (
"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 time/retired for phil hill with over 67 laps and a grad smaller than 1... | SELECT "Time/Retired" FROM table_78377 WHERE "Laps" > '67' AND "Grid" < '18' AND "Driver" = 'phil hill' |
### Instruction:
CREATE TABLE table_17949 (
"Season" text,
"Airdate" text,
"The Mole" text,
"Winner" text,
"Runner-up" text,
"Prize money" text,
"International destination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the mole with ... | SELECT "The Mole" FROM table_17949 WHERE "Prize money" = '€24,475' |
### Instruction:
CREATE TABLE table_51874 (
"Planet" text,
"Planet Type" text,
"Semimajor Axis ( AU )" real,
"Orbital Period" text,
"Radial velocity (m/s)" real,
"Detectable by:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How can Planet, 51 ... | SELECT "Detectable by:" FROM table_51874 WHERE "Planet" = '51 pegasi b' |
### Instruction:
CREATE TABLE table_name_28 (
enrollment_08_09 INTEGER,
previous_counference VARCHAR,
ihsaa_class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average enrollment 08=09, for the team that had a previous conference of lake and... | SELECT AVG(enrollment_08_09) FROM table_name_28 WHERE previous_counference = "lake" AND ihsaa_class = "3a" |
### Instruction:
CREATE TABLE table_27892 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT COUNT("Type") FROM table_27892 WHERE "Settlement" = 'Neradin' |
### Instruction:
CREATE TABLE table_203_350 (
id number,
"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 1st leg score in the match between lamia and kastoria ?
... | SELECT "1st leg" FROM table_203_350 WHERE "team #1" = 'lamia' AND "team #2" = 'kastoria' |
### Instruction:
CREATE TABLE table_42007 (
"Member State" text,
"Population in millions" real,
"Population % of EU" text,
"Area km 2" real,
"Area % of EU" text,
"Pop. density People/km 2" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is t... | SELECT "Area % of EU" FROM table_42007 WHERE "Population in millions" = '16.4' |
### Instruction:
CREATE TABLE table_2229 (
"Pos" text,
"No" text,
"Driver" text,
"Constructor" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what grid was the time for part 1 ... | SELECT "Grid" FROM table_2229 WHERE "Part 1" = '1:31.063' |
### Instruction:
CREATE TABLE table_16349 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what years was a film submitted with th... | SELECT "Year [e ] (Ceremony)" FROM table_16349 WHERE "Film title used in nomination" = 'The Enigma of Kaspar Hauser' |
### Instruction:
CREATE TABLE table_21053 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Carl Levin" text,
"Republican: Jack Hoogendyk" text,
"Lead Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did Public Policy ... | SELECT COUNT("Republican: Jack Hoogendyk") FROM table_21053 WHERE "Poll Source" = 'Public Policy Polling' |
### Instruction:
CREATE TABLE table_204_330 (
id number,
"finished" text,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who finished earlier , hindoocraft or spokane... | SELECT "horse" FROM table_204_330 WHERE "horse" IN ('hindoocraft', 'spokane') ORDER BY "finished" LIMIT 1 |
### Instruction:
CREATE TABLE table_1277350_1 (
thursday_iuppiter__jupiter_ VARCHAR,
saturday_saturnus___saturn_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the thursday iuppiter (jupiter) with saturday saturnus ( saturn) being jesarn
### Respons... | SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE saturday_saturnus___saturn_ = "Jesarn" |
### Instruction:
CREATE TABLE table_69698 (
"Name" text,
"Championship" real,
"League Cup" real,
"FA Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many FA cups for the player with under 5 champs, 0 league cups, and over 3 tot... | SELECT SUM("FA Cup") FROM table_69698 WHERE "Championship" < '5' AND "League Cup" = '0' AND "Total" > '3' |
### Instruction:
CREATE TABLE table_28476 (
"Character" text,
"Played by" text,
"Season 1" real,
"Season 2" real,
"Season 3" real,
"Season 4" real,
"First Appearance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first appearanc... | SELECT "First Appearance" FROM table_28476 WHERE "Played by" = 'Obdul Reid' |
### Instruction:
CREATE TABLE table_5815 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location h... | SELECT "Location Attendance" FROM table_5815 WHERE "Score" = 'l 90–91 (ot)' |
### Instruction:
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- U... | SELECT advisor FROM student WHERE stuid = 1004 |
### Instruction:
CREATE TABLE table_36923 (
"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.
-- What is th... | SELECT "Per capita income" FROM table_36923 WHERE "Median household income" = '$55,800' |
### Instruction:
CREATE TABLE table_204_587 (
id number,
"drop(s)" text,
"multiplayer map(s)" text,
"spec ops mission(s)" text,
"face off map(s)" text,
"xbox 360 release date" text,
"playstation 3 release date" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT SUM("multiplayer map(s)") FROM table_204_587 |
### Instruction:
CREATE TABLE table_11471 (
"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.
-- When the game was played at the... | SELECT "Home team score" FROM table_11471 WHERE "Venue" = 'lake oval' |
### Instruction:
CREATE TABLE table_24706337_1 (
ottoman_sultan VARCHAR,
treaty_at_the_end_of_the_war VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)?
... | SELECT ottoman_sultan FROM table_24706337_1 WHERE treaty_at_the_end_of_the_war = "Treaty of Constantinople (1590)" |
### Instruction:
CREATE TABLE table_17428 (
"Model/Engine" text,
"Capacity" text,
"Cylinders/Valves" text,
"Power/rpm" text,
"Torque (Nm)/rpm" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The 1.6 Duratec model/engine has how many torque formulas?
... | SELECT COUNT("Torque (Nm)/rpm") FROM table_17428 WHERE "Model/Engine" = '1.6 Duratec' |
### Instruction:
CREATE TABLE table_25052 (
"Rank Subcontinent" real,
"Rank Asia" real,
"Rank World" real,
"Country" text,
"2011 GDP (PPP) billions of USD" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2011 gdp for 65 rank world
### Resp... | SELECT "2011 GDP (PPP) billions of USD" FROM table_25052 WHERE "Rank World" = '65' |
### Instruction:
CREATE TABLE table_74963 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament has an Outcome of winner on 19 october 2008?
#... | SELECT "Tournament" FROM table_74963 WHERE "Outcome" = 'winner' AND "Date" = '19 october 2008' |
### Instruction:
CREATE TABLE table_70039 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Makarora primary school has a roll less than 141 and wh... | SELECT "Gender" FROM table_70039 WHERE "Roll" < '141' AND "Name" = 'makarora primary school' |
### Instruction:
CREATE TABLE table_69498 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record does the event of drea... | SELECT "Record" FROM table_69498 WHERE "Round" = '2' AND "Event" = 'dream 9' |
### Instruction:
CREATE TABLE table_19868 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Malaysian rider classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following quest... | SELECT "Malaysian rider classification" FROM table_19868 WHERE "Stage winner" = 'Hossein Askari' |
### Instruction:
CREATE TABLE table_10088 (
"Number" real,
"Name" text,
"Year Built" text,
"Boat Builder" text,
"Current Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did J. Jones, trearddur bay build a boat with a current status ... | SELECT "Year Built" FROM table_10088 WHERE "Current Status" = 'tbsc' AND "Boat Builder" = 'j. jones, trearddur bay' |
### Instruction:
CREATE TABLE table_23009 (
"No." real,
"State/Region" text,
"Districts" real,
"Town ships" real,
"Cities/ Towns" real,
"Wards" real,
"Village groups" real,
"Villages" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... | SELECT "Villages" FROM table_23009 WHERE "State/Region" = 'Magway Region' |
### Instruction:
CREATE TABLE table_71032 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game with a score of 5 2, and a Loss of lilly (9 9)... | SELECT "Date" FROM table_71032 WHERE "Score" = '5–2' AND "Loss" = 'lilly (9–9)' |
### Instruction:
CREATE TABLE table_40938 (
"Pilot" text,
"Original Airdate" text,
"Musical Guest/Song performed" text,
"YouTube Hero" text,
"MySpace Band" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Musical Guest/Song with an origina... | SELECT "Musical Guest/Song performed" FROM table_40938 WHERE "Original Airdate" = 'january 2008' |
### Instruction:
CREATE TABLE table_73664 (
"Circuit" text,
"Difficulty" text,
"Turns" real,
"Direction" text,
"Setting" text,
"Conditions" text,
"Unlock Order" real,
"Unlocks" text,
"Unlocked by" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Difficulty" FROM table_73664 WHERE "Circuit" = 'Athens' |
### Instruction:
CREATE TABLE table_train_219 (
"id" int,
"hematocrit_hct" float,
"fasting_plasma_glucose" int,
"hba1c" float,
"urine_protein" int,
"iothalamate_clearance" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- hematocr... | SELECT * FROM table_train_219 WHERE hematocrit_hct > 34 |
### Instruction:
CREATE TABLE table_name_22 (
format VARCHAR,
open_standard VARCHAR,
image_support VARCHAR,
interactivity_support VARCHAR,
word_wrap_support VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format has an Interactivity support ... | SELECT format FROM table_name_22 WHERE interactivity_support = "no" AND word_wrap_support = "yes" AND image_support = "yes" AND open_standard = "yes" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.