instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
-- Using valid SQLite, answer the fol... | SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY Country DESC |
### Instruction:
CREATE TABLE table_32824 (
"Network" text,
"Origin of Programming" text,
"Language" text,
"Genre" text,
"Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Hindi network is based in India and uses dish service and shows g... | SELECT "Network" FROM table_32824 WHERE "Service" = 'dish' AND "Language" = 'hindi' AND "Origin of Programming" = 'india' AND "Genre" = 'general' |
### Instruction:
CREATE TABLE table_16735 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Race Winner" FROM table_16735 WHERE "Constructor" = 'Renault' |
### Instruction:
CREATE TABLE table_14791 (
"Name" text,
"Rank" real,
"Out of" real,
"Source" text,
"Notes" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank that has cia world factbook as the source and a year... | SELECT AVG("Rank") FROM table_14791 WHERE "Source" = 'cia world factbook' AND "Year" < '2005' |
### Instruction:
CREATE TABLE table_61917 (
"Region" text,
"Title" text,
"Label" text,
"Format" text,
"Catalog-Nr." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Catalog-Nr of the Epic Label Stereo LP named For Little Ones?
### Respon... | SELECT "Catalog-Nr." FROM table_61917 WHERE "Format" = 'stereo lp' AND "Label" = 'epic' AND "Title" = 'for little ones' |
### Instruction:
CREATE TABLE table_73623 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Position in table" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Date of appointment" FROM table_73623 WHERE "Team" = '1. FC Köln' |
### Instruction:
CREATE TABLE review (
a_id number,
u_id number,
i_id number,
rating number,
rank number
)
CREATE TABLE item (
i_id number,
title text
)
CREATE TABLE useracct (
u_id number,
name text
)
CREATE TABLE trust (
source_u_id number,
target_u_id number,
trust ... | SELECT COUNT(*) FROM useracct |
### Instruction:
CREATE TABLE table_31208 (
"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_31208 WHERE "Team" = 'La Salle' |
### Instruction:
CREATE TABLE table_45168 (
"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 assists" FROM table_45168 WHERE "Date" = 'november 27' |
### Instruction:
CREATE TABLE table_27753492_2 (
womens_doubles VARCHAR,
mixed_doubles VARCHAR,
tour VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the womens doubles when the mixed doubles were zhang nan zhao yunlei on the tour all england supe... | SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Zhang Nan Zhao Yunlei" AND tour = "All England Super Series" |
### Instruction:
CREATE TABLE table_12999 (
"Province" text,
"Inhabitants" real,
"established" real,
"President" text,
"Party" text,
"Election" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party established in 1797 won an election in 2007... | SELECT "Party" FROM table_12999 WHERE "established" > '1797' AND "Election" = '2007' |
### Instruction:
CREATE TABLE table_204_204 (
id number,
"rank" number,
"heat" number,
"country" text,
"cyclists" text,
"result" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what country finished after great britain ?
###... | SELECT "country" FROM table_204_204 WHERE "rank" = (SELECT "rank" FROM table_204_204 WHERE "country" = 'great britain') + 1 |
### Instruction:
CREATE TABLE table_21546 (
"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 assists" FROM table_21546 WHERE "Date" = 'November 14' |
### Instruction:
CREATE TABLE table_204_468 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the... | SELECT "laps" FROM table_204_468 WHERE "driver" = 'scott pruett' |
### Instruction:
CREATE TABLE table_10082 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Joined TSCHL" real,
"Home Arena" text,
"Capacity" real,
"Team Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the team ni... | SELECT "Team Nickname" FROM table_10082 WHERE "Joined TSCHL" > '2010' |
### Instruction:
CREATE TABLE table_67994 (
"Year" text,
"Date Final" text,
"Venue" text,
"Prize Money" text,
"Champion" text,
"Runner-up" text,
"Score in final" text,
"Commercial name" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Date Final" FROM table_67994 WHERE "Year" = '1989' |
### Instruction:
CREATE TABLE table_32243 (
"Rank" real,
"Name" text,
"Years" text,
"Goals" real,
"Apps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of rank with years 1996 2012 and apps greater than 340?
### Response:
| SELECT SUM("Rank") FROM table_32243 WHERE "Years" = '1996–2012' AND "Apps" > '340' |
### Instruction:
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the friends of Alice that... | SELECT T2.friend FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor' |
### Instruction:
CREATE TABLE table_204_442 (
id number,
"institution" text,
"location" text,
"enrollment" number,
"nickname" text,
"varsity\nsports" number,
"rugby\nsince" text,
"head coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "location" FROM table_204_442 WHERE "head coach" = 'jon roberts' |
### Instruction:
CREATE TABLE table_43602 (
"Vacuum range" text,
"Pressure in hPa (mbar)" text,
"Molecules / cm 3" text,
"Molecules / m 3" text,
"Mean free path" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Mean Free Path, when Vacuum Rang... | SELECT "Mean free path" FROM table_43602 WHERE "Vacuum range" = 'medium vacuum' |
### Instruction:
CREATE TABLE table_66709 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is John Marvin Wierenga's occupa... | SELECT "Occupation" FROM table_66709 WHERE "Candidate's Name" = 'john marvin wierenga' |
### Instruction:
CREATE TABLE table_42768 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?
### Response:
| SELECT "Away captain" FROM table_42768 WHERE "Date" = '30 dec, 1,2,3 jan 1911/2' |
### Instruction:
CREATE TABLE table_50587 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the surface when the championship is rome and the oppon... | SELECT "Surface" FROM table_50587 WHERE "Championship" = 'rome' AND "Opponent" = 'sergi bruguera' |
### Instruction:
CREATE TABLE table_50594 (
"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.
-- What is Tournament, when Opponent In Th... | SELECT "Tournament" FROM table_50594 WHERE "Opponent in the final" = 'andre agassi' |
### Instruction:
CREATE TABLE table_6060 (
"Wicket" text,
"Score" real,
"Batting partners" text,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Wicket in the City of Eastbourne wit... | SELECT "Wicket" FROM table_6060 WHERE "Score" < '368' AND "City" = 'eastbourne' |
### Instruction:
CREATE TABLE table_203_437 (
id number,
"year" number,
"laureate" text,
"relation" text,
"category" text,
"rationale" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is after robert hofstadter on the list ?
### Response:
| SELECT "laureate" FROM table_203_437 WHERE id = (SELECT id FROM table_203_437 WHERE "laureate" = 'robert hofstadter') + 1 |
### Instruction:
CREATE TABLE playlist_tracks (
playlist_id VARCHAR,
track_id VARCHAR
)
CREATE TABLE playlists (
name VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the name of playlist which has number of tracks greater than 100.
... | SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100 |
### Instruction:
CREATE TABLE table_18701 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the incumbent with candidates being percy e.... | SELECT "Incumbent" FROM table_18701 WHERE "Candidates" = 'Percy E. Quin (D) Unopposed' |
### Instruction:
CREATE TABLE table_name_49 (
description VARCHAR,
livery VARCHAR,
date VARCHAR,
number_ VARCHAR,
_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Description for Scottish Tar Distillers No. 78, that's Livery is bla... | SELECT description FROM table_name_49 WHERE livery = "black" AND date < 1897 AND number_ & _name = "scottish tar distillers no. 78" |
### Instruction:
CREATE TABLE table_35115 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has an Opponent of @ rockies, and a Record of 33-35?
##... | SELECT "Score" FROM table_35115 WHERE "Opponent" = '@ rockies' AND "Record" = '33-35' |
### Instruction:
CREATE TABLE table_42920 (
"Opposition" text,
"Span" text,
"Lost" real,
"Tied" real,
"Win %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Win % in the Span of 2011 2013 with a Lost of less than 1?
### Response:
| SELECT AVG("Win %") FROM table_42920 WHERE "Span" = '2011–2013' AND "Lost" < '1' |
### Instruction:
CREATE TABLE table_204_724 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "tournament" FROM table_204_724 ORDER BY "no." DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_309 (
id number,
"team" text,
"winners" number,
"runners-up" number,
"years won" text,
"years lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which teams have more wins that werder bremen ?
### Resp... | SELECT "team" FROM table_203_309 WHERE "winners" > (SELECT "winners" FROM table_203_309 WHERE "team" = 'werder bremen') |
### Instruction:
CREATE TABLE table_17291 (
"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 "Score" FROM table_17291 WHERE "Team" = '@ Cleveland' |
### Instruction:
CREATE TABLE table_22705 (
"Producer" text,
"Product" text,
"Samples taken" real,
"Samples failed" real,
"Melamine content(mg/kg)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest amount sampled of product ?
###... | SELECT MIN("Samples taken") FROM table_22705 WHERE "Product" = '蒙牛牌嬰幼兒配方乳粉' |
### Instruction:
CREATE TABLE table_10537 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the home team score 1... | SELECT "Venue" FROM table_10537 WHERE "Home team score" = '14.13 (97)' |
### Instruction:
CREATE TABLE table_1342270_3 (
first_elected VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
### Response:
| SELECT first_elected FROM table_1342270_3 WHERE candidates = "Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%" |
### Instruction:
CREATE TABLE table_70855 (
"Episode No." real,
"Airdate" text,
"Total Viewers" real,
"Share" text,
"BBC One Weekly Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes have a share of 16.2% and an episode number... | SELECT COUNT("Total Viewers") FROM table_70855 WHERE "Share" = '16.2%' AND "Episode No." < '1' |
### Instruction:
CREATE TABLE table_23809 (
"Date of opinion poll" text,
"Conductor" text,
"Sample size" real,
"For" text,
"Against" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the poll that showed 54% for and 22% u... | SELECT "Date of opinion poll" FROM table_23809 WHERE "For" = '54%' AND "Undecided" = '22%' |
### Instruction:
CREATE TABLE table_27147 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the gam... | SELECT "Game site" FROM table_27147 WHERE "Opponent" = 'Frankfurt Galaxy' |
### Instruction:
CREATE TABLE table_57404 (
"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 has a home team score of 13... | SELECT "Home team" FROM table_57404 WHERE "Home team score" = '13.16 (94)' |
### Instruction:
CREATE TABLE table_25706 (
"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 COUNT("High points") FROM table_25706 WHERE "Record" = '5-17' |
### Instruction:
CREATE TABLE table_78122 (
"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 largest total for a team with fewer than 12 bronze, 1 silver and 0 gold medals?
... | SELECT MAX("Total") FROM table_78122 WHERE "Bronze" < '12' AND "Gold" = '0' AND "Silver" = '1' |
### Instruction:
CREATE TABLE table_3138 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did Rhein Fir... | SELECT "Opponent" FROM table_3138 WHERE "Attendance" = '30701' |
### Instruction:
CREATE TABLE table_75626 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Median family income" FROM table_75626 WHERE "Median household income" = '$38,137' |
### Instruction:
CREATE TABLE table_60330 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SCORE WITH A WINNER AND OPPONENT BYRON BLACK?
### R... | SELECT "Score" FROM table_60330 WHERE "Outcome" = 'winner' AND "Opponent" = 'byron black' |
### Instruction:
CREATE TABLE table_name_61 (
played INTEGER,
draws VARCHAR,
goals_for VARCHAR,
goal_difference VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position had a goal difference of less than 27, lost more than 13... | SELECT MAX(played) FROM table_name_61 WHERE goal_difference < 27 AND losses > 13 AND goals_for < 42 AND draws = 6 |
### Instruction:
CREATE TABLE table_32823 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff" text,
"Game site" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the kickoff for the game on october 22, 2... | SELECT "Kickoff" FROM table_32823 WHERE "Date" = 'october 22, 2000' |
### Instruction:
CREATE TABLE table_71905 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Men's double held together w... | SELECT "Men's doubles" FROM table_71905 WHERE "Women's singles" = 'camilla martin' |
### Instruction:
CREATE TABLE table_73328 (
"Year" real,
"Division" real,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"National Open" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the regular season name where they did not qual... | SELECT "Reg. Season" FROM table_73328 WHERE "Playoffs" = 'Did not qualify' AND "Year" = '2009' |
### Instruction:
CREATE TABLE table_26105 (
"No. in series" real,
"No. in season" real,
"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 is the pr... | SELECT "Prod. Code" FROM table_26105 WHERE "Title" = 'Kafelnikov' |
### Instruction:
CREATE TABLE table_4844 (
"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.
-- At what venue was the away team ... | SELECT "Venue" FROM table_4844 WHERE "Away team score" = '3.11 (29)' |
### Instruction:
CREATE TABLE table_6405 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Channel" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record for the ga... | SELECT "Record" FROM table_6405 WHERE "Date" = 'december 2, 2001' |
### Instruction:
CREATE TABLE table_33168 (
"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 Home team has an Away team... | SELECT "Home team" FROM table_33168 WHERE "Away team score" = '8.9 (57)' |
### Instruction:
CREATE TABLE table_47473 (
"Subclass" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the part 4 with *hlaupan *stautan in part 1?
### Res... | SELECT "Part 4" FROM table_47473 WHERE "Part 1" = '*hlaupaną *stautaną' |
### Instruction:
CREATE TABLE table_20109 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the surfaace where outcome is runner-... | SELECT "Surface" FROM table_20109 WHERE "Outcome" = 'Runner-up' AND "Championship" = 'US Open' |
### Instruction:
CREATE TABLE table_20501 (
"Bowl Game" text,
"Date" text,
"Stadium" text,
"City" text,
"Television" text,
"Conference Matchups" text,
"Payout ( US$ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the bo... | SELECT "Bowl Game" FROM table_20501 WHERE "City" = 'Tempe, Arizona' |
### Instruction:
CREATE TABLE table_30148 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Title" FROM table_30148 WHERE "Written by" = 'Karina Csolty' |
### Instruction:
CREATE TABLE table_203_362 (
id number,
"school" text,
"location" text,
"outright titles" number,
"shared titles" number,
"runners-up" number,
"total finals" number,
"last title" number,
"last final" number
)
-- Using valid SQLite, answer the following questions fo... | SELECT COUNT("school") FROM table_203_362 WHERE "outright titles" > 5 |
### Instruction:
CREATE TABLE table_204_33 (
id number,
"number" number,
"name" text,
"year built" number,
"boat builder" text,
"current status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the oldest ship of these three : highlea , hi... | SELECT "name" FROM table_204_33 WHERE "name" IN ('highlea', 'hijack', 'hi-falutin') ORDER BY "year built" LIMIT 1 |
### Instruction:
CREATE TABLE table_15885 (
"Season" real,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text,
"Draft Pick #" text,
"Draft Class" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the Me... | SELECT MIN("Season") FROM table_15885 WHERE "Team" = 'MetroStars' |
### Instruction:
CREATE TABLE table_5392 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"Format" text,
"City of License" text,
"Website" text,
"Webcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which webcast was in Spanish contempo... | SELECT "Webcast" FROM table_5392 WHERE "Format" = 'spanish contemporary' AND "Website" = 'xhnoe.com' |
### Instruction:
CREATE TABLE table_52857 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the station at Huntingdon... | SELECT "Location" FROM table_52857 WHERE "District" = 'huntingdonshire' AND "Station Number" = 'c17' |
### Instruction:
CREATE TABLE table_47769 (
"Name" text,
"Location" text,
"Elevation + Height" text,
"Delivery" text,
"Purpose" text,
"Yield" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the yield in NTS Area U2R when the purpose is we... | SELECT "Yield" FROM table_47769 WHERE "Purpose" = 'weapons development' AND "Location" = 'nts area u2r' |
### Instruction:
CREATE TABLE table_20276 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most maidens when e.r. 5.11
#... | SELECT MAX("Maidens") FROM table_20276 WHERE "E.R." = '5.11' |
### Instruction:
CREATE TABLE table_19177 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When altos hornos zapla is the home (1st leg) what is overall amount... | SELECT COUNT("1st Leg") FROM table_19177 WHERE "Home (1st leg)" = 'Altos Hornos Zapla' |
### Instruction:
CREATE TABLE table_7124 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release date" text,
"Chart peak" text,
"Song title" text,
"Writer(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Chart pe... | SELECT "Chart peak" FROM table_7124 WHERE "Recorded" = '2/19/69' |
### Instruction:
CREATE TABLE table_44923 (
"Technology" text,
"Moving Parts" text,
"Room Temperature" text,
"Flammable" text,
"Toxic Materials" text,
"In production" text,
"Rare metals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ar... | SELECT "Moving Parts" FROM table_44923 WHERE "Technology" = 'lead-acid' |
### Instruction:
CREATE TABLE table_20369 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What high de... | SELECT "HDTV" FROM table_20369 WHERE "Television service" = 'Italia 1' |
### Instruction:
CREATE TABLE table_204_288 (
id number,
"region" text,
"seed" number,
"team" text,
"coach" text,
"finished" text,
"final opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which region is above the we... | SELECT "region" FROM table_204_288 WHERE id = (SELECT id FROM table_204_288 WHERE "region" = 'west') - 1 |
### Instruction:
CREATE TABLE table_52498 (
"Block A" text,
"BLACK BUSHI" text,
"BUSHI" text,
"Kaz Hayashi" text,
"Kenny Omega" text,
"Minoru" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Kaz Hayashi which has BUSHI of yang (9:43)
#... | SELECT "Kaz Hayashi" FROM table_52498 WHERE "BUSHI" = 'yang (9:43)' |
### Instruction:
CREATE TABLE table_204_148 (
id number,
"name" text,
"elected" text,
"term began" text,
"term ended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the mayor before jordan ?
### Response:
| SELECT "name" FROM table_204_148 WHERE "term began" < (SELECT "term began" FROM table_204_148 WHERE "name" = 'john t. jordan') ORDER BY "term began" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_1125 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the losses... | SELECT "Losses" FROM table_1125 WHERE "Team" = 'General Caballero ZC' |
### Instruction:
CREATE TABLE table_name_88 (
natural_change VARCHAR,
crude_death_rate__per_1000_ VARCHAR,
deaths VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Natural change has a Crude death rate (per 1000) larger than 9, and Deaths of 40 399?
... | SELECT natural_change FROM table_name_88 WHERE crude_death_rate__per_1000_ > 9 AND deaths = "40 399" |
### Instruction:
CREATE TABLE table_39465 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population of the Parish, Plumbland, that had a former lo... | SELECT COUNT("Population") FROM table_39465 WHERE "Former local authority" = 'cockermouth rural district' AND "Name" = 'plumbland' |
### Instruction:
CREATE TABLE table_203_165 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many combined silver medals did china , indi... | SELECT SUM("silver") FROM table_203_165 WHERE "nation" IN ('china', 'india', 'japan') |
### Instruction:
CREATE TABLE table_63137 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ground had a match smaller than 6 and Chelsea Reserve... | SELECT "Ground" FROM table_63137 WHERE "Match" < '6' AND "Opponent" = 'chelsea reserves' |
### Instruction:
CREATE TABLE table_44662 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance of game 25 when the played the San F... | SELECT "Location/Attendance" FROM table_44662 WHERE "Opponent" = 'san francisco warriors' AND "Game" = '25' |
### Instruction:
CREATE TABLE table_29168 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incom... | SELECT "Incoming manager" FROM table_29168 WHERE "Date of appointment" = '15 January 2011' |
### Instruction:
CREATE TABLE table_73520 (
"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 MIN("Game") FROM table_73520 WHERE "Date" = 'January 29' |
### Instruction:
CREATE TABLE table_17328 (
"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_17328 WHERE "Date" = 'March 17' |
### Instruction:
CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players had a transfer f... | SELECT COUNT("player") FROM table_203_440 WHERE "transfer fee\n(\u20ac million)" >= 9 |
### Instruction:
CREATE TABLE table_29521 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- L... | SELECT COUNT("No. in series") FROM table_29521 WHERE "No. in season" = '12' |
### Instruction:
CREATE TABLE table_41908 (
"Single" text,
"CCM Chart" text,
"Debut" text,
"Peak Date" text,
"Peak Pos" real,
"Total Wks" real,
"Spins (since 1998) source: Mediabase" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What CCM Ch... | SELECT "CCM Chart" FROM table_41908 WHERE "Total Wks" = '18' |
### Instruction:
CREATE TABLE table_73611 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of the votes were for others in the... | SELECT "Others%" FROM table_73611 WHERE "Others#" = '462' |
### Instruction:
CREATE TABLE table_68186 (
"Season" real,
"Overall" text,
"Slalom" text,
"Giant Slalom" text,
"Super G" text,
"Downhill" text,
"Combined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the combined of 2 overalls and ... | SELECT "Combined" FROM table_68186 WHERE "Overall" = '2' AND "Slalom" = '5' |
### Instruction:
CREATE TABLE table_65913 (
"Hampden FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for against when draws are 0, and losses are 16?
### Resp... | SELECT AVG("Against") FROM table_65913 WHERE "Draws" = '0' AND "Losses" = '16' |
### Instruction:
CREATE TABLE table_21542 (
"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 COUNT("Game") FROM table_21542 WHERE "Date" = 'December 12' |
### Instruction:
CREATE TABLE table_name_47 (
broadcasts__tv__1 INTEGER,
series VARCHAR,
us_release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Broadcasts (TV) 1, when Series is '3 4', and when US Release Date is '27 December 2... | SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = "3 4" AND us_release_date = "27 december 2006" |
### Instruction:
CREATE TABLE table_77602 (
"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 away ... | SELECT "Away team score" FROM table_77602 WHERE "Venue" = 'arden street oval' |
### Instruction:
CREATE TABLE table_36993 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score on the February ... | SELECT "Score in the final" FROM table_36993 WHERE "Date" = 'february 19, 2012' |
### Instruction:
CREATE TABLE table_37331 (
"Unit" text,
"Russian" text,
"Translation" text,
"Ratio" real,
"Metric value" text,
"Avoirdupois value" text,
"Ordinary value" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ordinary value has... | SELECT "Ordinary value" FROM table_37331 WHERE "Metric value" = '29.861 g' |
### Instruction:
CREATE TABLE table_10485 (
"Retail name" text,
"Chipset based on" text,
"Digital/analog signal" text,
"AVIVO" text,
"Available interface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Digital/analog signal with a Chipse... | SELECT "Digital/analog signal" FROM table_10485 WHERE "Chipset based on" = 'radeon 8500' |
### Instruction:
CREATE TABLE table_53063 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the rider with a time of 1:45.52.84, and a Rank of 8?
### Response:
| SELECT "Rider" FROM table_53063 WHERE "Time" = '1:45.52.84' AND "Rank" = '8' |
### Instruction:
CREATE TABLE WINE (
Appelation VARCHAR,
YEAR INTEGER,
Area VARCHAR
)
CREATE TABLE APPELLATIONS (
Appelation VARCHAR,
YEAR INTEGER,
Area VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the appelations that produce wines a... | SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = "Central Coast" |
### Instruction:
CREATE TABLE table_1817 (
"Club" text,
"First season in top division" text,
"Number of seasons in top division" real,
"First season of current spell in top division" text,
"Number of seasons in Liga MX" real,
"Top division titles" real
)
-- Using valid SQLite, answer the follo... | SELECT "First season in top division" FROM table_1817 WHERE "Club" = 'UNAM' |
### Instruction:
CREATE TABLE table_52707 (
"Rank" real,
"Mountain Peak" text,
"State" text,
"Mountain Range" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which state is the location of 39.1178 n 106.4454 w in?
### Response:
| SELECT "State" FROM table_52707 WHERE "Location" = '39.1178°n 106.4454°w' |
### Instruction:
CREATE TABLE table_51820 (
"Name" text,
"Code" text,
"Capacity" text,
"Type" text,
"Power" text,
"Torque" text,
"Top speed" text,
"Combined consumption" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the combined... | SELECT "Combined consumption" FROM table_51820 WHERE "Name" = '1.6 16v' |
### Instruction:
CREATE TABLE table_77888 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Rome... | SELECT "Time/Retired" FROM table_77888 WHERE "Constructor" = 'brabham - alfa romeo' AND "Driver" = 'carlos reutemann' |
### Instruction:
CREATE TABLE table_23360 (
"Rd." text,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ... | SELECT "Winning driver" FROM table_23360 WHERE "Rd." = '3' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.