instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_47882 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Beverly Perdue" text,
"Republican: Pat McCrory" text,
"Libertarian: Michael Munger" text,
"Lead Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Libertarian: Michael Munger" FROM table_47882 WHERE "Republican: Pat McCrory" = '40%' AND "Lead Margin" > '3' |
### Instruction:
CREATE TABLE table_10697 (
"Party" text,
"1999 Election" real,
"2003 Election" real,
"2007 Election" real,
"May 2010" real,
"2011 Election" real,
"May 2012" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In May 2010, which p... | SELECT MAX("May 2012") FROM table_10697 WHERE "May 2010" < '3' |
### 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 T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T2.Height DESC |
### Instruction:
CREATE TABLE table_21758 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Color commentator" text,
"Sideline reporters" text,
"Pregame host" text,
"Pregame analysts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pr... | SELECT "Pregame analysts" FROM table_21758 WHERE "Sideline reporters" = 'Rob Stone and Monica Gonzalez' AND "Network" = 'TSN2' |
### Instruction:
CREATE TABLE table_60904 (
"Name" text,
"Mail transfer agent" text,
"Mail storage type" text,
"IMAP server" text,
"IMAP shared" text,
"Calendar format" text,
"Calendar shared" text,
"IM server" text,
"WebDAV" text,
"Web UI" text,
"Contacts shared" text,
"... | SELECT "IMAP shared" FROM table_60904 WHERE "Web UI" = 'web ui' |
### Instruction:
CREATE TABLE table_24302 (
"Census division" text,
"Area (km\u00b2)" text,
"Pop. (2011)" real,
"Pop. (2006)" real,
"Pop. (2001)" real,
"Pop. (1996)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people lived in the cen... | SELECT "Pop. (1996)" FROM table_24302 WHERE "Area (km\u00b2)" = '15767.99' |
### Instruction:
CREATE TABLE table_9528 (
"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 "Score" FROM table_9528 WHERE "Game" > '47' AND "Location Attendance" = 'rose garden 20,250' |
### Instruction:
CREATE TABLE table_name_67 (
inflation_index__2000 INTEGER,
per_capita_income__as__percentage_of_usa_ VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of ... | SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990 |
### Instruction:
CREATE TABLE table_40925 (
"From" real,
"Goal" text,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Round 1 from 1977 whe... | SELECT "Round 1" FROM table_40925 WHERE "Round 4" = 'double' AND "From" = '1977' AND "Round 3" = 'double' |
### Instruction:
CREATE TABLE table_65689 (
"Mexico" text,
"Ma\u00f1ana es para siempre" text,
"El Canal de las Estrellas" text,
"October 20, 2008" text,
"June 14, 2009" text,
"Monday to Friday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT "Monday to Friday" FROM table_65689 WHERE "Ma\u00f1ana es para siempre" = 'impreuna pentru totdeauna' |
### Instruction:
CREATE TABLE table_2111 (
"Rnd." real,
"Circuit" text,
"LMP1 Winning Team" text,
"LMP2 Winning Team" text,
"GT1 Winning Team" text,
"GT2 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When julie... | SELECT COUNT("Rnd.") FROM table_2111 WHERE "GT1 Winning Team" = 'Julien Jousse Patrice Goueslard Yann Clairay' |
### Instruction:
CREATE TABLE table_22159 (
"Team" text,
"B10 Conference" text,
"B10 %" text,
"B10 Home" text,
"B10 Road" text,
"All Games" text,
"All Games %" text,
"All Home" text,
"All Road" text,
"All Neutral" text
)
-- Using valid SQLite, answer the following questions for... | SELECT "All Neutral" FROM table_22159 WHERE "B10 %" = '.833' |
### Instruction:
CREATE TABLE table_68129 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT AVG("Races") FROM table_68129 WHERE "Podiums" < '2' AND "Position" = '19th' AND "Season" < '2009' |
### Instruction:
CREATE TABLE office_locations (
building_id number,
company_id number,
move_in_year number
)
CREATE TABLE buildings (
id number,
name text,
city text,
height number,
stories number,
status text
)
CREATE TABLE companies (
id number,
name text,
headquarte... | SELECT industry, COUNT(*) FROM companies GROUP BY industry |
### Instruction:
CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE... | SELECT Low_Estimate, High_Estimate FROM film_market_estimation |
### Instruction:
CREATE TABLE table_204_255 (
id number,
"constituency number" number,
"name" text,
"reserved for (sc/st/none)" text,
"district" text,
"number of electorates (2009)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the number of ... | SELECT "name" FROM table_204_255 WHERE "number of electorates (2009)" < (SELECT "number of electorates (2009)" FROM table_204_255 WHERE "name" = 'niwari') |
### Instruction:
CREATE TABLE table_22011 (
"Name" text,
"Volume" text,
"Engine" text,
"Fuel" text,
"Output" text,
"Torque" text,
"Engine ID code(s)" text,
"0\u2013100km/h,s" text,
"Top speed" text,
"CO 2" text,
"Years" text
)
-- Using valid SQLite, answer the following que... | SELECT COUNT("CO 2") FROM table_22011 WHERE "Engine ID code(s)" = 'ATD/AXR' |
### Instruction:
CREATE TABLE table_48251 (
"Country" text,
"Preliminary" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the country with less than 9.033... | SELECT "Country" FROM table_48251 WHERE "Swimsuit" < '9.033' AND "Interview" = '8.611' AND "Preliminary" < '8.87' |
### Instruction:
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
-- 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 WHERE director <> "null" ORDER BY stars DESC |
### Instruction:
CREATE TABLE table_203_94 (
id number,
"year" number,
"player" text,
"country" text,
"score" text,
"to par" number,
"margin\nof victory" text,
"course" text,
"location" text,
"purse ($)" number,
"winner's\nshare ($)" number
)
-- Using valid SQLite, answer t... | SELECT "player" FROM table_203_94 GROUP BY "player" ORDER BY SUM("winner's\nshare ($)") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_79563 (
"Year" real,
"Competition Description" text,
"Location" text,
"Apparatus" text,
"Rank-Final" text,
"Score-Final" real,
"Rank-Qualifying" text,
"Score-Qualifying" real
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Apparatus" FROM table_79563 WHERE "Score-Final" < '75.5' AND "Score-Qualifying" < '18.7' |
### 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 T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code |
### Instruction:
CREATE TABLE table_6180 (
"Model" text,
"Platform & Frequency [MHz]" text,
"RAM [MB]" text,
"Flash Memory [MB]" text,
"Wireless NIC" text,
"WLAN standard [802.11]" text,
"Ethernet port count" text,
"Voltage Input [V/A]" text
)
-- Using valid SQLite, answer the followin... | SELECT "Voltage Input [V/A]" FROM table_6180 WHERE "Model" = 'whr-g54s' |
### Instruction:
CREATE TABLE table_30885 (
"Code" text,
"Subdivision name ( be ) (BGN/PCGN)" text,
"Subdivision name ( be ) (GOST)" text,
"Subdivision name ( ru ) (BGN/PCGN)" text,
"Subdivision name ( ru ) (GOST)" text,
"Subdivision category" text
)
-- Using valid SQLite, answer the following... | SELECT "Code" FROM table_30885 WHERE "Subdivision name ( ru ) (BGN/PCGN)" = 'Grodnenskaya oblast' |
### Instruction:
CREATE TABLE table_40416 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 10:00, when 9:30 is 'Grey's Anatomy (Reruns)', and when 8:00 is 'Samantha Who?'?
### Res... | SELECT "10:00" FROM table_40416 WHERE "9:30" = 'grey''s anatomy (reruns)' AND "8:00" = 'samantha who?' |
### Instruction:
CREATE TABLE table_60295 (
"Team" text,
"CF appearances" real,
"CF wins" real,
"Cup wins" real,
"Last CF" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of cf wins of the chicago blackhawks, which has more ... | SELECT MIN("CF wins") FROM table_60295 WHERE "CF appearances" > '4' AND "Last CF" = '2013' AND "Team" = 'chicago blackhawks' AND "Cup wins" > '2' |
### Instruction:
CREATE TABLE table_21482 (
"Year" real,
"West Manila" text,
"East Manila" text,
"Consumer Price Index (2005=100)" text,
"West Manila as a share of 1996 real tariff" text,
"East Manila as a share of 1996 real tariff" text
)
-- Using valid SQLite, answer the following questions ... | SELECT "West Manila" FROM table_21482 WHERE "Consumer Price Index (2005=100)" = '60.6' |
### Instruction:
CREATE TABLE table_204_84 (
id number,
"no" number,
"peak" text,
"location" text,
"elevation (m)" number,
"prominence (m)" number,
"col height (m)" number,
"col location" text,
"parent" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT (SELECT "prominence (m)" FROM table_204_84 WHERE "peak" = 'pizzo di coca') > 2000 |
### Instruction:
CREATE TABLE table_55695 (
"D 41" text,
"D 42" text,
"D 43" text,
"D 44" text,
"D 45" text,
"D 46" text,
"D 47" text,
"R 53" text,
"R 52" text,
"R 51" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the D ... | SELECT "D 41" FROM table_55695 WHERE "R 51" = 'r 11' |
### Instruction:
CREATE TABLE table_72737 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? Panelists" text,
"Coat Of Cash Wearing Celebrity" text
)
-- Using valid SQLite, answer the following questions... | SELECT COUNT("Who knows the most about the guest host? Panelists") FROM table_72737 WHERE "Coat Of Cash Wearing Celebrity" = 'Matt Di Angelo' |
### Instruction:
CREATE TABLE table_55931 (
"Club" text,
"Position in 2012" text,
"First season" text,
"Number of seasons" real,
"First season of current spell" real,
"Titles" real,
"Last title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MAX("Number of seasons") FROM table_55931 WHERE "Position in 2012" = '10th' AND "First season of current spell" > '2004' |
### Instruction:
CREATE TABLE table_204_812 (
id number,
"#" number,
"prime minister" text,
"date of birth" text,
"start date\nof (first) term" text,
"age at beginning\nof (first) term" text,
"end date\nof (final) term" text,
"total time in\noffice" text,
"date of death" text,
"l... | SELECT "prime minister" FROM table_204_812 ORDER BY "total time in\noffice" LIMIT 1 |
### Instruction:
CREATE TABLE table_50403 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"Ast. Avg." real,
"Total Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASS... | SELECT AVG("Ast. Avg.") FROM table_50403 WHERE "Games" > '101' AND "Rank" = '5' AND "Total Assists" < '331' |
### Instruction:
CREATE TABLE table_49206 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" real,
"Avg. Finish" real,
"Winnings" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT SUM("Avg. Finish") FROM table_49206 WHERE "Year" = '2007' AND "Starts" < '1' |
### Instruction:
CREATE TABLE table_49209 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Score" FROM table_49209 WHERE "Location Attendance" = 'madison square garden unknown' AND "High rebounds" = 'sidney green (10)' |
### Instruction:
CREATE TABLE table_57805 (
"Annual ridership (2012)" real,
"Rider. per mile" real,
"Opened" real,
"Stations" real,
"Lines" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which station has 3,871 riders per mile, and an annual ridersh... | SELECT MAX("Stations") FROM table_57805 WHERE "Rider. per mile" = '3,871' AND "Annual ridership (2012)" > '15,399,400' |
### Instruction:
CREATE TABLE table_13081 (
"Date (dd.mm.yyyy)" text,
"Soviet Unit" text,
"Aircraft flown" text,
"Enemy Aircraft" text,
"Axis Unit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the victory when the Soviet Unit ... | SELECT "Date (dd.mm.yyyy)" FROM table_13081 WHERE "Soviet Unit" = '73 giap' AND "Enemy Aircraft" = 'bf.109g-? w.nr.?' |
### Instruction:
CREATE TABLE table_train_162 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"serum_potassium" float,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
)
-- Using valid SQLite, answer the foll... | SELECT * FROM table_train_162 WHERE hemoglobin_a1c_hba1c > 12 |
### Instruction:
CREATE TABLE table_32870 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team's score ... | SELECT "Away team score" FROM table_32870 WHERE "Crowd" > '16,500' AND "Home team score" = '15.15 (105)' |
### Instruction:
CREATE TABLE table_29763 (
"Stadium" text,
"City" text,
"Capacity" real,
"Matches played" real,
"Overall attendance" real,
"Average attendance per match" real,
"Average attendance as % of Capacity" text,
"Overall goals scored" real,
"Average goals scored per match" t... | SELECT MIN("Overall attendance") FROM table_29763 WHERE "Overall goals scored" = '19' |
### Instruction:
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
... | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_24759 (
"Year" real,
"Tournaments played" real,
"Cuts made" real,
"Wins" real,
"3rds" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" text,
"Money list rank" real,
"Scoring average" text
)
-- Using valid SQLite, answer the following ... | SELECT "Money list rank" FROM table_24759 WHERE "Earnings ($)" = '309,886' |
### Instruction:
CREATE TABLE table_10188 (
"Rank" real,
"Gymnast" text,
"Floor Exercise" real,
"Pommel Horse" real,
"Rings" real,
"Vault" real,
"Parallel Bars" real,
"Horizontal Bar" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT COUNT("Pommel Horse") FROM table_10188 WHERE "Rank" > '16' AND "Vault" = '9.475' |
### Instruction:
CREATE TABLE table_27814 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "State/country" FROM table_27814 WHERE "Elapsed time d:hh:mm:ss" = '3:04:06:38' |
### Instruction:
CREATE TABLE table_train_78 (
"id" int,
"mini_mental_state_examination_mmse" int,
"consent" bool,
"swallow_oral_medication" bool,
"rosen_modified_hachinski_ischemic_score" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT * FROM table_train_78 WHERE mini_mental_state_examination_mmse >= 10 AND mini_mental_state_examination_mmse <= 20 |
### Instruction:
CREATE TABLE table_1634 (
"Period" text,
"% trains arriving within 5 mins of scheduled time (over three months)" text,
"Change over same quarter the previous year" text,
"% trains arriving within 5 mins of scheduled time Moving Annual Average (MAA)" text,
"Change over previous year ... | SELECT "Change over previous year as a whole" FROM table_1634 WHERE "Change over same quarter the previous year" = 'Up 2.8%' |
### Instruction:
CREATE TABLE table_30718 (
"Athens XI" text,
"PIFA Colaba FC u-17" text,
"Tata Power" text,
"Dadar XI \u2018B\u2019" text,
"IDBI" text,
"World Network Services" text,
"United FC" text,
"Good Shepherd" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "United FC" FROM table_30718 WHERE "PIFA Colaba FC u-17" = 'Maratha United' |
### Instruction:
CREATE TABLE table_24556 (
"Municipality" text,
"Type" text,
"District" text,
"Area (km\u00b2)" text,
"Population (2010)" real,
"Pop. Density (per km\u00b2)" text,
"No. of Barangays" real,
"Municipal Mayor" text
)
-- Using valid SQLite, answer the following questions f... | SELECT COUNT("Population (2010)") FROM table_24556 WHERE "Municipality" = 'Cavinti' |
### 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 T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code |
### Instruction:
CREATE TABLE table_34516 (
"Year" real,
"Champion" text,
"Country" text,
"Venue" text,
"Location" text,
"Score" text,
"To par" text,
"Purse ( $ )" real,
"Winner's share ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT MAX("Year") FROM table_34516 WHERE "Venue" = 'blackwolf run, composite course' AND "Score" = '281' |
### Instruction:
CREATE TABLE table_61756 (
"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("Goals for") FROM table_61756 WHERE "Wins" > '15' AND "Goal Difference" > '35' |
### Instruction:
CREATE TABLE table_77492 (
"Masculine a-stems" text,
"Masculine u-stems" text,
"Feminine \u014d-stems" text,
"Neuter a-stems" text,
"Masculine an-stems" text,
"Feminine \u014dn-stems" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Feminine \u014dn-stems" FROM table_77492 WHERE "Feminine \u014d-stems" = 'siangu' |
### Instruction:
CREATE TABLE table_36631 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the foll... | SELECT "Losing bonus" FROM table_36631 WHERE "Try bonus" = '3' AND "Tries for" = '47' |
### Instruction:
CREATE TABLE table_52732 (
"Year" real,
"Team name" text,
"Drivers" text,
"Races" real,
"Wins" real,
"Poles" real,
"FLaps" real,
"Points" real,
"D.C." text,
"T.C." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT AVG("Points") FROM table_52732 WHERE "Drivers" = 'adrián vallés' AND "Year" > '2006' |
### Instruction:
CREATE TABLE table_49424 (
"Player" text,
"Team" text,
"Matches" real,
"Overs" real,
"Wickets" real,
"Economy Rate" real,
"Average" real,
"Strike Rate" real,
"Best Bowling" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT SUM("Matches") FROM table_49424 WHERE "Overs" < '59.1' AND "Economy Rate" > '6.78' |
### Instruction:
CREATE TABLE table_203_794 (
id number,
"year" number,
"location" text,
"attendance" number,
"theme phrase" text,
"top messages" text,
"host" text,
"opening general session guest(s)" text,
"closing general session guest(s)" text,
"sunday night reception" text,
... | SELECT "location" FROM table_203_794 ORDER BY "attendance" DESC LIMIT 1 |
### Instruction:
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
... | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_32115 (
"Name" text,
"Martyred" real,
"Place" text,
"Beatified" real,
"Canonised" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonis... | SELECT MAX("Martyred") FROM table_32115 WHERE "Beatified" = '1909' AND "Name" = 'john hoan trinh doan / st. john hoan' AND "Canonised" > '1988' |
### Instruction:
CREATE TABLE table_75365 (
"Athlete" text,
"Sport" text,
"Type" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average gold of the win... | SELECT AVG("Gold") FROM table_75365 WHERE "Bronze" = '1' AND "Type" = 'winter' AND "Silver" < '3' AND "Total" < '4' |
### Instruction:
CREATE TABLE station (
station_id number,
name text,
annual_entry_exit number,
annual_interchanges number,
total_passengers number,
location text,
main_services text,
number_of_platforms number
)
CREATE TABLE train_station (
train_id number,
station_id number
)
... | SELECT location FROM station EXCEPT SELECT location FROM station WHERE number_of_platforms >= 15 |
### Instruction:
CREATE TABLE table_204_721 (
id number,
"rank" number,
"wrestler" text,
"no. of reigns" number,
"combined\ndefenses" number,
"combined\ndays" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- between super dragon , scott lost and... | SELECT "wrestler" FROM table_204_721 WHERE "wrestler" IN ('super dragon', 'scott lost', 'paul london') ORDER BY "no. of reigns" + "combined\ndefenses" DESC LIMIT 1 |
### Instruction:
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
-- Using valid SQLite, answer ... | SELECT Nominee, COUNT(Nominee) FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" GROUP BY Nominee |
### Instruction:
CREATE TABLE table_39086 (
"Team" text,
"Recopa 1994" text,
"Supercopa 1994" text,
"CONMEBOL 1994" text,
"Copa Libertadores 1995" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994... | SELECT "Team" FROM table_39086 WHERE "Recopa 1994" = 'n/a' AND "CONMEBOL 1994" = '1st round' |
### Instruction:
CREATE TABLE table_54791 (
"Player" text,
"Total Win-Loss" text,
"Singles Win-Loss" text,
"Doubles Win-Loss" text,
"No. of ties" real,
"First year played" real,
"Years Played" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT SUM("Years Played") FROM table_54791 WHERE "Singles Win-Loss" = '4-9' AND "First year played" < '1999' |
### Instruction:
CREATE TABLE table_23666 (
"Player" text,
"Played" real,
"Sets Won" real,
"Sets Lost" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
)
-- Using valid SQLite, answer the following q... | SELECT "Player" FROM table_23666 WHERE "3-dart Average" = '75.76' |
### Instruction:
CREATE TABLE table_43192 (
"Position" text,
"Jersey #" real,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1980\u20131981 Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "1980\u20131981 Team" FROM table_43192 WHERE "Birthplace" = 'warroad, minnesota' |
### Instruction:
CREATE TABLE table_27813 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Sail number" FROM table_27813 WHERE "Elapsed time d:hh:mm:ss" = '2:22:30:42' |
### Instruction:
CREATE TABLE table_204_163 (
id number,
"airline" text,
"icao" text,
"iata" text,
"callsign" text,
"commenced\noperations" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference between the time air uganda comme... | SELECT ABS((SELECT "commenced\noperations" FROM table_204_163 WHERE "airline" = 'air uganda') - (SELECT "commenced\noperations" FROM table_204_163 WHERE "airline" = 'skyjet airlines')) |
### Instruction:
CREATE TABLE table_29311 (
"Team" text,
"Home Gms" real,
"Home Total" real,
"Home Avg" real,
"Top Home Crowd" text,
"Road Gms" real,
"Road Total" real,
"Road Avg" real,
"Overall Gms" real,
"Overall Total" real,
"Overall Avg" real
)
-- Using valid SQLite, an... | SELECT COUNT("Overall Gms") FROM table_29311 WHERE "Overall Avg" = '12796' |
### Instruction:
CREATE TABLE table_7480 (
"Year" real,
"Events played" real,
"Cuts made" real,
"Wins" real,
"2nds" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Rank" text,
"Scoring average" real,
"Scoring rank" text
)
-- Using valid SQLite, answer the fo... | SELECT MIN("Cuts made") FROM table_7480 WHERE "Scoring average" < '72.48' |
### Instruction:
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
... | SELECT name, salary FROM employee WHERE eid = 242518965 |
### Instruction:
CREATE TABLE table_7300 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date when the Set 1 is 25 21, ... | SELECT "Date" FROM table_7300 WHERE "Set 1" = '25–21' AND "Score" = '3–0' AND "Time" = '11:00' |
### Instruction:
CREATE TABLE table_train_74 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"mini_mental_state_examination_mmse" int,
"clinical_dementia_rating_cdr" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT * FROM table_train_74 WHERE pregnancy_or_lactation = 0 |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name |
### Instruction:
CREATE TABLE election (
election_id number,
counties_represented text,
district number,
delegate text,
party number,
first_elected number,
committee text
)
CREATE TABLE county (
county_id number,
county_name text,
population number,
zip_code text
)
CREATE T... | SELECT COUNT(*) FROM county |
### Instruction:
CREATE TABLE table_31859 (
"Place" real,
"Lane" real,
"Name" text,
"Nationality" text,
"50m Split" real,
"100m Split" text,
"150m Split" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average 50m split... | SELECT AVG("50m Split") FROM table_31859 WHERE "150m Split" = '1:40.00' AND "Place" < '2' |
### Instruction:
CREATE TABLE table_40513 (
"Date" real,
"Doubles, I Class" real,
"Doubles, II Class" real,
"Greater Doubles" real,
"Doubles" real,
"Semidoubles" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest... | SELECT MIN("Greater Doubles") FROM table_40513 WHERE "Doubles, I Class" = '23' AND "Doubles, II Class" < '27' |
### Instruction:
CREATE TABLE table_203_823 (
id number,
"model name" text,
"date" text,
"type" text,
"thrust (kg) / power (eshp)" text,
"fitted to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in thrust between the al-7... | SELECT ABS((SELECT "thrust (kg) / power (eshp)" FROM table_203_823 WHERE "model name" = 'al-7') - (SELECT "thrust (kg) / power (eshp)" FROM table_203_823 WHERE "model name" = 'al-21')) |
### Instruction:
CREATE TABLE table_70957 (
"Parties and voter communities" text,
"% 2006" real,
"seats 2006" real,
"% 2001" real,
"seats 2001" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When seats for 2001 is greater than 15 and % 2001 is great... | SELECT AVG("% 2006") FROM table_70957 WHERE "seats 2001" > '15' AND "% 2001" > '100' |
### Instruction:
CREATE TABLE table_76349 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the foll... | SELECT "Points against" FROM table_76349 WHERE "Losing bonus" = '0' AND "Club" = 'banwen rfc' |
### Instruction:
CREATE TABLE table_204_246 (
id number,
"department" text,
"total deputies" number,
"uninominal deputies" number,
"plurinominal deputies" number,
"special indigenous\nor campesino deputies" number,
"senators" number
)
-- Using valid SQLite, answer the following questions f... | SELECT ABS((SELECT "total deputies" FROM table_204_246 WHERE "department" = 'beni') - (SELECT "senators" FROM table_204_246 WHERE "department" = 'beni')) |
### Instruction:
CREATE TABLE table_203_104 (
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.
-- how many more silver medal... | SELECT (SELECT "silver" FROM table_203_104 WHERE "athlete" = 'gillis grafstrom') - (SELECT "silver" FROM table_203_104 WHERE "athlete" = 'sonja henie') |
### Instruction:
CREATE TABLE table_72822 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Market Value (billion $)" FROM table_72822 WHERE "Sales (billion $)" = '172.7' |
### Instruction:
CREATE TABLE table_15189 (
"Year" real,
"Population (Total)" real,
"(Barcaldine)" real,
"(Aramac)" real,
"(Jericho)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average (Barcaldine) with a Population (Total) less than... | SELECT AVG("(Barcaldine)") FROM table_15189 WHERE "Population (Total)" < '3,594' AND "(Jericho)" = '920' AND "Year" > '2006' |
### Instruction:
CREATE TABLE table_55084 (
"Series ^" text,
"Model" text,
"CPU clock ( MHz )" text,
"CPU cores" real,
"TDP ( W )" text,
"L2 cache (KiB)" text,
"Radeon cores" real,
"DDR3 speed" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Series ^" FROM table_55084 WHERE "CPU clock ( MHz )" = '1500' AND "Model" = 't-52r' |
### Instruction:
CREATE TABLE table_204_781 (
id number,
"name(s)" text,
"yard no." number,
"type (as built)" text,
"owner" text,
"imo number" number,
"laid down" text,
"launched" text,
"delivered/\ncommissioned" text,
"fate/\ndecommissioned" text,
"notes" text
)
-- Using v... | SELECT "name(s)" FROM table_204_781 WHERE "type (as built)" = 'lightvessel' |
### Instruction:
CREATE TABLE table_204_587 (
id number,
"drop(s)" text,
"multiplayer map(s)" text,
"spec ops mission(s)" text,
"face off map(s)" text,
"xbox 360 release date" text,
"playstation 3 release date" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "spec ops mission(s)" FROM table_204_587 WHERE id = (SELECT id FROM table_204_587 WHERE "spec ops mission(s)" = 'arctic recon') + 1 |
### Instruction:
CREATE TABLE table_34617 (
"Region served" text,
"City" text,
"Channels ( Analog / Digital )" text,
"First air date" text,
"ERP (Analog/ Digital)" text,
"HAAT (Analog/ Digital) 1" text,
"Transmitter Location" text
)
-- Using valid SQLite, answer the following questions for... | SELECT "Region served" FROM table_34617 WHERE "HAAT (Analog/ Digital) 1" = '1176 m 1190 m' |
### Instruction:
CREATE TABLE table_49012 (
"Season" text,
"Passenger" text,
"Equipment" text,
"Position" text,
"Points" real,
"Races" real,
"Wins" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were... | SELECT "Wins" FROM table_49012 WHERE "Points" > '145' AND "Passenger" = 'sven verbrugge' AND "Races" < '17' |
### Instruction:
CREATE TABLE table_59153 (
"Aircraft" text,
"1990" real,
"destroyed" real,
"damaged" real,
"to Iran" real,
"survived" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average destroyed with a 1990 over 12, more than 1 d... | SELECT AVG("destroyed") FROM table_59153 WHERE "1990" > '12' AND "damaged" > '1' AND "to Iran" < '4' AND "survived" = '6' |
### Instruction:
CREATE TABLE table_72960 (
"Measure" text,
"Bo" real,
"Bombali" real,
"Bonthe" real,
"Kailahun" real,
"Kambia" text,
"Kenema" real,
"Koinadugu" real,
"Kono" real,
"Moyamba" text,
"Port Loko" text,
"Pujehun" real,
"Tonkolili" real
)
-- Using valid SQ... | SELECT MIN("Tonkolili") FROM table_72960 |
### Instruction:
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Ma... | SELECT Open_Date, COUNT(Open_Date) FROM church ORDER BY Open_Date |
### Instruction:
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Ma... | SELECT Country, COUNT(Country) FROM people WHERE Age < (SELECT AVG(Age) FROM people) GROUP BY Country |
### Instruction:
CREATE TABLE table_dev_2 (
"id" int,
"nutrient_absorption" bool,
"systolic_blood_pressure_sbp" int,
"active_metabolic" bool,
"hepatic_disease" bool,
"surgery" bool,
"diastolic_blood_pressure_dbp" int,
"gastrointestinal_disease" bool,
"organ_failure" bool,
"NOUSE"... | SELECT * FROM table_dev_2 WHERE surgery = 1 |
### Instruction:
CREATE TABLE table_25037577_1 (
superintendent VARCHAR,
year VARCHAR,
middle_school_principal VARCHAR,
gorham_principal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the superintendent(s) when the middle school principal wa... | SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-2007" |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name DESC |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Code DESC |
### Instruction:
CREATE TABLE film_market_estimation (
estimation_id number,
low_estimate number,
high_estimate number,
film_id number,
type text,
market_id number,
year number
)
CREATE TABLE film (
film_id number,
title text,
studio text,
director text,
gross_in_dollar ... | SELECT COUNT(*) FROM market WHERE number_cities < 300 |
### Instruction:
CREATE TABLE table_60165 (
"Year" real,
"Championship" text,
"Partnering" text,
"Opponents in Final" text,
"Score in Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What championship tournament did Ronald Vink play in with mai... | SELECT "Championship" FROM table_60165 WHERE "Partnering" = 'maikel scheffers' AND "Year" > '2007' AND "Opponents in Final" = 'stephane houdet nicolas peiffer' |
### Instruction:
CREATE TABLE table_60091 (
"Country" text,
"Region" text,
"FHFreepressreport" text,
"RWB Pressfreedomindex" text,
"Internetlists" text,
"ONIpoliticalfiltering" text,
"ONIsocialfiltering" text,
"ONIsecurityfiltering" text,
"ONItoolsfiltering" text
)
-- Using valid S... | SELECT "Country" FROM table_60091 WHERE "Internetlists" = '—' AND "ONIsecurityfiltering" = '—' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.