instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_70918 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With less than 7 Silver medals, how many Gold medals did Canada receive?
... | SELECT MAX("Gold") FROM table_70918 WHERE "Nation" = 'canada' AND "Silver" < '7' |
### Instruction:
CREATE TABLE table_28530 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points Classification" text,
"Mountains Classification" text,
"Sprints Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Sprints Classification" FROM table_28530 WHERE "General classification" = 'Chris Horner' |
### Instruction:
CREATE TABLE table_train_187 (
"id" int,
"pregnancy_or_lactation" bool,
"renal_disease" bool,
"diabetic" string,
"liver_disease" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- pregnant or planning to become pregna... | SELECT * FROM table_train_187 WHERE pregnancy_or_lactation = 1 |
### Instruction:
CREATE TABLE table_204_511 (
id number,
"number" number,
"driver" text,
"entrant" text,
"chassis" text,
"engine" text,
"tyre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last driver to finish driving a jaguar ... | SELECT "driver" FROM table_204_511 WHERE "engine" = 'jaguar' ORDER BY "number" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_11971 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Partially deleted" text,
"Deleted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which site has the CERCLIS ID fld004092532?
### Response:
| SELECT "Name" FROM table_11971 WHERE "CERCLIS ID" = 'fld004092532' |
### Instruction:
CREATE TABLE table_60856 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank was the country with no bronze but at least 1 silver medals?
##... | SELECT AVG("Rank") FROM table_60856 WHERE "Bronze" < '1' AND "Silver" > '1' |
### Instruction:
CREATE TABLE table_56035 (
"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 crowd size when ge... | SELECT COUNT("Crowd") FROM table_56035 WHERE "Home team" = 'geelong' |
### Instruction:
CREATE TABLE table_38727 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a time of 1:50?... | SELECT "Opponent" FROM table_38727 WHERE "Time" = '1:50' |
### Instruction:
CREATE TABLE table_30631 (
"Category" text,
"Player" text,
"Team" text,
"Games played" real,
"Totals" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many items appear in the average column when the totals wer... | SELECT COUNT("Average") FROM table_30631 WHERE "Totals" = '105-161' |
### Instruction:
CREATE TABLE table_60572 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party is the person who was first elected in 2000 and was re-elected?
... | SELECT "Party" FROM table_60572 WHERE "Results" = 're-elected' AND "First elected" = '2000' |
### Instruction:
CREATE TABLE table_24070 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Sun Devils points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many opponents led to an exactly 7-... | SELECT COUNT("Opponent") FROM table_24070 WHERE "Record" = '7-0' |
### Instruction:
CREATE TABLE table_24905 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which outgoing manager... | SELECT "Outgoing manager" FROM table_24905 WHERE "Replaced by" = 'Jafar Fatahi' |
### Instruction:
CREATE TABLE table_79599 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time in a heat smaller than 5, in Lane 5, for Vietnam?
### Response:
| SELECT "Time" FROM table_79599 WHERE "Heat" < '5' AND "Lane" = '5' AND "Nationality" = 'vietnam' |
### Instruction:
CREATE TABLE table_42631 (
"Rank" real,
"Song title" text,
"Composer(s)" text,
"Performer(s)" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who sang the song composed by Mariah Carey and Walter Afanasieff?
### Respon... | SELECT "Performer(s)" FROM table_42631 WHERE "Composer(s)" = 'mariah carey and walter afanasieff' |
### Instruction:
CREATE TABLE table_33151 (
"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 listed crowd at jun... | SELECT "Crowd" FROM table_33151 WHERE "Venue" = 'junction oval' |
### Instruction:
CREATE TABLE Accounts (
customer_id VARCHAR
)
CREATE TABLE Customers (
customer_first_name VARCHAR,
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show first name and id for all customers with at least 2 accounts.
### Resp... | SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 |
### Instruction:
CREATE TABLE table_45748 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when the visitor was Cl... | SELECT "Record" FROM table_45748 WHERE "Visitor" = 'cleveland' AND "Home" = 'dallas' |
### Instruction:
CREATE TABLE table_20217 (
"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.
-- Who was the interview subject when t... | SELECT COUNT("Interview subject") FROM table_20217 WHERE "Centerfold model" = 'Sherry Arnett' |
### Instruction:
CREATE TABLE table_24502 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people vacated to successor Dave E. Satterfield,... | SELECT COUNT("Vacator") FROM table_24502 WHERE "Successor" = 'Dave E. Satterfield, Jr. (D)' |
### Instruction:
CREATE TABLE table_22953 (
"Name" text,
"Date of construction" text,
"Builder" text,
"Date of destruction" text,
"Cause of destruction" text,
"Modern location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How was the Temple of... | SELECT "Cause of destruction" FROM table_22953 WHERE "Name" = 'Temple of Artemis at Ephesus' |
### Instruction:
CREATE TABLE table_29758 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_29758 WHERE "Game" = '3' |
### Instruction:
CREATE TABLE table_203_652 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what type of competition was pl... | SELECT "competition" FROM table_203_652 GROUP BY "competition" ORDER BY COUNT(*) LIMIT 1 |
### 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 ppos FROM tryout GROUP BY ppos ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_29195 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode with produc... | SELECT "Directed by" FROM table_29195 WHERE "Production code" = '693-004' |
### Instruction:
CREATE TABLE table_72040 (
"Code Name" text,
"Function (figure)" text,
"Real Name" text,
"Birthplace" text,
"Serial number" text,
"Primary military speciality" text,
"Secondary military speciality" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Code Name" FROM table_72040 WHERE "Birthplace" = 'liverpool' |
### Instruction:
CREATE TABLE table_1066 (
"Pos" real,
"Member Association" text,
"Points (total 500)" real,
"Clubs" real,
"Group stage" real,
"Play-off" real,
"AFC Cup" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the group stage has... | SELECT MAX("Play-off") FROM table_1066 WHERE "Group stage" = '4' |
### Instruction:
CREATE TABLE table_32578 (
"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.
-- Who was the home team when Carl... | SELECT "Home team" FROM table_32578 WHERE "Away team" = 'carlton' |
### Instruction:
CREATE TABLE table_15782 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game held when the attendance wa... | SELECT "Game site" FROM table_15782 WHERE "Attendance" = '56,770' |
### Instruction:
CREATE TABLE table_50669 (
"Character" text,
"Code" text,
"Name" text,
"Version" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give the sum of the version with the coptic small letter sampi, and a year after 2005.
##... | SELECT SUM("Version") FROM table_50669 WHERE "Name" = 'coptic small letter sampi' AND "Year" > '2005' |
### Instruction:
CREATE TABLE table_46734 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Round, when College is 'Washington State', and when Pick is less th... | SELECT MIN("Round") FROM table_46734 WHERE "College" = 'washington state' AND "Pick" < '48' |
### Instruction:
CREATE TABLE table_53391 (
"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 for Collingwo... | SELECT "Home team score" FROM table_53391 WHERE "Home team" = 'collingwood' |
### Instruction:
CREATE TABLE table_10639 (
"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 largest crowd when... | SELECT MAX("Crowd") FROM table_10639 WHERE "Away team" = 'melbourne' |
### Instruction:
CREATE TABLE table_6726 (
"Year" real,
"Male" text,
"Female" text,
"Band" text,
"Album" text,
"Pop Act" text,
"Lifetime Achievement Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What band performed when Samantha Mumb... | SELECT "Band" FROM table_6726 WHERE "Female" = 'samantha mumba' |
### Instruction:
CREATE TABLE table_2367 (
"Institution" text,
"Location" text,
"Year Joined" real,
"Affiliation" text,
"Enrollment" real,
"Mascot" text,
"Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the institu... | SELECT "Institution" FROM table_2367 WHERE "Location" = 'Sparta, WI' |
### Instruction:
CREATE TABLE table_9813 (
"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 Player, when Place is 'T5', and when Score is '69-72=141'?
### Response:
| SELECT "Player" FROM table_9813 WHERE "Place" = 't5' AND "Score" = '69-72=141' |
### Instruction:
CREATE TABLE table_27969 (
"Stage" real,
"Winner" text,
"General classification" text,
"Sprint Classification" text,
"Mountains Classification" text,
"Points Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Mountains Classification" FROM table_27969 WHERE "Winner" = 'Borut Božič' |
### Instruction:
CREATE TABLE table_14092 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" text,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Japanese title when the Romaji Title was Atsu-Him... | SELECT "Japanese Title" FROM table_14092 WHERE "Romaji Title" = 'atsu-hime' |
### Instruction:
CREATE TABLE table_31938 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the fewest gold for tanzania with bronze less than 0
### Response:
| SELECT MIN("Gold") FROM table_31938 WHERE "Nation" = 'tanzania' AND "Bronze" < '0' |
### Instruction:
CREATE TABLE table_37374 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text,
"Games\u2191" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of Just... | SELECT COUNT("Number") FROM table_37374 WHERE "Name" = 'justin jeffries' |
### Instruction:
CREATE TABLE table_51841 (
"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.
-- Who was the home team when Fitz... | SELECT "Home team" FROM table_51841 WHERE "Away team" = 'fitzroy' |
### Instruction:
CREATE TABLE table_32808 (
"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.
-- When was the game that was held... | SELECT "Date" FROM table_32808 WHERE "Venue" = 'princes park' |
### Instruction:
CREATE TABLE table_8170 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text,
"Crowd" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total crowd attend... | SELECT SUM("Crowd") FROM table_8170 WHERE "Ground" = 'westpac stadium' |
### Instruction:
CREATE TABLE table_63368 (
"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 was Rosie's winning score on Apr 29, 2001?
### Response:... | SELECT "Winning score" FROM table_63368 WHERE "Date" = 'apr 29, 2001' |
### Instruction:
CREATE TABLE table_27651 (
"Letters" text,
"Organization" text,
"Nickname" text,
"Founding Date" text,
"Founding University" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the founding university is in Washington... | SELECT "Founding Date" FROM table_27651 WHERE "Founding University" = 'Washington, D.C.' |
### Instruction:
CREATE TABLE table_73205 (
"Date" text,
"Presenter" text,
"Guest 1" text,
"Guest 2" text,
"Guest 3" text,
"Guest 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On episodes where guest 1 is Jim White, who was guest 3?
### Re... | SELECT "Guest 3" FROM table_73205 WHERE "Guest 1" = 'Jim White' |
### Instruction:
CREATE TABLE table_17645 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Power (kW)" text,
"Station Type" text,
"Coverage (Transmitter site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ch# of dwlj-tv?
### Re... | SELECT "Ch. #" FROM table_17645 WHERE "Callsign" = 'DWLJ-TV' |
### Instruction:
CREATE TABLE table_203_191 (
id number,
"year" number,
"group" text,
"award" text,
"result" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which was erbedija 's first festival/event where he was nominated but did n... | SELECT "group" FROM table_203_191 WHERE "result" = 'nominated' ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE table_40428 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location when the time... | SELECT "Location" FROM table_40428 WHERE "Time" = '11:55' |
### Instruction:
CREATE TABLE exhibition (
exhibition_id number,
year number,
theme text,
artist_id number,
ticket_price number
)
CREATE TABLE exhibition_record (
exhibition_id number,
date text,
attendance number
)
CREATE TABLE artist (
artist_id number,
name text,
country... | SELECT COUNT(*) FROM artist |
### Instruction:
CREATE TABLE table_32580 (
"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 Geelong team ... | SELECT "Date" FROM table_32580 WHERE "Home team" = 'geelong' |
### Instruction:
CREATE TABLE table_204_317 (
id number,
"metropolitan area" text,
"country" text,
"rank" number,
"forstall\n2003 est." number,
"official population" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what city w... | SELECT "metropolitan area" FROM table_204_317 WHERE "rank" = 1 |
### Instruction:
CREATE TABLE table_24333 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the coach for may 20, 2010
### Response:
| SELECT "Coach" FROM table_24333 WHERE "Premier date" = 'May 20, 2010' |
### Instruction:
CREATE TABLE table_name_67 (
player VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from the United States with a t6 place and a 71-70-76-72=289 score?
### Response:
| SELECT player FROM table_name_67 WHERE country = "united states" AND place = "t6" AND score = 71 - 70 - 76 - 72 = 289 |
### Instruction:
CREATE TABLE table_46574 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?
... | SELECT MIN("Bronze") FROM table_46574 WHERE "Silver" = '9' AND "Total" < '27' |
### Instruction:
CREATE TABLE table_53136 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the engine when ken downing drove an entrant from conn... | SELECT "Engine" FROM table_53136 WHERE "Driver" = 'ken downing' AND "Entrant" = 'connaught engineering' |
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a h... | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender DESC |
### Instruction:
CREATE TABLE table_204_12 (
id number,
"area served" text,
"city of license" text,
"vc" number,
"rf" number,
"callsign" text,
"network" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which area has the larg... | SELECT "area served" FROM table_204_12 GROUP BY "area served" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_87 (
free INTEGER,
athlete VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333?
### Response:
| SELECT MIN(free) FROM table_name_87 WHERE athlete = "apolline dreyfuss & lila meesseman-bakir" AND total > 90.333 |
### Instruction:
CREATE TABLE table_train_168 (
"id" int,
"cholesterol" float,
"hemoglobin_a1c_hba1c" float,
"triglyceride_tg" float,
"fasting_glucose" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- cholesterol < 275
### Response... | SELECT * FROM table_train_168 WHERE cholesterol < 275 |
### Instruction:
CREATE TABLE table_203_308 (
id number,
"athlete" text,
"nation" text,
"olympics" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the most bronze me... | SELECT "athlete" FROM table_203_308 ORDER BY "bronze" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_13149 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the 2nd member of the parliament with alexander st john as the 1st ... | SELECT "2nd member" FROM table_13149 WHERE "1st member" = 'alexander st john' |
### Instruction:
CREATE TABLE table_24381 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number for margin o... | SELECT COUNT("No.") FROM table_24381 WHERE "Margin of victory" = '3 strokes' |
### Instruction:
CREATE TABLE table_32356 (
"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 score of the home ... | SELECT "Home team score" FROM table_32356 WHERE "Home team" = 'carlton' |
### Instruction:
CREATE TABLE table_21390 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What languages were spo... | SELECT "Language(s)" FROM table_21390 WHERE "Film title used in nomination" = 'FireDancer' |
### Instruction:
CREATE TABLE table_15667 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the recipient when the director was Susan ... | SELECT "Recipient" FROM table_15667 WHERE "Director(s)" = 'susan jacobson' |
### Instruction:
CREATE TABLE table_42926 (
"Ecosystem" text,
"Date of issue" text,
"Place of issue" text,
"No. stamps in sheet" real,
"Face Value" text,
"Printer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date were sheets issued in... | SELECT "Date of issue" FROM table_42926 WHERE "Place of issue" = 'tallahassee, florida' |
### Instruction:
CREATE TABLE table_32619 (
"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 attended the ga... | SELECT "Crowd" FROM table_32619 WHERE "Venue" = 'lake oval' |
### Instruction:
CREATE TABLE table_66859 (
"Year" real,
"Date" text,
"Title" text,
"Format(s)" text,
"Award description(s)" text,
"Result(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the results of Format single on March 21?
##... | SELECT "Result(s)" FROM table_66859 WHERE "Format(s)" = 'single' AND "Date" = 'march 21' |
### Instruction:
CREATE TABLE table_name_81 (
lijsttrekker VARCHAR,
cabinet VARCHAR,
fractievoorzitter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Lijsttrekker, when Cabinet is 'Hans Van Mierlo', and when Fractievoorzitter is 'Thom De Graaf'?
... | SELECT lijsttrekker FROM table_name_81 WHERE cabinet = "hans van mierlo" AND fractievoorzitter = "thom de graaf" |
### Instruction:
CREATE TABLE party_events (
member_in_charge_id VARCHAR
)
CREATE TABLE member (
member_name VARCHAR,
member_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of member in charge of greatest number of events?
### Respo... | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_37754 (
"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 for callsign K207BK?
##... | SELECT AVG("ERP W") FROM table_37754 WHERE "Call sign" = 'k207bk' |
### Instruction:
CREATE TABLE table_75537 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position with a round 3 pick for r. jay soward?
### Res... | SELECT "Position" FROM table_75537 WHERE "Round" < '3' AND "Name" = 'r. jay soward' |
### Instruction:
CREATE TABLE table_5427 (
"Locale" 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's Ontario's highest Ends Lost?
... | SELECT MAX("Ends Lost") FROM table_5427 WHERE "Locale" = 'ontario' |
### Instruction:
CREATE TABLE table_58530 (
"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 away team when the... | SELECT "Away team" FROM table_58530 WHERE "Home team" = 'carlton' |
### Instruction:
CREATE TABLE table_4430 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from Canada with a 199 pick?... | SELECT "Player" FROM table_4430 WHERE "Nationality" = 'canada' AND "Pick" = '199' |
### Instruction:
CREATE TABLE table_2405 (
"Episode No." real,
"Series No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Viewers (millions)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many mill... | SELECT "Viewers (millions)" FROM table_2405 WHERE "Episode No." = '20' |
### Instruction:
CREATE TABLE table_76013 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rank's country is the US when the accolade is 40 best albums of the year?
###... | SELECT "Rank" FROM table_76013 WHERE "Country" = 'us' AND "Accolade" = '40 best albums of the year' |
### Instruction:
CREATE TABLE table_55258 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of silver for liechtenstein and bronze more than 4
### Re... | SELECT SUM("Silver") FROM table_55258 WHERE "Nation" = 'liechtenstein' AND "Bronze" > '4' |
### Instruction:
CREATE TABLE table_8332 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The 20th Century Fox film directed by Joel Schumacher grossed how much?
### Response:
| SELECT "Gross" FROM table_8332 WHERE "Studio" = '20th century fox' AND "Director(s)" = 'joel schumacher' |
### Instruction:
CREATE TABLE table_18102 (
"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.
-- How many candidates ran in the election where Wayne Gi... | SELECT COUNT("Candidates") FROM table_18102 WHERE "Incumbent" = 'Wayne Gilchrest' |
### Instruction:
CREATE TABLE table_70645 (
"Player" text,
"Date" text,
"Original Team" text,
"Offer Team" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result that has the New York Rangers as the Offer Team and Adam Grav... | SELECT "Result" FROM table_70645 WHERE "Offer Team" = 'new york rangers' AND "Player" = 'adam graves' |
### Instruction:
CREATE TABLE table_204_125 (
id number,
"state" text,
"type" text,
"name" text,
"title" text,
"royal house" text,
"from" text,
"to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which ruler is not king or marquis ?
##... | SELECT "name" FROM table_204_125 WHERE "title" <> 'king' AND "title" <> 'marquis' |
### Instruction:
CREATE TABLE table_48682 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the event where the oppone... | SELECT "Event" FROM table_48682 WHERE "Opponent" = 'chris barden' |
### Instruction:
CREATE TABLE table_7182 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Content, when Package/Option is sky cinem... | SELECT "Content" FROM table_7182 WHERE "Package/Option" = 'sky cinema' AND "Language" = 'italian originale' |
### Instruction:
CREATE TABLE table_32616 (
"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 away team score at... | SELECT "Away team score" FROM table_32616 WHERE "Venue" = 'windy hill' |
### Instruction:
CREATE TABLE mission (
mission_id number,
ship_id number,
code text,
launched_year number,
location text,
speed_knots number,
fate text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
nationality text,
tonnage number
)
-- Using valid SQLite... | SELECT name FROM ship ORDER BY tonnage |
### Instruction:
CREATE TABLE table_62484 (
"Name" text,
"Score" text,
"Balls" real,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Balls, when Venue is 'Bristol', and when Score is '104*'?
### Response:
| SELECT "Balls" FROM table_62484 WHERE "Venue" = 'bristol' AND "Score" = '104*' |
### Instruction:
CREATE TABLE table_18390 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the incumbent who was first eleccte... | SELECT "Incumbent" FROM table_18390 WHERE "First elected" = '1940' |
### Instruction:
CREATE TABLE table_name_97 (
goals_for INTEGER,
lost VARCHAR,
goals_against VARCHAR,
points_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest goals for less than 63 goals against, more than 65 points 1, and more th... | SELECT MAX(goals_for) FROM table_name_97 WHERE goals_against < 63 AND points_1 > 65 AND lost > 10 |
### Instruction:
CREATE TABLE table_204_853 (
id number,
"pos" number,
"grid" number,
"no." number,
"driver" text,
"team" text,
"manufacturer" text,
"laps" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many dr... | SELECT COUNT("driver") FROM table_204_853 WHERE "pos" > 10 |
### Instruction:
CREATE TABLE table_34216 (
"Player" text,
"Position" text,
"Games started" text,
"Hometown" text,
"Height" text,
"Weight" real,
"Class" text,
"Previous experience" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Player of... | SELECT "Position" FROM table_34216 WHERE "Player" = 'herbert s. graver' |
### Instruction:
CREATE TABLE table_42645 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Winner of the French Polynesia Billabong Pro Event?
#... | SELECT "Winner" FROM table_42645 WHERE "Event" = 'billabong pro' AND "Country" = 'french polynesia' |
### Instruction:
CREATE TABLE table_23248 (
"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.
-- When ellery and frankie are the couple what i... | SELECT MAX("Total") FROM table_23248 WHERE "Couple" = 'Ellery and Frankie' |
### Instruction:
CREATE TABLE table_38520 (
"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.
-- Which Margin of victory has a Runner(s)-up of mark o'meara?
#... | SELECT "Margin of victory" FROM table_38520 WHERE "Runner(s)-up" = 'mark o''meara' |
### Instruction:
CREATE TABLE table_train_146 (
"id" int,
"lymphocyte_count" int,
"c_peptide_level" float,
"vitamin_d_deficiency" bool,
"diabetic" string,
"vitamin_d" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- type ii diabe... | SELECT * FROM table_train_146 WHERE diabetic = 'ii' |
### Instruction:
CREATE TABLE table_15658 (
"Team" text,
"Car(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is Austin Dillon's primary sponsor(s)?
### Re... | SELECT "Primary Sponsor(s)" FROM table_15658 WHERE "Driver(s)" = 'austin dillon' |
### Instruction:
CREATE TABLE table_2263152_1 (
release_date VARCHAR,
security_issues VARCHAR,
distribution_mechanism VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the security issues is 99-025 and the distribution mechanism is the Microsoft website,... | SELECT COUNT(release_date) FROM table_2263152_1 WHERE security_issues = "99-025" AND distribution_mechanism = "Microsoft website" |
### Instruction:
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT Name, Seating FROM track WHERE Year_Opened > 2000 |
### Instruction:
CREATE TABLE table_11043 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Marty Riessen played as a partner during a m... | SELECT "Surface" FROM table_11043 WHERE "Partner" = 'marty riessen' |
### Instruction:
CREATE TABLE table_29862 (
"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_29862 WHERE "Game" = '29' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.