instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_train_83 (
"id" int,
"systolic_blood_pressure_sbp" int,
"renal_disease" bool,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"iq" int,
"geriatric_depression_scale_gds" int,
"NOUSE" float
)
-- Using valid SQLite, answer the follow... | SELECT * FROM table_train_83 WHERE diabetic = 'i' |
### Instruction:
CREATE TABLE table_27412 (
"Country" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" real
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT MIN("Stolen Ends") FROM table_27412 WHERE "Country" = 'Germany' |
### Instruction:
CREATE TABLE table_76369 (
"Poll source" text,
"Dates administered" text,
"Arlen Specter*" text,
"Pat Toomey" text,
"Tom Ridge*" text,
"Peg Luksik" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Dates administered has an A... | SELECT "Dates administered" FROM table_76369 WHERE "Arlen Specter*" = '––' AND "Peg Luksik" = '9%' |
### Instruction:
CREATE TABLE table_70470 (
"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 was the runner-up for the event that ended with a winning s... | SELECT "Runner(s)-up" FROM table_70470 WHERE "Winning score" = '–15 (66-67-70-70=273)' |
### Instruction:
CREATE TABLE Apartment_Bookings (
booking_start_date VARCHAR,
guest_id VARCHAR
)
CREATE TABLE Guests (
guest_id VARCHAR,
gender_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the start dates and end dates of all the apartm... | SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" |
### Instruction:
CREATE TABLE table_39762 (
"Season" real,
"Bowl game" text,
"Result" text,
"Opponent" text,
"Stadium" text,
"Location" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which bowl game has a season greater th... | SELECT "Bowl game" FROM table_39762 WHERE "Season" > '2008' AND "Location" = 'new orleans, louisiana' |
### Instruction:
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,
compatible_since_year int
)
CREATE TABLE browser (
id int,
name text... | SELECT Operating_system, COUNT(*) FROM Web_client_accelerator GROUP BY Operating_system |
### Instruction:
CREATE TABLE table_22539 (
"Position" text,
"Country" text,
"Floor" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Team Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT COUNT("Vault") FROM table_22539 WHERE "Rings" = '60.000' |
### Instruction:
CREATE TABLE table_7390 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of player Martin Randall, who ... | SELECT "Total" FROM table_7390 WHERE "League Cup" > '1' AND "League" < '18' AND "Player" = 'martin randall' |
### Instruction:
CREATE TABLE table_75384 (
"Polling Firm" text,
"Date" text,
"PSD - PC" text,
"UDMR" text,
"Elena B\u0103sescu" text,
"Others" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the UDMR for 18-22/04/2... | SELECT "UDMR" FROM table_75384 WHERE "Date" = '18-22/04/2009' |
### Instruction:
CREATE TABLE table_59747 (
"A. Dyck" text,
"H. Rempel" text,
"R. Epp" text,
"J. Thiessen" text,
"J. J. Neufeld" text,
"Ed Zacharias" text,
"word meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the H. Rempel ... | SELECT "H. Rempel" FROM table_59747 WHERE "J. J. Neufeld" = 'sajen' |
### Instruction:
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
-- Using valid SQLite, answer the following quest... | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE table_26924 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Track" text,
"Location" text,
"Pole position" text,
"Fastest lap" text,
"Most Laps Led" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Track" FROM table_26924 WHERE "Race Name" = 'Argent Mortgage Indy 300' |
### Instruction:
CREATE TABLE table_6700 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2008 has a 2009 of A, and a Tournament of cincinnati masters?
### Res... | SELECT "2008" FROM table_6700 WHERE "2009" = 'a' AND "Tournament" = 'cincinnati masters' |
### Instruction:
CREATE TABLE table_name_65 (
preliminaries INTEGER,
interview VARCHAR,
swimsuit VARCHAR,
evening_gown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the preliminaries score where the swimsuit is smaller than 9.297, the evenin... | SELECT AVG(preliminaries) FROM table_name_65 WHERE swimsuit < 9.297 AND evening_gown = 9.617 AND interview > 9.143 |
### Instruction:
CREATE TABLE table_34850 (
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Release price ( USD )" FROM table_34850 WHERE "Release date" = '2008 q3' |
### Instruction:
CREATE TABLE table_16535 (
"Episode Titles" text,
"First air date" text,
"Reward" text,
"Immunity" text,
"Exiled" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many epi... | SELECT COUNT("Episode Titles") FROM table_16535 WHERE "First air date" = 'March 6, 2008' |
### Instruction:
CREATE TABLE table_6815 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT MAX("Loses") FROM table_6815 WHERE "Draws" < '3' AND "Points" = '51' |
### Instruction:
CREATE TABLE table_23633 (
"Date" text,
"Venue" text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Competition" text,
"Winner" text,
"Head to Head" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the competitio... | SELECT "Competition" FROM table_23633 WHERE "Head to Head" = 'Australia 13, New Zealand 40, Drawn 3' |
### Instruction:
CREATE TABLE table_train_87 (
"id" int,
"gender" string,
"mini_mental_state_examination_mmse" int,
"rosen_modified_hachinski_ischemic_score" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT * FROM table_train_87 WHERE rosen_modified_hachinski_ischemic_score <= 4 |
### Instruction:
CREATE TABLE table_75539 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Safeties" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points is the lowest one that has Touchdowns sm... | SELECT MIN("Points") FROM table_75539 WHERE "Touchdowns" < '2' AND "Extra points" = '7' AND "Field goals" < '0' |
### Instruction:
CREATE TABLE table_5535 (
"Appearances" real,
"Team" text,
"Wins" real,
"Losses" real,
"Win %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest Losses recorded wiht a Wins of 1, Team of Dallas Stars, and a Win % that... | SELECT MIN("Losses") FROM table_5535 WHERE "Wins" = '1' AND "Team" = 'dallas stars' AND "Win %" < '0.25' |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title |
### Instruction:
CREATE TABLE table_50503 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of laps that Beno t Tr yluy... | SELECT COUNT("Laps") FROM table_50503 WHERE "Class Pos." = '7th' AND "Year" < '2008' |
### Instruction:
CREATE TABLE table_name_67 (
scores_by_each_individual_judge VARCHAR,
status VARCHAR,
co_contestant__yaar_vs_pyaar_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Scores by each individual judge has a Status of current, and a Co-con... | SELECT scores_by_each_individual_judge FROM table_name_67 WHERE status = "current" AND co_contestant__yaar_vs_pyaar_ = "krushna abhishek" |
### Instruction:
CREATE TABLE table_1128 (
"Administrative county" text,
"Area 1891 (Statute acres)" real,
"Population 1891" real,
"Area 1961 (Statute acres)" real,
"Population 1961" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the population... | SELECT COUNT("Population 1891") FROM table_1128 WHERE "Area 1891 (Statute acres)" = '175836' |
### Instruction:
CREATE TABLE table_30807 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Sprints classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Winner" FROM table_30807 WHERE "Mountains classification" = 'Oscar Solis' AND "Team classification" = 'EPM-UNE' |
### Instruction:
CREATE TABLE table_204_476 (
id number,
"name" text,
"date built" number,
"builder" text,
"works no." number,
"wheels" text,
"cylinders" text,
"notes" text,
"withdrawn" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "name" FROM table_204_476 WHERE "name" IN ('fairfield', 'waverley') AND "cylinders" = 'inside' |
### Instruction:
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Ma... | SELECT Country, COUNT(*) FROM people GROUP BY Country |
### Instruction:
CREATE TABLE table_name_87 (
nir_number VARCHAR,
type VARCHAR,
br_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number?
### Respon... | SELECT nir_number FROM table_name_87 WHERE type = "tso (ex-br class 488 unit 488305)" AND br_number_s_ = "6082 / 72605" |
### Instruction:
CREATE TABLE table_30461 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many site entries... | SELECT COUNT("Site") FROM table_30461 WHERE "Time" = '3:30pm' AND "Visiting team" = 'Coastal Carolina' |
### Instruction:
CREATE TABLE table_24860 (
"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 "Original air date" FROM table_24860 WHERE "Production code" = '6ACX19' |
### 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, AVG(Price) FROM Products GROUP BY Name ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_18920 (
"Country" text,
"Currency name" text,
"Month with highest inflation rate" text,
"Highest monthly inflation rate" text,
"Equivalent daily inflation rate" text,
"Time required for prices to double" text
)
-- Using valid SQLite, answer the following que... | SELECT "Country" FROM table_18920 WHERE "Highest monthly inflation rate" = '3.13 × 10 8 %' |
### Instruction:
CREATE TABLE table_75121 (
"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_75121 WHERE "Points" = '0' |
### Instruction:
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
-- Using val... | SELECT Team, COUNT(*) FROM Elimination GROUP BY Team ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_train_189 (
"id" int,
"alt" float,
"hyperglycemia" bool,
"liver_disease" bool,
"smoking" bool,
"alcohol_abuse" bool,
"drug_abuse" bool,
"triglyceride_tg" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT * FROM table_train_189 WHERE triglyceride_tg > 450 |
### Instruction:
CREATE TABLE table_38868 (
"Model" text,
"Years" text,
"Engine" text,
"Displ." text,
"Power" text,
"Torque" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010 2011?
... | SELECT "Power" FROM table_38868 WHERE "Model" = '2.0 tdi (cr) dpf' AND "Years" = '2010–2011' |
### Instruction:
CREATE TABLE table_33918 (
"Name" text,
"Faith" text,
"Type" text,
"DCSF number" real,
"Ofsted number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the primary with a DCSF number larger than 2337 and an Ofsted ... | SELECT "Name" FROM table_33918 WHERE "Type" = 'primary' AND "DCSF number" > '2337' AND "Ofsted number" < '135339' |
### Instruction:
CREATE TABLE table_4119 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original... | SELECT "Original air date" FROM table_4119 WHERE "Directed by" = 'Graeme Clifford' AND "Written by" = 'Lindsay Sturman' |
### Instruction:
CREATE TABLE table_69666 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"125cc winner" text,
"250cc winner" text,
"MotoGP winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the gr... | SELECT "Grand Prix" FROM table_69666 WHERE "MotoGP winner" = 'casey stoner' AND "Circuit" = 'losail' |
### Instruction:
CREATE TABLE table_72487 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following que... | SELECT COUNT("N") FROM table_72487 WHERE "Ends" = '1 year' |
### Instruction:
CREATE TABLE table_49321 (
"Season" text,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Races" FROM table_49321 WHERE "Poles" = '0' AND "Team" = 'asm' |
### Instruction:
CREATE TABLE table_23225 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("Races") FROM table_23225 WHERE "Position" = '14th' |
### Instruction:
CREATE TABLE table_28764 (
"Dist." real,
"Democratic Coalition" text,
"Alliance" text,
"Together We Can Do More" text,
"Independent Regional Force" text,
"Independents" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the i... | SELECT "Independent Regional Force" FROM table_28764 WHERE "Democratic Coalition" = '(R) Jorge Tarud ( PPD )' |
### Instruction:
CREATE TABLE table_27896 (
"Settlement" text,
"Cyrillic Name" 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.
-- What ethnic... | SELECT "Largest ethnic group (2002)" FROM table_27896 WHERE "Cyrillic Name" = 'Сурдук' |
### Instruction:
CREATE TABLE table_37002 (
"Order" text,
"Minister" text,
"Party" text,
"Prime Minister" text,
"Title" text,
"Term start" text,
"Term end" text,
"Term in office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "Term end" FROM table_37002 WHERE "Party" = 'united australia' AND "Term in office" = '184 days' |
### Instruction:
CREATE TABLE table_204_628 (
id number,
"trial number" text,
"date" text,
"name of trial" text,
"celebrity/ies taking part" text,
"winner/number of stars" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won ... | SELECT "winner/number of stars" FROM table_204_628 WHERE id = (SELECT id FROM table_204_628 WHERE "winner/number of stars" = 'jan') + 1 |
### Instruction:
CREATE TABLE table_train_44 (
"id" int,
"pregnancy_or_lactation" bool,
"severe_sepsis" bool,
"corticosteroid_therapy" bool,
"immune_suppression" bool,
"hepatic_disease" bool,
"septic_shock" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the follow... | SELECT * FROM table_train_44 WHERE hepatic_disease = 1 |
### Instruction:
CREATE TABLE table_12983929_1 (
total_power VARCHAR,
construction_start VARCHAR,
commercial_operation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different values of total power are there for the unit whose construction start... | SELECT COUNT(total_power) FROM table_12983929_1 WHERE construction_start = "01.03.1977" AND commercial_operation = "01.02.1984" |
### Instruction:
CREATE TABLE table_17164 (
"Series" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the friday presen... | SELECT "Friday" FROM table_17164 WHERE "Monday" = 'Emma Willis Jamie East' |
### Instruction:
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
-- Using valid SQLite, answer ... | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE shop (
shop_id number,
shop_name text,... | SELECT software_platform, COUNT(*) FROM device GROUP BY software_platform |
### Instruction:
CREATE TABLE table_54810 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game where the... | SELECT MIN("Attendance") FROM table_54810 WHERE "Leading scorer" = 'tim duncan (24)' AND "Home" = 'spurs' |
### Instruction:
CREATE TABLE table_203_148 (
id number,
"date" text,
"name" text,
"nationality" text,
"tonnage\n(grt)" number,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the soviet ship that did not sink on 11 may 1944 ?
#... | SELECT "name" FROM table_203_148 WHERE "date" = '11 may 1944' AND "nationality" = 'soviet union' AND "fate" <> 'sunk' |
### Instruction:
CREATE TABLE table_60218 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the money when the place was t8 and the score was 74-72-7... | SELECT "Money ( $ )" FROM table_60218 WHERE "Place" = 't8' AND "Score" = '74-72-75-71=292' |
### Instruction:
CREATE TABLE table_79643 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Enrollment" real,
"IHSAA Class / Football / Soccer" text,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "IHSAA Class / Football / Soccer" FROM table_79643 WHERE "Location" = 'alexandria' |
### Instruction:
CREATE TABLE table_74190 (
"Tour" text,
"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 is the women's doubles when the m... | SELECT "Womens doubles" FROM table_74190 WHERE "Mixed doubles" = 'Sudket Prapakamol Saralee Thungthongkam' |
### Instruction:
CREATE TABLE table_23645 (
"Standard Yarn Weight System" text,
"Yarn Type (US)" text,
"Ply (UK, NZ, AU)" text,
"m/100g" text,
"Wraps Per Inch (WPI)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ply uk, nz, au for wraps pe... | SELECT "Ply (UK, NZ, AU)" FROM table_23645 WHERE "Wraps Per Inch (WPI)" = '7 wpi' |
### Instruction:
CREATE TABLE table_4260 (
"Rank" real,
"Country/Territory" text,
"Mister International" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following qu... | SELECT MAX("Total") FROM table_4260 WHERE "Country/Territory" = 'South Korea' |
### Instruction:
CREATE TABLE table_21671 (
"Season in Tamil" text,
"English Transliteration" text,
"English Translation" text,
"Season in Sanskrit" text,
"Season in English" text,
"Tamil Months" text,
"Gregorian Months" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT COUNT("Season in Tamil") FROM table_21671 WHERE "Season in Sanskrit" = 'Grishma' |
### Instruction:
CREATE TABLE table_72729 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by:" text,
"Written by:" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that was written by ... | SELECT "Directed by:" FROM table_72729 WHERE "Written by:" = 'Jackson Gillis' AND "Original air date" = 'May 21, 1955' |
### Instruction:
CREATE TABLE table_19775 (
"Administrative division" text,
"Area (km\u00b2)" text,
"Population 2000 Census" real,
"Population (2010 Census)" real,
"Population density 2010 (/km\u00b2)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT COUNT("Population 2000 Census") FROM table_19775 WHERE "Administrative division" = 'Mesquita' |
### Instruction:
CREATE TABLE table_68693 (
"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.
-- When is Part 2, when Part 4 is... | SELECT "Part 2" FROM table_68693 WHERE "Part 4" = 'december 9, 2007' |
### Instruction:
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billi... | SELECT Creation, COUNT(Creation) FROM department |
### Instruction:
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT location FROM track WHERE seating > 90000 INTERSECT SELECT location FROM track WHERE seating < 70000 |
### Instruction:
CREATE TABLE table_50529 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the winner panathinaikos, the runner-up olympiacos and the venue nikos goumas stad... | SELECT "Year" FROM table_50529 WHERE "Winner" = 'panathinaikos' AND "Runner-up" = 'olympiacos' AND "Venue" = 'nikos goumas stadium' |
### 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(Type) FROM ship GROUP BY Nationality, Type ORDER BY Type DESC |
### Instruction:
CREATE TABLE table_24774 (
"Candidate (Party)" text,
"Amount raised ( PHP )" text,
"Amount spent ( PHP )" text,
"Votes" real,
"Spent per vote ( PHP )" text,
"Spent per voter ( PHP )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Spent per voter ( PHP )" FROM table_24774 WHERE "Spent per vote ( PHP )" = '20.07' |
### Instruction:
CREATE TABLE party_host (
party_id number,
host_id number,
is_main_in_charge others
)
CREATE TABLE party (
party_id number,
party_theme text,
location text,
first_year text,
last_year text,
number_of_hosts number
)
CREATE TABLE host (
host_id number,
name t... | SELECT nationality FROM host GROUP BY nationality ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_19776 (
"Administrative division" text,
"Area (km\u00b2)" text,
"Population 2000 Census" real,
"Population (2010 Census)" real,
"Population density 2010 (/km\u00b2)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Population 2000 Census" FROM table_19776 WHERE "Area (km\u00b2)" = '77' |
### Instruction:
CREATE TABLE table_63112 (
"Season" text,
"LeagueContested" text,
"Level" real,
"LeaguePosition" text,
"Avg.Home Attendance 1" text,
"FA Cup" text,
"FA Trophy" text,
"Leading scorer 1" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Level" FROM table_63112 WHERE "Leading scorer 1" = 'tom greaves 8' |
### Instruction:
CREATE TABLE table_train_149 (
"id" int,
"prostate_specific_antigen_psa" float,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"fasting_serum_glucose" int,
"vitamin_d" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT * FROM table_train_149 WHERE prostate_specific_antigen_psa > 4 |
### Instruction:
CREATE TABLE table_train_237 (
"id" int,
"fasting_c_peptide" float,
"fasting_plasma_glucose" int,
"smoking" bool,
"body_mass_index_bmi" float,
"serum_25_oh_d_levels" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT * FROM table_train_237 WHERE fasting_c_peptide < 0.2 |
### Instruction:
CREATE TABLE table_22177 (
"Episodes" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the dates when 224 Assassin's Creed: Brotherhood Cir... | SELECT "Episodes" FROM table_22177 WHERE "Tuesday" = '224 Assassin''s Creed: Brotherhood Circus Training' |
### Instruction:
CREATE TABLE table_74602 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the away side when the c... | SELECT "Away team" FROM table_74602 WHERE "Crowd" > '18,000' AND "Home team" = 'collingwood' |
### Instruction:
CREATE TABLE table_17241 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following que... | SELECT "Type" FROM table_17241 WHERE "Name" = 'Bojan' |
### Instruction:
CREATE TABLE table_2081 (
"Year" real,
"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 tabl... | SELECT MAX("Year") FROM table_2081 WHERE "Average Speed (mph)" = '145.24' |
### Instruction:
CREATE TABLE table_30087 (
"\u2116" real,
"#" 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 tables provided abov... | SELECT "\u2116" FROM table_30087 WHERE "U.S. viewers (million)" = '4.87' |
### Instruction:
CREATE TABLE table_28333 (
"Frequency (Hz)" text,
"R (\u03a9/km)" text,
"L (mH/km)" text,
"G (\u03bcS/km)" text,
"C (nF/km)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the frequency (hz) when the g ( s/km) is 53.205?
#... | SELECT "Frequency (Hz)" FROM table_28333 WHERE "G (\u03bcS/km)" = '53.205' |
### Instruction:
CREATE TABLE table_21152 (
"Season" real,
"Class" text,
"Motorcycle" text,
"Team" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"FLaps" real,
"Points" text,
"Placement" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Motorcycle" FROM table_21152 WHERE "Season" = '2012' |
### Instruction:
CREATE TABLE table_53682 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nation has 0 gold, a rank greater than 14, a total of 1, and silver l... | SELECT "Nation" FROM table_53682 WHERE "Gold" = '0' AND "Rank" > '14' AND "Total" = '1' AND "Silver" < '1' |
### Instruction:
CREATE TABLE table_71376 (
"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 "Tries for" FROM table_71376 WHERE "Tries against" = '38' |
### Instruction:
CREATE TABLE table_34383 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"Points" real,
"Overall NT points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a ... | SELECT SUM("Points") FROM table_34383 WHERE "Rank" = '3' AND "1st (m)" < '132' |
### Instruction:
CREATE TABLE table_42672 (
"Benchmark" text,
"Crown height" text,
"Pavilion depth" text,
"Table diameter" text,
"Girdle thickness" text,
"Crown angle" text,
"Pavilion angle" text,
"Brilliance Grade" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Brilliance Grade" FROM table_42672 WHERE "Crown angle" = '41.1°' |
### Instruction:
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
... | SELECT Location, COUNT(Location) FROM party GROUP BY Location |
### Instruction:
CREATE TABLE table_51390 (
"Kilometer No. (Rizal Park-basis)" text,
"Kilometer No. (Layac-basis)" text,
"Exit" text,
"Barangay" text,
"Municipality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kilometer (Rizal Park-basis) ha... | SELECT "Kilometer No. (Rizal Park-basis)" FROM table_51390 WHERE "Kilometer No. (Layac-basis)" = '25' |
### Instruction:
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
op... | SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_22 (
giro_di_lombardia VARCHAR,
tour_of_flanders VARCHAR,
paris_roubaix VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris Roubai... | SELECT giro_di_lombardia FROM table_name_22 WHERE tour_of_flanders = "tom boonen ( bel )" AND paris_roubaix = "fabian cancellara ( sui )" |
### Instruction:
CREATE TABLE table_204_809 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"national final" text,
"place" number,
"points" number
)
-- Using valid SQLite, answer the following questions for th... | SELECT COUNT("country") FROM table_204_809 WHERE "country" <> 'spain' AND "national final" = 2 |
### Instruction:
CREATE TABLE table_29426 (
"No" real,
"Peak" text,
"Location" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col height (m)" real,
"Col location" text,
"Parent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is... | SELECT MIN("Elevation (m)") FROM table_29426 WHERE "Location" = 'Austria' AND "Peak" = 'Wildspitze' |
### Instruction:
CREATE TABLE table_204_102 (
id number,
"name" text,
"location served" text,
"governorate" text,
"utilization" text,
"helipads" number,
"runways" number,
"shelters" number,
"squadrons" text,
"coordinates" text
)
-- Using valid SQLite, answer the following quest... | SELECT (SELECT "shelters" FROM table_204_102 WHERE id = 1) >= 12 |
### Instruction:
CREATE TABLE table_4421 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the tournament for outco... | SELECT "Tournament" FROM table_4421 WHERE "Outcome" = 'winner' AND "Score" = '4-6 6-3 10-5' |
### Instruction:
CREATE TABLE table_13099 (
"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 sum of sliver medals when there were 2 gold medals, less than 1... | SELECT SUM("Silver") FROM table_13099 WHERE "Gold" = '2' AND "Total" < '15' AND "Rank" > '5' |
### Instruction:
CREATE TABLE table_203_563 (
id number,
"#" number,
"judge" text,
"state" text,
"born/died" text,
"active" text,
"chief" text,
"senior" text,
"appointed by" text,
"reason for\ntermination" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "state" FROM table_203_563 GROUP BY "state" ORDER BY COUNT("judge") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_37001 (
"Rank" real,
"First quarter" text,
"Second quarter" text,
"Third quarter" text,
"Fourth quarter" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the rank is less than 4, and has a second quarter of exx... | SELECT "Fourth quarter" FROM table_37001 WHERE "Rank" < '4' AND "Second quarter" = 'exxon mobil 341,140.3' |
### Instruction:
CREATE TABLE people (
people_id number,
name text,
age number,
height number,
hometown text
)
CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points n... | SELECT name FROM people ORDER BY age DESC LIMIT 5 |
### Instruction:
CREATE TABLE table_59307 (
"Periodo" text,
"Births" real,
"Deaths" real,
"Difference" real,
"CBR*" real,
"CDR*" real,
"IMR*" real,
"TFR*" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What TFR has births less than 131, ... | SELECT "TFR*" FROM table_59307 WHERE "Births" < '131' AND "IMR*" = '125' |
### Instruction:
CREATE TABLE table_75328 (
"Rank" real,
"Island's Name" text,
"Area (sqmi)" real,
"Area (km 2 )" real,
"Location" text,
"Population (2000)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank for Nelson Islan... | SELECT MAX("Rank") FROM table_75328 WHERE "Island's Name" = 'nelson island' AND "Area (km 2 )" > '2,183' |
### Instruction:
CREATE TABLE table_79564 (
"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 MIN("Score-Final") FROM table_79564 WHERE "Score-Qualifying" = '74.075' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.