instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_76571 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the status is rural community what's the lowest area in kilometers squared?
### Response:
|
SELECT MIN("Area km 2") FROM table_76571 WHERE "Status" = 'rural community'
|
### Instruction:
CREATE TABLE table_68475 (
"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's the score of the 1st leg when Water Corporation was Team 1?
### Response:
|
SELECT "1st leg" FROM table_68475 WHERE "Team 1" = 'water corporation'
|
### Instruction:
CREATE TABLE table_57001 (
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the episode # of the episode titled 'The Man Behind the Curtain'?
### Response:
|
SELECT "Episode #" FROM table_57001 WHERE "Title" = 'the man behind the curtain'
|
### Instruction:
CREATE TABLE table_25251 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sprint classification being alejandro valverde
### Response:
|
SELECT "Sprint Classification" FROM table_25251 WHERE "Winner" = 'Alejandro Valverde'
|
### Instruction:
CREATE TABLE table_66266 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of the player picked after 94, by the Boston Patriots?
### Response:
|
SELECT "Position" FROM table_66266 WHERE "Pick" > '94' AND "Team" = 'boston patriots'
|
### Instruction:
CREATE TABLE table_6630 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type has song as the name?
### Response:
|
SELECT "Type" FROM table_6630 WHERE "Name" = 'song'
|
### Instruction:
CREATE TABLE table_60604 (
"Host city" text,
"Year" real,
"Winner" text,
"1st runner up" text,
"2nd runner up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years was assel isabaeva the 2nd runner up?
### Response:
|
SELECT COUNT("Year") FROM table_60604 WHERE "2nd runner up" = 'assel isabaeva'
|
### Instruction:
CREATE TABLE table_17736 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording ?" text,
"Release date" text,
"Single / Pack" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many singles have a song titled 'Antisocial'?
### Response:
|
SELECT "Single / Pack" FROM table_17736 WHERE "Song title" = 'Antisocial'
|
### Instruction:
CREATE TABLE table_70277 (
"Start Date/Time" text,
"Duration" text,
"End Time" text,
"Spacecraft" text,
"Crew" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the spacecraft with end time of 4 September 04:51?
### Response:
|
SELECT "Spacecraft" FROM table_70277 WHERE "End Time" = '4 september 04:51'
|
### Instruction:
CREATE TABLE table_34572 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the Spurs' record was 43-13?
### Response:
|
SELECT "Score" FROM table_34572 WHERE "Record" = '43-13'
|
### Instruction:
CREATE TABLE table_77686 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament was on Jan 29, 2012?
### Response:
|
SELECT "Tournament" FROM table_77686 WHERE "Date" = 'jan 29, 2012'
|
### Instruction:
CREATE TABLE table_24112 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the game for record 1-0
### Response:
|
SELECT "Game" FROM table_24112 WHERE "Record" = '1-0'
|
### Instruction:
CREATE TABLE table_73574 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the height of demond greene
### Response:
|
SELECT "Height (f)" FROM table_73574 WHERE "Player" = 'Demond Greene'
|
### Instruction:
CREATE TABLE table_name_80 (
nationality VARCHAR,
fate VARCHAR,
tonnage__grt_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266?
### Response:
|
SELECT nationality FROM table_name_80 WHERE fate = "sunk (mine)" AND tonnage__grt_ < 2 OFFSET 266
|
### Instruction:
CREATE TABLE table_203_466 (
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 was awarded more than 5 silver medals ?
### Response:
|
SELECT "nation" FROM table_203_466 WHERE "silver" > 5
|
### 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 commandery capital?
### Response:
|
SELECT "Commandery capital" FROM table_30015 WHERE "Commandery" = 'Changsha 長沙'
|
### Instruction:
CREATE TABLE table_9837 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when Clayton Mckinney was the opponent?
### Response:
|
SELECT "Record" FROM table_9837 WHERE "Opponent" = 'clayton mckinney'
|
### Instruction:
CREATE TABLE table_66486 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the new zealand team that had fb listed under notes?
### Response:
|
SELECT "Rank" FROM table_66486 WHERE "Notes" = 'fb' AND "Country" = 'new zealand'
|
### Instruction:
CREATE TABLE table_30448 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many items are listed under caps when burnley is the club team?
### Response:
|
SELECT COUNT("Cap(s)") FROM table_30448 WHERE "Club(s)" = 'Burnley'
|
### Instruction:
CREATE TABLE table_43638 (
"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 Attendance of the game September 21, 2003?
### Response:
|
SELECT "Attendance" FROM table_43638 WHERE "Date" = 'september 21, 2003'
|
### Instruction:
CREATE TABLE table_203_9 (
id number,
"state" text,
"last execution date" text,
"name" text,
"crime" text,
"method" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which state had their last execution on 5 february 2014 ?
### Response:
|
SELECT "state" FROM table_203_9 WHERE "last execution date" = '5 february 2014'
|
### Instruction:
CREATE TABLE table_55504 (
"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 12, 1972?
### Response:
|
SELECT "Opponent" FROM table_55504 WHERE "Date" = 'november 12, 1972'
|
### Instruction:
CREATE TABLE table_58188 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" text,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what area is torbay school with a state authority?
### Response:
|
SELECT "Area" FROM table_58188 WHERE "Authority" = 'state' AND "Name" = 'torbay school'
|
### Instruction:
CREATE TABLE table_64665 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what venue was the 2010 FIFA World Cup Qualification?
### Response:
|
SELECT "Venue" FROM table_64665 WHERE "Competition" = '2010 fifa world cup qualification'
|
### Instruction:
CREATE TABLE table_204_887 (
id number,
"district" number,
"representative" text,
"party" text,
"residence" text,
"counties represented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- gerald geis represents how many counties in total ?
### Response:
|
SELECT "counties represented" FROM table_204_887 WHERE "representative" = 'gerald geis'
|
### 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.
-- what is the total number of countries in this preliminary qualifying round
### Response:
|
SELECT COUNT("team 1") + COUNT("team 2") FROM table_204_324
|
### Instruction:
CREATE TABLE table_203_661 (
id number,
"year" number,
"single" text,
"peak chart positions\nus mod" number,
"peak chart positions\nuk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year has the most singles ?
### Response:
|
SELECT "year" FROM table_203_661 GROUP BY "year" ORDER BY COUNT(*) DESC LIMIT 1
|
### 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 ?
### Response:
|
SELECT "engine" FROM table_204_511 GROUP BY "engine" HAVING COUNT(*) = 1
|
### Instruction:
CREATE TABLE table_203_35 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what manufacturer is listed for max biaggi and marcellino lucchi ?
### Response:
|
SELECT "manufacturer" FROM table_203_35 WHERE "rider" = 'max biaggi'
|
### Instruction:
CREATE TABLE table_36641 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the location of the game with a Result of 21 16?
### Response:
|
SELECT "Location" FROM table_36641 WHERE "Result" = '21–16'
|
### Instruction:
CREATE TABLE table_203_416 (
id number,
"school name" text,
"city" text,
"grades" text,
"establishment" number,
"charter" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last public middle school founded in hawaii ?
### Response:
|
SELECT "school name" FROM table_203_416 ORDER BY "establishment" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_55857 (
"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 when they're at phoenix?
### Response:
|
SELECT "Decision" FROM table_55857 WHERE "Visitor" = 'phoenix'
|
### Instruction:
CREATE TABLE table_1213511_7 (
nhl_team VARCHAR,
college_junior_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nhl team has a college/junior/club team named university of notre dame (ncaa)
### Response:
|
SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)"
|
### Instruction:
CREATE TABLE table_34306 (
"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.
-- Howard Twitty was the runner-up of what tournament?
### Response:
|
SELECT "Tournament" FROM table_34306 WHERE "Runner(s)-up" = 'howard twitty'
|
### Instruction:
CREATE TABLE wedding (
church_id VARCHAR,
year VARCHAR
)
CREATE TABLE church (
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all church names except for those that had a wedding in year 2015.
### Response:
|
SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015
|
### Instruction:
CREATE TABLE table_41830 (
"Year" text,
"Team" text,
"Comp" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the comp for the year 1989?
### Response:
|
SELECT "Comp" FROM table_41830 WHERE "Year" = '1989'
|
### Instruction:
CREATE TABLE table_1977630_2 (
él___ella___usted VARCHAR,
vos__ VARCHAR,
_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What us the conjucated form(s) of el/ella/ usted when the Vos (*) is muelas / mol s?
### Response:
|
SELECT él___ella___usted FROM table_1977630_2 WHERE vos__ * _ = "muelas / molás"
|
### Instruction:
CREATE TABLE table_18138 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How did the election in the Florida 14 district end?
### Response:
|
SELECT "Results" FROM table_18138 WHERE "District" = 'Florida 14'
|
### Instruction:
CREATE TABLE table_75165 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time did team kawasaki zx10 1000cc have?
### Response:
|
SELECT "Time" FROM table_75165 WHERE "Team" = 'kawasaki zx10 1000cc'
|
### Instruction:
CREATE TABLE table_22354 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which district did Ralph Harvey (r) vacated when he resigned?
### Response:
|
SELECT "District" FROM table_22354 WHERE "Vacator" = 'Ralph Harvey (R)'
|
### Instruction:
CREATE TABLE table_6707 (
"Date" text,
"Opponent#" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the game that was attended by 42,000 people?
### Response:
|
SELECT "Opponent#" FROM table_6707 WHERE "Attendance" = '42,000'
|
### Instruction:
CREATE TABLE table_77430 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of round R3?
### Response:
|
SELECT "Result" FROM table_77430 WHERE "Round" = 'r3'
|
### Instruction:
CREATE TABLE table_54163 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player had numbers of 20
### Response:
|
SELECT "Player" FROM table_54163 WHERE "No.(s)" = '20'
|
### Instruction:
CREATE TABLE table_75684 (
"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 team 1 with team 2 Mount Cameroon FC?
### Response:
|
SELECT "Team 1" FROM table_75684 WHERE "Team 2" = 'mount cameroon fc'
|
### Instruction:
CREATE TABLE table_1094 (
"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.
-- What player was picked by the Minnesota North Stars?
### Response:
|
SELECT "Player" FROM table_1094 WHERE "NHL team" = 'Minnesota North Stars'
|
### Instruction:
CREATE TABLE table_47433 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the match with a Score of 6-2, 6-4?
### Response:
|
SELECT "Date" FROM table_47433 WHERE "Score" = '6-2, 6-4'
|
### Instruction:
CREATE TABLE table_204_761 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many countries did not win any gold medals ?
### Response:
|
SELECT COUNT("nation") FROM table_204_761 WHERE "gold" = 0
|
### Instruction:
CREATE TABLE table_14797 (
"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 aggregate for the match with a team 2 of Hafia FC?
### Response:
|
SELECT "Agg." FROM table_14797 WHERE "Team 2" = 'hafia fc'
|
### Instruction:
CREATE TABLE table_203_455 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what were the total number of players selected in the second round ?
### Response:
|
SELECT COUNT("player") FROM table_203_455 WHERE "round" = 2
|
### Instruction:
CREATE TABLE table_45191 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the Set 3 of 12 25?
### Response:
|
SELECT "Date" FROM table_45191 WHERE "Set 3" = '12–25'
|
### Instruction:
CREATE TABLE table_203_359 (
id number,
"outcome" text,
"year" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the championship in miami ?
### Response:
|
SELECT COUNT(*) FROM table_203_359 WHERE "championship" = 'miami'
|
### 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?
### Response:
|
SELECT "Deputy" FROM table_75632 WHERE "Name" = 'elizabeth black'
|
### Instruction:
CREATE TABLE table_3967 (
"Proceed to Quarter-final" text,
"Match points" text,
"Aggregate score" text,
"Points margin" real,
"Eliminated from competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams had a point margin of 48?
### Response:
|
SELECT COUNT("Eliminated from competition") FROM table_3967 WHERE "Points margin" = '48'
|
### Instruction:
CREATE TABLE table_73008 (
"No. overall" real,
"Title" text,
"Director" text,
"Writer" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest production code of an episode written by Tim Loane?
### Response:
|
SELECT MAX("Production code") FROM table_73008 WHERE "Writer" = 'Tim Loane'
|
### Instruction:
CREATE TABLE table_18309 (
"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 other cadidate ran against Dave Treen?
### Response:
|
SELECT "Candidates" FROM table_18309 WHERE "Incumbent" = 'Dave Treen'
|
### Instruction:
CREATE TABLE table_204_585 (
id number,
"year" text,
"player" text,
"high school" text,
"college" text,
"nba/aba draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won an award before ed schienbein in 1940 ?
### Response:
|
SELECT "player" FROM table_204_585 WHERE "year" < 1940
|
### Instruction:
CREATE TABLE table_203_221 (
id number,
"name" text,
"nationality" text,
"matches played" number,
"goals scored" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- total amount of goals scored by chris tadrosse ?
### Response:
|
SELECT "goals scored" FROM table_203_221 WHERE "name" = 'chris tadrosse'
|
### Instruction:
CREATE TABLE table_204_863 (
id number,
"state" text,
"city/county" text,
"population served" number,
"charter type" text,
"station name" text,
"web site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many are charter type g ?
### Response:
|
SELECT COUNT(*) FROM table_204_863 WHERE "charter type" = 'g'
|
### Instruction:
CREATE TABLE table_22816 (
"Episode title" text,
"Subject" text,
"Music by" text,
"Lyrics by" text,
"Performed by" text,
"First aired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the music by for episode the Elbow Room?
### Response:
|
SELECT "Music by" FROM table_22816 WHERE "Episode title" = 'Elbow Room'
|
### Instruction:
CREATE TABLE table_name_58 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the to par for the t1 place with a score of 70-72-73-72=287?
### Response:
|
SELECT to_par FROM table_name_58 WHERE place = "t1" AND score = 70 - 72 - 73 - 72 = 287
|
### Instruction:
CREATE TABLE table_31996 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the result for warsaw 1929
### Response:
|
SELECT "Result" FROM table_31996 WHERE "Location" = 'warsaw' AND "Year" = '1929'
|
### Instruction:
CREATE TABLE table_203_190 (
id number,
"name" text,
"type" text,
"circle" text,
"bench" text,
"formed" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was ulm or unterwalden founded in 1115 ?
### Response:
|
SELECT "name" FROM table_203_190 WHERE "formed" = 1115
|
### Instruction:
CREATE TABLE table_204_843 (
id number,
"volume" number,
"year" text,
"names" text,
"articles" number,
"pages" number,
"images" number,
"maps" number,
"number of copies" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of articles for this chart
### Response:
|
SELECT SUM("articles") FROM table_204_843
|
### Instruction:
CREATE TABLE table_4317 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What School/Club Team played in Toronto during 2012?
### Response:
|
SELECT "School/Club Team" FROM table_4317 WHERE "Years in Toronto" = '2012'
|
### Instruction:
CREATE TABLE table_200_7 (
id number,
"afrikaans" text,
"ipa" text,
"dutch" text,
"english" text,
"german" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- translate the following into english : 'n bietjie .
### Response:
|
SELECT "english" FROM table_200_7 WHERE "afrikaans" = "'n bietjie"
|
### Instruction:
CREATE TABLE table_47309 (
"Rank" text,
"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 highest number of gold medals when the silver is less than 0?
### Response:
|
SELECT MAX("Gold") FROM table_47309 WHERE "Silver" < '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.
-- what were the number of directors that stayed in office more than three years ?
### Response:
|
SELECT COUNT("name") FROM table_203_376 WHERE "term of office" - "term of office" > 3
|
### Instruction:
CREATE TABLE table_2780146_6 (
no_x__g_kwh_ VARCHAR,
hc__g_kwh_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the NO of the standard with HC of 1.23 g/kWh?
### Response:
|
SELECT no_x__g_kwh_ FROM table_2780146_6 WHERE hc__g_kwh_ = "1.23"
|
### Instruction:
CREATE TABLE table_203_777 (
id number,
"years" text,
"building" text,
"city" text,
"height (ctbuh)" text,
"floors" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many floors are there in the tallest building in canada ?
### Response:
|
SELECT "floors" FROM table_203_777 WHERE "years" = present_ref
|
### Instruction:
CREATE TABLE table_41535 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had 1 position?
### Response:
|
SELECT "Team" FROM table_41535 WHERE "Position" = '1'
|
### Instruction:
CREATE TABLE table_204_595 (
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 nations won at least two gold medals ?
### Response:
|
SELECT COUNT("nation") FROM table_204_595 WHERE "gold" >= 2
|
### Instruction:
CREATE TABLE table_203_697 (
id number,
"player" text,
"career" text,
"nickname" text,
"team inducted as" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players were inducted as players of the philadelphia phillies ?
### Response:
|
SELECT COUNT("player") FROM table_203_697 WHERE "team inducted as" = 'philadelphia phillies'
|
### Instruction:
CREATE TABLE table_203_14 (
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.
-- what is the total number of wins for macau ?
### Response:
|
SELECT COUNT(*) FROM table_203_14 WHERE "result" = 'win'
|
### Instruction:
CREATE TABLE table_70833 (
"Name" text,
"Frequency" text,
"Language" text,
"City" text,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the website of the Laredo Sun in the city of Laredo ?
### Response:
|
SELECT "Website" FROM table_70833 WHERE "City" = 'laredo' AND "Name" = 'laredo sun'
|
### Instruction:
CREATE TABLE table_203_312 (
id number,
"name" text,
"club" text,
"position" text,
"years" text,
"current status" text,
"international caps" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players have above 40 international caps ?
### Response:
|
SELECT COUNT("name") FROM table_203_312 WHERE "international caps" > 40
|
### Instruction:
CREATE TABLE table_204_312 (
id number,
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which type of terrain is listed the most ?
### Response:
|
SELECT "terrain" FROM table_204_312 GROUP BY "terrain" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_164 (
id number,
"branding" text,
"callsign" text,
"frequency" text,
"power (kw)" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only radio station with a frequency below 90 mhz ?
### Response:
|
SELECT "branding" FROM table_204_164 WHERE "frequency" < 90
|
### Instruction:
CREATE TABLE table_204_392 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"country" text,
"domed or retractable roof" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which stadium has the highest capacity ?
### Response:
|
SELECT "stadium" FROM table_204_392 ORDER BY "capacity" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_19220 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the episodes with an episode run time of 24:01?
### Response:
|
SELECT "Episode" FROM table_19220 WHERE "Run time" = '24:01'
|
### Instruction:
CREATE TABLE table_203_34 (
id number,
"season" text,
"appearance" number,
"interchange" number,
"tries" number,
"goals" number,
"f/g" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average of all 14 interchanges ?
### Response:
|
SELECT AVG("interchange") FROM table_203_34
|
### Instruction:
CREATE TABLE table_204_178 (
id number,
"number" text,
"south/west end" text,
"north/east end" text,
"formed" text,
"eliminated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many routes were formed in 1926 ?
### Response:
|
SELECT COUNT("number") FROM table_204_178 WHERE "formed" = 1926
|
### Instruction:
CREATE TABLE table_36181 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games have more than 10 points and more than 2 draws?
### Response:
|
SELECT COUNT("Games") FROM table_36181 WHERE "Points" = '10' AND "Drawn" > '2'
|
### Instruction:
CREATE TABLE table_12120 (
"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 score for the 2nd leg when Belasica is team 2?
### Response:
|
SELECT "2nd leg" FROM table_12120 WHERE "Team 2" = 'belasica'
|
### Instruction:
CREATE TABLE table_13113 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Assembled has a 1st member of william boteler?
### Response:
|
SELECT "Assembled" FROM table_13113 WHERE "1st member" = 'william boteler'
|
### Instruction:
CREATE TABLE table_1682026_6 (
market_value__billion_$_ VARCHAR,
sales__billion_$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the market value of a company in billions that has 172.7 billion in sales?
### Response:
|
SELECT market_value__billion_$_ FROM table_1682026_6 WHERE sales__billion_$_ = "172.7"
|
### Instruction:
CREATE TABLE table_62525 (
"Date" text,
"Name" text,
"Local Name" text,
"2012 Date" text,
"2013 Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the local name for January 7, 2013?
### Response:
|
SELECT "Local Name" FROM table_62525 WHERE "2013 Date" = 'january 7'
|
### Instruction:
CREATE TABLE table_24107 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponents for game 5
### Response:
|
SELECT "Opponents" FROM table_24107 WHERE "Game" = '5'
|
### Instruction:
CREATE TABLE table_72725 (
"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.
-- Who was 'The Magic Necklace' written by?
### Response:
|
SELECT "Written by:" FROM table_72725 WHERE "Title" = 'The Magic Necklace'
|
### Instruction:
CREATE TABLE table_55306 (
"Year" real,
"Animal" text,
"Artist" text,
"Finish" text,
"Mintage" real,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the downy woodpecker coin created?
### Response:
|
SELECT SUM("Year") FROM table_55306 WHERE "Animal" = 'downy woodpecker'
|
### Instruction:
CREATE TABLE table_23235767_1 (
year VARCHAR,
opponent_in_the_final VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every year where opponent in the final is John Mcenroe at Wimbledon?
### Response:
|
SELECT year FROM table_23235767_1 WHERE opponent_in_the_final = "John McEnroe" AND championship = "Wimbledon"
|
### Instruction:
CREATE TABLE table_70568 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- September 23, 1973 landed on which week of the season?
### Response:
|
SELECT "Week" FROM table_70568 WHERE "Date" = 'september 23, 1973'
|
### Instruction:
CREATE TABLE table_35365 (
"Year" real,
"Wins" real,
"Earnings ($)" text,
"Rank" real,
"Scoring average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has earnings of $557,158?
### Response:
|
SELECT MAX("Year") FROM table_35365 WHERE "Earnings ($)" = '557,158'
|
### Instruction:
CREATE TABLE table_23730973_5 (
rating VARCHAR,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rating/share for 18-49 for the episode that had 5.90 million viewers?
### Response:
|
SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
|
### Instruction:
CREATE TABLE table_51441 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when Atlanta was the home team?
### Response:
|
SELECT "Date" FROM table_51441 WHERE "Home" = 'atlanta'
|
### Instruction:
CREATE TABLE table_60790 (
"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.
-- What years did the player with a t71 finish win?
### Response:
|
SELECT "Year(s) won" FROM table_60790 WHERE "Finish" = 't71'
|
### Instruction:
CREATE TABLE table_28177800_5 (
late_middle_english VARCHAR,
late_old_english__anglian_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Late Middle English equivalent of the Anglian g, g?
### Response:
|
SELECT late_middle_english FROM table_28177800_5 WHERE late_old_english__anglian_ = "æg, ǣg"
|
### Instruction:
CREATE TABLE table_23374 (
"Year" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When divisional semifinals are the playoffs what is the year?
### Response:
|
SELECT "Year" FROM table_23374 WHERE "Playoffs" = 'Divisional Semifinals'
|
### Instruction:
CREATE TABLE table_204_302 (
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 brazil received ?
### Response:
|
SELECT "total" FROM table_204_302 WHERE "nation" = 'brazil'
|
### Instruction:
CREATE TABLE table_13183076_3 (
us_viewers__million_ VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?
### Response:
|
SELECT us_viewers__million_ FROM table_13183076_3 WHERE production_code = "3T7051"
|
### Instruction:
CREATE TABLE table_8232 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game on April 17 against Los Angeles?
### Response:
|
SELECT "Result" FROM table_8232 WHERE "Road Team" = 'los angeles' AND "Date" = 'april 17'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.