instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_72399 (
"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.
-- Who were the candidates in the Kentucky 4 voting district?
### Response:
|
SELECT "Candidates" FROM table_72399 WHERE "District" = 'Kentucky 4'
|
### Instruction:
CREATE TABLE table_1841901_1 (
greek__modern_ VARCHAR,
polish__extinct_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the greek modern for s ysza e by / s ysza a by a
### Response:
|
SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = "słyszałeś był / słyszałaś była"
|
### Instruction:
CREATE TABLE table_34686 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Darryl Fedorak's highest round?
### Response:
|
SELECT MAX("Round") FROM table_34686 WHERE "Player" = 'darryl fedorak'
|
### Instruction:
CREATE TABLE table_42810 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the New Jersey home game?
### Response:
|
SELECT "Score" FROM table_42810 WHERE "Home" = 'new jersey'
|
### Instruction:
CREATE TABLE table_19800 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different directors are associated with the writer Gaby Chiappe?
### Response:
|
SELECT COUNT("Director") FROM table_19800 WHERE "Writer" = 'Gaby Chiappe'
|
### Instruction:
CREATE TABLE table_39931 (
"Date" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Interview subject has a Centerfold model of athena lundberg?
### Response:
|
SELECT "Interview subject" FROM table_39931 WHERE "Centerfold model" = 'athena lundberg'
|
### Instruction:
CREATE TABLE table_78158 (
"Year" text,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the competition in tokyo with the result loss?
### Response:
|
SELECT "Competition" FROM table_78158 WHERE "Location" = 'tokyo' AND "Result" = 'loss'
|
### Instruction:
CREATE TABLE table_63663 (
"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 year had Nintendo EAD, Monolith Soft as developers?
### Response:
|
SELECT SUM("Year") FROM table_63663 WHERE "Developer(s)" = 'nintendo ead, monolith soft'
|
### Instruction:
CREATE TABLE table_66611 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Location has an Enrollment larger than 543?
### Response:
|
SELECT "Location" FROM table_66611 WHERE "Enrollment" > '543'
|
### Instruction:
CREATE TABLE table_66406 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" real,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the production number of the episode titel of pre-hysterical hare?
### Response:
|
SELECT COUNT("Production Number") FROM table_66406 WHERE "Title" = 'pre-hysterical hare'
|
### Instruction:
CREATE TABLE table_407 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home town was the high school Catholic University located in?
### Response:
|
SELECT "Home Town" FROM table_407 WHERE "High School" = 'Catholic University'
|
### Instruction:
CREATE TABLE table_39382 (
"Date" text,
"Theatre, Studio, or Network" text,
"Role" text,
"Dance Partner" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the theatre where Peter P. Peters is the role?
### Response:
|
SELECT "Theatre, Studio, or Network" FROM table_39382 WHERE "Role" = 'peter p. peters'
|
### Instruction:
CREATE TABLE table_11407 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest attendance for a score of 5 - 0?
### Response:
|
SELECT MIN("Attendance") FROM table_11407 WHERE "Score" = '5 - 0'
|
### Instruction:
CREATE TABLE table_6107 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for week more than 1 and game site of bye
### Response:
|
SELECT "Date" FROM table_6107 WHERE "Game site" = 'bye' AND "Week" > '1'
|
### Instruction:
CREATE TABLE table_18206 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the incumbent in district Massachusetts7?
### Response:
|
SELECT "Incumbent" FROM table_18206 WHERE "District" = 'Massachusetts7'
|
### Instruction:
CREATE TABLE table_203_244 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many number of riders rode motorcycles by honda ?
### Response:
|
SELECT COUNT("rider") FROM table_203_244 WHERE "manufacturer" = 'honda'
|
### Instruction:
CREATE TABLE table_8682 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year were the Grizzlies in Providence?
### Response:
|
SELECT "Years for Grizzlies" FROM table_8682 WHERE "School/Club Team" = 'providence'
|
### Instruction:
CREATE TABLE table_76513 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Manufacturer has a Time of accident and a Grid greater than 15?
### Response:
|
SELECT "Manufacturer" FROM table_76513 WHERE "Time" = 'accident' AND "Grid" > '15'
|
### Instruction:
CREATE TABLE table_7902 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the round 4 draft selection who played college ball at oklahoma?
### Response:
|
SELECT "Nationality" FROM table_7902 WHERE "Round" = '4' AND "College" = 'oklahoma'
|
### Instruction:
CREATE TABLE table_13953 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score on may 11, 1997?
### Response:
|
SELECT "Score" FROM table_13953 WHERE "Date" = 'may 11, 1997'
|
### Instruction:
CREATE TABLE table_1099080_1 (
condition VARCHAR,
prothrombin_time VARCHAR,
bleeding_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many conditions have an unaffected prothrombin time and a prolonged bleeding time
### Response:
|
SELECT COUNT(condition) FROM table_1099080_1 WHERE prothrombin_time = "Unaffected" AND bleeding_time = "Prolonged"
|
### Instruction:
CREATE TABLE table_15529 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the English title for years after 1981 originating from Argentina?
### Response:
|
SELECT "English title" FROM table_15529 WHERE "Year" > '1981' AND "Country" = 'argentina'
|
### Instruction:
CREATE TABLE table_14259 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average rank when the cyclist is alexandr pliuschin?
### Response:
|
SELECT AVG("Rank") FROM table_14259 WHERE "Cyclist" = 'alexandr pliuschin'
|
### Instruction:
CREATE TABLE table_25276250_3 (
release_year VARCHAR,
outputs VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year were outputs is 2x pro bias, rca loop out and notes is vacuum tube released?
### Response:
|
SELECT release_year FROM table_25276250_3 WHERE outputs = "2x Pro Bias, RCA Loop Out" AND notes = "Vacuum tube"
|
### Instruction:
CREATE TABLE table_43409 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Serbian title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Year was Labyrinth nominated?
### Response:
|
SELECT "Year (Ceremony)" FROM table_43409 WHERE "Film title used in nomination" = 'labyrinth'
|
### Instruction:
CREATE TABLE table_21974 (
"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 is the broadcast date when 8.3 million viewers watched?
### Response:
|
SELECT "Broadcast date" FROM table_21974 WHERE "Viewers (in millions)" = '8.3'
|
### Instruction:
CREATE TABLE table_name_50 (
career VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?
### Response:
|
SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12"
|
### Instruction:
CREATE TABLE table_74238 (
"No" real,
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the chassis for sfacs ecurie france
### Response:
|
SELECT "Chassis" FROM table_74238 WHERE "Entrant" = 'SFACS Ecurie France'
|
### Instruction:
CREATE TABLE table_18299 (
"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 district is Ray Musto the incumbent of?
### Response:
|
SELECT "District" FROM table_18299 WHERE "Incumbent" = 'Ray Musto'
|
### Instruction:
CREATE TABLE table_21154679_1 (
top_speed VARCHAR,
max_power VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?
### Response:
|
SELECT top_speed FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)@5250-6250"
|
### Instruction:
CREATE TABLE table_203_497 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gold medals did india win ?
### Response:
|
SELECT "gold" FROM table_203_497 WHERE "nation" = 'india'
|
### Instruction:
CREATE TABLE table_203_211 (
id number,
"pos." number,
"time" text,
"athlete" text,
"country" text,
"venue" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the total number of athletes representing bulgaria ?
### Response:
|
SELECT COUNT("athlete") FROM table_203_211 WHERE "country" = 'bulgaria'
|
### Instruction:
CREATE TABLE table_41915 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Centerfild model that used Bruce Willis as her Interview subject?
### Response:
|
SELECT "Centerfold model" FROM table_41915 WHERE "Interview subject" = 'bruce willis'
|
### Instruction:
CREATE TABLE table_name_33 (
weight VARCHAR,
internal_storage VARCHAR,
wireless_network VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?
### Response:
|
SELECT weight FROM table_name_33 WHERE internal_storage = "16-64 gb" AND wireless_network = "wi-fi, 3g"
|
### Instruction:
CREATE TABLE table_204_180 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did they win or lose to iowa ?
### Response:
|
SELECT "result" FROM table_204_180 WHERE "opponent#" = 'iowa'
|
### Instruction:
CREATE TABLE table_name_30 (
paper_type VARCHAR,
denomination VARCHAR,
date_of_issue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?
### Response:
|
SELECT paper_type FROM table_name_30 WHERE denomination = "$0.50" AND date_of_issue = "4 february 2005"
|
### Instruction:
CREATE TABLE table_48435 (
"Season" text,
"GP\u2013GS" text,
"Yards" text,
"Long" text,
"Avg/G" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Av/G of the 2009 season?
### Response:
|
SELECT "Avg/G" FROM table_48435 WHERE "Season" = '2009'
|
### Instruction:
CREATE TABLE table_44656 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the transfer window that ends in 2012?
### Response:
|
SELECT "Transfer window" FROM table_44656 WHERE "Ends" = '2012'
|
### Instruction:
CREATE TABLE table_29549 (
"Country" text,
"Name" text,
"Host(s)" text,
"Judges" text,
"Network" text,
"Air dates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the air dates of the show in ABS-CBN?
### Response:
|
SELECT "Air dates" FROM table_29549 WHERE "Network" = 'ABS-CBN'
|
### Instruction:
CREATE TABLE table_204_448 (
id number,
"team" text,
"winners" number,
"runners-up" number,
"years won" text,
"years runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what 's the number of teams that won the cup four times ?
### Response:
|
SELECT COUNT("team") FROM table_204_448 WHERE "winners" = 4
|
### Instruction:
CREATE TABLE table_204_525 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the first opposition in rank 27 ?
### Response:
|
SELECT "opposition" FROM table_204_525 WHERE "rank" = 27 LIMIT 1
|
### Instruction:
CREATE TABLE table_71381 (
"Polling Firm" text,
"Date" text,
"Link" text,
"PSOE" text,
"Others" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has a PSOE of 36.1%?
### Response:
|
SELECT "Date" FROM table_71381 WHERE "PSOE" = '36.1%'
|
### Instruction:
CREATE TABLE table_18616 (
"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 party with first elected being 1926
### Response:
|
SELECT "Party" FROM table_18616 WHERE "First elected" = '1926'
|
### Instruction:
CREATE TABLE table_17851 (
"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.
-- What background does the person from New york, New york, have?
### Response:
|
SELECT "Background" FROM table_17851 WHERE "Hometown" = 'New York, New York'
|
### Instruction:
CREATE TABLE table_40344 (
"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 Score for the 1999 fifa confederations cup?
### Response:
|
SELECT "Score" FROM table_40344 WHERE "Competition" = '1999 fifa confederations cup'
|
### Instruction:
CREATE TABLE table_29109 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the original air date(s) for season episode 20?
### Response:
|
SELECT "Original Airdate" FROM table_29109 WHERE "Season #" = '20'
|
### Instruction:
CREATE TABLE table_22826 (
"DMA" real,
"Market" text,
"Station" text,
"Frequency" text,
"Branding" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dma when the format is rhythmic contemporary?
### Response:
|
SELECT MIN("DMA") FROM table_22826 WHERE "Format" = 'Rhythmic Contemporary'
|
### Instruction:
CREATE TABLE table_2228 (
"Year" real,
"Fowler" real,
"Stanier, 3 cylinder" real,
"Stanier, 2 cylinder" real,
"Fairburn" real,
"BR Standard" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is tops for Folwer?
### Response:
|
SELECT MAX("Fowler") FROM table_2228
|
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which release is being downloaded the most?
### Response:
|
SELECT groupname FROM torrents ORDER BY totalsnatched DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_51177 (
"Name of ground" text,
"Location" text,
"Year" text,
"FC matches" text,
"LA matches" text,
"T20 matches" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FC match has a total of 24?
### Response:
|
SELECT "FC matches" FROM table_51177 WHERE "Total" = '24'
|
### Instruction:
CREATE TABLE table_38515 (
"Games" real,
"Drawn" real,
"Lost" real,
"Goal difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losses have points less than 3, with a drawn greater than 0?
### Response:
|
SELECT SUM("Lost") FROM table_38515 WHERE "Points" < '3' AND "Drawn" > '0'
|
### Instruction:
CREATE TABLE table_204_295 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- of which utility vehicle model do they have more than 50 in service ?
### Response:
|
SELECT "model" FROM table_204_295 WHERE "in service" >= 50
|
### Instruction:
CREATE TABLE table_7465 (
"Ep No" text,
"Prod Code" text,
"Original Air Date" text,
"Episode Title" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code fore the episode titled, life's no fun anymore?
### Response:
|
SELECT "Prod Code" FROM table_7465 WHERE "Episode Title" = 'life''s no fun anymore'
|
### Instruction:
CREATE TABLE accounts (
custid VARCHAR,
name VARCHAR
)
CREATE TABLE checking (
balance INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and id of accounts whose checking balance is below the maximum checking balance.
### Response:
|
SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
|
### Instruction:
CREATE TABLE table_69347 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when the record was 70-74?
### Response:
|
SELECT "Date" FROM table_69347 WHERE "Record" = '70-74'
|
### Instruction:
CREATE TABLE table_71117 (
"Value" real,
"Khmer" real,
"Word Form" text,
"UNGEGN" text,
"ALA-LC" text,
"Other" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for the other of mouy, what's the khmer?
### Response:
|
SELECT "Khmer" FROM table_71117 WHERE "Other" = 'mouy'
|
### Instruction:
CREATE TABLE table_17330 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest #?
### Response:
|
SELECT MIN("#") FROM table_17330
|
### Instruction:
CREATE TABLE table_20903658_1 (
title_subject VARCHAR,
medium VARCHAR,
public_office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the subject of the bronze sculpture who was a colonist and soldier in Ville Marie, New France?
### Response:
|
SELECT title_subject FROM table_20903658_1 WHERE medium = "Bronze" AND public_office = "colonist and soldier in Ville Marie, New France"
|
### Instruction:
CREATE TABLE table_27732 (
"Number" real,
"Name" text,
"Vertices" text,
"Hypotenuse 0 c" text,
"Vertical 0 b" text,
"Horizontal 0 a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the horizontal number for number 10
### Response:
|
SELECT COUNT("Horizontal 0 a") FROM table_27732 WHERE "Number" = '10'
|
### Instruction:
CREATE TABLE table_44749 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Team, when Circuit is Phillip Island Grand Prix Circuit?
### Response:
|
SELECT "Team" FROM table_44749 WHERE "Circuit" = 'phillip island grand prix circuit'
|
### Instruction:
CREATE TABLE table_203_509 (
id number,
"year" number,
"laetare medalist" text,
"position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the previous winner before john henry phelan in 1951 ?
### Response:
|
SELECT "laetare medalist" FROM table_203_509 WHERE "year" < 1951 ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_59 (
interview INTEGER,
evening_gown VARCHAR,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of interview scores that have an evening gown score of 9.543 and an average that is bigger than 9.521?
### Response:
|
SELECT SUM(interview) FROM table_name_59 WHERE evening_gown = 9.543 AND average > 9.521
|
### Instruction:
CREATE TABLE table_1833 (
"Country" text,
"Mens Open" real,
"Womens Open" real,
"Mens Wheelchair" real,
"Womens Wheelchair" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many are the total winners from South Korea?
### Response:
|
SELECT "Total" FROM table_1833 WHERE "Country" = 'South Korea'
|
### Instruction:
CREATE TABLE table_name_63 (
name VARCHAR,
region VARCHAR,
date_of_reclassification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHose Name has a Region of kansai on 2012-04-01 ( core city )?
### Response:
|
SELECT name FROM table_name_63 WHERE region = "kansai" AND date_of_reclassification = "2012-04-01 ( core city )"
|
### Instruction:
CREATE TABLE table_18112 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of party for new york 29
### Response:
|
SELECT COUNT("Party") FROM table_18112 WHERE "District" = 'New York 29'
|
### Instruction:
CREATE TABLE table_71013 (
"From" text,
"Until" text,
"Name" text,
"Party" text,
"Function" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Until date associated with a beginning From date of July 5, 2007?
### Response:
|
SELECT "Until" FROM table_71013 WHERE "From" = 'july 5, 2007'
|
### Instruction:
CREATE TABLE table_72896 (
"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.
-- Name who directed the episode for the series number 236
### Response:
|
SELECT "Directed by" FROM table_72896 WHERE "Series #" = '236'
|
### Instruction:
CREATE TABLE table_60320 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wht did Mark O'Meara place when the to par was +2?
### Response:
|
SELECT "Place" FROM table_60320 WHERE "To par" = '+2' AND "Player" = 'mark o''meara'
|
### Instruction:
CREATE TABLE table_30837 (
"By-election" real,
"Electorate" text,
"Date" text,
"Incumbent" text,
"Reason" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When edward shaw is the winner what is the date?
### Response:
|
SELECT "Date" FROM table_30837 WHERE "Winner" = 'Edward Shaw'
|
### Instruction:
CREATE TABLE table_name_7 (
class_aA VARCHAR,
class_aAA VARCHAR,
giddings VARCHAR,
school_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Class AA in the 2010-11 school year with a class AAA of Giddings?
### Response:
|
SELECT class_aA FROM table_name_7 WHERE class_aAA = giddings AND school_year = "2010-11"
|
### Instruction:
CREATE TABLE table_12746 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer window for Hleb?
### Response:
|
SELECT "Transfer window" FROM table_12746 WHERE "Name" = 'hleb'
|
### Instruction:
CREATE TABLE table_2205 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Canada Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of playoffs held in exactly 2006?
### Response:
|
SELECT COUNT("Playoffs") FROM table_2205 WHERE "Year" = '2006'
|
### Instruction:
CREATE TABLE table_64381 (
"Round" real,
"Dates" text,
"Rally Name" text,
"Rally HQ" text,
"Support Category" text,
"Surface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Surface had a Rally HQ of salou?
### Response:
|
SELECT "Surface" FROM table_64381 WHERE "Rally HQ" = 'salou'
|
### Instruction:
CREATE TABLE table_203_175 (
id number,
"rank" text,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gold medals did italy receive ?
### Response:
|
SELECT "gold" FROM table_203_175 WHERE "nation" = 'italy'
|
### Instruction:
CREATE TABLE table_5502 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest week that had a game on November 18, 1951?
### Response:
|
SELECT MAX("Week") FROM table_5502 WHERE "Date" = 'november 18, 1951'
|
### Instruction:
CREATE TABLE table_66287 (
"Proto-Germanic" text,
"West Germanic" text,
"Old English" text,
"German" text,
"Dutch" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Proto-Germanic when the Old English is /d/?
### Response:
|
SELECT "Proto-Germanic" FROM table_66287 WHERE "Old English" = '/d/'
|
### Instruction:
CREATE TABLE table_3651 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player kevin stevens?
### Response:
|
SELECT "Nationality" FROM table_3651 WHERE "Player" = 'Kevin Stevens'
|
### Instruction:
CREATE TABLE table_72431 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many candidates with district being california 7
### Response:
|
SELECT COUNT("Candidates") FROM table_72431 WHERE "District" = 'California 7'
|
### Instruction:
CREATE TABLE table_19069 (
"District" text,
"Counties Represented" text,
"Delegate" text,
"Party" text,
"First Elected" real,
"Committee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the delegate first elected in 2003?
### Response:
|
SELECT "Delegate" FROM table_19069 WHERE "First Elected" = '2003'
|
### Instruction:
CREATE TABLE table_18556 (
"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 candidate for the district Arkansas 2?
### Response:
|
SELECT "Candidates" FROM table_18556 WHERE "District" = 'Arkansas 2'
|
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many entries are of each type?
### Response:
|
SELECT COUNT(*), releasetype FROM torrents GROUP BY releasetype
|
### Instruction:
CREATE TABLE table_65774 (
"Voting order" real,
"Country" text,
"Spokespersons" text,
"Commentator" text,
"Broadcaster" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the commentator when the spokesperson was michael aspel?
### Response:
|
SELECT "Commentator" FROM table_65774 WHERE "Spokespersons" = 'michael aspel'
|
### Instruction:
CREATE TABLE table_name_10 (
player VARCHAR,
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when To Par is '7', and when Score is '73-72-67-75=287'?
### Response:
|
SELECT player FROM table_name_10 WHERE to_par = 7 AND score = 73 - 72 - 67 - 75 = 287
|
### Instruction:
CREATE TABLE table_978 (
"Year" real,
"Team Name" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the division for the year 2006?
### Response:
|
SELECT "Division" FROM table_978 WHERE "Year" = '2006'
|
### Instruction:
CREATE TABLE table_4696 (
"Tournament" text,
"2007" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2011 Wimbledon result?
### Response:
|
SELECT "2011" FROM table_4696 WHERE "Tournament" = 'wimbledon'
|
### Instruction:
CREATE TABLE culture_company (
company_name VARCHAR,
movie_id VARCHAR
)
CREATE TABLE movie (
movie_id VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all company names with a movie directed in year 1999.
### Response:
|
SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999
|
### Instruction:
CREATE TABLE table_39716 (
"Round" real,
"Pick #" text,
"Player" text,
"Position" text,
"College" text,
"Tenure w/ Steelers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college is draft pick #327 from?
### Response:
|
SELECT "College" FROM table_39716 WHERE "Pick #" = '327'
|
### Instruction:
CREATE TABLE table_69356 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date, when the home team is the NY Rangers?
### Response:
|
SELECT "Date" FROM table_69356 WHERE "Home" = 'ny rangers'
|
### Instruction:
CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many body builders are there?
### Response:
|
SELECT COUNT(*) FROM body_builder
|
### Instruction:
CREATE TABLE table_67329 (
"Outcome" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in Volkswagen Challenger tournament?
### Response:
|
SELECT "Score" FROM table_67329 WHERE "Tournament" = 'volkswagen challenger'
|
### Instruction:
CREATE TABLE table_70438 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has winnipeg jets with a Score of 4 6?
### Response:
|
SELECT "Date" FROM table_70438 WHERE "Home" = 'winnipeg jets' AND "Score" = '4–6'
|
### Instruction:
CREATE TABLE table_203_462 (
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.
-- how many years did not qualify ?
### Response:
|
SELECT COUNT("year") FROM table_203_462 WHERE "playoffs" = 'did not qualify'
|
### Instruction:
CREATE TABLE table_54841 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Atlanta was a visitor on December 8, what was their record?
### Response:
|
SELECT "Record" FROM table_54841 WHERE "Visitor" = 'atlanta'
|
### Instruction:
CREATE TABLE table_203_672 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only opponent to allow no points in a game ?
### Response:
|
SELECT "opponent" FROM table_203_672 WHERE "result" = 0
|
### Instruction:
CREATE TABLE table_2187 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the team's status in the Open Cup in 2006?
### Response:
|
SELECT "Open Cup" FROM table_2187 WHERE "Year" = '2006'
|
### Instruction:
CREATE TABLE table_203_547 (
id number,
"ship" text,
"built" number,
"in service for cunard" text,
"type" text,
"tonnage" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only cruise ship listed ?
### Response:
|
SELECT "ship" FROM table_203_547 WHERE "type" = 'cruise'
|
### Instruction:
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the youngest captain?
### Response:
|
SELECT name FROM captain ORDER BY age LIMIT 1
|
### Instruction:
CREATE TABLE table_8698 (
"Season" real,
"Champion" text,
"Motorcycle" text,
"Wins" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had 2 wins and a season later than 1986?
### Response:
|
SELECT "Team" FROM table_8698 WHERE "Wins" = '2' AND "Season" > '1986'
|
### Instruction:
CREATE TABLE table_203_200 (
id number,
"region" text,
"seed" number,
"team" text,
"coach" text,
"finished" text,
"final opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many 1 seeds are there ?
### Response:
|
SELECT COUNT(*) FROM table_203_200 WHERE "seed" = 1
|
### Instruction:
CREATE TABLE table_58103 (
"Year" real,
"Driver" text,
"Constructor" text,
"Location" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the constructor of the car that Achille Varzi drove before 1937?
### Response:
|
SELECT "Constructor" FROM table_58103 WHERE "Year" < '1937' AND "Driver" = 'achille varzi'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.