instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_70529 (
"Name" text,
"Country" text,
"Status" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer window for the country of ESP and the name of de la re... | SELECT "Transfer window" FROM table_70529 WHERE "Country" = 'esp' AND "Name" = 'de la red' |
### Instruction:
CREATE TABLE table_41757 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the School/Club team of Louisville?... | SELECT "Nationality" FROM table_41757 WHERE "School/Club Team" = 'louisville' |
### Instruction:
CREATE TABLE table_204_970 (
id number,
"year" number,
"award" text,
"category" text,
"title" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only tv show this actor was nominated for a daytime emmy aw... | SELECT "title" FROM table_204_970 WHERE "award" = 'daytime emmy award' |
### Instruction:
CREATE TABLE user_profiles (
uid number,
name text,
email text,
partitionid number,
followers number
)
CREATE TABLE follows (
f1 number,
f2 number
)
CREATE TABLE tweets (
id number,
uid number,
text text,
createdate time
)
-- Using valid SQLite, answer th... | SELECT COUNT(*) FROM tweets |
### Instruction:
CREATE TABLE table_74971 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is hemophilia's bleeding time?
##... | SELECT "Bleeding time" FROM table_74971 WHERE "Condition" = 'hemophilia' |
### Instruction:
CREATE TABLE table_19401346_1 (
no_in_series INTEGER,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the series number of the episode seen by 9.35 million people in the US?
### Response:
| SELECT MIN(no_in_series) FROM table_19401346_1 WHERE us_viewers__millions_ = "9.35" |
### Instruction:
CREATE TABLE table_204_747 (
id number,
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"events" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in how many seasons did david nedohin play ?
### Respons... | SELECT COUNT("season") FROM table_204_747 WHERE "skip" = 'david nedohin' |
### Instruction:
CREATE TABLE table_22915134_2 (
graphical VARCHAR,
ignition_timing VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 68-292-68-292 is the ignition timing how many graphicals is it?
### Response:
| SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292" |
### Instruction:
CREATE TABLE review (
i_id VARCHAR,
rating INTEGER
)
CREATE TABLE item (
title VARCHAR,
i_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the item with the lowest average rating.
### Response:
| SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1 |
### Instruction:
CREATE TABLE table_name_43 (
pole_position VARCHAR,
date VARCHAR,
fastest_lap VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the pole position for graham hill the fastest lap and winning driver of him ... | SELECT pole_position FROM table_name_43 WHERE fastest_lap = "graham hill" AND winning_driver = "graham hill" AND date = "30 may" |
### Instruction:
CREATE TABLE table_30015 (
"Province" text,
"Provincial capital" text,
"Commandery" text,
"Commandery capital" text,
"No. of counties" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when changsha is the commandery what is the comman... | SELECT "Commandery capital" FROM table_30015 WHERE "Commandery" = 'Changsha 長沙' |
### Instruction:
CREATE TABLE table_64713 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the rank of the rower with an r note from Australia?
### Response:
| SELECT SUM("Rank") FROM table_64713 WHERE "Notes" = 'r' AND "Country" = 'australia' |
### Instruction:
CREATE TABLE table_30853 (
"Series" real,
"Premiere" text,
"Finale" text,
"Runners-up" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the season for which Brendan Lynch is the runner-up?
### Response:
| SELECT "Winner" FROM table_30853 WHERE "Runners-up" = 'Brendan Lynch' |
### Instruction:
CREATE TABLE table_29085 (
"Round #" text,
"Home Team" text,
"Win/Loss" text,
"Score" text,
"Opposition" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location when the opposition is mid canterbury?... | SELECT "Location" FROM table_29085 WHERE "Opposition" = 'Mid Canterbury' |
### Instruction:
CREATE TABLE table_7449 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality has a School/Club Team of louisiana state?
... | SELECT "Nationality" FROM table_7449 WHERE "School/Club Team" = 'louisiana state' |
### Instruction:
CREATE TABLE table_67375 (
"Year" text,
"Men's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the women's doubles pair in 1952?
### Response:
| SELECT "Women's doubles" FROM table_67375 WHERE "Year" = '1952' |
### Instruction:
CREATE TABLE table_14259 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average rank when the cyclist is alexandr pliuschin?
### Response:
| SELECT AVG("Rank") FROM table_14259 WHERE "Cyclist" = 'alexandr pliuschin' |
### Instruction:
CREATE TABLE table_57602 (
"Index" text,
"Organization" text,
"Year" text,
"Rank" real,
"Out of" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the year for rank more than 35 and out of 167
### Response:
| SELECT "Year" FROM table_57602 WHERE "Rank" > '35' AND "Out of" = '167' |
### Instruction:
CREATE TABLE table_42375 (
"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.
-- Which team 1 has vfl gummersbach as team 2?
### Response:
| SELECT "Team 1" FROM table_42375 WHERE "Team 2" = 'vfl gummersbach' |
### Instruction:
CREATE TABLE table_15868 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During what period did Dell Curry play for Tor... | SELECT "Years in Toronto" FROM table_15868 WHERE "Player" = 'Dell Curry' |
### Instruction:
CREATE TABLE table_21628 (
"Series #" real,
"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.
-- What is the season number for 'Impulse Control'... | SELECT MIN("Season #") FROM table_21628 WHERE "Title" = 'Impulse Control' |
### Instruction:
CREATE TABLE table_80183 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps was qualifier of 138.212?
### Response:
| SELECT "Laps" FROM table_80183 WHERE "Qual" = '138.212' |
### Instruction:
CREATE TABLE table_name_27 (
laps INTEGER,
time_retired VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108?
#... | SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+28.108" AND grid > 11 |
### Instruction:
CREATE TABLE table_2001348_1 (
revising_convention_s_ VARCHAR,
denunciations__september_2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the revising conventions commentary with a denunciation of 21?
### Response:
| SELECT revising_convention_s_ FROM table_2001348_1 WHERE denunciations__september_2011_ = 21 |
### Instruction:
CREATE TABLE table_47891 (
"Year" real,
"Album" text,
"Release type" text,
"Label" text,
"Hungarian top 40 album charts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had the Hungarian top 40 album charts of 3?
### Resp... | SELECT "Year" FROM table_47891 WHERE "Hungarian top 40 album charts" = '3' |
### Instruction:
CREATE TABLE table_18187 (
"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.
-- what's the first elected with district illinois 18
##... | SELECT "First elected" FROM table_18187 WHERE "District" = 'Illinois 18' |
### Instruction:
CREATE TABLE table_47440 (
"Year" real,
"Nominated/Won" text,
"Award/category" text,
"Festival/organization" text,
"Role" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first year that there was a Satellite Award?
### ... | SELECT MIN("Year") FROM table_47440 WHERE "Festival/organization" = 'satellite award' |
### Instruction:
CREATE TABLE table_5237 (
"Season" text,
"Tier" real,
"Division" text,
"Pos." real,
"Postseason" text,
"Cup Competitions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest tier for a postseason result of quarterf... | SELECT MIN("Tier") FROM table_5237 WHERE "Postseason" = 'quarterfinalist' |
### Instruction:
CREATE TABLE table_66903 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average year for 0 points and ferrari v8?
### Response:
| SELECT AVG("Year") FROM table_66903 WHERE "Points" = '0' AND "Engine" = 'ferrari v8' |
### Instruction:
CREATE TABLE table_41179 (
"Team" text,
"Match" text,
"Points" text,
"Draw" text,
"Lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Draw for match 10, and the team was skra warszawa?
### Response:
| SELECT "Draw" FROM table_41179 WHERE "Match" = '10' AND "Team" = 'skra warszawa' |
### Instruction:
CREATE TABLE table_49761 (
"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 team 1 when Red Star (D1) was team 2?
### Response:
| SELECT "Team 1" FROM table_49761 WHERE "Team 2" = 'red star (d1)' |
### Instruction:
CREATE TABLE table_37603 (
"Order" real,
"Built" text,
"Serial Numbers" text,
"Quantity" real,
"1st No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with build 5/69-6/69 what's the order?
### Response:
| SELECT SUM("Order") FROM table_37603 WHERE "Built" = '5/69-6/69' |
### Instruction:
CREATE TABLE table_204_662 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of points scored in week 3 ?
... | SELECT "result" + "result" FROM table_204_662 WHERE "week" = 3 |
### Instruction:
CREATE TABLE table_45561 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Week, when Date is December 2, 2001?
### Response:
| SELECT SUM("Week") FROM table_45561 WHERE "Date" = 'december 2, 2001' |
### Instruction:
CREATE TABLE table_60499 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par of player vijay singh?
### Response:
| SELECT "To par" FROM table_60499 WHERE "Player" = 'vijay singh' |
### Instruction:
CREATE TABLE table_204_511 (
id number,
"number" number,
"driver" text,
"entrant" text,
"chassis" text,
"engine" text,
"tyre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only engine used one time ?
### Resp... | SELECT "engine" FROM table_204_511 GROUP BY "engine" HAVING COUNT(*) = 1 |
### Instruction:
CREATE TABLE table_name_30 (
population VARCHAR,
height__m_ VARCHAR,
area___ha__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?
### Response:... | SELECT population FROM table_name_30 WHERE height__m_ = 15 AND area___ha__ = "00017 17" |
### Instruction:
CREATE TABLE table_78820 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the kickoff time for the game in week of 17?
### Res... | SELECT "Kickoff Time" FROM table_78820 WHERE "Week" = '17' |
### Instruction:
CREATE TABLE table_54007 (
"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 is the decision on the date march 18?
### ... | SELECT "Decision" FROM table_54007 WHERE "Date" = 'march 18' |
### Instruction:
CREATE TABLE table_75632 (
"Year" text,
"Name" text,
"Political affiliation" text,
"Deputy" text,
"Deputy's affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Deputy when the Name was elizabeth black... | SELECT "Deputy" FROM table_75632 WHERE "Name" = 'elizabeth black' |
### Instruction:
CREATE TABLE table_203_629 (
id number,
"year" number,
"title" text,
"lead vocalist" text,
"aria chart position" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the lead vocalist in sweat it out ?
### Re... | SELECT "lead vocalist" FROM table_203_629 WHERE "title" = '"sweat it out"' |
### Instruction:
CREATE TABLE table_59892 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the UEFA Cup, against Palermo?
### Response:
| SELECT "Result" FROM table_59892 WHERE "Competition" = 'uefa cup' AND "Opponent" = 'palermo' |
### Instruction:
CREATE TABLE table_49122 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent on November 20, 1966?
### Response:
| SELECT "Opponent" FROM table_49122 WHERE "Date" = 'november 20, 1966' |
### Instruction:
CREATE TABLE table_name_1 (
date VARCHAR,
attendance VARCHAR,
week VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date's week was more than 4 with the venue being City Stadium and where the attendance was more th... | SELECT date FROM table_name_1 WHERE week > 4 AND venue = "city stadium" AND attendance > 14 OFFSET 297 |
### Instruction:
CREATE TABLE table_18307 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What candidates were featured in the 1974 election?
#... | SELECT "Candidates" FROM table_18307 WHERE "First elected" = '1974' |
### Instruction:
CREATE TABLE table_70215 (
"Currency" text,
"Code" text,
"Entry ERM II" text,
"Central rate" text,
"Official target date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which currency has a central rate of 3.45280?
### Response:
| SELECT "Currency" FROM table_70215 WHERE "Central rate" = '3.45280' |
### 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.
-- how many countries in the provided table came in 4... | SELECT COUNT("nation") FROM table_203_586 WHERE "place in qt" = 4 |
### Instruction:
CREATE TABLE table_42328 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player moving to Arminia Bielefeld?
### Resp... | SELECT "Name" FROM table_42328 WHERE "Moving to" = 'arminia bielefeld' |
### Instruction:
CREATE TABLE table_203_139 (
id number,
"name" text,
"abbr." text,
"leader" text,
"ideology" text,
"political position" text,
"mps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what party has the highest number of mps ?
... | SELECT "name" FROM table_203_139 ORDER BY "mps" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_72233 (
"Country" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average for the country with the swimsuit score of 9.57?
### ... | SELECT "Average" FROM table_72233 WHERE "Swimsuit" = '9.57' |
### Instruction:
CREATE TABLE table_10840 (
"Year" real,
"Title" text,
"Role" text,
"Leading Lady" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the leading lady in a yank in the r.a.f.?
### Response:
| SELECT "Leading Lady" FROM table_10840 WHERE "Title" = 'a yank in the r.a.f.' |
### Instruction:
CREATE TABLE table_62810 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank for the finish time of 1:42.054?
### Response:
| SELECT AVG("Rank") FROM table_62810 WHERE "Time" = '1:42.054' |
### Instruction:
CREATE TABLE table_67049 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has a Round of 17?
### Response:
| SELECT "Year" FROM table_67049 WHERE "Round" = '17' |
### Instruction:
CREATE TABLE table_741 (
"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 result of the election of incumbent john she... | SELECT "Result" FROM table_741 WHERE "Incumbent" = 'John Shelley' |
### Instruction:
CREATE TABLE accounts (
custid VARCHAR,
name VARCHAR
)
CREATE TABLE checking (
balance INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and id of accounts whose checking balance is below the maximum checking balance.
### R... | SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking) |
### Instruction:
CREATE TABLE table_20937 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many had a length of 455?
### Response:
| SELECT COUNT("Name") FROM table_20937 WHERE "Length (m)" = '455' |
### Instruction:
CREATE TABLE table_65390 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place when the score was 65-70-72=207?
### Response:
| SELECT "Place" FROM table_65390 WHERE "Score" = '65-70-72=207' |
### Instruction:
CREATE TABLE table_203_614 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- number of games in los angeles
#... | SELECT COUNT(*) FROM table_203_614 WHERE "venue" = 'los angeles' |
### Instruction:
CREATE TABLE table_27833186_1 (
rider_names VARCHAR,
location VARCHAR,
horse_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?
### ... | SELECT rider_names FROM table_27833186_1 WHERE location = "Euer Valley, CA" AND horse_name = "Magic Sirocco" |
### Instruction:
CREATE TABLE table_54391 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the constructor for clay regazzoni
... | SELECT "Constructor" FROM table_54391 WHERE "Driver" = 'clay regazzoni' |
### Instruction:
CREATE TABLE table_7848 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score when the runner-up was Neal Briggs?
... | SELECT "Winning score" FROM table_7848 WHERE "Runner(s)-up" = 'neal briggs' |
### Instruction:
CREATE TABLE table_75595 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome of the match against Stacy Margolin?
### R... | SELECT "Outcome" FROM table_75595 WHERE "Opponent" = 'stacy margolin' |
### Instruction:
CREATE TABLE table_77409 (
"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 Country, when Place is 'T9', and when Player is 'Michael Campbell'?
### Response... | SELECT "Country" FROM table_77409 WHERE "Place" = 't9' AND "Player" = 'michael campbell' |
### Instruction:
CREATE TABLE table_203_420 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"home team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maximum number of people that can attend an event at wind... | SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'windsor park' |
### Instruction:
CREATE TABLE table_10112 (
"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.
-- Which game site has an Opponent of buffalo bills?
### Response:... | SELECT "Game site" FROM table_10112 WHERE "Opponent" = 'buffalo bills' |
### Instruction:
CREATE TABLE table_3410 (
"No." real,
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode number of the season is e... | SELECT MAX("#") FROM table_3410 WHERE "No." = '11' |
### Instruction:
CREATE TABLE table_71013 (
"From" text,
"Until" text,
"Name" text,
"Party" text,
"Function" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Until date associated with a beginning From date of July 5, 2007?
### Response:... | SELECT "Until" FROM table_71013 WHERE "From" = 'july 5, 2007' |
### Instruction:
CREATE TABLE table_204_544 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last japanese player to finish ?
### Response:
| SELECT "name" FROM table_204_544 WHERE "nationality" = 'japan' ORDER BY "rank" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_836 (
id number,
"title" text,
"year" number,
"platforms" text,
"developer" text,
"publisher" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which title is for ipad but not for iphone or ... | SELECT "title" FROM table_203_836 WHERE "platforms" = 'ipad' |
### Instruction:
CREATE TABLE table_35857 (
"Season" real,
"Overall" text,
"Slalom" text,
"Giant Slalom" text,
"Super G" text,
"Combined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Super Ghas a missed season due to injury?
### Respon... | SELECT "Super G" FROM table_35857 WHERE "Overall" = 'missed season due to injury' |
### Instruction:
CREATE TABLE table_204_982 (
id number,
"party/electoral alliance" text,
"seats" number,
"change" number,
"votes" number,
"%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name a party that got , at most , 2 % of the votes .
... | SELECT "party/electoral alliance" FROM table_204_982 WHERE "%" <= 2 |
### Instruction:
CREATE TABLE table_45437 (
"Concessionaire" text,
"FA Division(s)" text,
"Gauge" text,
"Length, km" real,
"Takeover Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FA Division has a length of 2704 km?
### Response:
| SELECT "FA Division(s)" FROM table_45437 WHERE "Length, km" = '2704' |
### Instruction:
CREATE TABLE table_64128 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the silver when the Total is 1, and Gold is 1?
### Response:
| SELECT AVG("Silver") FROM table_64128 WHERE "Total" = '1' AND "Gold" = '1' |
### Instruction:
CREATE TABLE table_49857 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of To par when the Finish is t11?
### Response:... | SELECT SUM("To par") FROM table_49857 WHERE "Finish" = 't11' |
### Instruction:
CREATE TABLE table_203_789 (
id number,
"season" text,
"team" text,
"country" text,
"division" number,
"apps" number,
"goals" number,
"assists" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team is in division 2 ... | SELECT "team" FROM table_203_789 WHERE "division" = 2 |
### Instruction:
CREATE TABLE table_name_80 (
to_par VARCHAR,
player VARCHAR,
country VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To Par, when Country is 'United States', when Place is 'T4', and when Player is 'Frank Boynton... | SELECT to_par FROM table_name_80 WHERE country = "united states" AND place = "t4" AND player = "frank boynton" |
### Instruction:
CREATE TABLE table_name_94 (
geohash_length INTEGER,
lat_bits VARCHAR,
km_error VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest geohash length when the lat bits are less than 7, and the km error of 2500?
### Response:... | SELECT MIN(geohash_length) FROM table_name_94 WHERE lat_bits < 7 AND km_error = "±2500" |
### Instruction:
CREATE TABLE table_2089 (
"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.
-- Name the least pick number for colin campbel... | SELECT MIN("Pick #") FROM table_2089 WHERE "Player" = 'Colin Campbell' |
### Instruction:
CREATE TABLE table_20939 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many have a kilometers of 233?
### Response:
| SELECT "Number" FROM table_20939 WHERE "Kilometer" = '233' |
### Instruction:
CREATE TABLE table_1901751_1 (
original_australian_performer VARCHAR,
original_west_end_performer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many original Australian performers are there when the Original West End Performer is Jordan... | SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = "Jordan Dunne" |
### Instruction:
CREATE TABLE table_67612 (
"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.
-- Name the most attendance for october 11
### Res... | SELECT MAX("Attendance") FROM table_67612 WHERE "Date" = 'october 11' |
### Instruction:
CREATE TABLE table_203_374 (
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 total medals did germany win ?
### Re... | SELECT "total" FROM table_203_374 WHERE "nation" = 'germany' |
### Instruction:
CREATE TABLE table_18556 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the candidate for the district Arkansas 2?
###... | SELECT "Candidates" FROM table_18556 WHERE "District" = 'Arkansas 2' |
### Instruction:
CREATE TABLE table_204_325 (
id number,
"class" text,
"name" text,
"company" text,
"residence" text,
"term expires dec 31" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the company at the... | SELECT "company" FROM table_204_325 WHERE id = 1 |
### Instruction:
CREATE TABLE table_9443 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a Term end of 18 july 1944?
### Response:
| SELECT "Name" FROM table_9443 WHERE "Term end" = '18 july 1944' |
### Instruction:
CREATE TABLE table_name_54 (
circuit VARCHAR,
team VARCHAR,
city___state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Circuit, when Team is 'R.J.MacArthur Onslow', and when City / State is 'Sydney , New South Wales'?
### Resp... | SELECT circuit FROM table_name_54 WHERE team = "r.j.macarthur onslow" AND city___state = "sydney , new south wales" |
### Instruction:
CREATE TABLE table_57347 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Rockies record at their game that had a loss of Hernandez (3 5)?
### Response... | SELECT "Record" FROM table_57347 WHERE "Loss" = 'hernandez (3–5)' |
### Instruction:
CREATE TABLE table_36880 (
"Source" text,
"Date" text,
"MARTIN" text,
"GR\u00dcNE" text,
"Others" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Undecided the others was 4%?
### Response:
| SELECT "Undecided" FROM table_36880 WHERE "Others" = '4%' |
### Instruction:
CREATE TABLE table_10171 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest laps for time/retired of engine and grid of 5
### Response:
| SELECT MAX("Laps") FROM table_10171 WHERE "Time/Retired" = 'engine' AND "Grid" = '5' |
### Instruction:
CREATE TABLE table_34154 (
"Round" text,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position is Sweden in round 2?
### Response:
| SELECT "Position" FROM table_34154 WHERE "Nationality" = 'sweden' AND "Round" = '2' |
### Instruction:
CREATE TABLE table_67194 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest round for anthony gonzalez?
### Response:
| SELECT MAX("Round") FROM table_67194 WHERE "Name" = 'anthony gonzalez' |
### Instruction:
CREATE TABLE table_22874 (
"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.
-- Who did she play with on clay?
### Respo... | SELECT "Partner" FROM table_22874 WHERE "Surface" = 'Clay' |
### Instruction:
CREATE TABLE table_13142 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year(s) won has a Total of 289?
### Response:
| SELECT "Year(s) won" FROM table_13142 WHERE "Total" = '289' |
### Instruction:
CREATE TABLE table_64231 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on November 15, 1981?
### Response:
| SELECT "Opponent" FROM table_64231 WHERE "Date" = 'november 15, 1981' |
### Instruction:
CREATE TABLE table_41188 (
"City" text,
"Comprehension of Danish" text,
"Comprehension of Swedish" text,
"Comprehension of Norwegian" text,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which City has an Average of 6.85?
... | SELECT "City" FROM table_41188 WHERE "Average" = '6.85' |
### Instruction:
CREATE TABLE table_name_21 (
role_episode VARCHAR,
year VARCHAR,
recipients_and_nominees VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee?
### Response:
| SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = "ellen burstyn" |
### Instruction:
CREATE TABLE table_name_16 (
release_date VARCHAR,
production_number VARCHAR,
director VARCHAR,
series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Release date of the Filmography directed by Robert McKimson in MM Serie... | SELECT release_date FROM table_name_16 WHERE director = "robert mckimson" AND series = "mm" AND production_number = "1665" |
### Instruction:
CREATE TABLE table_name_79 (
rank INTEGER,
year VARCHAR,
accolade VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years?
### Response:
| SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = "125 best albums of the past 25 years" |
### Instruction:
CREATE TABLE table_73900 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which categories fit under the institut... | SELECT "Type" FROM table_73900 WHERE "Institution" = 'Calvin College' |
### Instruction:
CREATE TABLE table_41738 (
"Date" text,
"Opponent" text,
"Location" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score for the game with a record of 38-18?
### Response:
| SELECT "Score" FROM table_41738 WHERE "Record" = '38-18' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.