instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_name_77 (
grid INTEGER,
time_retired VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the grid total associated with a Time/Retired of +33.634, and a Laps smaller than 19?
### Response:
| SELECT MIN(grid) FROM table_name_77 WHERE time_retired = "+33.634" AND laps < 19 |
### Instruction:
CREATE TABLE table_79949 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winning constructor at the circuit of pa... | SELECT "Winning constructor" FROM table_79949 WHERE "Circuit" = 'parioli' |
### Instruction:
CREATE TABLE table_14459 (
"Week" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when there was an attendance of 54,418?
### Response:
| SELECT "Result" FROM table_14459 WHERE "Attendance" = '54,418' |
### Instruction:
CREATE TABLE table_60745 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total To Par for the winner in 1995?
### Response:
| SELECT COUNT("To par") FROM table_60745 WHERE "Year(s) won" = '1995' |
### Instruction:
CREATE TABLE table_203_186 (
id number,
"painter" text,
"composition" number,
"drawing" number,
"color" number,
"expression" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many painters received a mark of 14 for color ?
... | SELECT COUNT("painter") FROM table_203_186 WHERE "color" = 14 |
### Instruction:
CREATE TABLE table_name_43 (
country VARCHAR,
class VARCHAR,
qualifying_grand_prix VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Class is '15 meters', and when Qualifying Grand Prix is 'Soaring Grand Prix Of United... | SELECT country FROM table_name_43 WHERE class = "15 meters" AND qualifying_grand_prix = "soaring grand prix of united kingdom" |
### Instruction:
CREATE TABLE table_77293 (
"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 is the Total of the Player with a Finish of 1?
### Respons... | SELECT COUNT("Total") FROM table_77293 WHERE "Finish" = '1' |
### Instruction:
CREATE TABLE table_name_56 (
human_resources_ VARCHAR,
_operations VARCHAR,
academic_ VARCHAR,
_university_affairs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was in Human Resources & Operations when David Hornsby was in Acade... | SELECT human_resources_ & _operations FROM table_name_56 WHERE academic_ & _university_affairs = "david hornsby" |
### Instruction:
CREATE TABLE table_203_691 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score difference for the game in week 10 ?
### Respo... | SELECT "result" - "result" FROM table_203_691 WHERE "week" = 10 |
### Instruction:
CREATE TABLE table_5780 (
"Call sign" text,
"Frequency" text,
"City of License" text,
"Owner" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the owner with a frequency of 0 101.1 fm?
### Response:
| SELECT "Owner" FROM table_5780 WHERE "Frequency" = '0 101.1 fm' |
### Instruction:
CREATE TABLE table_55160 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date that had a record of 90-60
### Response:
| SELECT "Date" FROM table_55160 WHERE "Record" = '90-60' |
### Instruction:
CREATE TABLE table_name_92 (
result_score VARCHAR,
year VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Result/Score, when Year is greater than 2005, and when Opponent is #8 Arkansas #1 Memphis?
### Response:
| SELECT result_score FROM table_name_92 WHERE year > 2005 AND opponent = "#8 arkansas #1 memphis" |
### Instruction:
CREATE TABLE table_name_53 (
year VARCHAR,
result VARCHAR,
location VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did the new york giants win with a result of 15-7 at lincoln financial field?
### Res... | SELECT COUNT(year) FROM table_name_53 WHERE location = "lincoln financial field" AND winner = "new york giants" AND result = "15-7" |
### Instruction:
CREATE TABLE table_204_961 (
id number,
"title" text,
"director" text,
"production" text,
"music" text,
"cast" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first tamil language film in 194... | SELECT "title" FROM table_204_961 WHERE id = 1 |
### Instruction:
CREATE TABLE table_203_69 (
id number,
"representative" text,
"title" text,
"from" number,
"to" number,
"appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the first ambassador the united states has sent to mex... | SELECT "representative" FROM table_203_69 ORDER BY "from" LIMIT 1 |
### Instruction:
CREATE TABLE table_name_80 (
league_goals INTEGER,
total_goals VARCHAR,
league_cup_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the sum of league goals where the toal was 8 and league cup goals were larger than 0?
### ... | SELECT SUM(league_goals) FROM table_name_80 WHERE total_goals = 8 AND league_cup_goals > 0 |
### Instruction:
CREATE TABLE table_49307 (
"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 average Week, when Opponent is Minnesota Vikings?
### Response:
| SELECT AVG("Week") FROM table_49307 WHERE "Opponent" = 'minnesota vikings' |
### Instruction:
CREATE TABLE table_name_1 (
player VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player from the United States in T10 place with a score of 67-77=144?
### Response:
| SELECT player FROM table_name_1 WHERE country = "united states" AND place = "t10" AND score = 67 - 77 = 144 |
### Instruction:
CREATE TABLE table_65096 (
"Date" text,
"Opponent" text,
"Score" text,
"Venue" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what Venue was the Attendance 47,678?
### Response:
| SELECT "Venue" FROM table_65096 WHERE "Attendance" = '47,678' |
### Instruction:
CREATE TABLE table_63554 (
"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 is the to par for geoff ogilvy?
### Response:
| SELECT "To par" FROM table_63554 WHERE "Player" = 'geoff ogilvy' |
### Instruction:
CREATE TABLE table_name_47 (
game INTEGER,
time VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week was the first game played that had a time of 2:06 and less than 27,374 attendees?
### Response:
| SELECT MIN(game) FROM table_name_47 WHERE time = "2:06" AND attendance < 27 OFFSET 374 |
### Instruction:
CREATE TABLE table_37547 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the 2014 fifa world cup qualification?
### Response:
| SELECT "Date" FROM table_37547 WHERE "Competition" = '2014 fifa world cup qualification' |
### Instruction:
CREATE TABLE table_203_743 (
id number,
"version" text,
"date" text,
"development cycle" text,
"size (in kb)" number,
"download" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what version was the only alpha re... | SELECT "version" FROM table_203_743 WHERE "development cycle" = 'alpha' |
### Instruction:
CREATE TABLE table_11456251_5 (
number_of_generators VARCHAR,
power_capacity__gw_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of generators where the power capicity is 78.7?
### Response:
| SELECT COUNT(number_of_generators) FROM table_11456251_5 WHERE power_capacity__gw_ = "78.7" |
### Instruction:
CREATE TABLE table_28039 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was at position left... | SELECT "Player" FROM table_28039 WHERE "Position" = 'Left tackle' |
### Instruction:
CREATE TABLE table_33855 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the celebrity who exited on day 13?
### Response:
| SELECT "Celebrity" FROM table_33855 WHERE "Exited" = 'day 13' |
### Instruction:
CREATE TABLE table_18381 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result when Ray Roberts was elected?
###... | SELECT "Result" FROM table_18381 WHERE "Incumbent" = 'Ray Roberts' |
### Instruction:
CREATE TABLE table_61592 (
"Province, Community" text,
"Contestant" text,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the geographical region for hometown Imbert?
#... | SELECT "Geographical Regions" FROM table_61592 WHERE "Hometown" = 'imbert' |
### Instruction:
CREATE TABLE table_50856 (
"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 Downstream, when Upstream is '384 kbit'?
### Response:
| SELECT "Downstream" FROM table_50856 WHERE "Upstream" = '384 kbit' |
### Instruction:
CREATE TABLE table_715 (
"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 is the minimum first elected for ed markey?
### Re... | SELECT MIN("First elected") FROM table_715 WHERE "Incumbent" = 'Ed Markey' |
### Instruction:
CREATE TABLE team (
Team_id VARCHAR,
Name VARCHAR
)
CREATE TABLE match_season (
Position VARCHAR,
Team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the positions of the players from the team with name 'Ryley Goldner'.
### R... | SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Ryley Goldner" |
### Instruction:
CREATE TABLE table_203_754 (
id number,
"no." number,
"player" text,
"position" text,
"career" text,
"date no. retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- of these players , who had the longest career ?
### Respons... | SELECT "player" FROM table_203_754 ORDER BY "career" - "career" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_69371 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what stadium were the New England Patriots the visiting team?
### Resp... | SELECT "Stadium" FROM table_69371 WHERE "Visiting Team" = 'new england patriots' |
### Instruction:
CREATE TABLE table_34414 (
"Country" text,
"Project Name" text,
"Year startup" text,
"Operator" text,
"Peak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the startup for the Project Named of taq taq ph 2?
### Respo... | SELECT "Year startup" FROM table_34414 WHERE "Project Name" = 'taq taq ph 2' |
### Instruction:
CREATE TABLE table_28787871_3 (
no_in_season VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many numbers in the season have an air date of June 3, 2012?
### Response:
| SELECT COUNT(no_in_season) FROM table_28787871_3 WHERE original_air_date = "June 3, 2012" |
### Instruction:
CREATE TABLE table_22806 (
"Episode title" text,
"Subject" text,
"Music by" text,
"Performed by" text,
"First aired" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When interplanet janet is the episode title who is the music by?
#... | SELECT "Music by" FROM table_22806 WHERE "Episode title" = 'Interplanet Janet' |
### Instruction:
CREATE TABLE table_13875 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the results for November 24, 2002?
### Response:
| SELECT "Result" FROM table_13875 WHERE "Date" = 'november 24, 2002' |
### 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.
-- which team had the highest number of inductees ?
### Response:
| SELECT "team inducted as" FROM table_203_697 GROUP BY "team inducted as" ORDER BY COUNT("player") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_75399 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Result of 88-85 ot (1-0) involves what game?
### Response:
| SELECT "Game" FROM table_75399 WHERE "Result" = '88-85 ot (1-0)' |
### Instruction:
CREATE TABLE table_204_558 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- fort gratiot lighthouse and fort st. joseph are located in what city ?
### Response:
| SELECT "city" FROM table_204_558 WHERE "name" = 'fort gratiot lighthouse' |
### Instruction:
CREATE TABLE table_11347 (
"Position" real,
"Name" text,
"Affiliation" text,
"Total" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the exact number of Total that has a percentage of precisely 12.03%?
##... | SELECT COUNT("Total") FROM table_11347 WHERE "Percentage" = '12.03%' |
### Instruction:
CREATE TABLE table_59016 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result at Dreisamstadion, Freiburg?
### Response:
| SELECT "Result" FROM table_59016 WHERE "Venue" = 'dreisamstadion, freiburg' |
### Instruction:
CREATE TABLE table_65332 (
"Vessel" text,
"Origin" text,
"Type" text,
"In service" real,
"Unit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest listed In service for a vessel of xavery czernicki class?
### Respon... | SELECT MIN("In service") FROM table_65332 WHERE "Vessel" = 'xavery czernicki class' |
### Instruction:
CREATE TABLE table_17405 (
"Vendor and type" text,
"Models" text,
"NetFlow Version" text,
"Implementation" text,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the netflow version when vendor and type is pc and se... | SELECT "NetFlow Version" FROM table_17405 WHERE "Vendor and type" = 'PC and Servers' |
### Instruction:
CREATE TABLE company (
name VARCHAR,
Sales_in_Billion INTEGER,
Profits_in_Billion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list the names of the companies with more than 200 sales in the descending order of sales and profits.
###... | SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion, Profits_in_Billion DESC |
### Instruction:
CREATE TABLE table_204_85 (
id number,
"dates" text,
"tournament" text,
"host country" text,
"winner" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did the estoril open last ?
### Response:
| SELECT "dates" - "dates" FROM table_204_85 WHERE "tournament" = 'estoril open' |
### Instruction:
CREATE TABLE table_9694 (
"Scorer" text,
"Club" text,
"League goals" text,
"FA Cup goals" real,
"League Cup goals" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Club has a League goals of 21?
### Response:... | SELECT "Club" FROM table_9694 WHERE "League goals" = '21' |
### Instruction:
CREATE TABLE table_6202 (
"Date" real,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when the attendance is 960?
### Response:
| SELECT "Result" FROM table_6202 WHERE "Attendance" = '960' |
### Instruction:
CREATE TABLE table_35318 (
"Player" text,
"Attempts" real,
"Net yards" real,
"Yards per attempt" real,
"Touchdowns" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many yards per attempt have net yards greater than 631?
### Res... | SELECT SUM("Yards per attempt") FROM table_35318 WHERE "Net yards" > '631' |
### Instruction:
CREATE TABLE table_64743 (
"Rank" real,
"Name" text,
"Height ft ( m )" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest rank for El Paso Natural Gas Company Building?
### Response:
| SELECT MIN("Rank") FROM table_64743 WHERE "Name" = 'el paso natural gas company building' |
### Instruction:
CREATE TABLE table_name_14 (
code INTEGER,
regional_county_municipality VARCHAR,
region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the code for a Le Haut-Saint-Laurent municipality that has 16 or more regions?
### Response:... | SELECT MIN(code) FROM table_name_14 WHERE regional_county_municipality = "le haut-saint-laurent" AND region > 16 |
### Instruction:
CREATE TABLE table_79683 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent played on 1/13/1974?
### Response:
| SELECT "Opponent" FROM table_79683 WHERE "Date" = '1/13/1974' |
### Instruction:
CREATE TABLE table_name_90 (
pts INTEGER,
engine VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points have an Engine of ferrari tipo 033 v6 tc, and a Year smaller than 1987?
### Response:
| SELECT MAX(pts) FROM table_name_90 WHERE engine = "ferrari tipo 033 v6 tc" AND year < 1987 |
### Instruction:
CREATE TABLE table_11614581_3 (
population VARCHAR,
_in_thousands VARCHAR,
__1905__ VARCHAR,
seat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What population (in thousands) is Lublin's seat?
### Response:
| SELECT population, _in_thousands, __1905__ FROM table_11614581_3 WHERE seat = "Lublin" |
### Instruction:
CREATE TABLE table_68796 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team had the 1:44.027 qual 2?
### Response:
| SELECT "Team" FROM table_68796 WHERE "Qual 2" = '1:44.027' |
### Instruction:
CREATE TABLE table_203_113 (
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 of these countries is ranked first ?
###... | SELECT "nation" FROM table_203_113 ORDER BY "rank" LIMIT 1 |
### Instruction:
CREATE TABLE table_22268 (
"Departure" text,
"Going to" text,
"Calling at" text,
"Arrival" text,
"Operator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the departure time when the arrival was 14.40?
### Response:
| SELECT "Departure" FROM table_22268 WHERE "Arrival" = '14.40' |
### Instruction:
CREATE TABLE table_16201 (
"No. in series" real,
"No. in 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 wrote the episode titled 'black'?... | SELECT "Written by" FROM table_16201 WHERE "Title" = 'Black' |
### Instruction:
CREATE TABLE table_17681 (
"Region/Country" text,
"Local name" text,
"Network" text,
"Dates aired" text,
"Starring" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many networks aired the franchise in 1981 only?
### Response:
| SELECT COUNT("Network") FROM table_17681 WHERE "Dates aired" = '1981' |
### Instruction:
CREATE TABLE table_77919 (
"Year" real,
"Organisation" text,
"Ceremony" text,
"Award" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award was nominated for in 2000?
### Response:
| SELECT "Award" FROM table_77919 WHERE "Year" = '2000' AND "Result" = 'nominated' |
### Instruction:
CREATE TABLE table_72937 (
"Season" text,
"Date Released" text,
"# Of Episodes" real,
"# Of Discs" real,
"Special Features" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many discs for the complete 4th series?
### Response:
| SELECT MAX("# Of Discs") FROM table_72937 WHERE "Season" = 'The Complete 4th Series' |
### Instruction:
CREATE TABLE table_10063 (
"Railway" text,
"Builder" text,
"Built" text,
"Wheels" text,
"Location" text,
"ObjectNumber" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which railway was built in 1909?
### Response:
| SELECT "Railway" FROM table_10063 WHERE "Built" = '1909' |
### Instruction:
CREATE TABLE table_14456 (
"Week" 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 when 48,121 people attended?
### Response:
| SELECT "Opponent" FROM table_14456 WHERE "Attendance" = '48,121' |
### Instruction:
CREATE TABLE table_42383 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many were in attendance of the game with l 26-21 result?
### Response:
| SELECT "Attendance" FROM table_42383 WHERE "Result" = 'l 26-21' |
### Instruction:
CREATE TABLE table_2563 (
"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 directed 'loathe and marriage'?
### Respon... | SELECT "Directed by" FROM table_2563 WHERE "Title" = 'Loathe and Marriage' |
### Instruction:
CREATE TABLE table_204_278 (
id number,
"name of president" text,
"picture" text,
"life span" text,
"year of presidency" text,
"place of conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the last conference he... | SELECT "place of conference" FROM table_204_278 ORDER BY "year of presidency" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_985 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the most aggregate score... | SELECT MAX("aggregate") FROM table_204_985 |
### Instruction:
CREATE TABLE table_13244 (
"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 was the lowest total of medals won by Croatia?
### Response:
| SELECT MIN("Total") FROM table_13244 WHERE "Nation" = 'croatia' |
### Instruction:
CREATE TABLE table_56871 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School did Player Tyrone Johnson attend?
### Response:
| SELECT "School" FROM table_56871 WHERE "Player" = 'tyrone johnson' |
### Instruction:
CREATE TABLE Allergy_type (
allergytype VARCHAR,
allergy VARCHAR
)
CREATE TABLE Has_allergy (
allergy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all allergy type with number of students affected.
### Response:
| SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype |
### Instruction:
CREATE TABLE table_name_54 (
attendance INTEGER,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Attendance, when Venue is 'Candlestick Park', and when Date is 'November 25'?
### Response:
| SELECT AVG(attendance) FROM table_name_54 WHERE venue = "candlestick park" AND date = "november 25" |
### Instruction:
CREATE TABLE table_204_700 (
id number,
"name" text,
"developer" text,
"release" text,
"type" text,
"game flow" text,
"setting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the developer of castle of heroes ?
###... | SELECT "developer" FROM table_204_700 WHERE "name" = 'castle of heroes' |
### Instruction:
CREATE TABLE table_52713 (
"Name" text,
"Took Office" text,
"Left Office" text,
"Party" text,
"District Residence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name of choice b. Randell is the name of which District Residence?
#... | SELECT "District Residence" FROM table_52713 WHERE "Name" = 'choice b. randell' |
### Instruction:
CREATE TABLE table_45510 (
"Position" real,
"Pilot" text,
"Glider" text,
"Speed" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How far did the pilot go when averaging 124.1km/h?
### Response:
| SELECT "Distance" FROM table_45510 WHERE "Speed" = '124.1km/h' |
### Instruction:
CREATE TABLE table_44814 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Round was Grant Long Drafted?
### Response:
| SELECT MIN("Round") FROM table_44814 WHERE "Player" = 'grant long' |
### Instruction:
CREATE TABLE table_name_8 (
name VARCHAR,
team VARCHAR,
wsu_year_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Team is New York Knicks, and when WSU Year(s) is 1965-68?
### Response:
| SELECT name FROM table_name_8 WHERE team = "new york knicks" AND wsu_year_s_ = "1965-68" |
### Instruction:
CREATE TABLE table_77284 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week was the game played on December 8, 1974?
### Response:
| SELECT "Week" FROM table_77284 WHERE "Date" = 'december 8, 1974' |
### Instruction:
CREATE TABLE table_59774 (
"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 episode has a run time of 25:12?
### Response:
| SELECT "Episode" FROM table_59774 WHERE "Run time" = '25:12' |
### Instruction:
CREATE TABLE table_6509 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest day in November of the game with a 15-5-2 record?
### Response:
| SELECT MAX("November") FROM table_6509 WHERE "Record" = '15-5-2' |
### Instruction:
CREATE TABLE table_57292 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year had a toleman tg183 chassis?
### Response:
| SELECT COUNT("Year") FROM table_57292 WHERE "Chassis" = 'toleman tg183' |
### Instruction:
CREATE TABLE table_9426 (
"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 of the player of who scored 70-70=140?
### Response:
| SELECT "To par" FROM table_9426 WHERE "Score" = '70-70=140' |
### Instruction:
CREATE TABLE table_name_86 (
avg_g INTEGER,
effic VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?
### Response:
| SELECT MIN(avg_g) FROM table_name_86 WHERE effic > 34.36 AND name = "wesley carroll" |
### Instruction:
CREATE TABLE table_49404 (
"Nat." text,
"Name" text,
"Since" text,
"Goals" real,
"Ends" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the ends for the player with a transfer fee of loan?
### Resp... | SELECT "Ends" FROM table_49404 WHERE "Transfer fee" = 'loan' |
### Instruction:
CREATE TABLE table_78596 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is T2 Place Player Steve Flesch's Score?
### Response:
| SELECT MAX("Score") FROM table_78596 WHERE "Place" = 't2' AND "Player" = 'steve flesch' |
### Instruction:
CREATE TABLE table_39036 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has a record of 22-28-7-4?
### Response:
| SELECT "Score" FROM table_39036 WHERE "Record" = '22-28-7-4' |
### Instruction:
CREATE TABLE table_24329520_8 (
voters_in_1800 VARCHAR,
borough VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of voters in 1800 that have boroughs named Drogheda?
### Response:
| SELECT COUNT(voters_in_1800) FROM table_24329520_8 WHERE borough = "Drogheda" |
### Instruction:
CREATE TABLE table_name_10 (
tie_no VARCHAR,
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tie No, when Date is 18 February 1956, and when Home Team is Charlton Athletic?
### Response:
| SELECT tie_no FROM table_name_10 WHERE date = "18 february 1956" AND home_team = "charlton athletic" |
### Instruction:
CREATE TABLE table_73410 (
"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.
-- Name the successor for north carolina 13th
### Response... | SELECT "Successor" FROM table_73410 WHERE "District" = 'North Carolina 13th' |
### Instruction:
CREATE TABLE table_29141354_4 (
first_broadcast VARCHAR,
jamie_and_johns_guest VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the episode with Andy Murray as Jamie and John's guest first broadcast?
### Response:
| SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = "Andy Murray" |
### Instruction:
CREATE TABLE table_204_228 (
id number,
"year" number,
"title" text,
"credit" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only film for which seth was director and screenwriter ?
### R... | SELECT "title" FROM table_204_228 WHERE "credit" = 'director and screenwriter' |
### Instruction:
CREATE TABLE table_name_73 (
surname VARCHAR,
dob VARCHAR,
bats VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989?
### Response:
| SELECT surname FROM table_name_73 WHERE bats = "r" AND position = "p" AND dob = "20 may 1989" |
### Instruction:
CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- number of official middle earth video games before the year 2000... | SELECT COUNT("title") FROM table_204_398 WHERE "year" < 2000 |
### Instruction:
CREATE TABLE table_204_364 (
id number,
"year" number,
"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 number of 800 meter events ?
### Re... | SELECT COUNT(*) FROM table_204_364 WHERE "event" = 800 |
### Instruction:
CREATE TABLE election (
Representative_ID VARCHAR
)
CREATE TABLE representative (
Lifespan VARCHAR,
Representative_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the lifespans of representatives in descending order of vote p... | SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC |
### Instruction:
CREATE TABLE table_32368 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a qual 1 of 1:01.461?
### Response:
| SELECT "Name" FROM table_32368 WHERE "Qual 1" = '1:01.461' |
### Instruction:
CREATE TABLE table_204_630 (
id number,
"no" number,
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won the most ?
### Response:
| SELECT "winner" FROM table_204_630 GROUP BY "winner" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_35911 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did they play Utah at home?
### Resp... | SELECT "Date" FROM table_35911 WHERE "Home" = 'utah' |
### Instruction:
CREATE TABLE table_47859 (
"Date" text,
"Time" text,
"Opponent" text,
"Site" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was the opponent on 03/18/08?
### Response:
| SELECT "Opponent" FROM table_47859 WHERE "Date" = '03/18/08' |
### Instruction:
CREATE TABLE table_64343 (
"Class" text,
"Railway number(s)" text,
"Quantity" real,
"Year(s) of manufacture" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Class has a Type of 1 c n2t?
### Response:
| SELECT "Class" FROM table_64343 WHERE "Type" = '1′c n2t' |
### Instruction:
CREATE TABLE table_70554 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the venue at Brisbane Cricket Ground?
### Response:
| SELECT "Date" FROM table_70554 WHERE "Venue" = 'brisbane cricket ground' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.