instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_51414 (
"Air Date" text,
"Timeslot (EST)" text,
"Season" text,
"Rating" real,
"Share" real,
"18-49 (Rating/Share)" text,
"Viewers (m)" real,
"Weekly Rank (#)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT SUM("Rating") FROM table_51414 WHERE "Weekly Rank (#)" = '10' AND "Share" < '11' |
### Instruction:
CREATE TABLE table_48468 (
"Name" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Laps is '50', when Grid is greater than 9, when Team is 'Jim Beam Racing... | SELECT "Name" FROM table_48468 WHERE "Laps" = '50' AND "Grid" > '9' AND "Team" = 'jim beam racing' AND "Time/Retired" = '+ 18.0s' |
### Instruction:
CREATE TABLE table_203_592 (
id number,
"institution" text,
"location" text,
"athletic nickname" text,
"undergraduate enrollment" number,
"graduate enrollment" number,
"total enrollment" number,
"2013 endowment\n(and us rank)" text,
"academic staff" number,
"mott... | SELECT "institution" FROM table_203_592 ORDER BY "undergraduate enrollment" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_68692 (
"Episode #" real,
"Title" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Part 5" text,
"Part 6" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Title, when the Ep... | SELECT "Title" FROM table_68692 WHERE "Episode #" > '2' AND "Part 6" = 'january 6, 2008' |
### 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, COUNT(Name) FROM Products WHERE Price <= 200 GROUP BY Name ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_6386 (
"Rank" real,
"Name" text,
"Attempts" real,
"Net Yds" real,
"Yds/Att" real,
"Touchdowns" real,
"Long" real,
"Start" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attempts did the player... | SELECT SUM("Attempts") FROM table_6386 WHERE "Start" > '1997' AND "Yds/Att" = '5' AND "Rank" > '1' |
### Instruction:
CREATE TABLE table_5740 (
"Records" text,
"Pct." real,
"MRC Championships" real,
"Solo" real,
"Co-Champions" real,
"State Champions" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of state champions with more tan... | SELECT SUM("State Champions") FROM table_5740 WHERE "MRC Championships" > '9' AND "Records" = '192-189-3' AND "Co-Champions" > '4' |
### Instruction:
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
... | SELECT Date_of_Birth, Height FROM people ORDER BY Height DESC |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Price, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 GROUP BY Name |
### Instruction:
CREATE TABLE table_52266 (
"model" text,
"cylinders/ valves" text,
"displacement cc" real,
"max. power kW (PS) at rpm" text,
"max. torque (Nm) at rpm" text,
"engine code" text,
"top speed (km/h)" real,
"production period" text
)
-- Using valid SQLite, answer the follow... | SELECT "max. torque (Nm) at rpm" FROM table_52266 WHERE "model" = '1.4 16v' |
### Instruction:
CREATE TABLE table_24780 (
"Year" real,
"W: L: D" text,
"Position" text,
"Chairman" text,
"CEO" text,
"Coach" text,
"Captain" text,
"Vice-Captain" text,
"Best and Fairest" text,
"Leading Goalkicker" text
)
-- Using valid SQLite, answer the following questions f... | SELECT COUNT("Chairman") FROM table_24780 WHERE "W: L: D" = '13:10:0' |
### Instruction:
CREATE TABLE table_15882 (
"Year" real,
"Tournaments played" real,
"Cuts made*" real,
"Wins" real,
"2nd" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Money list rank" text,
"Scoring average" text,
"Scoring rank" text
)
-- Using valid SQLi... | SELECT COUNT("Wins") FROM table_15882 WHERE "Money list rank" = '183' |
### Instruction:
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (... | SELECT Age, COUNT(*) FROM Student GROUP BY Age |
### Instruction:
CREATE TABLE table_13825 (
"Brand" text,
"Model" text,
"Type" text,
"Modem" text,
"Storage" text,
"CPU speed" text,
"CPU chip" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the RCA RW-2110, which has 2 M... | SELECT "Type" FROM table_13825 WHERE "Modem" = 'v.90' AND "Storage" = '2 mb' AND "Brand" = 'rca' AND "Model" = 'rw-2110' |
### Instruction:
CREATE TABLE table_47530 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT COUNT("Points 1") FROM table_47530 WHERE "Lost" < '20' AND "Goals For" > '92' |
### Instruction:
CREATE TABLE table_13310 (
"Number" real,
"Sanskrit" text,
"International Alphabet of Sanskrit Transliteration" text,
"Sanskrit gloss" text,
"Western name" text,
"Greek" text,
"Gloss" text,
"Tattva (Element)" text,
"Quality" text,
"Ruling Planet" text
)
-- Usin... | SELECT "International Alphabet of Sanskrit Transliteration" FROM table_13310 WHERE "Sanskrit" = 'मेष' |
### Instruction:
CREATE TABLE table_name_17 (
pop__2010_ INTEGER,
geo_id VARCHAR,
land___sqmi__ VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total population in 2010 for the township located in Mountrail which has land l... | SELECT SUM(pop__2010_) FROM table_name_17 WHERE land___sqmi__ < 34.424 AND county = "mountrail" AND geo_id < 3806159940 |
### Instruction:
CREATE TABLE table_16648 (
"#" real,
"Episode" text,
"Air Date" text,
"Rating" text,
"Share" real,
"Rating/Share 18\u201349" text,
"Viewers (m)" text,
"Timeslot Rank" real,
"Night Rank" text,
"Overall Rank" real
)
-- Using valid SQLite, answer the following que... | SELECT "Overall Rank" FROM table_16648 WHERE "Viewers (m)" = '7.44' |
### Instruction:
CREATE TABLE table_77634 (
"YEAR" real,
"Seniors" text,
"Reserves" text,
"Thirds (Under 17's)" text,
"Fourths (Under 14's)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Seniors have YEAR before 2006, and Fourths (Under 14's)... | SELECT "Seniors" FROM table_77634 WHERE "YEAR" < '2006' AND "Fourths (Under 14's)" = 'kiewa-sandy creek' |
### 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 "year" FROM table_203_794 WHERE "location" = 'no event' |
### 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 |
### Instruction:
CREATE TABLE table_65457 (
"Athlete" text,
"Shooting Score (pts)" text,
"Fencing Victories (pts)" text,
"Swimming Time (pts)" text,
"Equestrian Time (pts)" text,
"Running Time (pts)" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Fencing Victories (pts)" FROM table_65457 WHERE "Equestrian Time (pts)" = '67.88 (1144)' |
### Instruction:
CREATE TABLE TOURIST_ATTRACTIONS (
Tourist_Attraction_ID VARCHAR,
How_to_Get_There VARCHAR
)
CREATE TABLE Street_Markets (
Market_Details VARCHAR,
Market_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the details of the ... | SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" OR T2.How_to_Get_There = "bus" |
### Instruction:
CREATE TABLE table_20623 (
"Missouri vs." text,
"Overall Record" text,
"at Columbia" text,
"at Opponents Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Since Joining SEC" text
)
-- Using valid SQLite, a... | SELECT "at Columbia" FROM table_20623 WHERE "Overall Record" = 'MU, 3-1' |
### Instruction:
CREATE TABLE table_14834 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score when the attendance is more tha... | SELECT "Score" FROM table_14834 WHERE "Attendance" > '11,062' AND "Home" = 'columbus' AND "Decision" = 'denis' AND "Date" = 'october 7' |
### Instruction:
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_I... | SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation DESC |
### Instruction:
CREATE TABLE table_72588 (
"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 "Skipper" FROM table_72588 WHERE "Corrected time d:hh:mm:ss" = '3:15:07:27' |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT year, COUNT(year) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year |
### Instruction:
CREATE TABLE table_15963 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Team(s)" FROM table_15963 WHERE "Top 5" = '9' AND "Wins" = '1' |
### Instruction:
CREATE TABLE table_53871 (
"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 COUNT("Knots") FROM table_53871 WHERE "Ship" = 'ms moby vincent' AND "Passengers" < '1.6' |
### Instruction:
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height re... | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) |
### Instruction:
CREATE TABLE table_28519 (
"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 (million)" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT COUNT("U.S. viewers (million)") FROM table_28519 WHERE "Written by" = 'Chris Sheridan & Danny Smith' |
### Instruction:
CREATE TABLE table_52656 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest evening gown score a contestant with an average less than 8... | SELECT MIN("Evening gown") FROM table_52656 WHERE "Average" < '8.23' AND "Interview" = '8.11' AND "Swimsuit" > '7.84' |
### Instruction:
CREATE TABLE table_76661 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" text,
"Wins" text,
"Poles" text,
"F.L." text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Races" FROM table_76661 WHERE "Series" = 'gp2 series' AND "F.L." = '0' AND "Position" = '17th' |
### Instruction:
CREATE TABLE table_69964 (
"Season" text,
"Team" text,
"Racing team" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Drivers" text,
"Wins" text,
"Sprints wins" text,
"Main wins" text,
"Poles" text,
"Fastest Laps" text,
"Points" text
)
-- Using v... | SELECT "Poles" FROM table_69964 WHERE "Racing team" = 'status grand prix' |
### Instruction:
CREATE TABLE table_58851 (
"Drug" text,
"Mean" real,
"Pleasure" real,
"Psychological dependence" real,
"Physical dependence" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Psychological Dependence, when Pleasure ... | SELECT MAX("Psychological dependence") FROM table_58851 WHERE "Pleasure" < '2.3' AND "Drug" = 'cannabis' AND "Physical dependence" < '0.8' |
### Instruction:
CREATE TABLE table_75980 (
"Position" text,
"Jersey #" real,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"2007\u20132008 Team" text,
"NHL rights, if any" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT AVG("Height (cm)") FROM table_75980 WHERE "Birthplace" = 'bloomfield hills, michigan' |
### Instruction:
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT year, COUNT(year) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year |
### Instruction:
CREATE TABLE table_1124 (
"Role" text,
"Savoy Theatre 1888" text,
"Casino Theatre 1888" text,
"Savoy Theatre 1897" text,
"Savoy Theatre 1906" text,
"Savoy Theatre 1909" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who plays Ov... | SELECT "Casino Theatre 1888" FROM table_1124 WHERE "Savoy Theatre 1906" = 'Overton Moyle' |
### Instruction:
CREATE TABLE table_39130 (
"2004/ 05" text,
"2005/ 06" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year had a dnq of 11
### Respo... | SELECT "2005/ 06" FROM table_39130 WHERE "2010/ 11" = 'dnq' |
### Instruction:
CREATE TABLE table_25431 (
"Year" real,
"Tournaments played" real,
"Cuts made" real,
"Wins" real,
"2nd" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Money list rank" real,
"Scoring average" text,
"Scoring rank" real
)
-- Using valid SQLit... | SELECT "Top 10s" FROM table_25431 WHERE "Year" = '2007' |
### Instruction:
CREATE TABLE table_19005 (
"Rank" real,
"Airport" text,
"Total Passengers" real,
"% Change 2007/2008" text,
"International Passengers" real,
"Domestic Passengers" real,
"Transit Passengers" real,
"Aircraft Movements" real,
"Freight ( Metric Tonnes )" real
)
-- Usin... | SELECT COUNT("Transit Passengers") FROM table_19005 WHERE "Airport" = 'London Luton' |
### Instruction:
CREATE TABLE table_74251 (
"Date/Location" text,
"Mens singles" text,
"Womens Singles" text,
"U21 Mens" text,
"U21 Womens" text,
"Mixed Restricted" text,
"Mixed Veteran" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Na... | SELECT "Mixed Veteran" FROM table_74251 WHERE "Womens Singles" = 'Naomi Owen' AND "Mens singles" = 'Ricardo Walther' |
### Instruction:
CREATE TABLE table_name_19 (
_percentage_gdp VARCHAR,
surplus_deficit_ VARCHAR,
income VARCHAR,
year VARCHAR,
expenditure VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which % GDP has a Year smaller than 2011, and an Expenditure... | SELECT _percentage_gdp FROM table_name_19 WHERE year < 2011 AND expenditure > 41.3 AND income < 48 AND surplus_deficit_ = "(24.6)" |
### Instruction:
CREATE TABLE table_22480 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT MIN("ANSI code") FROM table_22480 WHERE "Land ( sqmi )" = '35.737' |
### Instruction:
CREATE TABLE table_76210 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many poles ar... | SELECT COUNT("Poles") FROM table_76210 WHERE "Season" = '2009' AND "Races" = '2' AND "F/Laps" > '0' |
### Instruction:
CREATE TABLE table_71106 (
"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.
-- Which Set 3 has a Score of 0 3, a Time of... | SELECT "Set 3" FROM table_71106 WHERE "Score" = '0–3' AND "Time" = '18:30' AND "Date" = 'july 10' |
### Instruction:
CREATE TABLE table_204_604 (
id number,
"year" number,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"race distance\nlaps" number,
"race distance\nmiles (km)" text,
"race time" text,
"average speed\n(mph)" number,
"report" text
)
-- Using va... | SELECT COUNT("driver") FROM table_204_604 WHERE "average speed\n(mph)" > 135 |
### Instruction:
CREATE TABLE table_name_83 (
march VARCHAR,
year VARCHAR,
average_monthly_additions_in_millions_ VARCHAR,
january VARCHAR,
december VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number for March with less than... | SELECT COUNT(march) FROM table_name_83 WHERE january < 8.77 AND december > 1.69 AND average_monthly_additions_in_millions_ < 5.35 AND year < 2004 |
### Instruction:
CREATE TABLE table_21565 (
"1391 Carelia" text,
"1398 Donnera" text,
"1405 Sibelius" text,
"1406 Komppa" text,
"1407 Lindel\u00f6f" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the 1405 sibelius of asteroid which 1407 lind... | SELECT "1405 Sibelius" FROM table_21565 WHERE "1407 Lindel\u00f6f" = '2020 Ukko' |
### Instruction:
CREATE TABLE table_16481 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the engine ... | SELECT "Engine" FROM table_16481 WHERE "Performance" = '0–100km/h: 10.5s, VMax km/h (mph)' |
### Instruction:
CREATE TABLE member (
Name VARCHAR,
Member_ID VARCHAR
)
CREATE TABLE member_attendance (
Member_ID VARCHAR,
Performance_ID VARCHAR
)
CREATE TABLE performance (
Date VARCHAR,
Performance_ID VARCHAR,
Attendance VARCHAR
)
-- Using valid SQLite, answer the following question... | SELECT T2.Name, T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC |
### Instruction:
CREATE TABLE table_17721 (
"Year" real,
"Population (Region total)" real,
"Population (Stanthorpe)" real,
"Population (Warwick)" real,
"Population (Allora)" real,
"Population (Glengallan)" real,
"Population (Rosenthal)" real
)
-- Using valid SQLite, answer the following qu... | SELECT COUNT("Population (Glengallan)") FROM table_17721 WHERE "Population (Region total)" = '30554' |
### Instruction:
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_pres... | SELECT COUNT(DISTINCT president_vote) FROM voting_record |
### Instruction:
CREATE TABLE table_204_218 (
id number,
"name" text,
"faith" text,
"type" text,
"gov" text,
"opened" number,
"intake" number,
"dcsf number" number,
"ofsted number" number,
"web" text,
"coordinates" text
)
-- Using valid SQLite, answer the following question... | SELECT COUNT(*) FROM table_204_218 WHERE "intake" > (SELECT "intake" FROM table_204_218 WHERE "name" = 'sacred heart') |
### Instruction:
CREATE TABLE table_33733 (
"1st player's choice" text,
"2nd player's choice" text,
"Probability 1st player wins" text,
"Probability 2nd player wins" text,
"Probability of a draw" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When t... | SELECT "Probability of a draw" FROM table_33733 WHERE "2nd player's choice" = 'r bb' AND "Probability 1st player wins" = '0.11%' |
### Instruction:
CREATE TABLE table_28818 (
"Hydrographic Basin" text,
"Surface Area (km 2 )" real,
"Rainfall totals (million m 3 )" real,
"Evapotranspiration (million m 3 )" real,
"Surface water runoff (million m 3 )" real,
"Groundwater discharge (million m 3 )" real
)
-- Using valid SQLite, ... | SELECT MIN("Rainfall totals (million m 3 )") FROM table_28818 |
### Instruction:
CREATE TABLE table_34159 (
"Barangay" text,
"Population (2010)" real,
"Economic Class" text,
"Land Area (In sqm.)" real,
"Punong Barangay (Term 2010-2013)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Economic Class has a Po... | SELECT "Economic Class" FROM table_34159 WHERE "Population (2010)" > '1,265' AND "Barangay" = 'capellan' |
### Instruction:
CREATE TABLE table_20614 (
"Missouri vs." text,
"Overall Record" text,
"at Columbia" text,
"at Opponents Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"During Time in Big 12" text
)
-- Using valid SQLit... | SELECT COUNT("Last 5 Meetings") FROM table_20614 WHERE "Missouri vs." = 'Texas Tech' |
### Instruction:
CREATE TABLE table_6179 (
"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 "Platform & Frequency [MHz]" FROM table_6179 WHERE "Model" = 'whr-g54s' |
### Instruction:
CREATE TABLE table_51616 (
"Debut year" real,
"Player" text,
"Date of birth" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date of birth for the player with goals le... | SELECT "Date of birth" FROM table_51616 WHERE "Goals" < '4' AND "Games" > '1' AND "Years at club" = '1945' AND "Player" = 'jim young' |
### Instruction:
CREATE TABLE table_train_224 (
"id" int,
"leukopenia" int,
"urinary_albumin_excretion_rate" int,
"cd4_count" int,
"body_weight" float,
"lymphopenia" int,
"hba1c" float,
"insulin_requirement" float,
"proteinuria" int,
"body_mass_index_bmi" float,
"NOUSE" float... | SELECT * FROM table_train_224 WHERE hba1c > 7 |
### Instruction:
CREATE TABLE table_27544 (
"Authority" text,
"Rate or precept" text,
"Budget limit (\u00a3m)" text,
"Budget plans (\u00a3m)" text,
"Rate limit (p)" text,
"Rate change (%)" text,
"Desired rate (p)" text,
"Desired rate change (%)" text
)
-- Using valid SQLite, answer the... | SELECT "Rate limit (p)" FROM table_27544 WHERE "Budget plans (\u00a3m)" = 'limit agreed' |
### Instruction:
CREATE TABLE table_43067 (
"Position" text,
"Jersey #" real,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1990\u20131991 Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "1990\u20131991 Team" FROM table_43067 WHERE "Birthplace" = 'new york' |
### Instruction:
CREATE TABLE table_16496 (
"#" real,
"Episode" text,
"Air Date" text,
"Rating" text,
"Share" real,
"18\u201349 (Rating/Share)" text,
"Viewers (m)" text,
"Weekly Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "18\u201349 (Rating/Share)" FROM table_16496 WHERE "Viewers (m)" = '5.61' |
### Instruction:
CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers number,
residents_per_officer number,
case_burden number,
crime_rate number,
police_force text,
location text
)
CREATE TABLE city (
city_id number,
county_id ... | SELECT name FROM city ORDER BY name |
### Instruction:
CREATE TABLE table_35895 (
"Order" real,
"Episode" text,
"Air Date" text,
"U.S. Timeslot (EST)" text,
"18-49" real,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of numbers listed in 18-49 for the epis... | SELECT SUM("18-49") FROM table_35895 WHERE "Air Date" = 'june 25, 2009' AND "Order" > '29' |
### Instruction:
CREATE TABLE table_19639 (
"Position" real,
"Race number" text,
"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 fo... | SELECT "Elapsed time d:hh:mm:ss" FROM table_19639 WHERE "Yacht type" = 'Reichel Pugh 55' |
### Instruction:
CREATE TABLE table_38286 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Drawn" FROM table_38286 WHERE "Points against" = 'correct as of 08:50 10 may 2009' |
### Instruction:
CREATE TABLE table_22429 (
"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 "LOA (Metres)" FROM table_22429 WHERE "Corrected Time d:hh:mm:ss" = '2:12:36:23' |
### Instruction:
CREATE TABLE table_23959 (
"Season" text,
"GP" real,
"W (OT/SO)" text,
"L (OT/SO)" text,
"Pts" real,
"Pts/GP" text,
"GF \u2013 GA" text,
"Rank (league/conference)" text,
"Top Scorer" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "W (OT/SO)" FROM table_23959 WHERE "Season" = '2008–09' |
### 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 WHERE NOT id IN (SELECT enzyme_id FROM medicine_enzyme_interaction) |
### Instruction:
CREATE TABLE table_47726 (
"Dates" text,
"Tournament" text,
"Prize fund ( \uffe5 )" real,
"Winner" text,
"OWGR pts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many OWGR pts have a Prize fund ( ) of 100,000,000, and a Tournam... | SELECT COUNT("OWGR pts") FROM table_47726 WHERE "Prize fund ( \uffe5 )" = '100,000,000' AND "Tournament" = 'tsuruya open' |
### 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 Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT T1.Code, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code |
### Instruction:
CREATE TABLE table_2066 (
"Role" text,
"Original Broadway Cast" text,
"Current Broadway Cast" text,
"Original Toronto Cast" text,
"First National Tour Cast" text,
"Original Australian Cast" text,
"Original West End Cast" text,
"Current West End Cast" text,
"Second Na... | SELECT "Current Broadway Cast" FROM table_2066 WHERE "Original Broadway Cast" = 'Constantine Maroulis' |
### Instruction:
CREATE TABLE table_name_12 (
land_area__km²_ INTEGER,
name VARCHAR,
population_density__per_km²_ VARCHAR,
population__2006_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Land area (km ) has a Population density (per km ) large... | SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse" |
### Instruction:
CREATE TABLE table_19304 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"1991-92" text,
"1992-93" text,
"1993-94" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average for the team with n/a in 1992... | SELECT "Average" FROM table_19304 WHERE "1991-92" = 'N/A' AND "1992-93" = '37' |
### Instruction:
CREATE TABLE table_12496904_1 (
_2012 VARCHAR,
rank_in_nyagatare_sectors INTEGER,
population_change_2002_2012___percentage_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the population change 2002-2012 (%) is 35.5 what is the rank ... | SELECT MAX(rank_in_nyagatare_sectors), _2012 FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "35.5" |
### Instruction:
CREATE TABLE table_14546 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sets were played in 2007 at the tournament that ha... | SELECT "2007" FROM table_14546 WHERE "2011" = '4r' AND "2009" = '2r' |
### Instruction:
CREATE TABLE table_60706 (
"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("Goal Difference") FROM table_60706 WHERE "Position" = '7' AND "Played" > '30' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Code DESC |
### Instruction:
CREATE TABLE browser (
id int,
name text,
market_share real
)
CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connection text
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
co... | SELECT Operating_system, COUNT(*) FROM Web_client_accelerator GROUP BY Operating_system ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE table_17788 (
"Day (see Irregularities )" text,
"Sunday Day One" text,
"Monday Day Two" text,
"Tuesday Day Three" text,
"Wednesday Day Four" text,
"Thursday Day Five" text,
"Friday Day Six" text,
"Saturday Day Seven" text
)
-- Using valid SQLite, answer th... | SELECT "Saturday Day Seven" FROM table_17788 WHERE "Thursday Day Five" = 'ሐሙስ hamus' |
### Instruction:
CREATE TABLE table_204_609 (
id number,
"year" number,
"car" number,
"start" number,
"qual" number,
"rank" number,
"finish" number,
"laps" number,
"led" number,
"retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "year" FROM table_204_609 WHERE "year" <> 1964 AND "car" = (SELECT "car" FROM table_204_609 WHERE "year" = 1964) |
### Instruction:
CREATE TABLE table_44401 (
"Country" text,
"CO2 emissions" text,
"Area (in km 2 )" real,
"Population" real,
"Emission / Person" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the area of a country is over 9,826,675 kilometers and... | SELECT AVG("Population") FROM table_44401 WHERE "Area (in km 2 )" > '9,826,675' AND "Emission / Person" < '14.9' |
### Instruction:
CREATE TABLE table_69386 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of League Cup, when the Other is less than 1, when the... | SELECT SUM("League Cup") FROM table_69386 WHERE "Other" < '1' AND "Name" = 'gareth farrelly category:articles with hcards' AND "League" > '1' |
### Instruction:
CREATE TABLE table_44548 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 1993, when 1992 is 'SF', and when ... | SELECT "1993" FROM table_44548 WHERE "1992" = 'sf' AND "Tournament" = 'paris' |
### Instruction:
CREATE TABLE table_47253 (
"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 SUM("Goals for") FROM table_47253 WHERE "Goal Difference" < '43' AND "Position" < '3' |
### Instruction:
CREATE TABLE table_22083 (
"Birth Name" text,
"Birth Name As Announced in Latin (Accusative case Forename Undeclined Surname)" text,
"Papal Name" text,
"Papal Name As Announced in Latin" text,
"Latin declension of Papal Name" text,
"Numeral in Papal Name" text
)
-- Using valid... | SELECT "Papal Name" FROM table_22083 WHERE "Papal Name As Announced in Latin" = 'Ioannis Pauli primi' |
### Instruction:
CREATE TABLE table_train_97 (
"id" int,
"pulmonary_disease" bool,
"systolic_blood_pressure_sbp" int,
"diabetic" string,
"psychiatric_disease" bool,
"hematologic_disease" bool,
"diastolic_blood_pressure_dbp" int,
"lung_disease" bool,
"NOUSE" float
)
-- Using valid S... | SELECT * FROM table_train_97 WHERE psychiatric_disease = 1 |
### Instruction:
CREATE TABLE table_17724 (
"Year" real,
"Population (Region total)" real,
"Population (Stanthorpe)" real,
"Population (Warwick)" real,
"Population (Allora)" real,
"Population (Glengallan)" real,
"Population (Rosenthal)" real
)
-- Using valid SQLite, answer the following qu... | SELECT MAX("Population (Stanthorpe)") FROM table_17724 WHERE "Population (Rosenthal)" = '1548' |
### 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 (SELECT "area\nacres" FROM table_204_124 WHERE "name" = 'hayley wood') - (SELECT "area\nacres" FROM table_204_124 WHERE "name" = 'thorpe wood') |
### Instruction:
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find th... | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Price |
### Instruction:
CREATE TABLE table_20987 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Top 5" FROM table_20987 WHERE "Winnings" = '$52,595' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_19681 (
"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.
-- Who won mens singles the year sveinn ... | SELECT "Mens singles" FROM table_19681 WHERE "Mens doubles" = 'Sveinn Logi Sölvason Tryggvi Nilsen' AND "Womens singles" = 'Elsa Nielsen' |
### Instruction:
CREATE TABLE table_33189 (
"Team" text,
"Game" real,
"Draw" real,
"Loss" real,
"Goal Gain" real,
"Goal Loss" real,
"Goal Diff" real,
"Point" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points were there in th... | SELECT COUNT("Point") FROM table_33189 WHERE "Goal Loss" = '16' AND "Goal Diff" < '26' AND "Game" > '14' |
### Instruction:
CREATE TABLE table_7489 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals that were s... | SELECT COUNT("Goals Scored") FROM table_7489 WHERE "Place" > '5' AND "Lost" = '11' AND "Goals Conceded" < '45' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.