instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_3676 (
"Round" real,
"Circuit" text,
"Series" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the seri... | SELECT COUNT("Round") FROM table_3676 WHERE "Series" = 'Italian' AND "Circuit" = 'Valencia' |
### Instruction:
CREATE TABLE table_50586 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the opponent when the year is after 1996 and the outcome... | SELECT "Opponent" FROM table_50586 WHERE "Year" > '1996' AND "Outcome" = 'winner' |
### Instruction:
CREATE TABLE table_39926 (
"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.
-- Who's the Centerfold model with a Pictorials of adrianne cur... | SELECT "Centerfold model" FROM table_39926 WHERE "Pictorials" = 'adrianne curry, girls of tuscany' |
### Instruction:
CREATE TABLE table_55204 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rounds did Roy Salvadori drive for David ... | SELECT "Rounds" FROM table_55204 WHERE "Entrant" = 'david brown corporation' AND "Driver" = 'roy salvadori' |
### Instruction:
CREATE TABLE table_6558 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which District has a First elected of 1856, and an Incumbent of william kellogg... | SELECT "District" FROM table_6558 WHERE "First elected" = '1856' AND "Incumbent" = 'william kellogg' |
### Instruction:
CREATE TABLE table_3276 (
"Edition" real,
"Zone" text,
"Round" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Outcome" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Hanne Skak Jensen's op... | SELECT "Opponent" FROM table_3276 WHERE "Against" = 'Belarus' |
### Instruction:
CREATE TABLE table_203_136 (
id number,
"year" number,
"ibm model number" text,
"name" text,
"processor" text,
"bus" text,
"hd interface" text,
"case" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- whic... | SELECT "ibm model number" FROM table_203_136 WHERE "case" = 'portable' ORDER BY id LIMIT 1 |
### Instruction:
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') |
### Instruction:
CREATE TABLE table_203_657 (
id number,
"call sign" text,
"frequency" text,
"city of license" text,
"licensee" text,
"format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does grand junction or montrose have more stations ?
... | SELECT "city of license" FROM table_203_657 WHERE "city of license" IN ('grand junction', 'montrose') GROUP BY "city of license" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_27473 (
"Team" text,
"Home city" text,
"Home ground" text,
"In Toppserien since" real,
"First appearance" real,
"Seasons" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home ground for the team who... | SELECT "Home ground" FROM table_27473 WHERE "Seasons" = '27' AND "Home city" = 'Trondheim' |
### Instruction:
CREATE TABLE table_36876 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Pick #s have a Name of tory epps, and a Round larger than 8?... | SELECT COUNT("Pick #") FROM table_36876 WHERE "Name" = 'tory epps' AND "Round" > '8' |
### Instruction:
CREATE TABLE table_68457 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface of the match when the score was akgul amanmuradova chuang chia-jung... | SELECT "Surface" FROM table_68457 WHERE "Score" = 'akgul amanmuradova chuang chia-jung' |
### Instruction:
CREATE TABLE table_50897 (
"Round" text,
"St Kilda Saints" text,
"Opposition" text,
"Their Score" text,
"Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most reduced Margin that has a St Kilda Saints of 11.13 (79)... | SELECT MIN("Margin") FROM table_50897 WHERE "St Kilda Saints" = '11.13 (79)' |
### Instruction:
CREATE TABLE table_204_880 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was the venue in athens or beijing associated wit... | SELECT "venue" FROM table_204_880 WHERE "venue" IN ('athens', 'beijing') AND "position" = 31 |
### Instruction:
CREATE TABLE table_51391 (
"Kilometer No. (Rizal Park-basis)" text,
"Kilometer No. (Layac-basis)" text,
"Exit" text,
"Barangay" text,
"Municipality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Barangay has an exit of Sisima... | SELECT "Barangay" FROM table_51391 WHERE "Exit" = 'sisiman toll barrier' |
### Instruction:
CREATE TABLE table_68636 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was marlboro brm's lowest points by using brm p160b?
### Response:
| SELECT MIN("Points") FROM table_68636 WHERE "Entrant" = 'marlboro brm' AND "Chassis" = 'brm p160b' |
### Instruction:
CREATE TABLE tags (
index number,
id number,
tag text
)
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT DISTINCT groupname FROM torrents WHERE totalsnatched > 100 AND releasetype = "album" |
### Instruction:
CREATE TABLE table_203_346 (
id number,
"date" text,
"location" text,
"venue" text,
"opening act" text,
"supporting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did the calgary or the toronto leg take place on august 11 ?
#... | SELECT "location" FROM table_203_346 WHERE "location" IN ('calgary', 'toronto') AND "date" = 8 AND "date" = 11 |
### Instruction:
CREATE TABLE table_36221 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which batter played P and was born 18 April 1984?
### Response:
| SELECT "Bats" FROM table_36221 WHERE "Position" = 'p' AND "D.O.B." = '18 april 1984' |
### Instruction:
CREATE TABLE table_54772 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of PI GP played by Anton Rodin with a Reg GP les... | SELECT COUNT("Pl GP") FROM table_54772 WHERE "Player" = 'anton rodin' AND "Reg GP" < '0' |
### Instruction:
CREATE TABLE table_5440 (
"Driver" text,
"Seasons" text,
"Entries" real,
"3rd places" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of entries that has 9.31% as a percentage with a 3rd pl... | SELECT MIN("Entries") FROM table_5440 WHERE "Percentage" = '9.31%' AND "3rd places" > '23' |
### Instruction:
CREATE TABLE table_203_327 (
id number,
"player" text,
"country" text,
"year(s) won" text,
"r1" number,
"r2" number,
"total" number,
"to par" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long ago was it that don ... | SELECT present_ref - "year(s) won" FROM table_203_327 WHERE "player" = 'don january' |
### Instruction:
CREATE TABLE table_16161 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most cup goals for seasson 1911-12?
### Re... | SELECT MAX("Cup Goals") FROM table_16161 WHERE "Season" = '1911-12' |
### Instruction:
CREATE TABLE table_64133 (
"Rank" text,
"Nation" 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 number of silvers for countries in rank 12 with more tha... | SELECT MIN("Silver") FROM table_64133 WHERE "Rank" = '12' AND "Bronze" > '0' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank |
### Instruction:
CREATE TABLE table_73502 (
"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 "High points" FROM table_73502 WHERE "Date" = 'January 2' |
### Instruction:
CREATE TABLE table_56155 (
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Diff" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the difference for 9 draws and over 18... | SELECT SUM("Diff") FROM table_56155 WHERE "Drawn" = '9' AND "Played" > '18' |
### Instruction:
CREATE TABLE table_32956 (
"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 date of the game wi... | SELECT "Date" FROM table_32956 WHERE "Crowd" > '36,766' |
### Instruction:
CREATE TABLE table_13634 (
"Millewa" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many draws occured with a record of 10 losses, and 6 wins?
### Resp... | SELECT COUNT("Draws") FROM table_13634 WHERE "Losses" = '10' AND "Wins" > '6' |
### Instruction:
CREATE TABLE table_36773 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"Facility ID" real,
"ERP / Power W" real,
"Height m ( ft )" text,
"Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Facility I... | SELECT AVG("Facility ID") FROM table_36773 WHERE "Call sign" = 'wnpr' |
### Instruction:
CREATE TABLE table_34822 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year that has a win less than 1, yamaha as the team, with points greater tha... | SELECT AVG("Year") FROM table_34822 WHERE "Wins" < '1' AND "Team" = 'yamaha' AND "Points" > '2' |
### Instruction:
CREATE TABLE table_26357 (
"Team" text,
"Location" text,
"Home Ground" text,
"First year in Qld Cup" real,
"Last year in Qld Cup" real,
"Qld Cup Premierships" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the QLD Cup Pr... | SELECT "Qld Cup Premierships" FROM table_26357 WHERE "Team" = 'Gold Coast Vikings' |
### Instruction:
CREATE TABLE table_24079 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Golden Bears points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent was playing against the... | SELECT "Opponent" FROM table_24079 WHERE "Golden Bears points" = '3' |
### Instruction:
CREATE TABLE table_203_860 (
id number,
"rank" number,
"city" text,
"population (2011)" number,
"population (2001)" number,
"state/territory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- thanjavur has a population in 2001 of o... | SELECT "population (2001)" FROM table_203_860 WHERE "city" = 'thanjavur' |
### Instruction:
CREATE TABLE table_name_57 (
fa_cup INTEGER,
league VARCHAR,
total VARCHAR,
fa_trophy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of goals scored in the FA Cup among players that have more than 20 total ... | SELECT AVG(fa_cup) FROM table_name_57 WHERE total > 20 AND fa_trophy < 1 AND league < 25 |
### Instruction:
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
-- Using valid SQLite,... | SELECT name FROM mountain WHERE NOT mountain_id IN (SELECT mountain_id FROM climber) |
### Instruction:
CREATE TABLE table_61983 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area of the community with a census ranking of 636 of 5... | SELECT AVG("Area km 2") FROM table_61983 WHERE "Census Ranking" = '636 of 5,008' |
### Instruction:
CREATE TABLE table_48511 (
"Year" real,
"Award" text,
"Nominated Work" text,
"Category" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years in which Eiza Gonz lez had a nominated work in t... | SELECT SUM("Year") FROM table_48511 WHERE "Nominated Work" = 'eiza gonzález' AND "Category" = 'solista favorito' |
### Instruction:
CREATE TABLE table_77695 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the record for October 8, 2000 before week 13?
### Response:... | SELECT "Record" FROM table_77695 WHERE "Week" < '13' AND "Date" = 'october 8, 2000' |
### Instruction:
CREATE TABLE table_44164 (
"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 of the player from the college of North Carolina w... | SELECT "Position" FROM table_44164 WHERE "Overall" < '100' AND "College" = 'north carolina' |
### Instruction:
CREATE TABLE table_22142 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Main Language(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was otar... | SELECT "Year [e ] (Ceremony)" FROM table_22142 WHERE "Director" = 'Otar Iosseliani' |
### Instruction:
CREATE TABLE table_29910 (
"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 "Record" FROM table_29910 WHERE "Team" = 'Indiana' |
### Instruction:
CREATE TABLE table_62455 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Club of the Player with a Date of Birth of 1979-01-29?
... | SELECT "Club" FROM table_62455 WHERE "Date of Birth" = '1979-01-29' |
### Instruction:
CREATE TABLE table_204_396 (
id number,
"country" text,
"masters" number,
"u.s. open" number,
"the open" number,
"pga" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is the united stated or scotland better ... | SELECT "country" FROM table_204_396 WHERE "country" IN ('united states', 'scotland') ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_2786 (
"Release" text,
"Oricon Albums Chart" text,
"Peak Position" real,
"Debut Sales (copies)" real,
"Sales Total (copies)" real,
"Chart Run" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which charts had de... | SELECT "Oricon Albums Chart" FROM table_2786 WHERE "Debut Sales (copies)" = '101976' |
### Instruction:
CREATE TABLE table_39496 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the smallest amount of earnings when there are more than 18 wins and the rank... | SELECT MIN("Earnings ( $ )") FROM table_39496 WHERE "Wins" > '18' AND "Rank" = '2' |
### Instruction:
CREATE TABLE table_8789 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the United States, which has more than $24,542... | SELECT "Score" FROM table_8789 WHERE "Country" = 'united states' AND "Money ( $ )" > '24,542' |
### Instruction:
CREATE TABLE table_10689 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the att... | SELECT "Location Attendance" FROM table_10689 WHERE "Record" = '40–40' |
### Instruction:
CREATE TABLE table_32460 (
"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's score w... | SELECT "Home team score" FROM table_32460 WHERE "Away team" = 'south melbourne' |
### Instruction:
CREATE TABLE table_59172 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Score of 72-68-78-71=289?
### Response:
| SELECT "Player" FROM table_59172 WHERE "Score" = '72-68-78-71=289' |
### Instruction:
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
-- Using valid SQ... | SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result |
### Instruction:
CREATE TABLE table_11636 (
"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 sco... | SELECT "Date" FROM table_11636 WHERE "Home team score" = '9.10 (64)' |
### Instruction:
CREATE TABLE table_36207 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Date of 15 july 1994 involves which performer 3?
... | SELECT "Performer 3" FROM table_36207 WHERE "Date" = '15 july 1994' |
### Instruction:
CREATE TABLE table_204_503 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did imma clopes compete before she came in 7th place... | SELECT COUNT(*) FROM table_204_503 WHERE "year" < (SELECT "year" FROM table_204_503 WHERE "position" = 7) |
### Instruction:
CREATE TABLE table_7896 (
"Total" real,
"Score" text,
"Winning Team" text,
"Losing Team" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Losing Team of sydney roosters, and a Total of ... | SELECT "Score" FROM table_7896 WHERE "Losing Team" = 'sydney roosters' AND "Total" = '88' |
### Instruction:
CREATE TABLE table_60542 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue number(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd3... | SELECT "Format" FROM table_60542 WHERE "Label" = 'eagle records' AND "Catalogue number(s)" = 'edgcd391' |
### Instruction:
CREATE TABLE table_11991 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Date" FROM table_11991 WHERE "Race" = 'swiss grand prix' |
### Instruction:
CREATE TABLE table_24828 (
"Institution" text,
"Location" text,
"Enrollment" text,
"Athletic nickname" text,
"School Colors" text,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the athletic nickname of golden knig... | SELECT COUNT("Enrollment") FROM table_24828 WHERE "Athletic nickname" = 'Golden Knights' |
### Instruction:
CREATE TABLE table_37785 (
"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 attendance has astros as the opponent, and april 29 as the date?... | SELECT SUM("Attendance") FROM table_37785 WHERE "Opponent" = 'astros' AND "Date" = 'april 29' |
### Instruction:
CREATE TABLE table_32872 (
"Adherents" real,
"Regular Attendees" real,
"% of adherents" text,
"Monasteries" real,
"Parishes" real,
"Average Parish Size" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average regular ... | SELECT AVG("Regular Attendees") FROM table_32872 WHERE "Parishes" = '79' |
### Instruction:
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
-- Using valid SQLite, answer the ... | SELECT investor FROM entrepreneur GROUP BY investor HAVING COUNT(*) >= 2 |
### Instruction:
CREATE TABLE table_203_430 (
id number,
"draw" number,
"artist" text,
"song" text,
"jury" number,
"televote" number,
"total" number,
"place" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the most televotes on ... | SELECT "artist" FROM table_203_430 ORDER BY "televote" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_48 (
population INTEGER,
median_family_income VARCHAR,
number_of_households VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population where the median family income is $48,446 and there are more than 3... | SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343 |
### Instruction:
CREATE TABLE table_63053 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Country" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest of the athlete from sri lanka who has a lane greater tha... | SELECT MIN("React") FROM table_63053 WHERE "Country" = 'sri lanka' AND "Lane" > '8' |
### Instruction:
CREATE TABLE table_65214 (
"Nat." text,
"Name" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Marcell Jansen with a transfer window of summer, and of transfer as type is from... | SELECT "Nat." FROM table_65214 WHERE "Transfer window" = 'summer' AND "Type" = 'transfer' AND "Name" = 'marcell jansen' |
### Instruction:
CREATE TABLE table_10365 (
"State" text,
"Swimsuit" real,
"Interview" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average a contestant from Iowa with a swimsuit smaller tha... | SELECT MAX("Average") FROM table_10365 WHERE "State" = 'iowa' AND "Swimsuit" < '9.267' |
### Instruction:
CREATE TABLE table_19615 (
"Stage (Winner)" text,
"General Classification" text,
"Mountains Classification" text,
"Points Classification" text,
"Young rider classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Points Classification" FROM table_19615 WHERE "General Classification" = 'Mark Renshaw' AND "Team Classification" = 'Team CSC' |
### Instruction:
CREATE TABLE table_53785 (
"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 for the... | SELECT COUNT("Crowd") FROM table_53785 WHERE "Away team" = 'footscray' |
### Instruction:
CREATE TABLE table_68842 (
"Original title" text,
"Title in English" text,
"Genre" text,
"Role" text,
"Directed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Original title for an Episode Actor role which was Direct... | SELECT "Original title" FROM table_68842 WHERE "Role" = 'episode actor' AND "Directed by" = 'géza bereményi' |
### Instruction:
CREATE TABLE table_68572 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Murupara has a roll greater than 296 for what years?
... | SELECT "Years" FROM table_68572 WHERE "Roll" > '296' AND "Area" = 'murupara' |
### Instruction:
CREATE TABLE table_53710 (
"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 Average crowd when... | SELECT AVG("Crowd") FROM table_53710 WHERE "Away team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_26332 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text,
"Avg. Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people saw the 3rd, C... | SELECT MIN("Avg. Attendance") FROM table_26332 WHERE "Regular Season" = '3rd, Central' |
### Instruction:
CREATE TABLE table_56821 (
"Outcome" text,
"Date" text,
"Tournament" 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.
-- Which date has a Score in the final of ... | SELECT "Date" FROM table_56821 WHERE "Score in the final" = '4–6, 3–6' |
### Instruction:
CREATE TABLE table_203_696 (
id number,
"year" number,
"single" text,
"charts\nfr" number,
"charts\nbel\nwa" number,
"charts\nswi" number,
"certification" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ho... | SELECT COUNT("single") FROM table_203_696 WHERE "charts\nswi" IS NULL |
### Instruction:
CREATE TABLE table_21315 (
"Game" real,
"Date" text,
"Opponent" 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 provi... | SELECT "Record" FROM table_21315 WHERE "Date" = 'June 7' |
### Instruction:
CREATE TABLE table_63147 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" real,
"Issue price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the artist that had $49.95 as the issue price for the 2010 year?
### Respons... | SELECT "Artist" FROM table_63147 WHERE "Issue price" = '$49.95' AND "Year" = '2010' |
### Instruction:
CREATE TABLE table_43826 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the re... | SELECT "Record" FROM table_43826 WHERE "High rebounds" = 'george hill (11)' |
### Instruction:
CREATE TABLE table_20318 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by:" text,
"Written by:" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode that aired o... | SELECT "Title" FROM table_20318 WHERE "Original air date" = 'December 12, 1953' |
### Instruction:
CREATE TABLE table_24022 (
"Week" real,
"Player" text,
"Team" text,
"Opponent" text,
"Carries" real,
"Yards" real,
"Average" text,
"Touchdowns" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the player's team's ... | SELECT "Opponent" FROM table_24022 WHERE "Week" = '12' |
### Instruction:
CREATE TABLE table_3879 (
"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 a... | SELECT "High assists" FROM table_3879 WHERE "Date" = 'November 12' |
### Instruction:
CREATE TABLE table_54828 (
"Year" real,
"Award" text,
"Category" text,
"Film or series" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for the nominee for Outstanding Supporting Actress in a Drama ... | SELECT "Result" FROM table_54828 WHERE "Category" = 'outstanding supporting actress in a drama series' AND "Year" = '2009' |
### Instruction:
CREATE TABLE table_69216 (
"Goalkeeper" text,
"Goals" real,
"Matches" real,
"Average" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11?
#... | SELECT SUM("Matches") FROM table_69216 WHERE "Goalkeeper" = 'wilfredo caballero' AND "Average" < '1.11' |
### Instruction:
CREATE TABLE table_75536 (
"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 lowest Round with Overall of 247 and pick less than 41?
... | SELECT MIN("Round") FROM table_75536 WHERE "Overall" = '247' AND "Pick #" < '41' |
### Instruction:
CREATE TABLE table_65795 (
"Edition" text,
"Year" text,
"City" text,
"Country" text,
"Date" text,
"No. of Events" real,
"Top Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Top Team of jam, and an Ed... | SELECT "Country" FROM table_65795 WHERE "Top Team" = 'jam' AND "Edition" = '31st' |
### Instruction:
CREATE TABLE table_50792 (
"Event" text,
"Long Course/Short Course" text,
"Year Set" real,
"Time" text,
"Meet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did a short course have a time of 7:51.80?
### Response:
| SELECT COUNT("Year Set") FROM table_50792 WHERE "Long Course/Short Course" = 'short course' AND "Time" = '7:51.80' |
### Instruction:
CREATE TABLE Engineer_Visits (
first_name VARCHAR,
last_name VARCHAR,
engineer_id VARCHAR
)
CREATE TABLE Maintenance_Engineers (
first_name VARCHAR,
last_name VARCHAR,
engineer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits) |
### Instruction:
CREATE TABLE CUSTOMER (
FirstName VARCHAR,
SupportRepId VARCHAR
)
CREATE TABLE EMPLOYEE (
EmployeeId VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Please show the employee first names and ids of employees who serve at least 10 customer... | SELECT T1.FirstName, T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10 |
### Instruction:
CREATE TABLE table_name_88 (
grid INTEGER,
rider VARCHAR,
laps VARCHAR,
bike VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Grid has Laps smaller than 22, and a Bike of honda cbr1000rr, and a Rider of luca morelli?
### Respon... | SELECT MIN(grid) FROM table_name_88 WHERE laps < 22 AND bike = "honda cbr1000rr" AND rider = "luca morelli" |
### Instruction:
CREATE TABLE table_54314 (
"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.
-- In which of North Melbourne's a... | SELECT MIN("Crowd") FROM table_54314 WHERE "Away team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_name_24 (
date_of_vacancy VARCHAR,
team VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009... | SELECT date_of_vacancy FROM table_name_24 WHERE team = "fc bayern munich" AND date_of_appointment = "27 april 2009" |
### Instruction:
CREATE TABLE table_47912 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7... | SELECT AVG("Laps") FROM table_47912 WHERE "Time" = '+17.485' AND "Grid" < '7' |
### Instruction:
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT Class, COUNT(Class) FROM race GROUP BY Class ORDER BY COUNT(Class) DESC |
### Instruction:
CREATE TABLE table_52034 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Away team score when Home team score ... | SELECT "Away team score" FROM table_52034 WHERE "Home team score" = '5.10 (40)' |
### Instruction:
CREATE TABLE table_8656 (
"Name" text,
"Pre-Season" real,
"A-League" text,
"Finals" real,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Finals has a A-League of 0 6, and a Pre-Season larger than 0?
### Response:
| SELECT AVG("Finals") FROM table_8656 WHERE "A-League" = '0 6' AND "Pre-Season" > '0' |
### Instruction:
CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
)
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
)
-- ... | SELECT author FROM submission WHERE NOT submission_id IN (SELECT submission_id FROM acceptance) |
### Instruction:
CREATE TABLE table_3171 (
"Butter" text,
"Calories (1 tbsp .)" real,
"Protein (g)" text,
"Fat (g)" text,
"Calcium (mg)" text,
"Zinc (mg)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the calcium for fat being 6.5
### Re... | SELECT "Calcium (mg)" FROM table_3171 WHERE "Fat (g)" = '6.5' |
### Instruction:
CREATE TABLE table_70065 (
"Value" text,
"Khmer" real,
"Word Form" text,
"UNGEGN" text,
"ALA-LC" text,
"Other" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the word form for the ALA-LC transliteration... | SELECT "Word Form" FROM table_70065 WHERE "ALA-LC" = 'muay bân' |
### Instruction:
CREATE TABLE table_204_214 (
id number,
"pos" text,
"no." number,
"rider" text,
"manufacturer" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name a... | SELECT "rider" FROM table_204_214 WHERE "points" > 20 |
### Instruction:
CREATE TABLE table_31332 (
"Manufacturer" text,
"Model" text,
"Intro Date" text,
"Interface" text,
"OS" text,
"Price (USD)" real,
"Price" text,
"Throughput" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many intro d... | SELECT COUNT("Intro Date") FROM table_31332 WHERE "Price" = '686€' |
### Instruction:
CREATE TABLE table_50130 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent that has a Week smaller than 7 on september 12, 1988?
### Response:
| SELECT "Opponent" FROM table_50130 WHERE "Week" < '7' AND "Date" = 'september 12, 1988' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.