instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_204_796 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of affiliates of canal de las estrellas .
### Response:
|
SELECT "affiliates" FROM table_204_796 WHERE "network name" = 'canal de las estrellas'
|
### Instruction:
CREATE TABLE table_66745 (
"Supplier" text,
"Basic shape" text,
"Keys (x modes)" text,
"Wrist pad" text,
"Thumb stick" text,
"Backlit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which keys (x modes) have a Supplier of wolfking?
### Response:
|
SELECT "Keys (x modes)" FROM table_66745 WHERE "Supplier" = 'wolfking'
|
### Instruction:
CREATE TABLE table_name_66 (
attempts INTEGER,
rank VARCHAR,
start VARCHAR,
yds_att VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attempts did the player ranking with a number higher than 1, who started after 1997 and had yds/att of 5 have?
### Response:
|
SELECT SUM(attempts) FROM table_name_66 WHERE start > 1997 AND yds_att = 5 AND rank > 1
|
### Instruction:
CREATE TABLE table_203_367 (
id number,
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won previous to graham hill ?
### Response:
|
SELECT "driver" FROM table_203_367 WHERE id = (SELECT id FROM table_203_367 WHERE "driver" = 'graham hill') - 1
|
### Instruction:
CREATE TABLE table_70715 (
"Dance" text,
"Best dancer(s)" text,
"Best score" real,
"Worst dancer(s)" text,
"Worst score" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the best average score with a bad score of 15?
### Response:
|
SELECT AVG("Best score") FROM table_70715 WHERE "Worst score" = '15'
|
### Instruction:
CREATE TABLE table_3611 (
"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 election where william wilson was the incumbent?
### Response:
|
SELECT "Candidates" FROM table_3611 WHERE "Incumbent" = 'William Wilson'
|
### Instruction:
CREATE TABLE table_25087 (
"#" real,
"District" text,
"Province" text,
"Region" text,
"UBIGEO" real,
"Elevation (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which province has an elevation of 4550?
### Response:
|
SELECT "Province" FROM table_25087 WHERE "Elevation (m)" = '4550'
|
### Instruction:
CREATE TABLE table_79492 (
"Season" real,
"Network" text,
"Episodes" real,
"Premiered" text,
"Ended" text,
"DVD set release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total season number for episodes later than episode 30?
### Response:
|
SELECT SUM("Season") FROM table_79492 WHERE "Episodes" > '30'
|
### Instruction:
CREATE TABLE table_43861 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name when the lane is less than 4 and mark is 52.64?
### Response:
|
SELECT "Name" FROM table_43861 WHERE "Lane" < '4' AND "Mark" = '52.64'
|
### Instruction:
CREATE TABLE table_19245 (
"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 incumbents for the district of South Carolina 5?
### Response:
|
SELECT COUNT("Incumbent") FROM table_19245 WHERE "District" = 'South Carolina 5'
|
### Instruction:
CREATE TABLE table_name_69 (
resting_potential__mv_ VARCHAR,
ap_duration__ms_ VARCHAR,
cell_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type?
### Response:
|
SELECT resting_potential__mv_ FROM table_name_69 WHERE ap_duration__ms_ = "1.0" AND cell_type = "median giant fiber"
|
### Instruction:
CREATE TABLE table_15062 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"Career Win-Loss" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value in 2008 for the US Open?
### Response:
|
SELECT "2008" FROM table_15062 WHERE "Tournament" = 'us open'
|
### Instruction:
CREATE TABLE table_73341 (
"Team" text,
"Stadium" text,
"Match played" text,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest when pohang steelyard is the stadium?
### Response:
|
SELECT "Lowest" FROM table_73341 WHERE "Stadium" = 'Pohang Steelyard'
|
### Instruction:
CREATE TABLE table_66968 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team's record at the game attended by 30,452?
### Response:
|
SELECT "Record" FROM table_66968 WHERE "Attendance" = '30,452'
|
### Instruction:
CREATE TABLE table_44759 (
"Name" text,
"WSU Year(s)" text,
"Position" text,
"Team" text,
"Pro Year(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when WSU Year(s) is 1981-82?
### Response:
|
SELECT "Name" FROM table_44759 WHERE "WSU Year(s)" = '1981-82'
|
### Instruction:
CREATE TABLE table_204_788 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last constructor ?
### Response:
|
SELECT "constructor" FROM table_204_788 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_8396 (
"Name" text,
"Country of Origin" text,
"Position" text,
"Elected" real,
"Term" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position elected in 2011 from the Country of Algeria?
### Response:
|
SELECT "Position" FROM table_8396 WHERE "Elected" = '2011' AND "Country of Origin" = 'algeria'
|
### Instruction:
CREATE TABLE table_200_32 (
id number,
"year" number,
"w" number,
"l" number,
"t" number,
"finish" text,
"coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who coached the muncie flyers to an indiana state championship ?
### Response:
|
SELECT "coach" FROM table_200_32 WHERE "finish" = 'indiana state champs'
|
### Instruction:
CREATE TABLE table_69180 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the Rangers' attendance was 23,493?
### Response:
|
SELECT "Score" FROM table_69180 WHERE "Attendance" = '23,493'
|
### Instruction:
CREATE TABLE table_30317 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year and location did Liu Guozheng win the Mens Singles?
### Response:
|
SELECT "Year Location" FROM table_30317 WHERE "Mens Singles" = 'Liu Guozheng'
|
### Instruction:
CREATE TABLE table_48752 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Points, when Played is greater than 5?
### Response:
|
SELECT MAX("Points") FROM table_48752 WHERE "Played" > '5'
|
### Instruction:
CREATE TABLE table_name_35 (
code INTEGER,
name VARCHAR,
regional_county_municipality VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the code for Saint-Damien in Matawinie with a type p?
### Response:
|
SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien"
|
### Instruction:
CREATE TABLE table_name_25 (
clubs_remaining INTEGER,
new_entries_this_round VARCHAR,
clubs_involved VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the clubs remaining with 34 new entries this round and more than 34 clubs involved?
### Response:
|
SELECT SUM(clubs_remaining) FROM table_name_25 WHERE new_entries_this_round = "34" AND clubs_involved > 34
|
### Instruction:
CREATE TABLE table_11544 (
"Rank" text,
"Name" text,
"Location" text,
"Height m / ft" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of floors in Stockholm with a rank of 15?
### Response:
|
SELECT MAX("Floors") FROM table_11544 WHERE "Location" = 'stockholm' AND "Rank" = '15'
|
### Instruction:
CREATE TABLE table_27303975_3 (
copyright_information VARCHAR,
catalog_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the catalog number cal04 / 0091037553546?
### Response:
|
SELECT COUNT(copyright_information) FROM table_27303975_3 WHERE catalog_number = "CAL04 / 0091037553546"
|
### Instruction:
CREATE TABLE table_70089 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average capacity for 150 suites?
### Response:
|
SELECT AVG("Capacity") FROM table_70089 WHERE "Suites" = '150'
|
### Instruction:
CREATE TABLE table_19378 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"TV" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the week for kingdome
### Response:
|
SELECT "Week" FROM table_19378 WHERE "Location" = 'Kingdome'
|
### Instruction:
CREATE TABLE table_31083 (
"Year" real,
"Number of tropical storms" real,
"Number of hurricanes" real,
"Number of major hurricanes" real,
"Deaths" text,
"Strongest storm" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest overall number of hurricanes?
### Response:
|
SELECT MIN("Number of hurricanes") FROM table_31083
|
### Instruction:
CREATE TABLE table_77110 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Year(s) Won, when Total is less than 285?
### Response:
|
SELECT "Year(s) won" FROM table_77110 WHERE "Total" < '285'
|
### Instruction:
CREATE TABLE table_2974 (
"French Title" text,
"Date of Publication" real,
"English Translation" text,
"Writer" text,
"Artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many English translations were made for the story originally titled 'La Ribambelle Enqu te'?
### Response:
|
SELECT COUNT("English Translation") FROM table_2974 WHERE "French Title" = 'La Ribambelle enquête'
|
### Instruction:
CREATE TABLE table_29586 (
"Represent" real,
"Contestant" text,
"Age" real,
"Sizes" text,
"Height" text,
"Hometown" text,
"Agency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where is the participant marelissa him from
### Response:
|
SELECT "Hometown" FROM table_29586 WHERE "Contestant" = 'Marelissa Him'
|
### Instruction:
CREATE TABLE table_32918 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average round when he had a 3-0 record?
### Response:
|
SELECT AVG("Round") FROM table_32918 WHERE "Record" = '3-0'
|
### Instruction:
CREATE TABLE table_5213 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Venue" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Attendance of 35,842 had what date?
### Response:
|
SELECT "Date" FROM table_5213 WHERE "Attendance" = '35,842'
|
### Instruction:
CREATE TABLE table_16509 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 3 credits are there with 5 credits of 5?
### Response:
|
SELECT COUNT("3 credits") FROM table_16509 WHERE "5 credits" = '5'
|
### Instruction:
CREATE TABLE table_21770 (
"P" real,
"Player" text,
"Position" text,
"League" real,
"Copa del Rey" real,
"Champions League" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- if p is bigger than 4.0 what is total number
### Response:
|
SELECT COUNT("Total") FROM table_21770 WHERE "P" > '4.0'
|
### Instruction:
CREATE TABLE table_204_338 (
id number,
"location" text,
"coordinates" text,
"type" text,
"built" text,
"details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many voronezh radars are in kaliningrad or in krasnodar ?
### Response:
|
SELECT COUNT(*) FROM table_204_338 WHERE "location" IN ('kaliningrad', 'krasnodar')
|
### Instruction:
CREATE TABLE table_25512 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people wrote episode 68 in the series?
### Response:
|
SELECT COUNT("Written by") FROM table_25512 WHERE "No. in series" = '68'
|
### Instruction:
CREATE TABLE table_79843 (
"Title" text,
"Album" text,
"Country" text,
"Peak position" real,
"Weeks on chart" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the country with the album best of and weeks on chart is less than 5?
### Response:
|
SELECT "Country" FROM table_79843 WHERE "Album" = 'best of' AND "Weeks on chart" < '5'
|
### Instruction:
CREATE TABLE table_18077713_1 (
earnings_per_share__¢_ VARCHAR,
net_profit__us_$m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earnings per share when the net profit is 16.2 million dollars?
### Response:
|
SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "16.2"
|
### Instruction:
CREATE TABLE table_3547 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What couple had a vote percentage of 5.2%?
### Response:
|
SELECT "Couple" FROM table_3547 WHERE "Vote percentage" = '5.2%'
|
### Instruction:
CREATE TABLE table_58307 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- None of the rounds has Roger Williamson as a driver.
### Response:
|
SELECT "Rounds" FROM table_58307 WHERE "Driver" = 'roger williamson'
|
### Instruction:
CREATE TABLE Projects (
project_details VARCHAR,
project_id VARCHAR
)
CREATE TABLE Documents (
project_id VARCHAR,
document_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the project detail for the project with document 'King Book'?
### Response:
|
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
|
### Instruction:
CREATE TABLE table_12203 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year(s) won has a Total smaller than 276? Question 1
### Response:
|
SELECT "Year(s) won" FROM table_12203 WHERE "Total" < '276'
|
### Instruction:
CREATE TABLE table_name_19 (
name VARCHAR,
college VARCHAR,
pick VARCHAR,
overall VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?
### Response:
|
SELECT name FROM table_name_19 WHERE overall < 224 AND round < 6 AND pick = 15 AND college = "nebraska"
|
### Instruction:
CREATE TABLE table_25828 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title of the episode written by Mark Goffman?
### Response:
|
SELECT "Title" FROM table_25828 WHERE "Written by" = 'Mark Goffman'
|
### Instruction:
CREATE TABLE table_15118 (
"Year" real,
"Division I" text,
"Division II" text,
"Division III" text,
"Division IV" text,
"Division V" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a Division II of Portsmouth, what is the Division IV?
### Response:
|
SELECT "Division IV" FROM table_15118 WHERE "Division III" = 'portsmouth'
|
### Instruction:
CREATE TABLE club (
club_id VARCHAR,
club_name VARCHAR
)
CREATE TABLE coach (
club_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many coaches does each club has? List the club id, name and the number of coaches.
### Response:
|
SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id
|
### Instruction:
CREATE TABLE table_10169 (
"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 home team score when the away team was fitzroy?
### Response:
|
SELECT "Home team score" FROM table_10169 WHERE "Away team" = 'fitzroy'
|
### Instruction:
CREATE TABLE table_203_411 (
id number,
"year" number,
"venue" text,
"individual" number,
"sprint" number,
"pursuit" number,
"mass start" number,
"relay" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which had the highest individual number ?
### Response:
|
SELECT "venue" FROM table_203_411 ORDER BY "individual" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_554 (
id number,
"rank" number,
"name" text,
"nation" text,
"time" text,
"speed" number,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the first finisher from russia ?
### Response:
|
SELECT "name" FROM table_204_554 WHERE "nation" = 'russia' ORDER BY "rank" LIMIT 1
|
### Instruction:
CREATE TABLE table_25293 (
"Station" text,
"Extension" text,
"City/Neighborhood" text,
"Projected opening" real,
"Transit Connections" text,
"Park and ride?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the extension for university of washington
### Response:
|
SELECT "Extension" FROM table_25293 WHERE "City/Neighborhood" = 'University of Washington'
|
### Instruction:
CREATE TABLE table_390 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Musical guest and song" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the writers for series number 20?
### Response:
|
SELECT "Written by" FROM table_390 WHERE "Series #" = '20'
|
### Instruction:
CREATE TABLE table_52310 (
"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 average ERP W when the call sign is whre?
### Response:
|
SELECT AVG("ERP W") FROM table_52310 WHERE "Call sign" = 'whre'
|
### Instruction:
CREATE TABLE table_27332 (
"Episode No." text,
"Prod No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate UK" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production number of 3-04?
### Response:
|
SELECT MAX("Prod No.") FROM table_27332 WHERE "Episode No." = '3-04'
|
### Instruction:
CREATE TABLE table_204_820 (
id number,
"date" text,
"constituency" text,
"c/u" text,
"former incumbent" text,
"winner" text,
"cause" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the next date after the first date on the list ?
### Response:
|
SELECT "date" FROM table_204_820 WHERE id = 1 + 1
|
### Instruction:
CREATE TABLE table_41475 (
"Position" text,
"Jersey #" real,
"Name" text,
"Birthdate" text,
"Birthplace" text,
"Club/Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Birthplace, when the Name is Bob Mcvey?
### Response:
|
SELECT "Birthplace" FROM table_41475 WHERE "Name" = 'bob mcvey'
|
### Instruction:
CREATE TABLE table_1866 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date in series 360?
### Response:
|
SELECT COUNT("Original air date") FROM table_1866 WHERE "No. in series" = '360'
|
### Instruction:
CREATE TABLE table_204_520 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of winners ?
### Response:
|
SELECT COUNT(*) FROM table_204_520 WHERE "outcome" = 'winner'
|
### Instruction:
CREATE TABLE table_42851 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text,
"Team Record" text,
"Game Site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date, when the Team Record is 2-0?
### Response:
|
SELECT "Date" FROM table_42851 WHERE "Team Record" = '2-0'
|
### Instruction:
CREATE TABLE table_46606 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has Anselmo Da Silva in lane 2?
### Response:
|
SELECT "Country" FROM table_46606 WHERE "Lane" < '2' AND "Name" = 'anselmo da silva'
|
### Instruction:
CREATE TABLE table_59389 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country placed t3 with a score of 70-65=135?
### Response:
|
SELECT "Country" FROM table_59389 WHERE "Place" = 't3' AND "Score" = '70-65=135'
|
### Instruction:
CREATE TABLE table_71230 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Place of t8 and byron nelson?
### Response:
|
SELECT "Country" FROM table_71230 WHERE "Place" = 't8' AND "Player" = 'byron nelson'
|
### Instruction:
CREATE TABLE table_75281 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Score of 2 7, and a Record of 5 8 2?
### Response:
|
SELECT "Date" FROM table_75281 WHERE "Score" = '2–7' AND "Record" = '5–8–2'
|
### Instruction:
CREATE TABLE table_name_90 (
max_power_at_rpm VARCHAR,
displacement VARCHAR,
engine_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?
### Response:
|
SELECT max_power_at_rpm FROM table_name_90 WHERE displacement = "1968cc" AND engine_name = "2.0 tdi"
|
### Instruction:
CREATE TABLE table_3558 (
"Pick #" real,
"Brand (to)" text,
"Employee (Real name)" text,
"Role(s)" text,
"Brand (from)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the employee real name for raw and superstar
### Response:
|
SELECT "Employee (Real name)" FROM table_3558 WHERE "Brand (from)" = 'Raw' AND "Role(s)" = 'Superstar'
|
### Instruction:
CREATE TABLE table_58465 (
"Number & Name" text,
"Description" text,
"Livery" text,
"Owner(s)" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number & name with an Undergoing overhaul, restoration or repairs date?
### Response:
|
SELECT "Number & Name" FROM table_58465 WHERE "Date" = 'undergoing overhaul, restoration or repairs'
|
### Instruction:
CREATE TABLE table_6515 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What earliest year with points larger than 68 and a rank of 7th?
### Response:
|
SELECT MIN("Year") FROM table_6515 WHERE "Points" > '68' AND "Rank" = '7th'
|
### Instruction:
CREATE TABLE table_204_813 (
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.
-- at which competition did the competitor throw the javelin the farthest ?
### Response:
|
SELECT "competition" FROM table_204_813 ORDER BY "notes" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_60494 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a to par of e and scored 71-69=140?
### Response:
|
SELECT "Player" FROM table_60494 WHERE "To par" = 'e' AND "Score" = '71-69=140'
|
### Instruction:
CREATE TABLE table_72855 (
"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.
-- How many viewers were there on 1august1964?
### Response:
|
SELECT "Viewers (in millions)" FROM table_72855 WHERE "Broadcast date" = '1August1964'
|
### Instruction:
CREATE TABLE table_34785 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome of the match against Magdalena Maleeva?
### Response:
|
SELECT "Outcome" FROM table_34785 WHERE "Opponent" = 'magdalena maleeva'
|
### Instruction:
CREATE TABLE table_204_430 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many models were made in the replublic of korea ?
### Response:
|
SELECT COUNT("model") FROM table_204_430 WHERE "origin" = 'republic of korea'
|
### Instruction:
CREATE TABLE table_15867 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the player from Hawaii play for Toronto?
### Response:
|
SELECT "Years in Toronto" FROM table_15867 WHERE "School/Club Team" = 'Hawaii'
|
### Instruction:
CREATE TABLE table_15065 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament when in 2012 the performance was 2r?
### Response:
|
SELECT "Tournament" FROM table_15065 WHERE "2012" = '2r'
|
### Instruction:
CREATE TABLE table_23238 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different total points does the couple ranked at number 5 have?
### Response:
|
SELECT COUNT("Total") FROM table_23238 WHERE "Rank" = '5'
|
### Instruction:
CREATE TABLE table_41114 (
"Round" real,
"Race name" text,
"Circuit" text,
"City/State" text,
"Date" text,
"Winner(s)" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the race from round 1?
### Response:
|
SELECT "Race name" FROM table_41114 WHERE "Round" = '1'
|
### Instruction:
CREATE TABLE table_22007 (
"Team" text,
"Outgoing manage" text,
"Manner" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team(s) had an outgoing manager of jo o alves?
### Response:
|
SELECT "Team" FROM table_22007 WHERE "Outgoing manage" = 'João Alves'
|
### Instruction:
CREATE TABLE table_name_56 (
appeared INTEGER,
rr_w_rate VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the RR Rate is less than 0.75 with a result of RR:08,09, what is the average appeared?
### Response:
|
SELECT AVG(appeared) FROM table_name_56 WHERE rr_w_rate < 0.75 AND result = "rr:08,09"
|
### Instruction:
CREATE TABLE table_60697 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home for league 3rd liga, and an away of 4-0?
### Response:
|
SELECT "Home" FROM table_60697 WHERE "League" = '3rd liga' AND "Away" = '4-0'
|
### Instruction:
CREATE TABLE table_65531 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Football Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which IHSAA Football Class has a School of wood memorial?
### Response:
|
SELECT "IHSAA Football Class" FROM table_65531 WHERE "School" = 'wood memorial'
|
### Instruction:
CREATE TABLE table_204_541 (
id number,
"name" text,
"area" text,
"height" text,
"floors" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many of the 7 tallest buildings in kanpur , india were built before 2010 ?
### Response:
|
SELECT COUNT("name") FROM table_204_541 WHERE "year" < 2010
|
### Instruction:
CREATE TABLE table_204_603 (
id number,
"pos" text,
"no" number,
"rider" text,
"bike" text,
"laps" number,
"time" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which rider finished first ?
### Response:
|
SELECT "rider" FROM table_204_603 WHERE "pos" = 1
|
### Instruction:
CREATE TABLE table_21079 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of feature with a longitude 246.0e?
### Response:
|
SELECT "Name" FROM table_21079 WHERE "Longitude" = '246.0E'
|
### Instruction:
CREATE TABLE table_15944_5 (
specific_impulse__s_ INTEGER,
effective_exhaust_velocity__m_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?
### Response:
|
SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423
|
### Instruction:
CREATE TABLE table_19504 (
"Week" real,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- type the attendance for playing with tampa bay buccaneers?
### Response:
|
SELECT "Attendance" FROM table_19504 WHERE "Opponent" = 'Tampa Bay Buccaneers'
|
### Instruction:
CREATE TABLE table_78751 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the status test match with an opposing team of south africa?
### Response:
|
SELECT "Date" FROM table_78751 WHERE "Status" = 'test match' AND "Opposing Teams" = 'south africa'
|
### Instruction:
CREATE TABLE table_65830 (
"Internet Explorer" text,
"Firefox , Other Mozilla" text,
"Chrome" text,
"Safari" text,
"Opera" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?
### Response:
|
SELECT "Safari" FROM table_65830 WHERE "Chrome" = '2.05%'
|
### Instruction:
CREATE TABLE table_17155 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions had jersey number 32
### Response:
|
SELECT COUNT("Position") FROM table_17155 WHERE "No.(s)" = '32'
|
### Instruction:
CREATE TABLE table_203_353 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which songs are produced by pillo jamel or juju .
### Response:
|
SELECT "title" FROM table_203_353 WHERE "producer(s)" IN ('pillo jamel', 'juju')
|
### Instruction:
CREATE TABLE table_20245 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 20 questions for derek jeter
### Response:
|
SELECT "20 Questions" FROM table_20245 WHERE "Interview subject" = 'Derek Jeter'
|
### Instruction:
CREATE TABLE table_55951 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was South Melbourne played?
### Response:
|
SELECT "Venue" FROM table_55951 WHERE "Home team" = 'south melbourne'
|
### Instruction:
CREATE TABLE table_13422 (
"Date" text,
"Tournament" text,
"Winning Score" text,
"Margin of Victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the margin of victory during the Pocono Northeast Classic?
### Response:
|
SELECT "Margin of Victory" FROM table_13422 WHERE "Tournament" = 'pocono northeast classic'
|
### Instruction:
CREATE TABLE table_46672 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which united states player had a To par of 12?
### Response:
|
SELECT "Player" FROM table_46672 WHERE "To par" = '12' AND "Country" = 'united states'
|
### Instruction:
CREATE TABLE table_55451 (
"Team" text,
"Class" text,
"Day 1" text,
"Day 2" text,
"Behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the team that had 4:05.096, what was their day 2?
### Response:
|
SELECT "Day 2" FROM table_55451 WHERE "Day 1" = '4:05.096'
|
### Instruction:
CREATE TABLE table_41374 (
"Draw" real,
"Artist" text,
"Song" text,
"Televote" text,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average draw for Desi Dobreva, was it less than 6?
### Response:
|
SELECT AVG("Draw") FROM table_41374 WHERE "Artist" = 'desi dobreva' AND "Place" < '6'
|
### Instruction:
CREATE TABLE table_203_293 (
id number,
"years of appearance" text,
"title" text,
"network" text,
"character name" text,
"actor" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many shows aired before 1992 ?
### Response:
|
SELECT COUNT("title") FROM table_203_293 WHERE "years of appearance" < 1992
|
### Instruction:
CREATE TABLE table_48112 (
"Province" text,
"Largest city" text,
"2nd Largest" text,
"3rd Largest" text,
"4th largest" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which province is the 3rd largest Dehbarez?
### Response:
|
SELECT "Province" FROM table_48112 WHERE "3rd Largest" = 'dehbarez'
|
### Instruction:
CREATE TABLE table_name_34 (
opponents VARCHAR,
nuggets_points VARCHAR,
result VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?
### Response:
|
SELECT COUNT(opponents) FROM table_name_34 WHERE result = "loss" AND game < 49 AND nuggets_points = 108
|
### Instruction:
CREATE TABLE table_204_996 (
id number,
"no." text,
"air date" text,
"network" text,
"household\nrating" number,
"viewers\n(millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which airing had the least number of viewers ?
### Response:
|
SELECT "air date" FROM table_204_996 ORDER BY "viewers\n(millions)" LIMIT 1
|
### Instruction:
CREATE TABLE table_78952 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who placed t5 and had a score of 70-72=142?
### Response:
|
SELECT "Player" FROM table_78952 WHERE "Place" = 't5' AND "Score" = '70-72=142'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.