instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_49639 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real,
"2000 result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of other ca... | SELECT MAX("Others#") FROM table_49639 WHERE "Kerry%" = '52.1%' |
### Instruction:
CREATE TABLE table_train_32 (
"id" int,
"pregnancy_or_lactation" bool,
"renal_disease" bool,
"hemachromatosis" bool,
"glucose_6_phosphate_dehydrogenase_deficiency_g6pd" int,
"prisoners" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT * FROM table_train_32 WHERE renal_disease = 1 |
### Instruction:
CREATE TABLE table_43720 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT MIN("Points") FROM table_43720 WHERE "Goals for" < '13' |
### Instruction:
CREATE TABLE table_14944 (
"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.
-- What authority controls the school in Levin that has a ... | SELECT "Authority" FROM table_14944 WHERE "Decile" = '6' AND "Area" = 'levin' AND "Roll" = '226' |
### Instruction:
CREATE TABLE table_18849 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Jockey" text,
"Winner/2nd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was... | SELECT "Result" FROM table_18849 WHERE "Date" = '19 Oct 2002' |
### Instruction:
CREATE TABLE table_71557 (
"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.
-- What is the total number of Rolls of State schools in H... | SELECT COUNT("Roll") FROM table_71557 WHERE "Authority" = 'state' AND "Area" = 'hapuku' AND "Decile" > '4' |
### Instruction:
CREATE TABLE table_204_882 (
id number,
"number" number,
"builder" text,
"entered service" text,
"withdrawn" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which locomotive was withdrawn from service in the same ye... | SELECT "number" FROM table_204_882 WHERE "number" <> 445 AND "withdrawn" = (SELECT "withdrawn" FROM table_204_882 WHERE "number" = 445) |
### Instruction:
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
-- Using valid SQLite, answer the follo... | SELECT Type, COUNT(Type) FROM ship GROUP BY Nationality, Type ORDER BY Type |
### Instruction:
CREATE TABLE table_80360 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2010 for 2011 of a and 2008 of 1r
### Response:
| SELECT "2010" FROM table_80360 WHERE "2011" = 'a' AND "2008" = '1r' |
### Instruction:
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT director, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY director DESC |
### Instruction:
CREATE TABLE table_8517 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the United States team that played for the Grizzlies ... | SELECT "School/Club Team" FROM table_8517 WHERE "Nationality" = 'united states' AND "Years for Grizzlies" = '1995-1996' |
### Instruction:
CREATE TABLE table_70587 (
"Matches" real,
"Wickets" real,
"Runs" real,
"Average" real,
"Career" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of average for wickets less than 265, runs less than 4564 and matc... | SELECT COUNT("Average") FROM table_70587 WHERE "Matches" < '52' AND "Runs" < '4564' AND "Wickets" < '265' |
### Instruction:
CREATE TABLE table_64110 (
"Date Released" text,
"Polling institute" text,
"Socialist" text,
"Social Democratic" text,
"Green-Communist" text,
"People's Party" text,
"Left Bloc" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT "Green-Communist" FROM table_64110 WHERE "Lead" = '15.5%' |
### Instruction:
CREATE TABLE table_30037 (
"Semitological abbreviation" text,
"Hebrew name" text,
"Arabic name" text,
"Morphological category" text,
"Hebrew Form" text,
"Arabic form" text,
"Approximate translation" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "Arabic form" FROM table_30037 WHERE "Approximate translation" = 'he writes, will write' |
### Instruction:
CREATE TABLE table_204_124 (
id number,
"no." number,
"name" text,
"public access" number,
"location & map links" text,
"area\nha" number,
"area\nacres" number,
"references" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT SUM("area\nacres") FROM table_204_124 WHERE "name" IN ('langley wood', 'little paxton wood') |
### Instruction:
CREATE TABLE table_23323 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("Game") FROM table_23323 WHERE "High assists" = 'S. Johnson (3)' |
### Instruction:
CREATE TABLE table_17479 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Production code" FROM table_17479 WHERE "U.S. viewers (millions)" = '11.64' |
### Instruction:
CREATE TABLE table_25458 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Arena Attendance" text,
"High Points" text,
"High Rebounds" text,
"High Assists" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "High Rebounds" FROM table_25458 WHERE "Arena Attendance" = 'TD Garden 18,624' |
### Instruction:
CREATE TABLE table_24994 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Manufacturer" FROM table_24994 WHERE "Date" = 'May 21' |
### Instruction:
CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "served" - "served" FROM table_204_145 WHERE "representative" = 'william r. poage' |
### Instruction:
CREATE TABLE table_20137 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the possible bleeding time ... | SELECT "Bleeding time" FROM table_20137 WHERE "Prothrombin time" = 'Unaffected' AND "Platelet count" = 'Unaffected' |
### Instruction:
CREATE TABLE table_61795 (
"Player" text,
"Pos." text,
"Nationality" text,
"Team" text,
"Previous team" text,
"Years of NBA experience [a ]" real,
"Career with the franchise [b ]" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Team" FROM table_61795 WHERE "Previous team" = 'san diego rockets' AND "Pos." = 'f' |
### Instruction:
CREATE TABLE table_18089 (
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Originalairdate" text,
"Repeatairdate(s)" text,
"Prod.Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the repeat date of the... | SELECT "Repeatairdate(s)" FROM table_18089 WHERE "Originalairdate" = '22/12/1968' |
### Instruction:
CREATE TABLE table_77874 (
"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 the Home team score was 15... | SELECT MIN("Crowd") FROM table_77874 WHERE "Home team score" = '15.18 (108)' |
### Instruction:
CREATE TABLE table_name_33 (
number_of_seasons_in_liga_mx INTEGER,
club VARCHAR,
number_of_seasons_in_top_division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Number of seasons in Liga MX for Club cruz azul, when t... | SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_33 WHERE club = "cruz azul" AND number_of_seasons_in_top_division > 68 |
### Instruction:
CREATE TABLE table_975 (
"Quarter" text,
"Android" text,
"iOS" text,
"Symbian" text,
"BlackBerry OS" text,
"Linux" text,
"Windows Phone" text,
"Other" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ... | SELECT "BlackBerry OS" FROM table_975 WHERE "Symbian" = '10.4' |
### Instruction:
CREATE TABLE table_name_64 (
year_commissioned INTEGER,
average_annual_output__million_kwh_ VARCHAR,
installed_capacity__megawatts_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest Year commissioned wiht an Average ann... | SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20 |
### 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 has more silver medals... | SELECT "athlete" FROM table_203_308 WHERE "athlete" IN ('karine ruby', 'shaun white') ORDER BY "silver" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_10887 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" real,
"Points" real,
"Goals for" real,
"Goals against" real,
"Standing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games had a tied... | SELECT COUNT("Games") FROM table_10887 WHERE "Tied" < '15' AND "Goals against" < '186' |
### Instruction:
CREATE TABLE table_73323 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("#") FROM table_73323 WHERE "U.S. viewers (million)" = '10.14' |
### Instruction:
CREATE TABLE table_29149 (
"Common Name" text,
"Genus & Species" text,
"NCBI Accession Number" text,
"Length (AA)" real,
"% Identity to C7orf38" real,
"% Similarity to C7orf38" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT MAX("% Identity to C7orf38") FROM table_29149 WHERE "Genus & Species" = 'Mus musculus' |
### Instruction:
CREATE TABLE table_51698 (
"Year" real,
"Theme" text,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year when the composition is 99.99% silve... | SELECT MIN("Year") FROM table_51698 WHERE "Composition" = '99.99% silver' AND "Issue Price" = '$94.95' |
### Instruction:
CREATE TABLE table_24288 (
"Day" text,
"Stage" text,
"Time (GMT)" text,
"Name" text,
"Length" text,
"Winner" text,
"Time" text,
"Avg. spd." text,
"Rally leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many... | SELECT COUNT("Length") FROM table_24288 WHERE "Time" = '14:33.9' |
### Instruction:
CREATE TABLE table_70384 (
"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.
-- What is the college/junior/club team of the... | SELECT "College/junior/club team" FROM table_70384 WHERE "NHL team" = 'new york rangers' AND "Position" = 'defence' |
### Instruction:
CREATE TABLE table_7041 (
"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 is the total sum of bronze medals for the Soviet Union when there are m... | SELECT SUM("Bronze") FROM table_7041 WHERE "Silver" > '0' AND "Nation" = 'soviet union' AND "Total" > '3' |
### Instruction:
CREATE TABLE table_20982 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Falcons points" real,
"Opponents" real,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In games where the ... | SELECT MIN("Falcons points") FROM table_20982 WHERE "Opponent" = 'San Francisco 49ers' |
### Instruction:
CREATE TABLE table_40276 (
"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.
-- Who were the runner(s)-up when the winning score was 10 (69-68-... | SELECT "Margin of victory" FROM table_40276 WHERE "Winning score" = '–10 (69-68-74-67=278)' |
### Instruction:
CREATE TABLE table_79263 (
"Constructor" text,
"Chassis" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest p... | SELECT MAX("Podiums") FROM table_79263 WHERE "Stage wins" = '91' AND "Points" < '140' |
### Instruction:
CREATE TABLE table_40130 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Socialist ticket" text,
"Prohibition ticket" text,
"Progressive ticket" text,
"Independence League ticket" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Prohibition ticket" FROM table_40130 WHERE "Progressive ticket" = 'eugene m. travis' |
### Instruction:
CREATE TABLE table_17926 (
"Position" real,
"Club" text,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"Pts For" real,
"Pts Agst" real,
"B.P." real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MAX("Position") FROM table_17926 WHERE "Club" = 'Sheffield Eagles' |
### Instruction:
CREATE TABLE table_69778 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"10:00" text,
"10:30" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for the 10:00 of the simple life what is the 9:00?
### Respon... | SELECT "9:00" FROM table_69778 WHERE "10:00" = 'the simple life' |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_41493 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Top-5, when Tournament is To... | SELECT SUM("Top-5") FROM table_41493 WHERE "Tournament" = 'totals' AND "Events" > '86' |
### Instruction:
CREATE TABLE table_21322 (
"Rank" real,
"1-year peak" text,
"5-year peak" text,
"10-year peak" text,
"15-year peak" text,
"20-year peak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank when Garry Kasparov... | SELECT MAX("Rank") FROM table_21322 WHERE "1-year peak" = 'Garry Kasparov, 2879' |
### Instruction:
CREATE TABLE table_26706 (
"Major version" text,
"Minor version" text,
"WebKit version" text,
"Operating System" text,
"Release date" text,
"Features" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all webkit versions when ... | SELECT "WebKit version" FROM table_26706 WHERE "Major version" = 'Safari 3' AND "Minor version" = '3.1.2' |
### Instruction:
CREATE TABLE table_58598 (
"Mid Gippsland 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's the lowest number of draws when the wins are less than 15... | SELECT MIN("Draws") FROM table_58598 WHERE "Wins" < '15' AND "Against" = '1228' |
### Instruction:
CREATE TABLE table_31394 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Directed by" FROM table_31394 WHERE "U.S. viewers (million)" = '2.97' |
### Instruction:
CREATE TABLE table_70778 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis has fewer than 2 points, entrants of Goulds' Garage (Bristol), in 1954?
#... | SELECT "Chassis" FROM table_70778 WHERE "Points" < '2' AND "Entrant" = 'goulds'' garage (bristol)' AND "Year" = '1954' |
### Instruction:
CREATE TABLE table_1277 (
"Mission name" text,
"Lunar lander" text,
"Lunar landing date" text,
"Lunar blastoff date" text,
"Lunar landing site" text,
"Duration on lunar surface" text,
"Crew" text,
"Number of s EVA" real,
"Total EVA Time (HH:MM)" text
)
-- Using val... | SELECT MAX("Number of s EVA") FROM table_1277 |
### Instruction:
CREATE TABLE table_56244 (
"Name" text,
"Father" text,
"Birth" text,
"Marriage" text,
"Became Queen" text,
"Ceased to be Queen" text,
"Death" text,
"Spouse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the spous... | SELECT "Spouse" FROM table_56244 WHERE "Father" = 'ferdinand i of the two sicilies' |
### Instruction:
CREATE TABLE checking (
custid number,
balance number
)
CREATE TABLE accounts (
custid number,
name text
)
CREATE TABLE savings (
custid number,
balance number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of account... | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1 |
### Instruction:
CREATE TABLE table_19233 (
"Team" text,
"Intercontinental" text,
"Recopa 1996" text,
"Supercopa 1996" text,
"CONMEBOL 1996" text,
"Copa Libertadores 1997" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the racing club wh... | SELECT "Copa Libertadores 1997" FROM table_19233 WHERE "Team" = 'Racing Club' |
### Instruction:
CREATE TABLE table_76030 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of wins when the cuts made is... | SELECT SUM("Wins") FROM table_76030 WHERE "Cuts made" = '76' AND "Events" > '115' |
### Instruction:
CREATE TABLE table_203_586 (
id number,
"#" number,
"nation" text,
"qualification tournament" text,
"place in qt" number,
"sailor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list the nation which participated in the 2008 wor... | SELECT "nation" FROM table_203_586 WHERE "qualification tournament" = '2008 worlds' AND "sailor" = 'hans spitzauer' |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Headquarter, Revenue FROM Manufacturers ORDER BY Revenue DESC |
### Instruction:
CREATE TABLE table_53869 (
"Ship" text,
"Built" real,
"Entered service" real,
"Route" text,
"Gross tonnage" text,
"Length" text,
"Width" text,
"Passengers" real,
"Vessels" real,
"Knots" real
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Width" FROM table_53869 WHERE "Entered service" = '2010' |
### Instruction:
CREATE TABLE table_27854 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Cyrillic Name Other Names" FROM table_27854 WHERE "Settlement" = 'Ratkovo' |
### Instruction:
CREATE TABLE table_203_292 (
id number,
"payload type (pt)" text,
"name" text,
"type" text,
"no. of channels" text,
"clock rate (hz)" text,
"frame size (ms)" text,
"default packet size (ms)" text,
"description" text,
"references" text
)
-- Using valid SQLite, a... | SELECT "type" FROM table_203_292 WHERE "type" <> 'audio' |
### Instruction:
CREATE TABLE table_78181 (
"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 FCC frequency for the station w262al wh... | SELECT "FCC info" FROM table_78181 WHERE "Frequency MHz" > '92.7' AND "Call sign" = 'w262al' |
### Instruction:
CREATE TABLE table_46682 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Partner, when Outcome is Winner, and... | SELECT "Partner" FROM table_46682 WHERE "Outcome" = 'winner' AND "Date" = '12 october 2003' |
### Instruction:
CREATE TABLE table_39942 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of games played with 3 losse... | SELECT SUM("Played") FROM table_39942 WHERE "Lost" = '3' AND "Drawn" > '1' AND "Points" < '10' |
### Instruction:
CREATE TABLE table_name_35 (
innings INTEGER,
runs_scored VARCHAR,
balls_faced VARCHAR,
average VARCHAR,
sr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total innings have an average under 6.33, strike rate under 71.43... | SELECT SUM(innings) FROM table_name_35 WHERE average < 6.33 AND sr < 71.43 AND balls_faced > 36 AND runs_scored < 19 |
### Instruction:
CREATE TABLE table_69837 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the partner of the team that faced the guillermo garc a-l ... | SELECT "Partner" FROM table_69837 WHERE "Surface" = 'clay' AND "Opponents" = 'guillermo garcía-lópez albert portas' |
### Instruction:
CREATE TABLE table_73776 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number is shown for november 3 where january 15-16 is 151?... | SELECT "November 3" FROM table_73776 WHERE "January 15-16" = '151' |
### Instruction:
CREATE TABLE table_72730 (
"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_72730 WHERE "Location Attendance" = 'Continental Airlines Arena 13,755' |
### Instruction:
CREATE TABLE table_203_67 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
)
-- Using valid SQLite, answer the following qu... | SELECT "team" FROM table_203_67 ORDER BY "goals\nscored" DESC LIMIT 1 |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality |
### Instruction:
CREATE TABLE table_203_803 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"place" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "country" FROM table_203_803 WHERE id = (SELECT id FROM table_203_803 WHERE "country" = 'belgium') - 1 |
### Instruction:
CREATE TABLE table_19676 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year orvaldur s... | SELECT MIN("Year") FROM table_19676 WHERE "Mixed doubles" = 'Þorvaldur Ásgeirsson Lovísa Sigurðardóttir' |
### Instruction:
CREATE TABLE table_44623 (
"Poll Source" text,
"Sample Size" real,
"Margin of Error" real,
"Date" text,
"Democrat" text,
"Republican" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the sample size for polling on May 2-7... | SELECT "Sample Size" FROM table_44623 WHERE "Date" = 'may 2-7, 2007' AND "Democrat" = 'hillary clinton' |
### Instruction:
CREATE TABLE table_20666 (
"Code" real,
"County" text,
"Former Province" text,
"Area (km 2 )" text,
"Population Census 2009" real,
"Capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many numbers were listed under area ... | SELECT COUNT("Area (km 2 )") FROM table_20666 WHERE "Population Census 2009" = '240075' |
### Instruction:
CREATE TABLE phone_market (
Market_ID VARCHAR,
Phone_ID VARCHAR
)
CREATE TABLE phone (
Name VARCHAR,
Phone_ID VARCHAR
)
CREATE TABLE market (
District VARCHAR,
Market_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show t... | SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID |
### Instruction:
CREATE TABLE table_29044 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "No. in season" FROM table_29044 WHERE "Title" = 'The Con Man in the Meth Lab' |
### Instruction:
CREATE TABLE table_62232 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the college/junior/club team (league) when the p... | SELECT "College/Junior/Club Team (League)" FROM table_62232 WHERE "Position" = '(c)' AND "Round" > '2' |
### Instruction:
CREATE TABLE table_67708 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 Jun... | SELECT "Result" FROM table_67708 WHERE "Home captain" = 'graham gooch' AND "Date" = '3,4,5,6,7 june 1993' |
### Instruction:
CREATE TABLE table_75434 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Opponent of @ edmonton oilers, and a Game larger than 1, and a Series of oilers lead 3 2 had... | SELECT "Score" FROM table_75434 WHERE "Opponent" = '@ edmonton oilers' AND "Game" > '1' AND "Series" = 'oilers lead 3–2' |
### Instruction:
CREATE TABLE table_25205 (
"Edition" text,
"Round" text,
"Date" text,
"Partnering" text,
"Against" text,
"Surface" text,
"Opponents" text,
"W\u2013L" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Result" FROM table_25205 WHERE "Partnering" = 'Frederica Piedade' |
### Instruction:
CREATE TABLE table_30698 (
"Constellation" text,
"IAU abbreviation" text,
"Other abbreviation" text,
"Genitive" text,
"Family" text,
"Origin" text,
"Meaning" text,
"Brightest star" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Family" FROM table_30698 WHERE "Genitive" = 'Lyncis /ˈlɪnsɨs/' |
### Instruction:
CREATE TABLE table_68723 (
"Year" text,
"Edition" text,
"Host city" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Edition I Bronze with a Gold hig... | SELECT MAX("Bronze") FROM table_68723 WHERE "Silver" > '10' AND "Edition" = 'i' AND "Gold" > '9' |
### Instruction:
CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT (SELECT "age" FROM table_204_145 WHERE "representative" = 'harold earthman') > 79 |
### Instruction:
CREATE TABLE table_21197 (
"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_21197 WHERE "High rebounds" = 'Gerald Wallace (14)' |
### Instruction:
CREATE TABLE table_29816 (
"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_29816 WHERE "Score" = 'W 97–94 (OT)' |
### Instruction:
CREATE TABLE table_203_475 (
id number,
"stage" number,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how much longer is the 20th tour de france stage than ... | SELECT (SELECT "length" FROM table_203_475 WHERE "stage" = 20) - (SELECT "length" FROM table_203_475 WHERE "stage" = 19) |
### Instruction:
CREATE TABLE table_72878 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the... | SELECT COUNT("Fin. Pos") FROM table_72878 WHERE "Points" = '12' AND "Time/Retired" = 'Accident' |
### Instruction:
CREATE TABLE table_12067 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Lowest" real,
"Highest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest lowest number of capacity that ibrox stadium has... | SELECT MAX("Lowest") FROM table_12067 WHERE "Stadium" = 'ibrox stadium' AND "Average" > '49,143' |
### Instruction:
CREATE TABLE table_49592 (
"Rank" real,
"Company" text,
"Country" text,
"Industry" text,
"Sales (billion $)" real,
"Profits (billion $)" real,
"Assets (billion $)" real,
"Market Value (billion $)" real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT MIN("Sales (billion $)") FROM table_49592 WHERE "Company" = 'bp' |
### Instruction:
CREATE TABLE table_1579 (
"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 COUNT("Game") FROM table_1579 WHERE "Location Attendance" = 'Staples Center 18,997' |
### Instruction:
CREATE TABLE swimmer (
name VARCHAR,
id VARCHAR
)
CREATE TABLE record (
swimmer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of the swimmers who have both 'win' and 'loss' results in the record.
### Response:
| SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' |
### Instruction:
CREATE TABLE table_203_603 (
id number,
"service" text,
"service id" text,
"bit rate" text,
"audio channels" text,
"description" text,
"analogue availability" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does heart london ... | SELECT "description" FROM table_203_603 WHERE "description" IN ('adult contemporary', "r'n'b and hip-hop") AND "service" = 'heart london' |
### Instruction:
CREATE TABLE table_78555 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT COUNT("Goals against") FROM table_78555 WHERE "Played" > '34' |
### Instruction:
CREATE TABLE table_27524 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 127 is on June 10th to 11th what is November 3rd?
### Re... | SELECT "November 3" FROM table_27524 WHERE "June 10-11" = '127' |
### Instruction:
CREATE TABLE table_67050 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Club of essendon, and a Score of 1... | SELECT "Opponent" FROM table_67050 WHERE "Club" = 'essendon' AND "Score" = '13.4.82' |
### Instruction:
CREATE TABLE enzyme (
id number,
name text,
location text,
product text,
chromosome text,
omim number,
porphyria text
)
CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_... | SELECT COUNT(*) FROM enzyme |
### Instruction:
CREATE TABLE table_18775 (
"Serial & Branch" real,
"Seaman" text,
"Mechanical" text,
"Secretariat" text,
"Supply" text,
"Electrical" text,
"Radio Electrical" text,
"Regulating" text,
"Medical" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT COUNT("Serial & Branch") FROM table_18775 WHERE "Radio Electrical" = 'Hon S Lt(R)' |
### Instruction:
CREATE TABLE table_14384 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance for the date of 7 ... | SELECT AVG("Attendance") FROM table_14384 WHERE "H / A" = 'h' AND "Date" = '7 november 2007' |
### Instruction:
CREATE TABLE table_25831483_1 (
actor_actress VARCHAR,
character VARCHAR,
last_appearance VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the actor/actress with a last appearance of 1 january 2010 and total is 2... | SELECT actor_actress FROM table_25831483_1 WHERE last_appearance = "1 January 2010" AND total = 20 AND character = "Vanessa 'Nessa' Jenkins" |
### Instruction:
CREATE TABLE table_72585 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Yacht" FROM table_72585 WHERE "Sail number" = '6952' |
### Instruction:
CREATE TABLE table_25745 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Original air date" FROM table_25745 WHERE "No. in season" = '22' |
### Instruction:
CREATE TABLE wrestler (
wrestler_id number,
name text,
reign text,
days_held text,
location text,
event text
)
CREATE TABLE elimination (
elimination_id text,
wrestler_id text,
team text,
eliminated_by text,
elimination_move text,
time text
)
-- Using ... | SELECT time FROM elimination WHERE eliminated_by = "Punk" OR eliminated_by = "Orton" |
### Instruction:
CREATE TABLE table_13445 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text,
"Year Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year Joined has an Enrollment... | SELECT MAX("Year Joined") FROM table_13445 WHERE "Enrollment" < '726' AND "School" = 'tri-west' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.