instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_47 (
ship_type VARCHAR,
disposition_of_ship VARCHAR,
tonnage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?
### Response:
|
SELECT ship_type FROM table_name_47 WHERE disposition_of_ship = "prize" AND tonnage < 151
|
### Instruction:
CREATE TABLE table_name_34 (
alpha VARCHAR,
ia64 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?
### Response:
|
SELECT alpha FROM table_name_34 WHERE ia64 = "discontinued 3.5-3.8 4.1-4.7"
|
### Instruction:
CREATE TABLE table_name_4 (
date_of_birth__age_ VARCHAR,
caps VARCHAR,
club_province VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the player with 51 caps from a Club/province of clermont born?
### Response:
|
SELECT date_of_birth__age_ FROM table_name_4 WHERE caps = 51 AND club_province = "clermont"
|
### Instruction:
CREATE TABLE table_name_28 (
rank VARCHAR,
speed VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of rider gary johnson, who had a speed of 120.979 mph?
### Response:
|
SELECT rank FROM table_name_28 WHERE speed = "120.979 mph" AND rider = "gary johnson"
|
### Instruction:
CREATE TABLE table_50802 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the tie for the Crystal Palace team?
### Response:
|
SELECT "Tie no" FROM table_50802 WHERE "Home team" = 'crystal palace'
|
### Instruction:
CREATE TABLE table_2468 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total songs has the order #1
### Response:
|
SELECT COUNT("Song choice") FROM table_2468 WHERE "Order #" = '1'
|
### Instruction:
CREATE TABLE table_21321804_1 (
position VARCHAR,
cfl_team VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position is cfl team edmonton eskimos for weber state college?
### Response:
|
SELECT position FROM table_21321804_1 WHERE cfl_team = "Edmonton Eskimos" AND college = "Weber State"
|
### Instruction:
CREATE TABLE table_28677723_14 (
trine_dehli_cleve INTEGER,
style VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the trine dehli cleve for english waltz
### Response:
|
SELECT MIN(trine_dehli_cleve) FROM table_28677723_14 WHERE style = "English Waltz"
|
### Instruction:
CREATE TABLE table_37042 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Winnipeg Jets record?
### Response:
|
SELECT "Record" FROM table_37042 WHERE "Opponent" = 'winnipeg jets'
|
### Instruction:
CREATE TABLE table_203_646 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the last competition held according to this chart ?
### Response:
|
SELECT "venue" FROM table_203_646 ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_184 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the only track under two minutes ?
### Response:
|
SELECT "title" FROM table_204_184 WHERE "length" < 2
|
### Instruction:
CREATE TABLE table_21514460_1 (
graduation_rate__2011_12_ VARCHAR,
headquarters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the graduation rate for the school district with headquarters located in Sydney?
### Response:
|
SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney"
|
### Instruction:
CREATE TABLE table_1174162_1 (
median_age__in_2006_ VARCHAR,
area__km²_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the median age where the area is 1.7?
### Response:
|
SELECT median_age__in_2006_ FROM table_1174162_1 WHERE area__km²_ = "1.7"
|
### Instruction:
CREATE TABLE table_name_95 (
date VARCHAR,
venue VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs?
### Response:
|
SELECT date FROM table_name_95 WHERE venue = "melbourne cricket ground" AND result = "eng by inns&225 runs"
|
### Instruction:
CREATE TABLE table_70725 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the record 5-4?
### Response:
|
SELECT "Date" FROM table_70725 WHERE "Record" = '5-4'
|
### Instruction:
CREATE TABLE table_name_51 (
losses VARCHAR,
south_west_dfl VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Losses have South West DFL of coleraine, and an Against smaller than 891?
### Response:
|
SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891
|
### Instruction:
CREATE TABLE table_204_171 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times has the wager been hair ?
### Response:
|
SELECT COUNT(*) FROM table_204_171 WHERE "wager" = 'hair'
|
### Instruction:
CREATE TABLE table_53401 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals have a Result of 12 0?
### Response:
|
SELECT "Goals" FROM table_53401 WHERE "Result" = '12 – 0'
|
### 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 are the names of products with price at most 200?
### Response:
|
SELECT name FROM products WHERE price <= 200
|
### Instruction:
CREATE TABLE table_name_22 (
money_raised VARCHAR,
_2q VARCHAR,
total_receipts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the money raised when 2Q has total receipts of $890,398
### Response:
|
SELECT money_raised, _2q FROM table_name_22 WHERE total_receipts = "$890,398"
|
### Instruction:
CREATE TABLE table_6906 (
"Name" text,
"Years" text,
"Tests" real,
"Drew" real,
"Lost" real,
"Win percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the Win percentage 60%?
### Response:
|
SELECT "Years" FROM table_6906 WHERE "Win percentage" = '60%'
|
### Instruction:
CREATE TABLE table_67617 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years that an entrant had more than 0 points?
### Response:
|
SELECT COUNT("Year") FROM table_67617 WHERE "Points" > '0'
|
### Instruction:
CREATE TABLE table_36593 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On December 5 what team played their home game?
### Response:
|
SELECT "Home" FROM table_36593 WHERE "Date" = 'december 5'
|
### Instruction:
CREATE TABLE table_36057 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team is ranked no. 7 by tie no.?
### Response:
|
SELECT "Home team" FROM table_36057 WHERE "Tie no" = '7'
|
### Instruction:
CREATE TABLE table_60859 (
"Games" text,
"Year" real,
"Host City" text,
"Province" text,
"Dates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Host City that has the Games of vii?
### Response:
|
SELECT "Host City" FROM table_60859 WHERE "Games" = 'vii'
|
### Instruction:
CREATE TABLE table_65470 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a time of 3:50.90?
### Response:
|
SELECT "Name" FROM table_65470 WHERE "Time" = '3:50.90'
|
### Instruction:
CREATE TABLE table_9566 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week held a tournament in Rome?
### Response:
|
SELECT "Week" FROM table_9566 WHERE "Tournament" = 'rome'
|
### Instruction:
CREATE TABLE table_200_14 (
id number,
"act" text,
"year signed" number,
"# albums released under bad boy" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year did both diddy and the notorious b.i.g. sign with bad boy records ?
### Response:
|
SELECT "year signed" FROM table_200_14 WHERE "act" = 'diddy'
|
### Instruction:
CREATE TABLE table_105344_2 (
aircraft_kilometers INTEGER,
departures VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Of the years that had exactly 17096 departures, what is the greatest number of aircraft kilometers flown?
### Response:
|
SELECT MAX(aircraft_kilometers) FROM table_105344_2 WHERE departures = 17096
|
### Instruction:
CREATE TABLE table_name_7 (
position VARCHAR,
losses VARCHAR,
wins VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions have 14 wins, goals against of 61 and fewer than 19 losses?
### Response:
|
SELECT COUNT(position) FROM table_name_7 WHERE wins = 14 AND goals_against = 61 AND losses < 19
|
### Instruction:
CREATE TABLE table_71899 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is stephen arigbabu's height?
### Response:
|
SELECT MIN("Height") FROM table_71899 WHERE "Player" = 'stephen arigbabu'
|
### Instruction:
CREATE TABLE table_46110 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Home Town had the weight of 201?
### Response:
|
SELECT "Home Town" FROM table_46110 WHERE "Weight" = '201'
|
### Instruction:
CREATE TABLE table_203_489 (
id number,
"year" number,
"title" text,
"system" text,
"developer" text,
"publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total amount of games activision developed ?
### Response:
|
SELECT COUNT("title") FROM table_203_489 WHERE "developer" = 'activision'
|
### Instruction:
CREATE TABLE table_37763 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins in 1992?
### Response:
|
SELECT "Wins" FROM table_37763 WHERE "Year" = '1992'
|
### Instruction:
CREATE TABLE table_62126 (
"Player" text,
"Height" real,
"Position" text,
"Year born (Age)" text,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Current Club has a Player of bassem balaa?
### Response:
|
SELECT "Current Club" FROM table_62126 WHERE "Player" = 'bassem balaa'
|
### Instruction:
CREATE TABLE table_36626 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the score 7-1?
### Response:
|
SELECT "Date" FROM table_36626 WHERE "Score" = '7-1'
|
### Instruction:
CREATE TABLE table_63906 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." real,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the director of Buddy of the Apes?
### Response:
|
SELECT "Director" FROM table_63906 WHERE "Title" = 'buddy of the apes'
|
### Instruction:
CREATE TABLE table_13836704_6 (
rank VARCHAR,
freight___metric_tonnes__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the airport with a freight ( metric tonnes ) of 23791?
### Response:
|
SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 23791
|
### Instruction:
CREATE TABLE table_1439096_1 (
director VARCHAR,
original_air_date__atv_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of the episode originally aired on 26 October 1969?
### Response:
|
SELECT director FROM table_1439096_1 WHERE original_air_date__atv_ = "26 October 1969"
|
### Instruction:
CREATE TABLE table_24282 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many clf teams have a pick # of 5?
### Response:
|
SELECT COUNT("CFL Team") FROM table_24282 WHERE "Pick #" = '5'
|
### Instruction:
CREATE TABLE table_name_97 (
points INTEGER,
goals_conceded VARCHAR,
goals_scored VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average points when goals conceded is 14 and goals scored is less than 32?
### Response:
|
SELECT AVG(points) FROM table_name_97 WHERE goals_conceded = 14 AND goals_scored < 32
|
### Instruction:
CREATE TABLE table_76249 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What airport has an ICAP of BGBW?
### Response:
|
SELECT "Airport" FROM table_76249 WHERE "ICAO" = 'bgbw'
|
### Instruction:
CREATE TABLE table_9286 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent of the game after October 28?
### Response:
|
SELECT "Opponent" FROM table_9286 WHERE "October" > '28'
|
### Instruction:
CREATE TABLE table_name_80 (
track VARCHAR,
english_title VARCHAR,
disc VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Track time has a Disc larger than 2, a Track smaller than 22, and an English title of younger girl?
### Response:
|
SELECT track AS time FROM table_name_80 WHERE disc > 2 AND track < 22 AND english_title = "younger girl"
|
### Instruction:
CREATE TABLE table_16399 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What schools did lenard semajuste play for?
### Response:
|
SELECT "College" FROM table_16399 WHERE "Player" = 'Lenard Semajuste'
|
### Instruction:
CREATE TABLE table_name_85 (
losses VARCHAR,
last_appearance VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2?
### Response:
|
SELECT COUNT(losses) FROM table_name_85 WHERE last_appearance = "2003" AND wins > 2
|
### Instruction:
CREATE TABLE table_name_80 (
player VARCHAR,
year VARCHAR,
pick VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Pick is '3', when Position is 'Defense', and when Year is less than 2010?
### Response:
|
SELECT player FROM table_name_80 WHERE pick = "3" AND position = "defense" AND year < 2010
|
### Instruction:
CREATE TABLE table_38158 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO when the IATA shows cts?
### Response:
|
SELECT "ICAO" FROM table_38158 WHERE "IATA" = 'cts'
|
### Instruction:
CREATE TABLE table_34075 (
"Track number" real,
"Song title" text,
"Songwriter(s)" text,
"Orchestra" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the orchestra for ted varnick
### Response:
|
SELECT "Orchestra" FROM table_34075 WHERE "Songwriter(s)" = 'ted varnick'
|
### Instruction:
CREATE TABLE table_75485 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least game for record of 1-0-2
### Response:
|
SELECT MIN("Game") FROM table_75485 WHERE "Record" = '1-0-2'
|
### Instruction:
CREATE TABLE table_62746 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What platform has a year of 2007?
### Response:
|
SELECT "Platform(s)" FROM table_62746 WHERE "Year" = '2007'
|
### Instruction:
CREATE TABLE table_204_928 (
id number,
"year" number,
"album" text,
"territory" text,
"label" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- five and jezebel are apart of which label ?
### Response:
|
SELECT "label" FROM table_204_928 WHERE "album" = 'five'
|
### Instruction:
CREATE TABLE table_name_54 (
wins VARCHAR,
rank VARCHAR,
scoring_average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52?
### Response:
|
SELECT COUNT(wins) FROM table_name_54 WHERE rank = "98" AND scoring_average > 73.52
|
### Instruction:
CREATE TABLE table_204_395 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the last competition ?
### Response:
|
SELECT "competition" FROM table_204_395 ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_99 (
total_medals INTEGER,
gold_medals VARCHAR,
ensemble VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average total medals received by Roland Hayes School when there were 0 gold medals?
### Response:
|
SELECT AVG(total_medals) FROM table_name_99 WHERE gold_medals = 0 AND ensemble = "roland hayes school"
|
### Instruction:
CREATE TABLE table_8829 (
"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 was Ralph Shoaf's pick number?
### Response:
|
SELECT "Pick" FROM table_8829 WHERE "Name" = 'ralph shoaf'
|
### Instruction:
CREATE TABLE table_204_91 (
id number,
"year" number,
"original title" text,
"english title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was henrick malberg 's last film ?
### Response:
|
SELECT "original title" FROM table_204_91 ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_64020 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Soap Opera with the character Teemu Luotola?
### Response:
|
SELECT "Soap Opera" FROM table_64020 WHERE "Character" = 'teemu luotola'
|
### Instruction:
CREATE TABLE table_75866 (
"Round" text,
"Opposition" text,
"First leg" text,
"Second leg" text,
"Aggregate score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first leg against Hibernian?
### Response:
|
SELECT "First leg" FROM table_75866 WHERE "Opposition" = 'hibernian'
|
### Instruction:
CREATE TABLE table_214479_8 (
y_ VARCHAR,
_2008 VARCHAR,
expression VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the y = 2008 when the expression is easter day (julian calendar)?
### Response:
|
SELECT y_ = _2008 FROM table_214479_8 WHERE expression = "Easter Day (Julian calendar)"
|
### Instruction:
CREATE TABLE table_name_19 (
money_spent VARCHAR,
_3q VARCHAR,
after_debt VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much money was spent when the amount after debt was $1,757,936?
### Response:
|
SELECT money_spent, _3q FROM table_name_19 WHERE after_debt = "$1,757,936"
|
### Instruction:
CREATE TABLE table_name_84 (
date VARCHAR,
partner VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did Lori McNeil play as a partner with a score of 6 7(6), 5 7?
### Response:
|
SELECT date FROM table_name_84 WHERE partner = "lori mcneil" AND score = "6–7(6), 5–7"
|
### Instruction:
CREATE TABLE table_4258 (
"Name" text,
"Family name" text,
"Receptor" text,
"Coreceptor" text,
"Property" text,
"Chromosomal location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chromosomes have an unknown property?
### Response:
|
SELECT "Name" FROM table_4258 WHERE "Property" = 'Unknown'
|
### Instruction:
CREATE TABLE table_36878 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the November 3 game?
### Response:
|
SELECT "Score" FROM table_36878 WHERE "Date" = 'november 3'
|
### Instruction:
CREATE TABLE table_19490 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position(s) does the player drafted #34 play?
### Response:
|
SELECT "Position" FROM table_19490 WHERE "Pick #" = '34'
|
### Instruction:
CREATE TABLE table_35818 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party was first elected in 1898?
### Response:
|
SELECT "Party" FROM table_35818 WHERE "First elected" = '1898'
|
### Instruction:
CREATE TABLE table_5653 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what day was the score 39-14
### Response:
|
SELECT "Date" FROM table_5653 WHERE "Record" = '39-14'
|
### Instruction:
CREATE TABLE table_name_41 (
years VARCHAR,
authority VARCHAR,
decile VARCHAR,
area VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?
### Response:
|
SELECT years FROM table_name_41 WHERE decile < 6 AND area = "te kuiti" AND authority = "state integrated"
|
### Instruction:
CREATE TABLE table_name_9 (
province VARCHAR,
ubigeo VARCHAR,
districts VARCHAR,
region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What province in Tumbes has less than 11 districts and a UBIGEO of 2401?
### Response:
|
SELECT province FROM table_name_9 WHERE districts < 11 AND region = "tumbes" AND ubigeo = 2401
|
### Instruction:
CREATE TABLE table_65348 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Tie no when Chester is the away team?
### Response:
|
SELECT "Tie no" FROM table_65348 WHERE "Away team" = 'chester'
|
### Instruction:
CREATE TABLE table_32086 (
"Original week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the average original week for soldier field
### Response:
|
SELECT AVG("Original week") FROM table_32086 WHERE "Venue" = 'soldier field'
|
### Instruction:
CREATE TABLE table_71993 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes of events that finished in 12th position?
### Response:
|
SELECT "Notes" FROM table_71993 WHERE "Position" = '12th'
|
### Instruction:
CREATE TABLE table_36726 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has a Game of 41?
### Response:
|
SELECT "Record" FROM table_36726 WHERE "Game" = '41'
|
### Instruction:
CREATE TABLE table_61164 (
"Distance" text,
"Event" text,
"Time" text,
"Meet" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Distance has a Time of 2:20.00?
### Response:
|
SELECT "Distance" FROM table_61164 WHERE "Time" = '2:20.00'
|
### Instruction:
CREATE TABLE table_28308 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What frequency is dxec-fm?
### Response:
|
SELECT "Frequency" FROM table_28308 WHERE "Callsign" = 'DXEC-FM'
|
### Instruction:
CREATE TABLE table_name_16 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2008 had a 1998 and 2006 that were a when 2009 was sf?
### Response:
|
SELECT 2008 FROM table_name_16 WHERE 1998 = "a" AND 2009 = "sf" AND 2006 = "a"
|
### Instruction:
CREATE TABLE table_name_10 (
points_1 VARCHAR,
lost VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Points 1, when Lost is less than 20, and when Goals For is greater than 92?
### Response:
|
SELECT COUNT(points_1) FROM table_name_10 WHERE lost < 20 AND goals_for > 92
|
### Instruction:
CREATE TABLE table_67939 (
"Country" text,
"Player name" text,
"Period" text,
"Position" text,
"Matches" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the player name with matches of 51
### Response:
|
SELECT "Player name" FROM table_67939 WHERE "Matches" = '51'
|
### Instruction:
CREATE TABLE table_47419 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the match with tie number 23?
### Response:
|
SELECT "Score" FROM table_47419 WHERE "Tie no" = '23'
|
### Instruction:
CREATE TABLE table_38225 (
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Position" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What hometown is Kyle love from?
### Response:
|
SELECT "Hometown" FROM table_38225 WHERE "Name" = 'kyle love'
|
### Instruction:
CREATE TABLE table_name_81 (
joint_music_award VARCHAR,
year VARCHAR,
rthk VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
### Response:
|
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1"
|
### Instruction:
CREATE TABLE table_name_97 (
rank INTEGER,
location VARCHAR,
fastest_time__s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest rank in dresden with a time faster than 10.88?
### Response:
|
SELECT MAX(rank) FROM table_name_97 WHERE location = "dresden" AND fastest_time__s_ < 10.88
|
### Instruction:
CREATE TABLE table_59741 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Venue" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the runner-up in 1901?
### Response:
|
SELECT "Runner-up" FROM table_59741 WHERE "Year" = '1901'
|
### Instruction:
CREATE TABLE table_31849 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What affiliations have Pick #s under 32?
### Response:
|
SELECT "Affiliation" FROM table_31849 WHERE "Pick #" < '32'
|
### Instruction:
CREATE TABLE city (
city VARCHAR,
regional_population INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Please give me a list of cities whose regional population is over 8000000 or under 5000000.
### Response:
|
SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000
|
### Instruction:
CREATE TABLE table_16232 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the nfl team where player is thane gash
### Response:
|
SELECT "NFL Team" FROM table_16232 WHERE "Player" = 'Thane Gash'
|
### Instruction:
CREATE TABLE table_4949 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the City/State of the Oran Park race?
### Response:
|
SELECT "City / State" FROM table_4949 WHERE "Race Title" = 'oran park'
|
### Instruction:
CREATE TABLE table_57743 (
"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.
-- Which record has a Visitor of magic?
### Response:
|
SELECT "Record" FROM table_57743 WHERE "Visitor" = 'magic'
|
### Instruction:
CREATE TABLE table_77577 (
"Superlative" text,
"Actor" text,
"Record Set" text,
"Year" real,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year for ordinary people to appear in the notes?
### Response:
|
SELECT MIN("Year") FROM table_77577 WHERE "Notes" = 'ordinary people'
|
### Instruction:
CREATE TABLE table_27717 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team does Seth Sinovic play for?
### Response:
|
SELECT "MLS Team" FROM table_27717 WHERE "Player" = 'Seth Sinovic'
|
### Instruction:
CREATE TABLE table_58150 (
"Name" text,
"Founded" real,
"Institution" text,
"Location" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the institution that was founded in 1996?
### Response:
|
SELECT "Status" FROM table_58150 WHERE "Founded" = '1996'
|
### Instruction:
CREATE TABLE table_name_22 (
score VARCHAR,
partner VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the final score for the game played on January 10, 2011 with partner Mashona Washington?
### Response:
|
SELECT score FROM table_name_22 WHERE partner = "mashona washington" AND date = "january 10, 2011"
|
### Instruction:
CREATE TABLE table_15446 (
"Year" text,
"Competition" text,
"Opponent" text,
"Score" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for hawthorn opponent
### Response:
|
SELECT "Score" FROM table_15446 WHERE "Opponent" = 'hawthorn'
|
### Instruction:
CREATE TABLE table_10432351_1 (
spectral_type VARCHAR,
star__pismis24__number_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the spectral types for star mismis24-# is 1sw?
### Response:
|
SELECT spectral_type FROM table_10432351_1 WHERE star__pismis24__number_ = "1SW"
|
### Instruction:
CREATE TABLE table_name_1 (
outcome VARCHAR,
surface VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the outcome on a hard surface, when the score in the final was 4 6, 3 6?
### Response:
|
SELECT outcome FROM table_name_1 WHERE surface = "hard" AND score_in_the_final = "4–6, 3–6"
|
### Instruction:
CREATE TABLE table_204_776 (
id number,
"site" text,
"date(s)" text,
"designated" number,
"location" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year was the first site on this list , completed ?
### Response:
|
SELECT "date(s)" FROM table_204_776 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_52 (
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the manner of depature when the date of appointment was 27 December 2007?
### Response:
|
SELECT manner_of_departure FROM table_name_52 WHERE date_of_appointment = "27 december 2007"
|
### Instruction:
CREATE TABLE table_37107 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest numbered pick from round 7?
### Response:
|
SELECT MAX("Pick") FROM table_37107 WHERE "Round" = '7'
|
### Instruction:
CREATE TABLE table_68492 (
"Circuit" text,
"Location / State" text,
"Date" text,
"Winning driver" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what date was mallala motor sport park the circuit?
### Response:
|
SELECT "Date" FROM table_68492 WHERE "Circuit" = 'mallala motor sport park'
|
### Instruction:
CREATE TABLE table_name_39 (
series VARCHAR,
conference VARCHAR,
season VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What series has a season after 2008, super leg final as the format, and conference v as the conference?
### Response:
|
SELECT series FROM table_name_39 WHERE season > 2008 AND format = "super leg final" AND conference = "conference v"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.