instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_name_36 (
date VARCHAR,
team VARCHAR,
location_attendance VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game located in Madison Square Garden, when the team is Seattle and the... | SELECT date FROM table_name_36 WHERE location_attendance = "madison square garden" AND game < 6 AND team = "seattle" |
### Instruction:
CREATE TABLE table_49811 (
"Date From" text,
"Date To" text,
"Pos." text,
"Name" text,
"Moving To" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Moving To is 'NEC Nijmegen'?
### Response:
| SELECT "Name" FROM table_49811 WHERE "Moving To" = 'nec nijmegen' |
### Instruction:
CREATE TABLE table_name_12 (
new_returning_same_network VARCHAR,
previous_network VARCHAR,
show VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters?
... | SELECT new_returning_same_network FROM table_name_12 WHERE previous_network = "nbc" AND show = "blockbusters" |
### Instruction:
CREATE TABLE table_71209 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on May 20?
### Response:
| SELECT "Opponent" FROM table_71209 WHERE "Date" = 'may 20' |
### Instruction:
CREATE TABLE table_name_58 (
punjabi__pakistan_ VARCHAR,
kurdish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Punjabi (Pakistan) word for the Kurdish word yak sham?
### Response:
| SELECT punjabi__pakistan_ FROM table_name_58 WHERE kurdish = "یـــەک شـەمـمـە yak sham" |
### Instruction:
CREATE TABLE table_31933 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the method for stanislav nuschik
### Response:
| SELECT "Method" FROM table_31933 WHERE "Opponent" = 'stanislav nuschik' |
### Instruction:
CREATE TABLE table_52729 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bronze has a Gold smaller than 0?
### Response:
| SELECT AVG("Bronze") FROM table_52729 WHERE "Gold" < '0' |
### Instruction:
CREATE TABLE table_25256368_1 (
february_2010 VARCHAR,
january_2010 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the feb 2010 for january 2010 for 6.2%
### Response:
| SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.2%" |
### Instruction:
CREATE TABLE table_name_76 (
games INTEGER,
points VARCHAR,
rank VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?
#... | SELECT AVG(games) FROM table_name_76 WHERE rank > 2 AND team = "olympiacos" AND points > 113 |
### Instruction:
CREATE TABLE table_68832 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the airport in the city of Kota Kinabalu?
### Response:
| SELECT "Airport" FROM table_68832 WHERE "City" = 'kota kinabalu' |
### Instruction:
CREATE TABLE table_62270 (
"Date" text,
"Tournament" text,
"Round" text,
"Ground" text,
"Opponent" text,
"Score 1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round was played on 10 May?
### Response:
| SELECT "Round" FROM table_62270 WHERE "Date" = '10 may' |
### Instruction:
CREATE TABLE table_name_37 (
result VARCHAR,
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?
### Respon... | SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008" |
### Instruction:
CREATE TABLE table_69238 (
"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 the first leg of team 1 for Hardware stars?
### Response:
| SELECT "1st leg" FROM table_69238 WHERE "Team 1" = 'hardware stars' |
### Instruction:
CREATE TABLE table_29086 (
"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 was the score in round 7?
### Response:
| SELECT "Score" FROM table_29086 WHERE "Round #" = 'Round 7' |
### Instruction:
CREATE TABLE table_35534 (
"Date" text,
"ID code of his Zero Fighter" text,
"Flight hours" text,
"Count" text,
"Sub-total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Zero Fighter has a count of 10?
### Response:
| SELECT "ID code of his Zero Fighter" FROM table_35534 WHERE "Count" = '10' |
### Instruction:
CREATE TABLE table_13657749_2 (
to_winning_team VARCHAR,
gtu_winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is GTU Winning Team's #27 Don Lindley's TO Winning Team?
### Response:
| SELECT to_winning_team FROM table_13657749_2 WHERE gtu_winning_team = "#27 Don Lindley" |
### Instruction:
CREATE TABLE table_40532 (
"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 of the 2014 World Cup Qualification?
### Response:
| SELECT "Score" FROM table_40532 WHERE "Competition" = '2014 world cup qualification' |
### Instruction:
CREATE TABLE table_name_75 (
goals INTEGER,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1948-10-28, what were the lowest Goals in Tehran, Iran?
### Response:
| SELECT MIN(goals) FROM table_name_75 WHERE venue = "tehran, iran" AND date = "1948-10-28" |
### Instruction:
CREATE TABLE table_66376 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance number when the result is l 41-37?
### Response:
| SELECT "Attendance" FROM table_66376 WHERE "Result" = 'l 41-37' |
### Instruction:
CREATE TABLE table_69509 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the loss with record of 38-53
### Response:
| SELECT "Loss" FROM table_69509 WHERE "Record" = '38-53' |
### Instruction:
CREATE TABLE table_8341 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest game whose score was 94-116
### Response:
| SELECT MAX("Game") FROM table_8341 WHERE "Score" = '94-116' |
### Instruction:
CREATE TABLE table_35535 (
"Date" text,
"ID code of his Zero Fighter" text,
"Flight hours" text,
"Count" text,
"Sub-total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which day were the subtotal hours 9:30?
### Response:
| SELECT "Date" FROM table_35535 WHERE "Sub-total" = '9:30' |
### Instruction:
CREATE TABLE table_23709 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the minimal number of dances a couple ... | SELECT MIN("Number of dances") FROM table_23709 |
### Instruction:
CREATE TABLE table_3472 (
"District" real,
"Senator" text,
"Party" text,
"Residence" text,
"First elected" text,
"Term Limited" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party affiliation for Senator David Goodm... | SELECT "Party" FROM table_3472 WHERE "Senator" = 'David Goodman' |
### Instruction:
CREATE TABLE table_name_63 (
figures INTEGER,
placings VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average Figures that has the Placings of 34, and the Total larger than 1247.51?
### Response:
| SELECT AVG(figures) FROM table_name_63 WHERE placings = 34 AND total > 1247.51 |
### Instruction:
CREATE TABLE table_49544 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game where the record was 22-55?
### Response:
| SELECT "Score" FROM table_49544 WHERE "Record" = '22-55' |
### Instruction:
CREATE TABLE table_54641 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total year with a Position of 12th?
### Response:
| SELECT SUM("Year") FROM table_54641 WHERE "Position" = '12th' |
### Instruction:
CREATE TABLE table_71675 (
"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 Team 2 has a second leg of 1-0?
### Response:
| SELECT "Team 2" FROM table_71675 WHERE "2nd leg" = '1-0' |
### Instruction:
CREATE TABLE table_4800 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds total were there on may 31?
### Response:
| SELECT COUNT("Round") FROM table_4800 WHERE "Date" = 'may 31' |
### Instruction:
CREATE TABLE table_name_50 (
singapore_league_cup VARCHAR,
rank VARCHAR,
s_league VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Singapore League Cup when rank is more than 4, and the S-League is 2 (12)?
### Response:
| SELECT singapore_league_cup FROM table_name_50 WHERE rank > 4 AND s_league = "2 (12)" |
### Instruction:
CREATE TABLE table_54966 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for the game that has a tie number of 13?
### Response... | SELECT SUM("Attendance") FROM table_54966 WHERE "Tie no" = '13' |
### Instruction:
CREATE TABLE table_54682 (
"Player" text,
"Tries" text,
"Conv" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player played on 07/06/1997?
### Response:
| SELECT "Player" FROM table_54682 WHERE "Date" = '07/06/1997' |
### Instruction:
CREATE TABLE table_10935205_1 (
no_in_series VARCHAR,
canadian_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The canadian airdate of 11 february 2008 applied to what series number?
### Response:
| SELECT COUNT(no_in_series) FROM table_10935205_1 WHERE canadian_airdate = "11 February 2008" |
### Instruction:
CREATE TABLE table_203_763 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which competition appears the most on the table ?
### Response:
| SELECT "competition" FROM table_203_763 GROUP BY "competition" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_12104319_1 (
mens_singles VARCHAR,
womens_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the men's singles of marina yakusheva elena shimko
### Response:
| SELECT mens_singles FROM table_12104319_1 WHERE womens_doubles = "Marina Yakusheva Elena Shimko" |
### Instruction:
CREATE TABLE table_7202 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the mean week number when attendance was 63,263?
### Response:
| SELECT AVG("Week") FROM table_7202 WHERE "Attendance" = '63,263' |
### Instruction:
CREATE TABLE table_70147 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Away team had an Attendance of 3,395?
### Response:
| SELECT "Away team" FROM table_70147 WHERE "Attendance" = '3,395' |
### Instruction:
CREATE TABLE table_43636 (
"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 Week number with a Result of W 30-28?
### Response:
| SELECT AVG("Week") FROM table_43636 WHERE "Result" = 'w 30-28' |
### Instruction:
CREATE TABLE table_9288 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent had a record of 37-27?
### Response:
| SELECT "Opponent" FROM table_9288 WHERE "Record" = '37-27' |
### Instruction:
CREATE TABLE table_203_478 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- against which opponent were there the most people in attendance ?
... | SELECT "opponent" FROM table_203_478 ORDER BY "attendance" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_26882 (
"Position" text,
"Name" text,
"Stationed In" text,
"Appointed" real,
"Nominated by" text,
"Position Prior to Appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was jack watson appointed?
... | SELECT "Appointed" FROM table_26882 WHERE "Name" = 'Jack Watson' |
### Instruction:
CREATE TABLE table_75840 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From which region is the album with release date of 19 June 2007?
### Response:
| SELECT "Region" FROM table_75840 WHERE "Date" = '19 june 2007' |
### Instruction:
CREATE TABLE table_73749 (
"Character" text,
"English version" text,
"Laserdisc edition" text,
"Buena Vista edition" text,
"Special edition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the special edition where the englis... | SELECT "Special edition" FROM table_73749 WHERE "English version" = 'Nick Stewart' |
### Instruction:
CREATE TABLE table_77420 (
"Rank" text,
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total medal count for the nation that has 5 gold?
### Respons... | SELECT "Total" FROM table_77420 WHERE "Gold" = '5' |
### Instruction:
CREATE TABLE table_74391 (
"Player" text,
"Nationality" text,
"Position" text,
"Dynamo career" text,
"Appearances" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of the player with 57 goals?
... | SELECT "Position" FROM table_74391 WHERE "Goals" = '57' |
### Instruction:
CREATE TABLE table_24100843_1 (
tdp VARCHAR,
socket VARCHAR,
processor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the socket is bga956 and processor is penryn-3m, what is the tdp?
### Response:
| SELECT tdp FROM table_24100843_1 WHERE socket = "BGA956" AND processor = "Penryn-3M" |
### Instruction:
CREATE TABLE table_18278508_6 (
position VARCHAR,
main_contestant VARCHAR,
date_performed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Kashmira Shah's position on August 14?
### Response:
| SELECT position FROM table_18278508_6 WHERE main_contestant = "Kashmira Shah" AND date_performed = "August 14" |
### Instruction:
CREATE TABLE table_39693 (
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Game time" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time was the game with a record of 7-3?
### Response:
| SELECT "Game time" FROM table_39693 WHERE "Record" = '7-3' |
### Instruction:
CREATE TABLE table_203_358 (
id number,
"pos." number,
"athlete" text,
"run 1" number,
"run 2" number,
"total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who completed run 1 in the least amount of time ?
### Response:
| SELECT "athlete" FROM table_203_358 ORDER BY "run 1" LIMIT 1 |
### Instruction:
CREATE TABLE table_72297 (
"Episode" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of songs originally performed by Anna Nalick?
#... | SELECT COUNT("Song choice") FROM table_72297 WHERE "Original artist" = 'Anna Nalick' |
### Instruction:
CREATE TABLE table_31587 (
"Name" text,
"Degree" text,
"Degree Year" text,
"Award Year" real,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the degree for degree year of 1983
### Response:
| SELECT "Degree" FROM table_31587 WHERE "Degree Year" = '1983' |
### Instruction:
CREATE TABLE table_32942 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the player who begin playing for the LA Lakers in 1974?
... | SELECT "Player" FROM table_32942 WHERE "From" = '1974' |
### Instruction:
CREATE TABLE table_name_60 (
torque VARCHAR,
power VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the torque of the xdrive20d model, which has a power of ps (kw; hp)@4000?
### Response:
| SELECT torque FROM table_name_60 WHERE power = "ps (kw; hp)@4000" AND model = "xdrive20d" |
### Instruction:
CREATE TABLE table_name_94 (
l2_cache VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the L2 Cache when the Part Number(s) is rk80530pz014256?
### Response:
| SELECT l2_cache FROM table_name_94 WHERE part_number_s_ = "rk80530pz014256" |
### Instruction:
CREATE TABLE table_name_23 (
record VARCHAR,
date VARCHAR,
home VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record that has a Home of detroit red wings, and a Score of 1 2 on december 29?
### Response:... | SELECT record FROM table_name_23 WHERE home = "detroit red wings" AND score = "1–2" AND date = "december 29" |
### Instruction:
CREATE TABLE table_204_648 (
id number,
"title" text,
"contents" text,
"pages" number,
"published" text,
"isbn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long , in pages , is volume 6 of doctor who classics ?
### Resp... | SELECT "pages" FROM table_204_648 WHERE "title" = 'volume 6' |
### Instruction:
CREATE TABLE table_34168 (
"Team" text,
"City, Region" text,
"Arena" text,
"Colours" text,
"Head coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the city and region of the team in the dalh s arena?
### Response:
| SELECT "City, Region" FROM table_34168 WHERE "Arena" = 'dalhús' |
### Instruction:
CREATE TABLE table_name_78 (
nation_of_citizenship VARCHAR,
type_of_vehicle VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Nation of citizenship has a stock car vehicle with a year of 1999?
### Response:
| SELECT nation_of_citizenship FROM table_name_78 WHERE type_of_vehicle = "stock car" AND year = 1999 |
### Instruction:
CREATE TABLE table_name_98 (
release_price___usd__ VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the release price (USD) for part number hh80557pg0491m?
### Response:
| SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m" |
### Instruction:
CREATE TABLE table_name_98 (
average INTEGER,
week VARCHAR,
yards VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7?
### Response:
| SELECT MIN(average) FROM table_name_98 WHERE yards > 167 AND team = "at tb" AND week > 7 |
### Instruction:
CREATE TABLE table_7852 (
"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.
-- For which tournament was the margin of victory 7 strokes?
### ... | SELECT "Tournament" FROM table_7852 WHERE "Margin of victory" = '7 strokes' |
### Instruction:
CREATE TABLE table_78072 (
"Player" text,
"Pos." text,
"From" text,
"School/Country" text,
"Rebs" real,
"Asts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does the player from arkansas play?
### Response:
| SELECT "Pos." FROM table_78072 WHERE "School/Country" = 'arkansas' |
### Instruction:
CREATE TABLE table_name_5 (
tie_no VARCHAR,
attendance VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?
### Response:
| SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle" |
### Instruction:
CREATE TABLE table_36630 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Score of 4 0 had what attendance number?
### Response:
| SELECT COUNT("Attendance") FROM table_36630 WHERE "Score" = '4–0' |
### Instruction:
CREATE TABLE table_203_376 (
id number,
"no." number,
"name" text,
"term of office" text,
"president(s) served under" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many directors served more than 3 years ?
### Response:
| SELECT COUNT("name") FROM table_203_376 WHERE "term of office" - "term of office" > 3 |
### Instruction:
CREATE TABLE table_name_99 (
week INTEGER,
result VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the week for result of l 31-27, and an Attendance smaller than 85,865
### Response:
| SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865 |
### Instruction:
CREATE TABLE table_68678 (
"Year" text,
"Title" text,
"( Title in English )" text,
"Director" text,
"Character" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the TV series with a character of Sheyda/Ashraf?
#... | SELECT "Title" FROM table_68678 WHERE "Character" = 'sheyda/ashraf' |
### Instruction:
CREATE TABLE table_985 (
"Competition" text,
"Record" text,
"Result" text,
"Home Matches" real,
"Home Attendance" real,
"Avg. Home Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result when the team was ... | SELECT "Result" FROM table_985 WHERE "Record" = '4-1' |
### Instruction:
CREATE TABLE table_47210 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player gradyated from Florida State?
### Response:
| SELECT "Player" FROM table_47210 WHERE "School/Club Team" = 'florida state' |
### Instruction:
CREATE TABLE table_27965906_2 (
rnd VARCHAR,
ss_winning_car VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of rnd for kim baker, bobby archer, tommy archer
### Response:
| SELECT COUNT(rnd) FROM table_27965906_2 WHERE ss_winning_car = "Kim Baker, Bobby Archer, Tommy Archer" |
### Instruction:
CREATE TABLE table_18712423_3 (
series_episode INTEGER,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the show episode number of the episode that reached 1.215 millions views?
### Response:
| SELECT MIN(series_episode) FROM table_18712423_3 WHERE viewers__millions_ = "1.215" |
### Instruction:
CREATE TABLE table_45161 (
"Date" text,
"Race" text,
"Track" text,
"Winner" text,
"Reports" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the race on 09-13-2008?
### Response:
| SELECT "Track" FROM table_45161 WHERE "Date" = '09-13-2008' |
### Instruction:
CREATE TABLE table_46668 (
"Grade" text,
"Description" text,
"Measurement" text,
"Function %" text,
"Estimated function %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the function percentage when the estimated function pe... | SELECT "Function %" FROM table_46668 WHERE "Estimated function %" = '20' |
### Instruction:
CREATE TABLE table_62788 (
"Title" text,
"Series" text,
"Director" text,
"Characters" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What title has daffy (as duck dodgers) as the character?
### Response:
| SELECT "Title" FROM table_62788 WHERE "Characters" = 'daffy (as duck dodgers)' |
### Instruction:
CREATE TABLE table_name_88 (
matches VARCHAR,
strike_rate VARCHAR,
balls VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the total number of Matched that has the Strike Rate smallet than 152.3, and the Balls of 395?
### ... | SELECT COUNT(matches) FROM table_name_88 WHERE strike_rate < 152.3 AND balls = 395 |
### Instruction:
CREATE TABLE table_50860 (
"Internet Plan" text,
"Downstream" text,
"Upstream" text,
"Bandwidth Included" text,
"Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Price, when Upstream is '256 kbit'?
### Response:
| SELECT "Price" FROM table_50860 WHERE "Upstream" = '256 kbit' |
### Instruction:
CREATE TABLE table_name_11 (
years VARCHAR,
name VARCHAR,
pct VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?
### Response:
| SELECT years FROM table_name_11 WHERE pct < 0.389 AND lost < 12 AND name = "dwane morrison" |
### Instruction:
CREATE TABLE table_name_11 (
class VARCHAR,
horse VARCHAR,
event VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of Fabuleux 5 get less than 70.277 in the freestyle test?
### Response:
| SELECT class FROM table_name_11 WHERE event = "freestyle test" AND result < 70.277 AND horse = "fabuleux 5" |
### Instruction:
CREATE TABLE table_26894949_2 (
event VARCHAR,
puma VARCHAR,
abu_dhabi VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In how many events was Puma 20 and abu dhabi 30?
### Response:
| SELECT COUNT(event) FROM table_26894949_2 WHERE puma = "20" AND abu_dhabi = "30" |
### Instruction:
CREATE TABLE table_78282 (
"Year" text,
"Winner and nominees" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original title of the king's speech?
### Response:
| SELECT "Original title" FROM table_78282 WHERE "Winner and nominees" = 'the king''s speech' |
### Instruction:
CREATE TABLE table_71790 (
"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.
-- In which years was the to par +6?
### Response:
| SELECT "Year(s) won" FROM table_71790 WHERE "To par" = '+6' |
### Instruction:
CREATE TABLE table_80267 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points were scored when the Chassis is BRM p25?
### Response:
| SELECT "Pts." FROM table_80267 WHERE "Chassis" = 'brm p25' |
### Instruction:
CREATE TABLE table_25183 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Portfolio" text,
"Prior occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old was the official with Chinese name ?
###... | SELECT "age at appointment" FROM table_25183 WHERE "Chinese name" = '孫明揚' |
### Instruction:
CREATE TABLE table_7267 (
"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 To par when the Score was 67-68=135?
### Response:
| SELECT "To par" FROM table_7267 WHERE "Score" = '67-68=135' |
### Instruction:
CREATE TABLE table_39183 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Series of bruins lead 2 1?
### Response:
| SELECT "Opponent" FROM table_39183 WHERE "Series" = 'bruins lead 2–1' |
### Instruction:
CREATE TABLE table_54194 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Opponent has a Result of ?
### Response:
| SELECT "Opponent" FROM table_54194 WHERE "Result" = '–' |
### Instruction:
CREATE TABLE table_59690 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the away team of the game with an attendance of 117?
### Response:
| SELECT "Away team" FROM table_59690 WHERE "Attendance" = '117' |
### Instruction:
CREATE TABLE table_61864 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT PLAYER HAS THE OAKLAND ATHLETICS?
### Response:
| SELECT "Player" FROM table_61864 WHERE "Team" = 'oakland athletics' |
### Instruction:
CREATE TABLE table_31658 (
"Date" text,
"Result" text,
"Opponent" text,
"Method" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which method resulting in a win against Ed Mahone?
### Response:
| SELECT "Method" FROM table_31658 WHERE "Result" = 'win' AND "Opponent" = 'ed mahone' |
### Instruction:
CREATE TABLE table_74608 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider had a time of 1:54.26.6?
### Response:
| SELECT "Rider" FROM table_74608 WHERE "Time" = '1:54.26.6' |
### Instruction:
CREATE TABLE table_79454 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when there were less than 0 bronze?
### Response:
| SELECT COUNT("Total") FROM table_79454 WHERE "Bronze" < '0' |
### Instruction:
CREATE TABLE table_59640 (
"Team" text,
"Driver" text,
"Class" text,
"Chassis" text,
"Engine" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds did fr d ric vervisch go?
### Response:
| SELECT "Rounds" FROM table_59640 WHERE "Driver" = 'frédéric vervisch' |
### Instruction:
CREATE TABLE table_204_679 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player won the most money ?
### Respons... | SELECT "player" FROM table_204_679 ORDER BY "money ($)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_10492 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Did the Bulls win or lose at Valley Parade?
### Response:
| SELECT "Result" FROM table_10492 WHERE "Venue" = 'valley parade' |
### Instruction:
CREATE TABLE table_name_30 (
total_viewers VARCHAR,
bbc_one_weekly_ranking VARCHAR,
episode_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?
##... | SELECT total_viewers FROM table_name_30 WHERE bbc_one_weekly_ranking > 7 AND episode_no < 4 |
### Instruction:
CREATE TABLE table_name_86 (
normal_environment_of_occurrence__in_native_words_ VARCHAR,
proto_germanic_origin VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the normal environment of occurrence that has a Proto-Germanic origin /ai/
... | SELECT normal_environment_of_occurrence__in_native_words_ FROM table_name_86 WHERE proto_germanic_origin = "/ai/" |
### Instruction:
CREATE TABLE table_28138035_32 (
womens_doubles VARCHAR,
womens_singles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the womens double winner when the womens singles winner was Ding Ning?
### Response:
| SELECT womens_doubles FROM table_28138035_32 WHERE womens_singles = "Ding Ning" |
### Instruction:
CREATE TABLE table_19524523_1 (
champ_car_world_series__2004_2007_ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum number of wins possible for the Champ Car World Series among all the drivers?
### Response:
| SELECT MIN(champ_car_world_series__2004_2007_) FROM table_19524523_1 |
### Instruction:
CREATE TABLE table_name_25 (
team_nickname VARCHAR,
affiliation VARCHAR,
enrollment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the team nickname of the private/catholic school whose enrollment is larger than 3,490?
### Respo... | SELECT team_nickname FROM table_name_25 WHERE affiliation = "private/catholic" AND enrollment > 3 OFFSET 490 |
### Instruction:
CREATE TABLE table_61416 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the Away team of middlesbrough?
### Response:
| SELECT COUNT("Attendance") FROM table_61416 WHERE "Away team" = 'middlesbrough' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.