instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what party is represented the... | SELECT "party affiliation" FROM table_204_54 GROUP BY "party affiliation" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_1966992_1 (
census_2006_population INTEGER,
lga_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum 2006 census population of LGA name Opobo/Nkoro?
### Response:
| SELECT MAX(census_2006_population) FROM table_1966992_1 WHERE lga_name = "Opobo/Nkoro" |
### Instruction:
CREATE TABLE table_5286 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many TDs have a Car of 88 and an Avg smaller than 3?
### Response:
| SELECT SUM("TD's") FROM table_5286 WHERE "Car." = '88' AND "Avg." < '3' |
### Instruction:
CREATE TABLE table_name_46 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par of the player with a t4 place and a score of 75-69-74-72=290?
### Response:
| SELECT to_par FROM table_name_46 WHERE place = "t4" AND score = 75 - 69 - 74 - 72 = 290 |
### Instruction:
CREATE TABLE table_203_348 (
id number,
"number" number,
"name" text,
"team" text,
"position" text,
"years with franchise" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many numbers did the new york knicks ... | SELECT COUNT(*) FROM table_203_348 WHERE "team" = 'new york knicks' |
### Instruction:
CREATE TABLE table_18644 (
"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.
-- Who are all the candidates when Sam Rayburn was incumbe... | SELECT "Candidates" FROM table_18644 WHERE "Incumbent" = 'Sam Rayburn' |
### Instruction:
CREATE TABLE table_37354 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What FCC info is listed for the ERP W of 2?
### R... | SELECT "FCC info" FROM table_37354 WHERE "ERP W" = '2' |
### Instruction:
CREATE TABLE table_40071 (
"Ring name" text,
"Current rank" text,
"Debut" text,
"Stable" text,
"Birthplace" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Stable, when Current Rank is F1 J ry 14 West?
### Response:
| SELECT "Stable" FROM table_40071 WHERE "Current rank" = 'f1 jūryō 14 west' |
### Instruction:
CREATE TABLE table_203_378 (
id number,
"against" text,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of losses they have against fran... | SELECT "lost" FROM table_203_378 WHERE "against" = 'france' |
### Instruction:
CREATE TABLE table_name_63 (
season VARCHAR,
second VARCHAR,
lead VARCHAR,
third VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter ... | SELECT season FROM table_name_63 WHERE lead = "don bartlett" AND third = "don walchuk" AND second = "carter rycroft" |
### Instruction:
CREATE TABLE table_4055 (
"Executed person" text,
"Date of execution" text,
"Place of execution" text,
"Crime" text,
"Method" text,
"Under President" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was mazouz ghaouti execut... | SELECT "Place of execution" FROM table_4055 WHERE "Executed person" = 'Mazouz Ghaouti' |
### Instruction:
CREATE TABLE table_39230 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record after the game at the Astr... | SELECT "Record" FROM table_39230 WHERE "Location" = 'astrodome' |
### Instruction:
CREATE TABLE table_76474 (
"Leader" text,
"Party" text,
"Leader's Seat" text,
"Number of Seats" real,
"Leader since" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Jillian Evans highest number of seats?
### Response:
| SELECT MAX("Number of Seats") FROM table_76474 WHERE "Leader" = 'jillian evans' |
### Instruction:
CREATE TABLE candidate (
people_id VARCHAR,
unsure_rate INTEGER
)
CREATE TABLE people (
sex VARCHAR,
people_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which gender got the highest average uncertain ratio.
### Response:
| SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_6950 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Yumie Hayashi was third for which club?
### Response:
| SELECT "Club" FROM table_6950 WHERE "Third" = 'yumie hayashi' |
### Instruction:
CREATE TABLE table_6036 (
"City" text,
"State" text,
"School" text,
"Colony Name" text,
"Date Founded" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which City has a State of massachusetts, and a School of northeastern university?
... | SELECT "City" FROM table_6036 WHERE "State" = 'massachusetts' AND "School" = 'northeastern university' |
### Instruction:
CREATE TABLE table_28537 (
"Candidate" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was the result is hired by serepisos?
##... | SELECT COUNT("Hometown") FROM table_28537 WHERE "Result" = 'Hired by Serepisos' |
### Instruction:
CREATE TABLE table_23588 (
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which company uses pinborough, sarah sarah pin... | SELECT "Company" FROM table_23588 WHERE "Author" = 'Pinborough, Sarah Sarah Pinborough' |
### Instruction:
CREATE TABLE table_name_41 (
not_outs VARCHAR,
average VARCHAR,
runs VARCHAR,
innings VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of Not Outs when there were more than 327 runs and 24 innings, and an average of ... | SELECT not_outs FROM table_name_41 WHERE runs > 327 AND innings > 24 AND average = 29.54 |
### Instruction:
CREATE TABLE table_47566 (
"Event" text,
"Games played" real,
"Goals" real,
"Assists" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of points with less than 5 assists and less than 2 goals?... | SELECT MAX("Points") FROM table_47566 WHERE "Assists" < '5' AND "Goals" < '2' |
### Instruction:
CREATE TABLE table_31538 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the date for nicolas pereira
### Respon... | SELECT "Date" FROM table_31538 WHERE "Partnering" = 'nicolas pereira' |
### Instruction:
CREATE TABLE table_7958 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Bronze with a 17 Rank and a Total less than 5
### Response:
| SELECT MIN("Bronze") FROM table_7958 WHERE "Rank" = '17' AND "Total" < '5' |
### Instruction:
CREATE TABLE scientists (
ssn number,
name text
)
CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the... | SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn |
### Instruction:
CREATE TABLE table_10235 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent played on 07-09-2012?
### Response:
| SELECT "Opponent" FROM table_10235 WHERE "Date" = '07-09-2012' |
### Instruction:
CREATE TABLE table_23392 (
"No. in series" text,
"No. in season" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episode with the Ririe family air for... | SELECT "Original air date" FROM table_23392 WHERE "Family/families" = 'The Ririe Family' |
### Instruction:
CREATE TABLE table_name_75 (
rank_points VARCHAR,
total VARCHAR,
event VARCHAR,
score_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total o... | SELECT rank_points FROM table_name_75 WHERE event = "wc beijing" AND score_points = "13" AND total = "18" |
### Instruction:
CREATE TABLE table_19285 (
"Series" text,
"Main presenter" text,
"Co-presenter" text,
"Comedian" text,
"UK co-presenter" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the main presenter of the series Twelve (2012)?
### Res... | SELECT "Main presenter" FROM table_19285 WHERE "Series" = 'Twelve (2012)' |
### Instruction:
CREATE TABLE table_204_494 (
id number,
"episode #" text,
"original air date (uk)" text,
"episode title" text,
"guest cast" text,
"dvd # 1" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of guests list... | SELECT "guest cast" FROM table_204_494 WHERE id = 2 |
### Instruction:
CREATE TABLE table_name_43 (
round INTEGER,
overall VARCHAR,
pick__number VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larg... | SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127 |
### Instruction:
CREATE TABLE table_6066 (
"Year" text,
"League" text,
"Season" text,
"Play-Off" text,
"Baltic" text,
"Events" text,
"European" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which European has a Play-Off of relegated?
### ... | SELECT "European" FROM table_6066 WHERE "Play-Off" = 'relegated' |
### Instruction:
CREATE TABLE table_203_208 (
id number,
"team" text,
"location" text,
"venue" text,
"capacity" number,
"position in 1993-94" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of teams located in bobruisk ?
##... | SELECT COUNT("team") FROM table_203_208 WHERE "location" = 'bobruisk' |
### Instruction:
CREATE TABLE table_58386 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launched date of the destroyer completed 25 February 1936?
##... | SELECT "Launched" FROM table_58386 WHERE "Completed" = '25 february 1936' |
### Instruction:
CREATE TABLE table_35357 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the points total when points against ... | SELECT "Points for" FROM table_35357 WHERE "Points against" = 'points against' |
### Instruction:
CREATE TABLE table_203_272 (
id number,
"title" text,
"release" text,
"consoles" text,
"handheld" text,
"pc" text,
"arcade" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gaming consoles in total were nfl blitz rele... | SELECT COUNT(DISTINCT "consoles") FROM table_203_272 |
### Instruction:
CREATE TABLE table_18216 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did incumbent Howard Coble belong to?
### Response... | SELECT "Party" FROM table_18216 WHERE "Incumbent" = 'Howard Coble' |
### Instruction:
CREATE TABLE table_18933 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the director of the fimm Biola Tak Berda... | SELECT "Director" FROM table_18933 WHERE "Original title" = 'Biola tak berdawai' |
### Instruction:
CREATE TABLE table_9523 (
"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 AVERAGE SCORE WITH T3 PLACE, FOR DOUG SANDERS?
### Response:
| SELECT AVG("Score") FROM table_9523 WHERE "Place" = 't3' AND "Player" = 'doug sanders' |
### Instruction:
CREATE TABLE table_203_734 (
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.
-- in which years did civallero only have one achiev... | SELECT "year" FROM table_203_734 GROUP BY "year" HAVING COUNT(*) = 1 |
### Instruction:
CREATE TABLE table_16652 (
"Season" text,
"Group A Winner" text,
"Group B Winner" text,
"Group C Winner" text,
"Group D Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of group b winner for francavilla?
#... | SELECT COUNT("Group B Winner") FROM table_16652 WHERE "Group C Winner" = 'Francavilla' |
### Instruction:
CREATE TABLE table_12146 (
"Seat" real,
"Series 1" text,
"Series 3" text,
"Series 4" text,
"Series 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the series 3 with gavin duffy in series 5?
### Response:
| SELECT "Series 3" FROM table_12146 WHERE "Series 5" = 'gavin duffy' |
### Instruction:
CREATE TABLE table_71700 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of roll for morrinsville school
### Resp... | SELECT SUM("Roll") FROM table_71700 WHERE "Name" = 'morrinsville school' |
### Instruction:
CREATE TABLE table_45494 (
"Company name" text,
"Network brand name" text,
"Country" text,
"Accreditation type" text,
"Accreditation level" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Deutsche Telekom's a... | SELECT "Accreditation type" FROM table_45494 WHERE "Network brand name" = 'deutsche telekom' |
### Instruction:
CREATE TABLE table_204_179 (
id number,
"season" number,
"division" number,
"tms." number,
"pos." number,
"fa cup" text,
"afc cl" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was the round for season 2010
### ... | SELECT "fa cup" FROM table_204_179 WHERE "season" = 2010 |
### Instruction:
CREATE TABLE table_61730 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when the method is decision and the location is Martigues, France?... | SELECT "Record" FROM table_61730 WHERE "Method" = 'decision' AND "Location" = 'martigues, france' |
### Instruction:
CREATE TABLE table_45637 (
"Leader" text,
"Party" text,
"Leader's Seat" text,
"Number of Seats" real,
"Leader since" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which leader has been a leader since 2007?
### Response:
| SELECT "Leader" FROM table_45637 WHERE "Leader since" = '2007' |
### Instruction:
CREATE TABLE table_74788 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest number of silver medals a nation who ranked below 8 rece... | SELECT MIN("Silver") FROM table_74788 WHERE "Rank" > '8' |
### Instruction:
CREATE TABLE table_63464 (
"Team" text,
"Location" text,
"County" text,
"Division" text,
"Home ground" text,
"Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home ground for the team located... | SELECT "Home ground" FROM table_63464 WHERE "Location" = 'canterbury' |
### Instruction:
CREATE TABLE table_31777 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does the Colorado Rapids pick after 15 play?
### Response:
| SELECT "Position" FROM table_31777 WHERE "MLS Team" = 'colorado rapids' AND "Pick #" > '15' |
### Instruction:
CREATE TABLE table_25749 (
"Position" real,
"Driver" text,
"Points" real,
"Starts" real,
"Wins" real,
"Top 5s" real,
"Top 10s" real,
"Winnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions are th... | SELECT MAX("Position") FROM table_25749 |
### Instruction:
CREATE TABLE table_43324 (
"Competition" text,
"Ladder Position" text,
"Coach" text,
"Captain(s)" text,
"Details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the captain of the 2012 NRL season competition?
### Response:
| SELECT "Captain(s)" FROM table_43324 WHERE "Competition" = '2012 nrl season' |
### Instruction:
CREATE TABLE table_50518 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What instrumental has tkven-i as the genitive?
### ... | SELECT "Instrumental" FROM table_50518 WHERE "Genitive" = 'tkven-i' |
### Instruction:
CREATE TABLE table_41132 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Format with a Label of electropolis and a Date that is 2002?
### Response:
| SELECT "Format" FROM table_41132 WHERE "Label" = 'electropolis' AND "Date" = '2002' |
### Instruction:
CREATE TABLE table_52262 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date when the venue is junction oval?... | SELECT "Date" FROM table_52262 WHERE "Venue" = 'junction oval' |
### Instruction:
CREATE TABLE table_50192 (
"Player" text,
"Country" text,
"Year(s) won" real,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Year(s) Won, when Player is Arnold Palmer?
### Response... | SELECT "Year(s) won" FROM table_50192 WHERE "Player" = 'arnold palmer' |
### Instruction:
CREATE TABLE table_name_69 (
division INTEGER,
goals VARCHAR,
country VARCHAR,
apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than... | SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0 |
### Instruction:
CREATE TABLE table_60526 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many h... | SELECT "Number of households" FROM table_60526 WHERE "County" = 'yadkin' |
### Instruction:
CREATE TABLE table_7100 (
"Year" real,
"Album" text,
"U.S." text,
"U.S. Christian" text,
"U.S. Indie" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the U.S. Christian with a Year that is 1989?
### Response:
| SELECT "U.S. Christian" FROM table_7100 WHERE "Year" = '1989' |
### Instruction:
CREATE TABLE table_203_598 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last opponent ?
### Re... | SELECT "opponent" FROM table_203_598 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_29 (
apps INTEGER,
rank VARCHAR,
club VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?
### Response:
| SELECT MIN(apps) FROM table_name_29 WHERE club = "barcelona" AND season = "1996/97" AND rank < 7 |
### Instruction:
CREATE TABLE table_name_4 (
player VARCHAR,
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what player has $187,500 and score 66-75-71-69=281
### Response:
| SELECT player FROM table_name_4 WHERE money___$__ = "187,500" AND score = 66 - 75 - 71 - 69 = 281 |
### Instruction:
CREATE TABLE table_11061 (
"Year" real,
"Competition" text,
"Date" text,
"Surface" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest year located in zagreb, croa... | SELECT MAX("Year") FROM table_11061 WHERE "Location" = 'zagreb, croatia' |
### Instruction:
CREATE TABLE table_5167 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which method had Travis Fulton as an opponent?
###... | SELECT "Method" FROM table_5167 WHERE "Opponent" = 'travis fulton' |
### Instruction:
CREATE TABLE table_174491_1 (
winter_olympics VARCHAR,
fis_nordic_world_ski_championships VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did the winner of the FIS championship in 1982 win the Winter Olympics?
### Response:
| SELECT winter_olympics FROM table_174491_1 WHERE fis_nordic_world_ski_championships = "1982" |
### Instruction:
CREATE TABLE table_204_970 (
id number,
"year" number,
"award" text,
"category" text,
"title" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- an nbr award and a nyfcc award were both given to this actor for his rol... | SELECT "title" FROM table_204_970 WHERE "award" = 'nbr award' |
### Instruction:
CREATE TABLE table_39979 (
"Species" text,
"Indole" text,
"Methyl Red" text,
"Voges-Proskauer" text,
"Citrate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the methyl red reading for the species that tests positive for ind... | SELECT "Methyl Red" FROM table_39979 WHERE "Indole" = 'positive' |
### Instruction:
CREATE TABLE table_61442 (
"S.no." real,
"Power Plant" text,
"State" text,
"Total Capacity (MW)" real,
"Completion Schedule" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the 2013 completion schedule, what is the total S.no.?
... | SELECT SUM("S.no.") FROM table_61442 WHERE "Completion Schedule" = '2013' |
### Instruction:
CREATE TABLE table_name_36 (
launched VARCHAR,
builder VARCHAR,
laid_down VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?
### Res... | SELECT launched FROM table_name_36 WHERE builder = "fujinagata shipyards, japan" AND laid_down = "20 october 1924" |
### Instruction:
CREATE TABLE table_203_750 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for each winning game , what was t... | SELECT "score" FROM table_203_750 WHERE "result" = 'win' |
### Instruction:
CREATE TABLE table_47509 (
"Team A" text,
"Team C" text,
"Team D" text,
"Team E" text,
"Team F" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is Team A when wilma hofschneider-david is team C?
### Response:
| SELECT "Team A" FROM table_47509 WHERE "Team C" = 'wilma hofschneider-david' |
### Instruction:
CREATE TABLE table_70153 (
"Surface" text,
"Event" text,
"Time ( h : m : s )" text,
"Date" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date that has 1:01:42?
### Response:
| SELECT "Date" FROM table_70153 WHERE "Time ( h : m : s )" = '1:01:42' |
### Instruction:
CREATE TABLE table_30121096_1 (
townland VARCHAR,
civil_parish VARCHAR,
area__acres__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many townlands are there for caheragh and is larger than 270 acres?
### Response:
| SELECT COUNT(townland) FROM table_30121096_1 WHERE civil_parish = "Caheragh" AND area__acres__ = 270 |
### Instruction:
CREATE TABLE table_77758 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drive the car that went under 60 laps and spun off?
### Response:
| SELECT "Driver" FROM table_77758 WHERE "Laps" < '60' AND "Time/Retired" = 'spun off' |
### Instruction:
CREATE TABLE table_name_87 (
new_entries_this_round VARCHAR,
leagues_entering_at_this_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many new entries when the leagues entering in the round are tff third league & turkish regional am... | SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = "tff third league & turkish regional amateur league" |
### Instruction:
CREATE TABLE table_204_688 (
id number,
"name" text,
"red vs. blue" text,
"couples team" text,
"status" text,
"weight" text,
"total votes" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last contestant to be vo... | SELECT "name" FROM table_204_688 ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_38310 (
"Start month" text,
"End month" text,
"Cover" text,
"Spine" text,
"Indicia" text,
"Masthead" text,
"Number of issues" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which spine has 12 issues?
###... | SELECT "Spine" FROM table_38310 WHERE "Number of issues" = '12' |
### Instruction:
CREATE TABLE table_name_31 (
season INTEGER,
team_2 VARCHAR,
team_1 VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Bangkok University and Chunnam Dragons have a score of 0-0?
### Response:
| SELECT SUM(season) FROM table_name_31 WHERE team_1 = "bangkok university" AND score = "0-0" AND team_2 = "chunnam dragons" |
### Instruction:
CREATE TABLE table_55997 (
"Name" text,
"Period" text,
"Starts" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Win %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the win % for the QB with 3 starts?
### Response... | SELECT "Win %" FROM table_55997 WHERE "Starts" = '3' |
### Instruction:
CREATE TABLE table_2191 (
"Year(s)" real,
"Commentator" text,
"Dual Commentator" text,
"Spokesperson" text,
"Channel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the dual commentator at the channel with spokesperson larisa... | SELECT "Dual Commentator" FROM table_2191 WHERE "Spokesperson" = 'Larisa Verbickaya' |
### Instruction:
CREATE TABLE table_18391 (
"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 party does incumbent edwin reinecke represent?
#... | SELECT "Party" FROM table_18391 WHERE "Incumbent" = 'Edwin Reinecke' |
### Instruction:
CREATE TABLE table_52469 (
"Productions" text,
"Rose" text,
"Louise" text,
"Dainty June" text,
"Herbie" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Louise when Tracy Venner was Dainty June?
### Resp... | SELECT "Louise" FROM table_52469 WHERE "Dainty June" = 'tracy venner' |
### Instruction:
CREATE TABLE table_48772 (
"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 Player, when Score is less than 69, and when Country is 'United States'?
### Res... | SELECT "Player" FROM table_48772 WHERE "Score" < '69' AND "Country" = 'united states' |
### Instruction:
CREATE TABLE table_203_591 (
id number,
"high school" text,
"join\nyear" text,
"from" text,
"left" text,
"league left to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last school to join the genesee county b leagu... | SELECT "high school" FROM table_203_591 ORDER BY "join\nyear" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_18467 (
"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.
-- Who is the incumbent in the Alabama 6 voting district?
... | SELECT "Incumbent" FROM table_18467 WHERE "District" = 'Alabama 6' |
### Instruction:
CREATE TABLE table_70744 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did John Player Lotus used Cosworth v8?
### Response:
| SELECT SUM("Year") FROM table_70744 WHERE "Engine" = 'cosworth v8' AND "Entrant" = 'john player lotus' |
### Instruction:
CREATE TABLE table_8358 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest round for Bowling Green with a pick smaller than 210?
### Response:
| SELECT MAX("Round") FROM table_8358 WHERE "School" = 'bowling green' AND "Pick" < '210' |
### Instruction:
CREATE TABLE table_18617 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the incumbent with result being new seat republi... | SELECT "Incumbent" FROM table_18617 WHERE "Result" = 'New seat Republican gain' |
### Instruction:
CREATE TABLE table_54679 (
"Player" text,
"Tries" text,
"Conv" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Brian Hightower play when he has the Conv of 0?
### Response:
| SELECT "Venue" FROM table_54679 WHERE "Conv" = '0' AND "Player" = 'brian hightower' |
### Instruction:
CREATE TABLE table_36613 (
"Weight Division" text,
"Winner" text,
"Loser" text,
"Method" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average number of rounds in the fight where Tank Abb... | SELECT AVG("Round") FROM table_36613 WHERE "Loser" = 'tank abbott' |
### Instruction:
CREATE TABLE table_19279 (
"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.
-- Was there a starter when 3 touchd... | SELECT "Starter" FROM table_19279 WHERE "Touchdowns" = '3' |
### Instruction:
CREATE TABLE table_71233 (
"Capital" text,
"Prefecture" text,
"Region" text,
"Island" text,
"Pop. \u00b9" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of pop for shizuoka
### Response:
| SELECT SUM("Pop. \u00b9") FROM table_71233 WHERE "Prefecture" = 'shizuoka' |
### Instruction:
CREATE TABLE table_204_463 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what playoff result occurred the most... | SELECT "playoffs" FROM table_204_463 GROUP BY "playoffs" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_23449363_1 (
leagues_entering_at_this_round VARCHAR,
winners_from_previous_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which leagues entered in rounds where there were 16 winners from the previous round?
### Res... | SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE winners_from_previous_round = "16" |
### Instruction:
CREATE TABLE table_80223 (
"Year" real,
"Alabama" text,
"Arkansas" text,
"Auburn" text,
"Ole Miss" text,
"Mississippi St." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Arkansas player associated with Ken Stabler?
... | SELECT "Arkansas" FROM table_80223 WHERE "Alabama" = 'ken stabler' |
### Instruction:
CREATE TABLE table_name_12 (
format VARCHAR,
catalogue VARCHAR,
label VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?
### Response... | SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636" |
### Instruction:
CREATE TABLE table_1248 (
"No. in season" real,
"No. disc" 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 'Forever In A Day'?
... | SELECT "Written by" FROM table_1248 WHERE "Title" = 'Forever in a Day' |
### Instruction:
CREATE TABLE table_17811 (
"#" real,
"Name" text,
"Tenure" text,
"Courtesy title" text,
"Court Rank" text,
"Revenues" text,
"Lineage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of the name for number 4... | SELECT COUNT("Name") FROM table_17811 WHERE "#" = '4' |
### Instruction:
CREATE TABLE table_17096 (
"Year" text,
"Player" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the college for the player who's school is camden high sch... | SELECT "College" FROM table_17096 WHERE "School" = 'Camden High School' |
### Instruction:
CREATE TABLE table_49053 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class for the ERP W of 500?
### Respo... | SELECT "Class" FROM table_49053 WHERE "ERP W" = '500' |
### Instruction:
CREATE TABLE table_272313_2 (
aspect_ratio VARCHAR,
pixel_aspect_ratio VARCHAR,
scanning VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the aspect ratio for smpte 259m and interlaced scanning
### Response:
| SELECT aspect_ratio FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M" AND scanning = "interlaced" |
### Instruction:
CREATE TABLE table_73693 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" real,
"Earnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum money list rank for Matt Ha... | SELECT MAX("Money list rank") FROM table_73693 WHERE "Player" = 'Matt Hansen' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.