instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_30289 (
"Religion" text,
"Births" real,
"Conversions" text,
"New adherents per year" real,
"Growth rate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least births for conversion being 26,333
### Response:
|
SELECT MIN("Births") FROM table_30289 WHERE "Conversions" = '26,333'
|
### Instruction:
CREATE TABLE table_40331 (
"Eliminated" text,
"Wrestler" text,
"Entered" real,
"Eliminated by" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number eliminated for the person with a time of 12:38?
### Response:
|
SELECT "Eliminated by" FROM table_40331 WHERE "Time" = '12:38'
|
### Instruction:
CREATE TABLE table_55813 (
"Locomotive" text,
"Serial No" text,
"Entered service" text,
"Gauge" text,
"Livery" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the livery on the locomotive with a serial number 83-1011?
### Response:
|
SELECT "Livery" FROM table_55813 WHERE "Serial No" = '83-1011'
|
### Instruction:
CREATE TABLE table_667 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the 3rd day with finbeingh position being 16th
### Response:
|
SELECT "3rd day" FROM table_667 WHERE "Finish position" = '16th'
|
### Instruction:
CREATE TABLE table_11982 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Tournament" text,
"Scored" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game with the result of 22-20 played?
### Response:
|
SELECT "Venue" FROM table_11982 WHERE "Result" = '22-20'
|
### Instruction:
CREATE TABLE table_46216 (
"Date" text,
"Opponent" text,
"Location" text,
"Time" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the Lightning play the NY Rangers at 7:00 pm?
### Response:
|
SELECT "Location" FROM table_46216 WHERE "Opponent" = 'ny rangers' AND "Time" = '7:00 pm'
|
### Instruction:
CREATE TABLE table_59105 (
"Child" text,
"Date of birth" text,
"Mother" text,
"Father" text,
"DNA testing status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the father that was born on January 2, 1842?
### Response:
|
SELECT "Father" FROM table_59105 WHERE "Date of birth" = 'january 2, 1842'
|
### Instruction:
CREATE TABLE table_56954 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed Gerhard Berger car that went all rounds?
### Response:
|
SELECT "Constructor" FROM table_56954 WHERE "Rounds" = 'all' AND "Driver" = 'gerhard berger'
|
### Instruction:
CREATE TABLE table_33843 (
"Kanji" text,
"Name (Translation)" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which builder is associated with ikazuchi 'thunder'?
### Response:
|
SELECT "Builder" FROM table_33843 WHERE "Name (Translation)" = 'ikazuchi "thunder'
|
### Instruction:
CREATE TABLE table_79962 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game that had a loss of Drese (2-2)?
### Response:
|
SELECT "Score" FROM table_79962 WHERE "Loss" = 'drese (2-2)'
|
### Instruction:
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is all the information of all the products that have a price between 60 and 120?
### Response:
|
SELECT * FROM products WHERE price BETWEEN 60 AND 120
|
### Instruction:
CREATE TABLE table_37731 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record after the game in which Rosales (1-1) took the loss?
### Response:
|
SELECT "Record" FROM table_37731 WHERE "Loss" = 'rosales (1-1)'
|
### Instruction:
CREATE TABLE table_name_29 (
goals INTEGER,
games VARCHAR,
debut_year VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the most goals listed when Jack Trehey was the player, with the listed debut year of 1902, games less than 1?
### Response:
|
SELECT MAX(goals) FROM table_name_29 WHERE debut_year = 1902 AND player = "jack trehey" AND games < 1
|
### Instruction:
CREATE TABLE table_203_223 (
id number,
"name" text,
"gauge" text,
"builder" text,
"type" text,
"date" number,
"works number" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- based on the table , which locomotive was built first ?
### Response:
|
SELECT "name" FROM table_203_223 ORDER BY "date" LIMIT 1
|
### Instruction:
CREATE TABLE table_39282 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have an Opponent of vancouver canucks?
### Response:
|
SELECT AVG("Points") FROM table_39282 WHERE "Opponent" = 'vancouver canucks'
|
### Instruction:
CREATE TABLE table_name_40 (
poles INTEGER,
f_laps VARCHAR,
series VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many poles are there in the Formula Three Euroseries in the 2008 season with more than 0 F/Laps?
### Response:
|
SELECT SUM(poles) FROM table_name_40 WHERE series = "formula three euroseries" AND season = "2008" AND f_laps > 0
|
### Instruction:
CREATE TABLE table_15209 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Corbari Italia earn in 1985?
### Response:
|
SELECT "Points" FROM table_15209 WHERE "Entrant" = 'corbari italia' AND "Year" = '1985'
|
### Instruction:
CREATE TABLE table_14810 (
"Office" text,
"Representative" text,
"Party" text,
"Residence" text,
"First Elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Office has a Party of rep, and a Representative of brian bosma?
### Response:
|
SELECT "Office" FROM table_14810 WHERE "Party" = 'rep' AND "Representative" = 'brian bosma'
|
### Instruction:
CREATE TABLE table_38138 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Series of flyers lead 3 2?
### Response:
|
SELECT "Score" FROM table_38138 WHERE "Series" = 'flyers lead 3–2'
|
### Instruction:
CREATE TABLE table_51417 (
"Year" real,
"Event" text,
"Record" text,
"Athlete" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which athlete performed before 1984 in an 800 m event?
### Response:
|
SELECT "Athlete" FROM table_51417 WHERE "Year" < '1984' AND "Event" = '800 m'
|
### Instruction:
CREATE TABLE table_30121075_1 (
area__acres__ VARCHAR,
poor_law_union VARCHAR,
townland VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area when the poor law union is skibbereen and the townland is knockmore?
### Response:
|
SELECT area__acres__ FROM table_30121075_1 WHERE poor_law_union = "Skibbereen" AND townland = "Knockmore"
|
### Instruction:
CREATE TABLE table_45506 (
"Pinnacle height" text,
"Year" real,
"Structure type" text,
"Main use" text,
"Country" text,
"Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the main use for the structure listed in walker city, iowa?
### Response:
|
SELECT "Main use" FROM table_45506 WHERE "Town" = 'walker city, iowa'
|
### Instruction:
CREATE TABLE table_32382 (
"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 date has a Terrain of plain stage, and a Stage of 4?
### Response:
|
SELECT "Date" FROM table_32382 WHERE "Terrain" = 'plain stage' AND "Stage" = '4'
|
### Instruction:
CREATE TABLE table_18591 (
"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.
-- How many districts have an incumbent first elected in 1940?
### Response:
|
SELECT COUNT("District") FROM table_18591 WHERE "First elected" = '1940'
|
### Instruction:
CREATE TABLE table_203_134 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of players who tied for fourth , seventh , and tenth combined ?
### Response:
|
SELECT COUNT("player") FROM table_203_134 WHERE "place" IN (4, 7, 10)
|
### Instruction:
CREATE TABLE table_69181 (
"Date" text,
"Opponent" text,
"Result" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on the game on April 14, 2007?
### Response:
|
SELECT "Opponent" FROM table_69181 WHERE "Date" = 'april 14, 2007'
|
### Instruction:
CREATE TABLE table_name_59 (
chassis VARCHAR,
year VARCHAR,
points VARCHAR,
entrant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis has fewer than 2 points, entrants of Goulds' Garage (Bristol), in 1954?
### Response:
|
SELECT chassis FROM table_name_59 WHERE points < 2 AND entrant = "goulds' garage (bristol)" AND year = 1954
|
### Instruction:
CREATE TABLE table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which game had the largest attendance ?
### Response:
|
SELECT "date" FROM table_204_467 ORDER BY "attendance" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_60492 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had a t4 place and scored 66-73=139?
### Response:
|
SELECT "Country" FROM table_60492 WHERE "Place" = 't4' AND "Score" = '66-73=139'
|
### Instruction:
CREATE TABLE table_13112 (
"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 Elected of 1562/63?
### Response:
|
SELECT "Assembled" FROM table_13112 WHERE "Elected" = '1562/63'
|
### Instruction:
CREATE TABLE table_39056 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What person was played against when the playing surface was hard?
### Response:
|
SELECT "Opponent" FROM table_39056 WHERE "Surface" = 'hard'
|
### Instruction:
CREATE TABLE table_53348 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much time does it take for jean alesi and grids lesser than 5?
### Response:
|
SELECT "Time/Retired" FROM table_53348 WHERE "Grid" < '5' AND "Driver" = 'jean alesi'
|
### Instruction:
CREATE TABLE table_22510 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When toronto is the hometown how many height measurements are there?
### Response:
|
SELECT COUNT("Height") FROM table_22510 WHERE "Hometown" = 'Toronto'
|
### Instruction:
CREATE TABLE table_name_5 (
run_3 INTEGER,
run_1 VARCHAR,
run_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91?
### Response:
|
SELECT SUM(run_3) FROM table_name_5 WHERE run_1 > 53.75 AND run_2 < 52.91
|
### Instruction:
CREATE TABLE table_74314 (
"Track no." real,
"Track" text,
"Original Artist" text,
"Soloist(s)" text,
"Vocal Percussionist" text,
"Arranger(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the vocal percussionist for Sex Bomb?
### Response:
|
SELECT "Vocal Percussionist" FROM table_74314 WHERE "Track" = 'Sex Bomb'
|
### Instruction:
CREATE TABLE table_75336 (
"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 was the result of the game played on April 16 with Philadelphia as home team?
### Response:
|
SELECT "Result" FROM table_75336 WHERE "Home Team" = 'philadelphia' AND "Date" = 'april 16'
|
### Instruction:
CREATE TABLE table_203_494 (
id number,
"party" text,
"votes" number,
"%" number,
"swing" number,
"seats" number,
"change" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the nationals sa and independent party make up what percentage of votes ?
### Response:
|
SELECT SUM("%") FROM table_203_494 WHERE "party" IN ('nationals sa', 'independent')
|
### Instruction:
CREATE TABLE table_55823 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the margin for the Masters Tournament (2) championship?
### Response:
|
SELECT "Margin" FROM table_55823 WHERE "Championship" = 'masters tournament (2)'
|
### Instruction:
CREATE TABLE table_name_83 (
name VARCHAR,
total_goals VARCHAR,
fa_cup_goals VARCHAR,
league_cup_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?
### Response:
|
SELECT name FROM table_name_83 WHERE fa_cup_goals = 0 AND league_cup_goals < 2 AND total_goals = 2
|
### Instruction:
CREATE TABLE table_22355 (
"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.
-- Who did Walter B. Jones, Sr. (d) succeeded in office?
### Response:
|
SELECT "Vacator" FROM table_22355 WHERE "Successor" = 'Walter B. Jones, Sr. (D)'
|
### Instruction:
CREATE TABLE table_47456 (
"Election" text,
"Candidate" text,
"Number of votes" text,
"Share of votes" text,
"Outcome of election" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the outcome of the election with 43.3% share of votes?
### Response:
|
SELECT "Outcome of election" FROM table_47456 WHERE "Share of votes" = '43.3%'
|
### Instruction:
CREATE TABLE table_name_90 (
rank VARCHAR,
height__ft_ VARCHAR,
city VARCHAR,
floors VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the rank for the city of cologne, floors is 34 and height (ft) is more than 452.8?
### Response:
|
SELECT COUNT(rank) FROM table_name_90 WHERE city = "cologne" AND floors = 34 AND height__ft_ > 452.8
|
### Instruction:
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many candidates were elected in 1971 ?
### Response:
|
SELECT "candidates elected" FROM table_203_330 WHERE "year of election" = 1971
|
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has the most released song?
### Response:
|
SELECT groupyear FROM torrents GROUP BY groupyear ORDER BY COUNT(groupname) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_18950570_2 (
live_births_per_year VARCHAR,
deaths_per_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many births per year are there for the period with 998 000 deaths per year?
### Response:
|
SELECT live_births_per_year FROM table_18950570_2 WHERE deaths_per_year = "998 000"
|
### Instruction:
CREATE TABLE table_69046 (
"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 Pick # for the College of Maryland-Eastern Shore?
### Response:
|
SELECT MAX("Pick #") FROM table_69046 WHERE "College" = 'maryland-eastern shore'
|
### Instruction:
CREATE TABLE table_17195 (
"Unit" text,
"Commander" text,
"Complement" text,
"Killed" text,
"Wounded" text,
"Missing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the wounded for complement of 46 off 656 men?
### Response:
|
SELECT "Wounded" FROM table_17195 WHERE "Complement" = '46 off 656 men'
|
### Instruction:
CREATE TABLE table_19530 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the show directed by Michael Dimartino first air?
### Response:
|
SELECT "Original air date" FROM table_19530 WHERE "Directed by" = 'Michael DiMartino'
|
### Instruction:
CREATE TABLE table_48621 (
"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 2 for the match with a team 1 of Panathinaikos?
### Response:
|
SELECT "Team 2" FROM table_48621 WHERE "Team 1" = 'panathinaikos'
|
### Instruction:
CREATE TABLE table_name_23 (
total_matches INTEGER,
draw VARCHAR,
swansea_win VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0?
### Response:
|
SELECT AVG(total_matches) FROM table_name_23 WHERE swansea_win < 3 AND competition = "fa cup" AND draw < 0
|
### Instruction:
CREATE TABLE table_34518 (
"Year" real,
"Performance" text,
"World Ranking" real,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many world rankings are after Aug 5, 1980 ?
### Response:
|
SELECT SUM("World Ranking") FROM table_34518 WHERE "Date" = 'aug 5' AND "Year" > '1980'
|
### Instruction:
CREATE TABLE table_10434 (
"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 average tie no when the home team is stamford a.f.c.?
### Response:
|
SELECT AVG("Tie no") FROM table_10434 WHERE "Home team" = 'stamford a.f.c.'
|
### Instruction:
CREATE TABLE table_64247 (
"Year" real,
"Title" text,
"Director" text,
"Studio(s)" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What studio had the director Peter Lord Nick Park before 2004?
### Response:
|
SELECT "Studio(s)" FROM table_64247 WHERE "Year" < '2004' AND "Director" = 'peter lord nick park'
|
### Instruction:
CREATE TABLE table_204_13 (
id number,
"finished" text,
"post" number,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of post for 3rd finished
### Response:
|
SELECT "post" FROM table_204_13 WHERE "finished" = 3
|
### Instruction:
CREATE TABLE table_30445 (
"Episode" text,
"Date Aired" text,
"Timeslot" text,
"Rating" text,
"Nightly Rank" real,
"Weekly Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episode 1.13 air for the first time?
### Response:
|
SELECT "Date Aired" FROM table_30445 WHERE "Episode" = '1.13'
|
### Instruction:
CREATE TABLE table_79261 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more?
### Response:
|
SELECT "Nationality" FROM table_79261 WHERE "Lane" > '4' AND "Rank" > '5'
|
### Instruction:
CREATE TABLE table_71284 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did team scandia finish when their engine was cosworth?
### Response:
|
SELECT "Finish" FROM table_71284 WHERE "Engine" = 'cosworth' AND "Team" = 'team scandia'
|
### Instruction:
CREATE TABLE table_203_570 (
id number,
"#" number,
"title" text,
"tpb isbn" text,
"tpb release date" text,
"tpb page number" number,
"collected material" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was the big ride ?
### Response:
|
SELECT "tpb page number" FROM table_203_570 WHERE "title" = 'the big ride'
|
### Instruction:
CREATE TABLE table_35187 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the grid for anthony davidson when the laps were less than 8?
### Response:
|
SELECT COUNT("Grid") FROM table_35187 WHERE "Driver" = 'anthony davidson' AND "Laps" < '8'
|
### Instruction:
CREATE TABLE table_42612 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes where the authors are Zhou & Zhang?
### Response:
|
SELECT "Notes" FROM table_42612 WHERE "Authors" = 'zhou & zhang'
|
### Instruction:
CREATE TABLE table_67391 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term in office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What member is in the liberal party and has an electorate of bruce?
### Response:
|
SELECT "Member" FROM table_67391 WHERE "Party" = 'liberal' AND "Electorate" = 'bruce'
|
### Instruction:
CREATE TABLE table_203_618 (
id number,
"pick" number,
"player" text,
"team" text,
"position" text,
"school" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is listed after pat burrell ?
### Response:
|
SELECT "player" FROM table_203_618 WHERE id = (SELECT id FROM table_203_618 WHERE "player" = 'pat burrell') + 1
|
### Instruction:
CREATE TABLE table_12714 (
"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 the Score of the Round with Player Aaron Baddeley having a To par of +2?
### Response:
|
SELECT "Score" FROM table_12714 WHERE "To par" = '+2' AND "Player" = 'aaron baddeley'
|
### Instruction:
CREATE TABLE table_name_9 (
construction_completed VARCHAR,
listed VARCHAR,
deleted VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?
### Response:
|
SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999"
|
### Instruction:
CREATE TABLE table_76698 (
"Position" text,
"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 2nd leg of the 4-9 agg.?
### Response:
|
SELECT "2nd leg" FROM table_76698 WHERE "Agg." = '4-9'
|
### Instruction:
CREATE TABLE table_21865 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the place with 582.20 square km area?
### Response:
|
SELECT "Official Name" FROM table_21865 WHERE "Area km 2" = '582.20'
|
### Instruction:
CREATE TABLE table_42179 (
"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 of the game played on November 20, 1995?
### Response:
|
SELECT "Opponent" FROM table_42179 WHERE "Date" = 'november 20, 1995'
|
### Instruction:
CREATE TABLE table_203_229 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team had the first pick in round 17 of the 1969 nfl draft ?
### Response:
|
SELECT "nfl team" FROM table_203_229 ORDER BY "pick #" LIMIT 1
|
### Instruction:
CREATE TABLE table_45605 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds did the match last when his record was 6-6?
### Response:
|
SELECT "Round" FROM table_45605 WHERE "Record" = '6-6'
|
### Instruction:
CREATE TABLE table_35670 (
"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 scored less than 35 points?
### Response:
|
SELECT "Team" FROM table_35670 WHERE "Points" < '35'
|
### Instruction:
CREATE TABLE table_63630 (
"Rank" real,
"Canton" text,
"Highest point" text,
"Highest elevation" text,
"Lowest point" text,
"Lowest elevation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Canton of Vaud's highest point?
### Response:
|
SELECT "Highest point" FROM table_63630 WHERE "Canton" = 'vaud'
|
### Instruction:
CREATE TABLE table_2859 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the title for number 16
### Response:
|
SELECT "Title" FROM table_2859 WHERE "No. in season" = '16'
|
### Instruction:
CREATE TABLE college (
Leader_Name VARCHAR,
College_ID VARCHAR
)
CREATE TABLE member (
College_ID VARCHAR,
Country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the distinct leader names of colleges associated with members from country 'Canada'.
### Response:
|
SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada"
|
### Instruction:
CREATE TABLE table_49131 (
"Team" text,
"City" text,
"State/Province" text,
"League" text,
"Est." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team is located in missouri and was established in 1963?
### Response:
|
SELECT "Team" FROM table_49131 WHERE "State/Province" = 'missouri' AND "Est." = '1963'
|
### Instruction:
CREATE TABLE table_204_974 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"administration" text,
"position" text,
"movements" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times were they in tier 3 ?
### Response:
|
SELECT COUNT(*) FROM table_204_974 WHERE "level" = 'tier 3'
|
### Instruction:
CREATE TABLE table_54859 (
"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 result of the game with 68,436 attending?
### Response:
|
SELECT "Result" FROM table_54859 WHERE "Attendance" = '68,436'
|
### Instruction:
CREATE TABLE table_2610582_2 (
branding VARCHAR,
power_kw__erp_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many brandings are there where the Power kW (ERP) is 1kW (29.94kW ERP)?
### Response:
|
SELECT COUNT(branding) FROM table_2610582_2 WHERE power_kw__erp_ = "1kW (29.94kW ERP)"
|
### Instruction:
CREATE TABLE table_4563 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Sideline reporter(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the sideline reporter(s) in 2011?
### Response:
|
SELECT "Sideline reporter(s)" FROM table_4563 WHERE "Year" = '2011'
|
### Instruction:
CREATE TABLE table_78965 (
"Date" text,
"Ship Name" text,
"Tonnage" text,
"Ship Type" text,
"Location" text,
"Disposition of Ship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With 14 under the date, what is the tonnage of the ship?
### Response:
|
SELECT "Tonnage" FROM table_78965 WHERE "Date" = '14'
|
### Instruction:
CREATE TABLE table_47051 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the artist of ' bang bang boom '?
### Response:
|
SELECT "Artist" FROM table_47051 WHERE "Song" = ' bang bang boom '
|
### Instruction:
CREATE TABLE table_18245 (
"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.
-- Which party is associated with the person who was first elected in 1982?
### Response:
|
SELECT "Party" FROM table_18245 WHERE "First elected" = '1982'
|
### Instruction:
CREATE TABLE table_26661 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which contestant is from the province of baoruco
### Response:
|
SELECT "Contestant" FROM table_26661 WHERE "Province, Community" = 'Baoruco'
|
### Instruction:
CREATE TABLE table_204_448 (
id number,
"team" text,
"winners" number,
"runners-up" number,
"years won" text,
"years runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what 's the total of wins does the manchester united have ?
### Response:
|
SELECT "winners" FROM table_204_448 WHERE "team" = 'manchester united'
|
### Instruction:
CREATE TABLE table_14986292_1 (
population_density_2010___km²_ VARCHAR,
administrative_division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of population density 2010 for duque de caxias
### Response:
|
SELECT COUNT(population_density_2010___km²_) FROM table_14986292_1 WHERE administrative_division = "Duque de Caxias"
|
### Instruction:
CREATE TABLE table_42287 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest wins of Larry Nelson, who ranked less than 5?
### Response:
|
SELECT MIN("Wins") FROM table_42287 WHERE "Player" = 'larry nelson' AND "Rank" < '5'
|
### Instruction:
CREATE TABLE table_name_27 (
rating INTEGER,
episode VARCHAR,
rank__night_ VARCHAR,
rank__timeslot_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?
### Response:
|
SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 6
|
### Instruction:
CREATE TABLE table_41294 (
"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 the To par, when the Score is 68-71-69=208?
### Response:
|
SELECT "To par" FROM table_41294 WHERE "Score" = '68-71-69=208'
|
### Instruction:
CREATE TABLE table_203_761 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of teams ?
### Response:
|
SELECT COUNT(DISTINCT "team") FROM table_203_761
|
### Instruction:
CREATE TABLE table_name_68 (
rank INTEGER,
area VARCHAR,
density VARCHAR,
province VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?
### Response:
|
SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = "valverde" AND area > 823
|
### Instruction:
CREATE TABLE table_36906 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text,
"Head Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Head Coach of wojciech kami ski is what club?
### Response:
|
SELECT "Club" FROM table_36906 WHERE "Head Coach" = 'wojciech kamiński'
|
### Instruction:
CREATE TABLE table_203_180 (
id number,
"#" number,
"weekend end date" text,
"film" text,
"weekend gross (millions)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many films grossed over five million in their first week ?
### Response:
|
SELECT COUNT(DISTINCT "film") FROM table_203_180 WHERE "weekend gross (millions)" > 5
|
### Instruction:
CREATE TABLE table_37332 (
"Unit" text,
"Russian" text,
"Translation" text,
"Ratio" real,
"Metric value" text,
"Avoirdupois value" text,
"Ordinary value" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ordinary value has a Russian value of ?
### Response:
|
SELECT "Ordinary value" FROM table_37332 WHERE "Russian" = 'унция'
|
### Instruction:
CREATE TABLE table_15879 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players were with the school or club team La Salle?
### Response:
|
SELECT COUNT("Player") FROM table_15879 WHERE "School/Club Team" = 'La Salle'
|
### Instruction:
CREATE TABLE table_25829 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many original air dates did episode 12 have?h
### Response:
|
SELECT COUNT("Original air date") FROM table_25829 WHERE "Episode #" = '12'
|
### Instruction:
CREATE TABLE table_48300 (
"Outcome" text,
"Date" text,
"Location" text,
"Surface" text,
"Opponent in final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Surface, when Date is 2 May 1999?
### Response:
|
SELECT "Surface" FROM table_48300 WHERE "Date" = '2 may 1999'
|
### Instruction:
CREATE TABLE table_42000 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which incumbent's democratic candidate was mike carroll?
### Response:
|
SELECT "Incumbent" FROM table_42000 WHERE "Democratic" = 'mike carroll'
|
### Instruction:
CREATE TABLE table_42067 (
"Name" text,
"Nationality" text,
"Position" text,
"Appearances" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of appearances by new zealand when they scored 4 goals?
### Response:
|
SELECT MIN("Appearances") FROM table_42067 WHERE "Goals" = '4' AND "Nationality" = 'new zealand'
|
### Instruction:
CREATE TABLE table_51641 (
"Year" real,
"Franchise" text,
"League" text,
"Percentage" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the Year 1939, what was the Finish when Al was the League?
### Response:
|
SELECT "Finish" FROM table_51641 WHERE "League" = 'al' AND "Year" = '1939'
|
### Instruction:
CREATE TABLE table_47547 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the song by jennifer lopez get issued?
### Response:
|
SELECT "Issue Date(s)" FROM table_47547 WHERE "Artist" = 'jennifer lopez'
|
### Instruction:
CREATE TABLE table_57124 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the constructor of the 196 chassis?
### Response:
|
SELECT "Constructor" FROM table_57124 WHERE "Chassis" = '196'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.