instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_203_364 (
id number,
"year" number,
"driver" text,
"nation of citizenship" text,
"racing series" text,
"type of vehicle" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which racing series has the highest total... | SELECT "racing series" FROM table_203_364 GROUP BY "racing series" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_25279 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the constituency for 175130
### Response:
| SELECT "Constituency" FROM table_25279 WHERE "Margin" = '175130' |
### Instruction:
CREATE TABLE table_20026 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what day was the tournament in Al... | SELECT "Date" FROM table_20026 WHERE "Location" = 'Alabama' |
### Instruction:
CREATE TABLE table_name_86 (
record VARCHAR,
high_rebounds VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Record, when High Rebounds is 'Marcus Camby (15)', and when High Assists is 'Baron Davis (7)'?
### ... | SELECT record FROM table_name_86 WHERE high_rebounds = "marcus camby (15)" AND high_assists = "baron davis (7)" |
### Instruction:
CREATE TABLE table_36611 (
"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 weight division for the fight that ended in a TKO (s... | SELECT "Weight Division" FROM table_36611 WHERE "Method" = 'tko (strikes)' |
### Instruction:
CREATE TABLE table_24464 (
"Category" text,
"Sub-category" text,
"Cab size" text,
"Drive wheels" text,
"Capacity (litres)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the category for cab size crew and super tanker
### Res... | SELECT "Category" FROM table_24464 WHERE "Cab size" = 'Crew' AND "Sub-category" = 'Super tanker' |
### Instruction:
CREATE TABLE table_39930 (
"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 Pictorials has a 20 Questions of eva longoria?
### R... | SELECT "Pictorials" FROM table_39930 WHERE "20 Questions" = 'eva longoria' |
### Instruction:
CREATE TABLE table_name_75 (
fs VARCHAR,
sp VARCHAR,
points VARCHAR,
rank VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more ... | SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26 |
### Instruction:
CREATE TABLE table_71272 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the Toronto Blue Jays play against where the score was 4 - 2?... | SELECT "Opponent" FROM table_71272 WHERE "Score" = '4 - 2' |
### Instruction:
CREATE TABLE table_72722 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the order number for the beatles and result is safe... | SELECT "Order #" FROM table_72722 WHERE "Original artist" = 'The Beatles' AND "Result" = 'Safe' |
### Instruction:
CREATE TABLE table_name_43 (
player VARCHAR,
round VARCHAR,
college_junior_club_team__league_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?
### Respons... | SELECT player FROM table_name_43 WHERE round > 5 AND college_junior_club_team__league_ = "dynamo-2 moscow (rus)" |
### Instruction:
CREATE TABLE table_204_88 (
id number,
"year" number,
"english title" text,
"japanese" text,
"romanization" text,
"type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- were more air on tv or video ?
### Response:
| SELECT "type" FROM table_204_88 WHERE "type" IN ('tv', 'video') GROUP BY "type" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_10178 (
"Role" text,
"Original Broadway production" text,
"First US National Tour" text,
"Second US National Tour" text,
"Original Italian production" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Original ... | SELECT "Original Broadway production" FROM table_10178 WHERE "Role" = 'dr. victor von frankenstein' |
### Instruction:
CREATE TABLE table_39528 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pos has a Car # smaller than 18, and a Driver of mike skinner?
### Response:
| SELECT AVG("Pos.") FROM table_39528 WHERE "Car #" < '18' AND "Driver" = 'mike skinner' |
### Instruction:
CREATE TABLE tryout (
pID VARCHAR,
decision VARCHAR
)
CREATE TABLE player (
HS INTEGER,
pID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the average and maximum hours for the students whose tryout decision is yes.
### Respo... | SELECT AVG(T1.HS), MAX(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' |
### Instruction:
CREATE TABLE table_203_573 (
id number,
"name" text,
"rank - 2000" number,
"number" number,
"country of origin" text,
"england - 2001" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which surname on the list belongs to the small... | SELECT "name" FROM table_203_573 ORDER BY "number" LIMIT 1 |
### Instruction:
CREATE TABLE table_28847 (
"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 were the candidates if the incumbent was Henry Loga... | SELECT "Candidates" FROM table_28847 WHERE "Incumbent" = 'Henry Logan' |
### Instruction:
CREATE TABLE table_9485 (
"Scientific name" text,
"Common name" text,
"Length (male)" text,
"Length (female)" text,
"Color" text,
"Lifespan (years)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the common name for the ... | SELECT "Common name" FROM table_9485 WHERE "Color" = 'darker colors' |
### Instruction:
CREATE TABLE table_31591 (
"Member" text,
"Electorate" text,
"Province" text,
"MP's term" text,
"Election date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Member alfred east category:articles with hcards's term?
### Re... | SELECT "MP's term" FROM table_31591 WHERE "Member" = 'alfred east category:articles with hcards' |
### Instruction:
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
-- Using valid SQLite, answer the following question... | SELECT COUNT(DISTINCT ppos) FROM tryout |
### Instruction:
CREATE TABLE table_23816 (
"Country" text,
"Contestant" text,
"Age" real,
"Height (cm)" real,
"Height (ft)" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different heights are there for the contestants... | SELECT COUNT("Height (ft)") FROM table_23816 WHERE "Hometown" = 'Warsaw' |
### Instruction:
CREATE TABLE table_71214 (
"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 smallest attendance at a game when the record was 7-15?
... | SELECT MIN("Attendance") FROM table_71214 WHERE "Record" = '7-15' |
### Instruction:
CREATE TABLE table_55636 (
"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.
-- What date did the home team Ric... | SELECT "Date" FROM table_55636 WHERE "Home team" = 'richmond' |
### Instruction:
CREATE TABLE table_32011 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning drivers" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What brand of vehicle won a race driven by Tazio Nu... | SELECT "Winning constructor" FROM table_32011 WHERE "Winning drivers" = 'tazio nuvolari' |
### Instruction:
CREATE TABLE table_15545 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place has a score greater than 68, and camilo villegas as the player?
### Response:... | SELECT "Place" FROM table_15545 WHERE "Score" > '68' AND "Player" = 'camilo villegas' |
### Instruction:
CREATE TABLE table_37861 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the away team have round 2?
### Respon... | SELECT "Venue" FROM table_37861 WHERE "Away team" = 'round 2' |
### Instruction:
CREATE TABLE table_429 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did district of Columbia receive a scor... | SELECT COUNT("Evening Gown") FROM table_429 WHERE "State" = 'District of Columbia' |
### Instruction:
CREATE TABLE match_result (
club_id VARCHAR,
gold VARCHAR
)
CREATE TABLE coach (
club_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold medals has the club with the most coaches won?
### Response:
| SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1 |
### 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.
-- how many people were eliminated in w... | SELECT COUNT(*) FROM table_204_688 WHERE "status" = 'eliminated week 1' |
### Instruction:
CREATE TABLE table_203_249 (
id number,
"position" number,
"song title" text,
"artist" text,
"sales" number,
"highest position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs had at least 500,000 sales ?
### R... | SELECT COUNT("song title") FROM table_203_249 WHERE "sales" >= 500000 |
### Instruction:
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the first names ... | SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 |
### Instruction:
CREATE TABLE table_32423 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine does Steve Chassey drive with a march chassis?
### Response:
| SELECT "Engine" FROM table_32423 WHERE "Chassis" = 'march' AND "Drivers" = 'steve chassey' |
### Instruction:
CREATE TABLE table_6734 (
"Rank" real,
"Goalkeeper" text,
"Club" text,
"MINS" real,
"SHTS" real,
"W-L-T" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Rank when Pat Onstad was the goalkeeper?
### Response:
| SELECT SUM("Rank") FROM table_6734 WHERE "Goalkeeper" = 'pat onstad' |
### Instruction:
CREATE TABLE table_name_96 (
year INTEGER,
points VARCHAR,
entrant VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most year for team motul brm and chassis of brm p201 and points less than 0
### Response:
| SELECT MAX(year) FROM table_name_96 WHERE entrant = "team motul brm" AND chassis = "brm p201" AND points < 0 |
### Instruction:
CREATE TABLE table_38340 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Loss of buehrle (7-2)?
### Response:
| SELECT "Score" FROM table_38340 WHERE "Loss" = 'buehrle (7-2)' |
### Instruction:
CREATE TABLE table_name_12 (
pop_density__per_km2_ INTEGER,
district VARCHAR,
s_barangay VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82?
... | SELECT MIN(pop_density__per_km2_) FROM table_name_12 WHERE district = "santa cruz" AND s_barangay > 82 |
### Instruction:
CREATE TABLE table_78886 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week 2 with daniella mugnolo in week 1?
### Response:
| SELECT "Week 2" FROM table_78886 WHERE "Week 1" = 'daniella mugnolo' |
### Instruction:
CREATE TABLE table_17213 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last round with club team Guelph Storm (ohl)?
... | SELECT MAX("Round") FROM table_17213 WHERE "Club team" = 'Guelph Storm (OHL)' |
### Instruction:
CREATE TABLE table_2980 (
"Series" real,
"Start date" text,
"End date" text,
"Episodes" real,
"Average viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different end dates are there for the series seen by ... | SELECT COUNT("End date") FROM table_2980 WHERE "Average viewers (millions)" = '4.2' |
### Instruction:
CREATE TABLE table_204_479 (
id number,
"defendant" text,
"arrested" text,
"charge" text,
"result" text,
"sentence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was arrested on jan 7,1956 ?
### Response:
| SELECT "defendant" FROM table_204_479 WHERE "arrested" = 'january 7, 1956' |
### Instruction:
CREATE TABLE table_37937 (
"Name" text,
"Faith" text,
"Type" text,
"DCSF number" real,
"Ofsted number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school is a primary school with DCSF number 2045?
### Response:
| SELECT "Name" FROM table_37937 WHERE "Type" = 'primary' AND "DCSF number" = '2045' |
### Instruction:
CREATE TABLE table_57878 (
"Mall name" text,
"Location" text,
"Retail space Sq. feet/(m\u00b2)" text,
"Stores" text,
"Year opened" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year did the Short Pump Town Center Mall open?
... | SELECT "Year opened" FROM table_57878 WHERE "Mall name" = 'short pump town center' |
### Instruction:
CREATE TABLE table_25934 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Jasons team" text,
"Scores" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the episode for vic reeves and claudia winkleman
### Response:
| SELECT "Episode" FROM table_25934 WHERE "Seans team" = 'Vic Reeves and Claudia Winkleman' |
### Instruction:
CREATE TABLE table_59226 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Statue, when Venue is 'Stadio Flaminio , Rome'?
### Response:
| SELECT "Status" FROM table_59226 WHERE "Venue" = 'stadio flaminio , rome' |
### Instruction:
CREATE TABLE table_73007 (
"No. overall" real,
"Title" text,
"Director" text,
"Writer" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episodes first air that had a p... | SELECT "Original air date" FROM table_73007 WHERE "Production code" = '107' |
### Instruction:
CREATE TABLE table_name_25 (
home VARCHAR,
record VARCHAR,
time VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home in mellon arena at 7:30 pm with a record o 2-5-2?
### Response:
| SELECT home FROM table_name_25 WHERE time = "7:30 pm" AND location_attendance = "mellon arena" AND record = "2-5-2" |
### Instruction:
CREATE TABLE table_24193494_3 (
division VARCHAR,
powertrain__engine_transmission_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the division for detroit diesel series 50egr allison wb-400r
### Response:
| SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = "Detroit Diesel Series 50EGR Allison WB-400R" |
### Instruction:
CREATE TABLE table_1754531_4 (
domestic_freight VARCHAR,
international_mail VARCHAR,
domestic_mail VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Namw the total number for domestic freight for international mail is larger than 1.0 with d... | SELECT COUNT(domestic_freight) FROM table_1754531_4 WHERE international_mail > 1.0 AND domestic_mail = 260 |
### Instruction:
CREATE TABLE table_29209 (
"Model" text,
"Speed (GHz)" text,
"L2 Cache (MB)" real,
"L3 Cache (MB)" real,
"FSB (MHz)" real,
"TDP (W)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the maximal L3 cache for any of the model... | SELECT MAX("L2 Cache (MB)") FROM table_29209 |
### Instruction:
CREATE TABLE table_77353 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the result w 28 7?
### Resp... | SELECT "Date" FROM table_77353 WHERE "Result" = 'w 28–7' |
### Instruction:
CREATE TABLE table_42802 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"Prohibition ticket" text,
"Greenback ticket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was on the prohibition ticket when the Gr... | SELECT "Prohibition ticket" FROM table_42802 WHERE "Greenback ticket" = 'thomas armstrong' |
### Instruction:
CREATE TABLE table_178 (
"State (linked to summaries below)" text,
"Senator" text,
"Party" text,
"Electoral history" text,
"Result" text,
"Candidates Winning candidate in bold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell... | SELECT "Result" FROM table_178 WHERE "Senator" = 'Lindsey Graham' |
### Instruction:
CREATE TABLE table_name_31 (
team_s_ INTEGER,
top_goalscorer_s_ VARCHAR,
champion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?
### Response:
| SELECT MIN(team_s_) FROM table_name_31 WHERE top_goalscorer_s_ = "tvmk" AND champion = "flora" |
### Instruction:
CREATE TABLE table_71491 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What authority is the coed school in pinehaven?
### Response:
| SELECT "Authority" FROM table_71491 WHERE "Gender" = 'coed' AND "Area" = 'pinehaven' |
### Instruction:
CREATE TABLE table_15213 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average Game, when the attendance was higher than 56,040?
... | SELECT AVG("Game") FROM table_15213 WHERE "Attendance" > '56,040' |
### Instruction:
CREATE TABLE table_8672 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team that had attendance under 2614 and a home team of Victoria?
### Respo... | SELECT "Away" FROM table_8672 WHERE "Attendance" < '2614' AND "Home" = 'victoria' |
### Instruction:
CREATE TABLE table_1461 (
"Season" text,
"Winner" text,
"Winning Song" text,
"Winning Song (English Title)" text,
"Debut Album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the debut album for the artist with the winning s... | SELECT "Debut Album" FROM table_1461 WHERE "Winning Song" = 'Kemenangan Hati' |
### Instruction:
CREATE TABLE table_204_111 (
id number,
"name" text,
"animal type" text,
"introduced" number,
"reintroduced" text,
"retired" number,
"beanie baby resembled" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year were th... | SELECT MIN("introduced") FROM table_204_111 |
### Instruction:
CREATE TABLE table_60708 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the week 2 prior to the when Miranda Jordan was the week 4?
### Response:
| SELECT "Week 2" FROM table_60708 WHERE "Week 4" = 'miranda jordan' |
### Instruction:
CREATE TABLE table_63718 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district has a constituenc... | SELECT "District" FROM table_63718 WHERE "Constituency number" = '60' |
### Instruction:
CREATE TABLE table_17492 (
"Subjects" text,
"First Year" text,
"Second Year" text,
"Third Year" text,
"Fourth Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many classes are taken in the third year when pag-unawa was taken... | SELECT COUNT("Third Year") FROM table_17492 WHERE "First Year" = 'Pag-unawa' |
### Instruction:
CREATE TABLE table_36074 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location for the buick-goodwrench open?
### ... | SELECT "Location" FROM table_36074 WHERE "Tournament" = 'buick-goodwrench open' |
### Instruction:
CREATE TABLE table_name_85 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3
### Response:
| SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 |
### Instruction:
CREATE TABLE table_203_377 (
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.
-- total number of bronze medals nigeria earned ?
... | SELECT "bronze" FROM table_203_377 WHERE "nation" = 'nigeria' |
### Instruction:
CREATE TABLE table_4992 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Version has a Remixed by Perky Park with a Length of 6:38?
### Response:
| SELECT "Version" FROM table_4992 WHERE "Remixed by" = 'perky park' AND "Length" = '6:38' |
### Instruction:
CREATE TABLE table_11734041_1 (
years_for_rockets VARCHAR,
position VARCHAR,
school_club_team_country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did a center that attended Oral Roberts play for the Rockets?
### Respo... | SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE position = "Center" AND school_club_team_country = "Oral Roberts" |
### Instruction:
CREATE TABLE table_5343 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Gold larger than 0, and a Bronze larger than 1 includes what total number of silver?
### Re... | SELECT COUNT("Silver") FROM table_5343 WHERE "Gold" > '0' AND "Bronze" > '1' |
### Instruction:
CREATE TABLE table_50371 (
"Start Date/Time" text,
"Duration" text,
"End Time" text,
"Spacecraft" text,
"Crew" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The EVA that started on 8 July 12:38 went for how long?
### Response:
| SELECT "Duration" FROM table_50371 WHERE "Start Date/Time" = '8 july 12:38' |
### Instruction:
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- number of can... | SELECT SUM("candidates elected") FROM table_203_330 WHERE "year of election" > 2000 |
### Instruction:
CREATE TABLE table_54582 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting team when the Suns wer... | SELECT "Visitor" FROM table_54582 WHERE "Home" = 'suns' |
### Instruction:
CREATE TABLE table_name_5 (
second VARCHAR,
premier VARCHAR,
first VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Pre... | SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 16 |
### Instruction:
CREATE TABLE table_9242 (
"Player" text,
"Att." real,
"Yards" real,
"Avg." real,
"Fumbles" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Buck Pierce's highest average when there were less than 2 fumbles?
### Response:
| SELECT MAX("Avg.") FROM table_9242 WHERE "Player" = 'buck pierce' AND "Fumbles" < '2' |
### Instruction:
CREATE TABLE table_25477 (
"Date" text,
"Location" text,
"Opponent" text,
"Irish Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the irish points for 23-1 record
### Response:
| SELECT "Irish Points" FROM table_25477 WHERE "Record" = '23-1' |
### Instruction:
CREATE TABLE table_203_775 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"game site" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only opponent they played which ... | SELECT "opponent" FROM table_203_775 WHERE "result" = 't' |
### Instruction:
CREATE TABLE table_203_603 (
id number,
"service" text,
"service id" text,
"bit rate" text,
"audio channels" text,
"description" text,
"analogue availability" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long is the bi... | SELECT "bit rate" FROM table_203_603 WHERE "service" = 'gold' |
### Instruction:
CREATE TABLE table_58711 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To par, when Country is 'United States', and when Player is 'Mark Brooks'?
### R... | SELECT "To par" FROM table_58711 WHERE "Country" = 'united states' AND "Player" = 'mark brooks' |
### Instruction:
CREATE TABLE table_62236 (
"South West DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the wins average when 17 games were lost?
### Response:
| SELECT AVG("Wins") FROM table_62236 WHERE "Losses" = '17' |
### Instruction:
CREATE TABLE table_204_789 (
id number,
"plant name" text,
"location" text,
"country" text,
"startup date" number,
"capacity (mmtpa)" text,
"corporation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which plant was the fir... | SELECT "plant name" FROM table_204_789 ORDER BY "startup date" LIMIT 1 |
### Instruction:
CREATE TABLE table_23287 (
"Draw" real,
"Artist" text,
"Song" text,
"Jury votes" real,
"Televotes" real,
"Total votes" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Salva Ortega's result?
### Respon... | SELECT "Result" FROM table_23287 WHERE "Artist" = 'Salva Ortega' |
### Instruction:
CREATE TABLE table_60832 (
"Aircraft" text,
"Introduced" real,
"Retired" text,
"Seating" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What aircraft was introduced in 2004 and has a retired of ?
### Response:
| SELECT "Aircraft" FROM table_60832 WHERE "Retired" = '—' AND "Introduced" = '2004' |
### Instruction:
CREATE TABLE table_18117 (
"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.
-- what is the party with the incumbent jim demint?
###... | SELECT "Party" FROM table_18117 WHERE "Incumbent" = 'Jim DeMint' |
### Instruction:
CREATE TABLE table_19998428_3 (
san_antonio_de_lomerío_municipality___percentage_ VARCHAR,
language VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the language is only native, what is the percentage of the San Antonio de Lomerio municipal... | SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE language = "Only native" |
### Instruction:
CREATE TABLE table_68528 (
"Compound name" text,
"Colour" text,
"Tread" text,
"Driving conditions" text,
"Dry Type*" text,
"Grip" text,
"Durability" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grip has a dry option?
... | SELECT "Grip" FROM table_68528 WHERE "Dry Type*" = 'option' |
### Instruction:
CREATE TABLE table_45994 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position was played by the player wearing jersey n... | SELECT "Position" FROM table_45994 WHERE "Jersey Number(s)" = '40' |
### Instruction:
CREATE TABLE table_9853 (
"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.
-- On June 26, 2006 the game was played on what surface?
### Response:
| SELECT "Surface" FROM table_9853 WHERE "Date" = 'june 26, 2006' |
### Instruction:
CREATE TABLE table_5975 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Rank larger than 5, and a Rider of paul shoesmith belongs to what team?
### Response:
| SELECT "Team" FROM table_5975 WHERE "Rank" > '5' AND "Rider" = 'paul shoesmith' |
### Instruction:
CREATE TABLE table_61086 (
"Place" real,
"Name" text,
"All Around" real,
"Rope" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Milena Reljin's place with a smaller than 9.8 rope?
### Response:
| SELECT "Place" FROM table_61086 WHERE "Rope" < '9.8' AND "Name" = 'milena reljin' |
### Instruction:
CREATE TABLE table_16195 (
"Rank" real,
"Member Association" text,
"Points" text,
"Group stage" real,
"Play-off" real,
"AFC Cup" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Did any team score games that totaled up to 860.5?
... | SELECT "Play-off" FROM table_16195 WHERE "Points" = '860.5' |
### Instruction:
CREATE TABLE table_17687 (
"Track Name" text,
"Location" text,
"Length" text,
"Seating" real,
"Year Opened" real,
"Year Acquired [A ]" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the track that opened ... | SELECT "Location" FROM table_17687 WHERE "Year Opened" = '1950' |
### Instruction:
CREATE TABLE table_67781 (
"Type" text,
"Fleet numbers" text,
"Quantity made" real,
"Manufacturer" text,
"Date made" text,
"Date withdrawn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date made that has an associa... | SELECT "Date made" FROM table_67781 WHERE "Fleet numbers" = '4' |
### Instruction:
CREATE TABLE table_15494 (
"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.
-- How many matches have Rhymney RFC played?
... | SELECT "Played" FROM table_15494 WHERE "Club" = 'rhymney rfc' |
### Instruction:
CREATE TABLE table_30434 (
"Club name" text,
"Name of team song" text,
"Basis for team song" text,
"First used as team song" text,
"Writer/composer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many team songs does fremantle h... | SELECT COUNT("Basis for team song") FROM table_30434 WHERE "Club name" = 'Fremantle' |
### Instruction:
CREATE TABLE table_72400 (
"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.
-- How many times was incumbent Noble Jones Gregory first ... | SELECT COUNT("First elected") FROM table_72400 WHERE "Incumbent" = 'Noble Jones Gregory' |
### Instruction:
CREATE TABLE table_47626 (
"Year" real,
"Winner" text,
"Runners-up" text,
"Aggregate" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd leg for 2004?
### Response:
| SELECT "2nd leg" FROM table_47626 WHERE "Year" = '2004' |
### Instruction:
CREATE TABLE table_66124 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text,
"Primary Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school is located in t... | SELECT "School" FROM table_66124 WHERE "Location" = 'trafalgar' |
### Instruction:
CREATE TABLE table_38959 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have Touchdowns of 1, and a Field goals smaller than 0?
###... | SELECT AVG("Points") FROM table_38959 WHERE "Touchdowns" = '1' AND "Field goals" < '0' |
### Instruction:
CREATE TABLE table_405 (
"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.
-- What number (#) is associated wit... | SELECT COUNT("#") FROM table_405 WHERE "Name" = 'Ron Baxter' |
### Instruction:
CREATE TABLE table_name_93 (
opponent_in_the_final VARCHAR,
tournament VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994?
### Response:
| SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = "taipei, taiwan" AND date = "november 14, 1994" |
### Instruction:
CREATE TABLE table_55223 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the constellation for open clus... | SELECT "Constellation" FROM table_55223 WHERE "Object type" = 'open cluster' |
### Instruction:
CREATE TABLE table_52582 (
"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.
-- Name the date that had a score of 7 6(4), 6 1
### Response:
| SELECT "Date" FROM table_52582 WHERE "Score" = '7–6(4), 6–1' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.