instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_77300 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent with a record of 14-4-1 and ha... | SELECT "Opponent" FROM table_77300 WHERE "Round" = '1' AND "Record" = '14-4-1' |
### Instruction:
CREATE TABLE table_203_667 (
id number,
"year" number,
"driver" text,
"co-driver" text,
"car" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver won after ponsiano lwakataka ?
### Response:
| SELECT "driver" FROM table_203_667 WHERE "year" > (SELECT "year" FROM table_203_667 WHERE "driver" = 'ponsiano lwakataka') ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name |
### Instruction:
CREATE TABLE department (
name VARCHAR,
num_employees VARCHAR,
department_id VARCHAR
)
CREATE TABLE management (
department_id VARCHAR,
temporary_acting VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name and number of ... | SELECT T1.name, T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes' |
### Instruction:
CREATE TABLE table_63820 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins had a podium larger ... | SELECT COUNT("Wins") FROM table_63820 WHERE "Season" > '2008' AND "Podiums" > '6' |
### Instruction:
CREATE TABLE table_52627 (
"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 is the average crowd size ... | SELECT AVG("Crowd") FROM table_52627 WHERE "Home team score" = '8.11 (59)' |
### Instruction:
CREATE TABLE table_203_814 (
id number,
"season" number,
"head coach" text,
"overall record" text,
"conference record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many more seasons was marty brill head coach compared to tom c... | SELECT (SELECT COUNT("season") FROM table_203_814 WHERE "head coach" = 'marty brill') - (SELECT COUNT("season") FROM table_203_814 WHERE "head coach" = 'tom conley') |
### Instruction:
CREATE TABLE table_11325 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top-25 of the U.S. open, which has less than 7 events... | SELECT SUM("Top-25") FROM table_11325 WHERE "Tournament" = 'u.s. open' AND "Events" < '7' |
### Instruction:
CREATE TABLE table_4532 (
"Year" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Home team has a Year of 2002/03, and a Venue of tahnoun bin mohamed stadium?
###... | SELECT "Home team" FROM table_4532 WHERE "Year" = '2002/03' AND "Venue" = 'tahnoun bin mohamed stadium' |
### Instruction:
CREATE TABLE table_41477 (
"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 Postion, when the Club/Team is Warroad Lakers,... | SELECT "Position" FROM table_41477 WHERE "Club/Team" = 'warroad lakers' AND "Name" = 'roger christian' |
### Instruction:
CREATE TABLE table_29942 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_29942 WHERE "High points" = 'Roy Hibbert (27)' |
### Instruction:
CREATE TABLE table_37279 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time did the game featuring the Detroit L... | SELECT "Time ( ET )" FROM table_37279 WHERE "Location" = 'three rivers stadium' AND "Opponent" = 'detroit lions' |
### Instruction:
CREATE TABLE table_67204 (
"Year" real,
"Denomination" text,
"Reverse" text,
"Weight" text,
"Diameter" text,
"Fineness" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fineness of the 2008 chinese c... | SELECT "Fineness" FROM table_67204 WHERE "Year" = '2008' AND "Reverse" = 'chinese cuju sport' |
### Instruction:
CREATE TABLE table_50630 (
"Season" text,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Podiums" FROM table_50630 WHERE "Poles" = '3' |
### Instruction:
CREATE TABLE table_68504 (
"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 at a game that had a score of 5-4 and ... | SELECT MIN("Attendance") FROM table_68504 WHERE "Score" = '5-4' AND "Loss" = 'williams (2-4)' |
### Instruction:
CREATE TABLE table_26172 (
"Warship" text,
"tons ( L.ton )" real,
"Horse- power" real,
"Speed ( Knots )" text,
"Armour (Inch)" text,
"Main Artillery" text,
"Built Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many... | SELECT COUNT("Horse- power") FROM table_26172 WHERE "Warship" = 'Cochrane' |
### Instruction:
CREATE TABLE table_42302 (
"Aces" real,
"Player" text,
"Opponent" text,
"Year" real,
"Event" text,
"Sets" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the earliest year that the wimbledon opponent was... | SELECT MIN("Year") FROM table_42302 WHERE "Event" = 'wimbledon' AND "Opponent" = 'zheng jie' |
### Instruction:
CREATE TABLE table_16786 (
"Series #" real,
"Episode title" text,
"Writer(s)" text,
"Director" text,
"U.S. viewers (millions)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air dat... | SELECT "Original air date" FROM table_16786 WHERE "U.S. viewers (millions)" = '12.81' |
### Instruction:
CREATE TABLE table_name_12 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average 5432 value with a 11502 larger than 1163, a 15122 less than 15122, and a 3620 less than 624?
### Response:
| SELECT AVG(5432) FROM table_name_12 WHERE 11502 > 1163 AND 15122 < 15122 AND 3620 < 624 |
### Instruction:
CREATE TABLE table_50678 (
"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 was the total for the golfer who had a To par of +10 and yea... | SELECT SUM("Total") FROM table_50678 WHERE "To par" = '+10' AND "Year(s) won" = '1971' |
### Instruction:
CREATE TABLE table_203_271 (
id number,
"date" text,
"series" text,
"circuit" text,
"city / state" text,
"winner" text,
"team" text,
"car" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the da... | SELECT "date" FROM table_203_271 WHERE "winner" = 'glenn seton' ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_28549 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least series number written by ... | SELECT MIN("Series #") FROM table_28549 WHERE "Written by" = 'Brenda Hampton' AND "Directed by" = 'Burt Brinckerhoff' |
### Instruction:
CREATE TABLE table_35965 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest game in November with more than 22 Games and Tor... | SELECT MIN("November") FROM table_35965 WHERE "Game" > '22' AND "Opponent" = 'toronto maple leafs' |
### Instruction:
CREATE TABLE table_30400 (
"# (season #)" text,
"No. (episode #)" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the ... | SELECT "Original air date" FROM table_30400 WHERE "Prod. code" = '2ACX12' |
### Instruction:
CREATE TABLE table_32867 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of games played for the team with 12 ... | SELECT AVG("Played") FROM table_32867 WHERE "Points" = '12' AND "Against" < '52' |
### Instruction:
CREATE TABLE table_37318 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Tries against" FROM table_37318 WHERE "Club" = 'llanishen rfc' |
### Instruction:
CREATE TABLE table_204_71 (
id number,
"rank" number,
"heat" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many women from england were ranked in top 14 in t... | SELECT COUNT("name") FROM table_204_71 WHERE "nationality" = 'england' AND "rank" <= 14 |
### Instruction:
CREATE TABLE table_11144 (
"Season" real,
"Episodes" real,
"Originally aired" text,
"Season Premiere" text,
"Season Finale" text,
"DVD release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which series has a season premie... | SELECT MAX("Episodes") FROM table_11144 WHERE "Season Premiere" = 'january 3, 2007' |
### Instruction:
CREATE TABLE table_10248 (
"Sun Belt" text,
"Lost" real,
"Tied" real,
"Pct." real,
"Years" real,
"Total Games" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low loss total for teams with under 3 years and a less tha... | SELECT MIN("Lost") FROM table_10248 WHERE "Pct." < '0.625' AND "Years" < '3' |
### Instruction:
CREATE TABLE table_29976 (
"Season" real,
"Driver" text,
"Owner" text,
"Number" text,
"Make" text,
"Starts" text,
"Wins" real,
"Top Tens" real,
"Poles" real,
"Points (margin)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Poles" FROM table_29976 WHERE "Season" = '2006' |
### Instruction:
CREATE TABLE table_203_405 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the difference between the attendance in week two and the... | SELECT (SELECT "attendance" FROM table_203_405 WHERE "week" = 2) - (SELECT "attendance" FROM table_203_405 WHERE "week" = 1) |
### Instruction:
CREATE TABLE table_75547 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Week for the game at three... | SELECT AVG("Week") FROM table_75547 WHERE "Location" = 'three rivers stadium' AND "Record" = '3–2' |
### Instruction:
CREATE TABLE table_70401 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week with a date of October 9, 1983, and attendance smaller than 40,492?
... | SELECT COUNT("Week") FROM table_70401 WHERE "Date" = 'october 9, 1983' AND "Attendance" < '40,492' |
### Instruction:
CREATE TABLE table_55060 (
"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 is the away team score whe... | SELECT "Away team score" FROM table_55060 WHERE "Home team score" = '11.11 (77)' |
### Instruction:
CREATE TABLE table_63469 (
"Draw" real,
"Language" text,
"Artist" text,
"English translation" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Artist has a Draw smaller than 14, and Points less t... | SELECT "Artist" FROM table_63469 WHERE "Draw" < '14' AND "Points" < '73' AND "Language" = 'turkish' |
### Instruction:
CREATE TABLE table_25845 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What seasons in ser... | SELECT COUNT("Season #") FROM table_25845 WHERE "Written by" = 'David E. Kelley' AND "Series #" = '7' |
### Instruction:
CREATE TABLE table_44141 (
"Season" real,
"Wins" real,
"Poles" real,
"Podiums" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Poles, when Wins is 0, when Position is 'nc', and when Season is befo... | SELECT AVG("Poles") FROM table_44141 WHERE "Wins" = '0' AND "Position" = 'nc' AND "Season" < '2004' |
### Instruction:
CREATE TABLE table_482 (
"Season #" real,
"Series #" real,
"Title" text,
"Canadian airdate" text,
"U.S. airdate" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the Canadian air dates where th... | SELECT "Canadian airdate" FROM table_482 WHERE "U.S. airdate" = 'May 1, 2009' |
### Instruction:
CREATE TABLE table_9697 (
"Scorer" text,
"Club" text,
"League goals" text,
"FA Cup goals" real,
"League Cup goals" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which League Cup goals have a Scorer of ken houghton... | SELECT MAX("League Cup goals") FROM table_9697 WHERE "Scorer" = 'ken houghton' AND "FA Cup goals" < '0' |
### Instruction:
CREATE TABLE table_25430 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What championship had a final score o... | SELECT "Championship" FROM table_25430 WHERE "Score in the final" = '6–4, 6–2, 6–2' |
### Instruction:
CREATE TABLE table_77532 (
"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.
-- Who did the Jets play in their pre-week 9 game at the Robert F. K... | SELECT "Opponent" FROM table_77532 WHERE "Week" < '9' AND "Game site" = 'robert f. kennedy memorial stadium' |
### Instruction:
CREATE TABLE table_204_596 (
id number,
"year" number,
"winners" text,
"score" text,
"runners up" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the most wins : shelfield athletic or sutton coldfield town ?... | SELECT "winners" FROM table_204_596 WHERE "winners" IN ('shelfield athletic', 'sutton coldfield town') GROUP BY "winners" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_74045 (
"Team" text,
"Contest and round" text,
"Opponent" text,
"1st leg score*" text,
"2nd leg score**" text,
"Aggregate score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals did each one of th... | SELECT "1st leg score*" FROM table_74045 WHERE "Opponent" = 'Trabzonspor' |
### Instruction:
CREATE TABLE table_204_579 (
id number,
"code" text,
"district" text,
"headquarters" text,
"population (as of 2011)" number,
"area (km2)" number,
"density (/km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which headqu... | SELECT "headquarters" FROM table_204_579 WHERE "density (/km2)" = 202 |
### Instruction:
CREATE TABLE table_27335 (
"2013/14" real,
"2012/13" real,
"2011/12" real,
"2010/11" real,
"Institute" text,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of schools for 1011/12 is 26
### Response:
| SELECT COUNT("Institute") FROM table_27335 WHERE "2011/12" = '26' |
### Instruction:
CREATE TABLE table_17750 (
"Pos" real,
"Manufacturer" text,
"Seasons" text,
"Starts" real,
"Wins" real,
"Sole supplier" real,
"First win" text,
"Last win" text,
"Drivers" real,
"Constr." real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "First win" FROM table_17750 WHERE "Pos" = '6' |
### Instruction:
CREATE TABLE table_55409 (
"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 did the team score when pl... | SELECT "Home team score" FROM table_55409 WHERE "Away team score" = '13.8 (86)' |
### Instruction:
CREATE TABLE table_20962 (
"Solution" text,
"Other Name" text,
"[Na + ](mmol/L)" real,
"[Cl - ](mmol/L)" real,
"[Glucose](mmol/L)" real,
"[Glucose](mg/dl)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the other name where... | SELECT "Other Name" FROM table_20962 WHERE "[Na + ](mmol/L)" = '77' |
### Instruction:
CREATE TABLE table_19952 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was leather introd... | SELECT COUNT("Segment C") FROM table_19952 WHERE "Segment D" = 'Pedal Steel Guitars' |
### Instruction:
CREATE TABLE table_train_103 (
"id" int,
"systolic_blood_pressure_sbp" int,
"epilepsy" bool,
"diastolic_blood_pressure_dbp" int,
"heart_rate" int,
"seizure_disorder" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT * FROM table_train_103 WHERE age >= 65 |
### Instruction:
CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
)
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
... | SELECT Type, COUNT(*) FROM artwork GROUP BY Type |
### Instruction:
CREATE TABLE table_66010 (
"Ship" text,
"Year" real,
"Dates" text,
"Line" text,
"From" text,
"Distance" text,
"Days, hours, minutes" text,
"Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the distance for 5... | SELECT "Distance" FROM table_66010 WHERE "Days, hours, minutes" = '5 d, 23 h, 7 m' |
### Instruction:
CREATE TABLE table_63144 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" real,
"Issue price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest mintage from Dora de P dery-Hunt, and the year was before 2002?
#... | SELECT MIN("Mintage") FROM table_63144 WHERE "Artist" = 'dora de pédery-hunt' AND "Year" < '2002' |
### Instruction:
CREATE TABLE table_71193 (
"Player" text,
"Position" text,
"Previous Club" text,
"Apps" real,
"Tries" real,
"Goals" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With 0 Goals and less than 1 Tries, what is Ma... | SELECT "Position" FROM table_71193 WHERE "Goals" = '0' AND "Tries" < '1' AND "Player" = 'matt james' |
### Instruction:
CREATE TABLE table_75818 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Location Attendance" FROM table_75818 WHERE "Record" = '21–22' |
### Instruction:
CREATE TABLE table_27285 (
"Model" text,
"Power" text,
"Torque" text,
"Gearbox" text,
"Weight" text,
"Seating" text,
"Brakes" text,
"Wheels" text,
"Tyres" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What brakes fo... | SELECT "Brakes" FROM table_27285 WHERE "Gearbox" = '4-speed automatic' |
### Instruction:
CREATE TABLE table_66822 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of frequency Mhz for when it has ERP W of 1 and... | SELECT COUNT("Frequency MHz") FROM table_66822 WHERE "ERP W" = '1' AND "Call sign" = 'w215bj' |
### Instruction:
CREATE TABLE table_34207 (
"Year" text,
"Flagship Station" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Studio host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Studio host of john ryder, and a Year of 2007-08 had wha... | SELECT "Play-by-play" FROM table_34207 WHERE "Studio host" = 'john ryder' AND "Year" = '2007-08' |
### Instruction:
CREATE TABLE table_204_399 (
id number,
"outcome" text,
"no." number,
"year" number,
"championship" text,
"opponent in the final" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was stephen hendry 's first ... | SELECT "year" FROM table_204_399 WHERE "championship" = 'uk championship' AND "outcome" = 'winner' ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE table_638 (
"W.H. Archer" text,
"J.E. Armstrong" text,
"H.L. Birkett" text,
"F.A. Brill" text,
"H.T. Brewer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is h.t. brewer when j.e. armstrong is a.j. wilson?
### Re... | SELECT "H.T. Brewer" FROM table_638 WHERE "J.E. Armstrong" = 'A.J. Wilson' |
### Instruction:
CREATE TABLE table_name_51 (
pct INTEGER,
co_champions VARCHAR,
state_champions VARCHAR,
mrc_championships VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Pct value when state champions is less than 1, MRC Champion... | SELECT AVG(pct) FROM table_name_51 WHERE state_champions < 1 AND mrc_championships = 10 AND co_champions > 4 |
### Instruction:
CREATE TABLE table_70820 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Losing BP of Newport Saracens RFC and has a Lost of 19.
### R... | SELECT "Losing BP" FROM table_70820 WHERE "Lost" = '19' AND "Club" = 'newport saracens rfc' |
### Instruction:
CREATE TABLE table_30534 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who direct... | SELECT "Directed by" FROM table_30534 WHERE "U.S. viewers (million)" = '2.01' |
### Instruction:
CREATE TABLE table_369 (
"Date of Issue" text,
"Theme" text,
"Denomination" text,
"Design" text,
"Illustration" text,
"Printing Process" text,
"Paper Type" text,
"First Day Cover Cancellation" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT COUNT("Design") FROM table_369 WHERE "Theme" = 'XII Summit de la Francophonie' |
### Instruction:
CREATE TABLE table_32906 (
"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 was the date of the game w... | SELECT "Date" FROM table_32906 WHERE "Home team score" = '17.14 (116)' |
### Instruction:
CREATE TABLE table_22903 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MAX("#") FROM table_22903 WHERE "U.S. viewers (million)" = '1.87' |
### Instruction:
CREATE TABLE table_39208 (
"Isotope" text,
"Half-life" text,
"Decay mode" text,
"Discovery year" text,
"Reaction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the decay mode of the 265m hs isotope discovered in 1984?
###... | SELECT "Decay mode" FROM table_39208 WHERE "Discovery year" = '1984' AND "Isotope" = '265m hs' |
### Instruction:
CREATE TABLE table_41018 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tries for has a Tea... | SELECT SUM("Tries for") FROM table_41018 WHERE "Team" = 'neath' AND "Points against" > '109' |
### Instruction:
CREATE TABLE table_49860 (
"Province" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Shot Pct., when... | SELECT MIN("Shot Pct.") FROM table_49860 WHERE "Blank Ends" > '6' |
### Instruction:
CREATE TABLE table_69260 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer... | SELECT MIN("Gold") FROM table_69260 WHERE "Silver" > '11' AND "Rank" = '1' AND "Bronze" < '7' |
### Instruction:
CREATE TABLE table_29442 (
"Episode" text,
"Date" text,
"Official ITV rating (millions)" text,
"Weekly rank" real,
"Share (%)" text,
"Official ITV HD rating (millions)" text,
"Total ITV viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Date" FROM table_29442 WHERE "Weekly rank" = '12' |
### Instruction:
CREATE TABLE table_29650 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Podiums" real,
"F/Laps" real,
"Points" real,
"Final Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT MAX("Poles") FROM table_29650 WHERE "Podiums" = '4' |
### Instruction:
CREATE TABLE table_57414 (
"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.
-- Which venue had an away team sc... | SELECT "Venue" FROM table_57414 WHERE "Away team score" = '16.12 (108)' |
### Instruction:
CREATE TABLE table_56333 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losses occurred with less than 8... | SELECT COUNT("Losses") FROM table_56333 WHERE "Games Played" < '8' AND "Wins" < '3' |
### Instruction:
CREATE TABLE table_203_89 (
id number,
"#" number,
"name\n(birth-death)" text,
"took office" text,
"left office" text,
"monarch" text,
"prime minister" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many governors did th... | SELECT COUNT("name\n(birth-death)") FROM table_203_89 WHERE "monarch" = 'george v' |
### Instruction:
CREATE TABLE table_58126 (
"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.
-- How many people were in the cro... | SELECT "Crowd" FROM table_58126 WHERE "Home team score" = '10.17 (77)' |
### Instruction:
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following question... | SELECT pname FROM player WHERE hs BETWEEN 500 AND 1500 |
### Instruction:
CREATE TABLE table_7050 (
"English country name" text,
"Arabic romanised country name" text,
"Arabic country name" text,
"English capital name" text,
"Arabic romanised capital name" text,
"Arabic capital name" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Arabic country name" FROM table_7050 WHERE "English capital name" = 'moroni' |
### Instruction:
CREATE TABLE table_55166 (
"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 is the score of the away t... | SELECT "Away team score" FROM table_55166 WHERE "Home team score" = '14.8 (92)' |
### Instruction:
CREATE TABLE table_16825 (
"Model name" text,
"Power (ps)" real,
"Torque (Nm@rpm)" text,
"Displacement (cm\u00b3)" real,
"Engine code" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the torque of the engine ... | SELECT "Torque (Nm@rpm)" FROM table_16825 WHERE "Engine code" = 'D5244 T5' |
### Instruction:
CREATE TABLE table_53394 (
"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 is the home team score whe... | SELECT "Home team score" FROM table_53394 WHERE "Away team score" = '13.12 (90)' |
### Instruction:
CREATE TABLE table_name_27 (
year_of_most_recent_appearance INTEGER,
year_of_first_appearance VARCHAR,
corps_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year of the most recent appearance of the Boston Crusade... | SELECT AVG(year_of_most_recent_appearance) FROM table_name_27 WHERE year_of_first_appearance > 1976 AND corps_name = "boston crusaders" |
### Instruction:
CREATE TABLE table_48481 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team 1 has a 2nd round 0 - 1, and a team 2 rc lens (d1)?
### Response:
| SELECT "Team 1" FROM table_48481 WHERE "2nd round" = '0 - 1' AND "Team 2" = 'rc lens (d1)' |
### Instruction:
CREATE TABLE table_34803 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament has a Winning score of 14 (65-69-72-68=274)?
##... | SELECT "Tournament" FROM table_34803 WHERE "Winning score" = '−14 (65-69-72-68=274)' |
### Instruction:
CREATE TABLE table_6299 (
"Player" text,
"Sacks" real,
"INT'S" real,
"Yards" real,
"Average" real,
"Long" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Randy Scott's lowest yards when there are 0 INTs and more than 3 sa... | SELECT MIN("Yards") FROM table_6299 WHERE "INT'S" = '0' AND "Player" = 'randy scott' AND "Sacks" > '3' |
### Instruction:
CREATE TABLE table_32067 (
"Place" real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average place for ties less than 1 and losess more than 3 with point... | SELECT AVG("Place") FROM table_32067 WHERE "Ties" < '1' AND "Points" = '6 qc' AND "Losses" > '3' |
### Instruction:
CREATE TABLE table_62131 (
"Manager" text,
"Mexico career" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Win %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highes win % that manager juan carlos ch vez's team ha... | SELECT MAX("Win %") FROM table_62131 WHERE "Manager" = 'juan carlos chávez' AND "Lost" < '4' |
### Instruction:
CREATE TABLE table_71102 (
"State" text,
"Preliminaries" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Preliminary score of a contestant... | SELECT MIN("Preliminaries") FROM table_71102 WHERE "Evening Gown" = '8.472' |
### Instruction:
CREATE TABLE table_18773 (
"Serial & Branch" real,
"Seaman" text,
"Mechanical" text,
"Secretariat" text,
"Supply" text,
"Electrical" text,
"Radio Electrical" text,
"Regulating" text,
"Medical" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Electrical" FROM table_18773 WHERE "Secretariat" = 'PO(W)' |
### Instruction:
CREATE TABLE table_29596 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT MAX("Attendance") FROM table_29596 WHERE "Score" = '6-4' |
### Instruction:
CREATE TABLE table_11824 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many yards for the RB with over 4 carries, 2 TDs, and a long greater than 8... | SELECT COUNT("Yards") FROM table_11824 WHERE "Car." > '4' AND "TD's" = '2' AND "Long" > '8' |
### Instruction:
CREATE TABLE table_51549 (
"5:00" text,
"6:00" text,
"7:00" text,
"8:00" text,
"10:00" text,
"11:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 11:00 with a 5:00 with monster knockouts?
### Response:
| SELECT "11:00" FROM table_51549 WHERE "5:00" = 'monster knockouts' |
### Instruction:
CREATE TABLE table_32069 (
"Place" real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of place with ties larger than 0 and point sof 7 qc and losses m... | SELECT SUM("Place") FROM table_32069 WHERE "Ties" > '0' AND "Points" = '7 qc' AND "Losses" > '2' |
### Instruction:
CREATE TABLE table_201_10 (
id number,
"#" number,
"name" text,
"office" text,
"political party" text,
"occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many conservative party mayors were elected after peder kalve... | SELECT COUNT("name") FROM table_201_10 WHERE "political party" = 'conservative party' AND "office" > (SELECT "office" FROM table_201_10 WHERE "name" = 'peder kalve') |
### Instruction:
CREATE TABLE table_22782 (
"Name" text,
"Home or representative town or province" text,
"Age" real,
"Edition" text,
"Total days in PBB House" real,
"Duration" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whe... | SELECT COUNT("Name") FROM table_22782 WHERE "Home or representative town or province" = 'Guiguinto, Bulacan' |
### Instruction:
CREATE TABLE table_7090 (
"Episode" real,
"Title" text,
"Story" text,
"Adapted by" text,
"Director" text,
"Airdate" text,
"Exists?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Adapted by when there is a yes fo... | SELECT "Adapted by" FROM table_7090 WHERE "Exists?" = 'yes' AND "Episode" = '101' |
### Instruction:
CREATE TABLE table_24413 (
"Satellite" text,
"Launch date (UTC)" text,
"Decay" text,
"Mass(kg)" text,
"Diameter(m)" text,
"NSSDC ID" text,
"Nation" text,
"Usage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "NSSDC ID" FROM table_24413 WHERE "Satellite" = 'Echo 1' |
### Instruction:
CREATE TABLE table_204_561 (
id number,
"fence" number,
"name" text,
"jockey" text,
"age" number,
"handicap (st-lb)" text,
"starting price" text,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number o... | SELECT COUNT(*) FROM table_204_561 WHERE "handicap (st-lb)" = '10-0' |
### Instruction:
CREATE TABLE table_name_50 (
broadcasts__tv__1 VARCHAR,
aired_in_japan_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Broadcasts (TV) 1, when Aired in Japan 3 is '5 January 2003 to 30 March 2003'?
### Response... | SELECT COUNT(broadcasts__tv__1) FROM table_name_50 WHERE aired_in_japan_3 = "5 january 2003 to 30 march 2003" |
### Instruction:
CREATE TABLE table_50337 (
"Team" text,
"Winners" real,
"Runners-Up" real,
"Years Won" text,
"Years Runner-Up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there are more than 1 winners and the team playing is pachuca, what's... | SELECT MIN("Runners-Up") FROM table_50337 WHERE "Team" = 'pachuca' AND "Winners" > '1' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.