instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_59714 (
"Initial-syllable open/semi-open unstressed vowels" text,
"17th c." text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Initial-S... | SELECT "Initial-syllable open/semi-open unstressed vowels" FROM table_59714 WHERE "Australian" = 'ə' |
### Instruction:
CREATE TABLE table_36234 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Website" text,
"Webcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which website includes a webcast of listen live, a freq... | SELECT "Website" FROM table_36234 WHERE "City of License" = 'monterrey' AND "Webcast" = 'listen live' AND "Frequency" < '1050' |
### Instruction:
CREATE TABLE table_57949 (
"Season" text,
"Team" text,
"Country" text,
"Division" real,
"Apps" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest apps in Honduras with less than 2 goals for Club De... | SELECT MIN("Apps") FROM table_57949 WHERE "Country" = 'honduras' AND "Goals" < '2' AND "Team" = 'club deportivo victoria' AND "Division" > '1' |
### Instruction:
CREATE TABLE table_name_7 (
binibining_pilipinas_international VARCHAR,
year VARCHAR,
binibining_pilipinas_universe VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Binibining Pilipinas-International has a Year larger than 1990, and a... | SELECT binibining_pilipinas_international FROM table_name_7 WHERE year > 1990 AND binibining_pilipinas_universe = "maria lourdes gonzalez" |
### Instruction:
CREATE TABLE table_69584 (
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Death" text,
"Spouse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the birth of the person that has a spouse o... | SELECT "Birth" FROM table_69584 WHERE "Spouse" = 'frederick iv' AND "Became Consort" = '4 april 1721' |
### Instruction:
CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the sooners opponent after... | SELECT "opponent#" FROM table_204_617 WHERE "date" > (SELECT "date" FROM table_204_617 WHERE "opponent#" = 'usc') ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE table_name_83 (
tonnage___grt__ INTEGER,
deaths VARCHAR,
date VARCHAR,
fate VARCHAR,
flag VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of... | SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = "sunk" AND flag = "great britain" AND date = "26 september 1940" AND deaths = 2 |
### Instruction:
CREATE TABLE table_58171 (
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir" text,
"Reason" text,
"Ceased to be heir" text,
"Monarch" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Monarch ... | SELECT "Monarch" FROM table_58171 WHERE "Heir" = 'robert curthose' AND "Reason" = 'father became king' |
### Instruction:
CREATE TABLE table_29798 (
"No(s). in series" real,
"No(s). in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code(s)" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions... | SELECT MAX("Production code(s)") FROM table_29798 WHERE "Written by" = 'Patty Lin' |
### Instruction:
CREATE TABLE table_202_158 (
id number,
"z" number,
"element" text,
"observed or predicted" text,
"isolated (widely known)" number,
"observer" text,
"first isolator" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "element" FROM table_202_158 WHERE "observed or predicted" = 1771 AND "observer" = 'w. scheele' |
### Instruction:
CREATE TABLE table_26179 (
"Neighbourhood" text,
"% 0-19" text,
"% 20-39" text,
"% 40-59" text,
"% 60-74" text,
"% 75 +" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for % 20-39 if % 0-19 is 21,11%?
### R... | SELECT "% 20-39" FROM table_26179 WHERE "% 0-19" = '21,11%' |
### Instruction:
CREATE TABLE table_203_212 (
id number,
"#" number,
"district" text,
"land area (km2)" number,
"population\n(2010 census)" number,
"density (persons/km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which other districts be... | SELECT "district" FROM table_203_212 WHERE "district" <> 'castries' AND "population\n(2010 census)" > 20000 |
### Instruction:
CREATE TABLE table_29372 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT COUNT("Original air date") FROM table_29372 WHERE "Production code" = '12003' |
### Instruction:
CREATE TABLE table_78248 (
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the D 44 when it has a D 46 of d 31
### R... | SELECT "D 44" FROM table_78248 WHERE "D 46" = 'd 31' |
### Instruction:
CREATE TABLE table_51274 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Series" text,
"Arena" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record of the series at the game atten... | SELECT "Series" FROM table_51274 WHERE "Attendance" > '17,181' AND "Loss" = 'giguere (0–1)' |
### Instruction:
CREATE TABLE table_23282 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When mark critz (d) 50.8% tim burns (r) 49.2% are the c... | SELECT "Party" FROM table_23282 WHERE "Candidates" = 'Mark Critz (D) 50.8% Tim Burns (R) 49.2%' |
### Instruction:
CREATE TABLE table_29504 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many U... | SELECT COUNT("U.S. viewers (million)") FROM table_29504 WHERE "Title" = 'The Truth About Dads and Moms' |
### Instruction:
CREATE TABLE table_14992 (
"Position" real,
"Song Title" text,
"Artist" text,
"Highest Position" real,
"Sales" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest position less than 7 that had more than 421,760 in sal... | SELECT MAX("Highest Position") FROM table_14992 WHERE "Sales" > '421,760' AND "Song Title" = 'don''t stop movin' AND "Position" < '7' |
### Instruction:
CREATE TABLE table_11902 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the result whe... | SELECT "Result" FROM table_11902 WHERE "Kickoff [a ]" = '4:00' AND "Record" = '4-8' |
### Instruction:
CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
)
-- Using valid SQLit... | SELECT T2.name FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id ORDER BY T1.total DESC |
### Instruction:
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Locat... | SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY Country |
### Instruction:
CREATE TABLE table_35609 (
"Team" text,
"Copa Libertadores 1996" text,
"Supercopa Sudamericana 1996" text,
"Copa CONMEBOL 1996" text,
"Recopa Sudamericana 1996" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the recoupa suda... | SELECT "Recopa Sudamericana 1996" FROM table_35609 WHERE "Team" = 'corinthians' |
### Instruction:
CREATE TABLE table_37803 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of cuts made where the top 25... | SELECT SUM("Cuts made") FROM table_37803 WHERE "Top-25" < '6' AND "Top-5" > '0' |
### Instruction:
CREATE TABLE debate_people (
Debate_ID int,
Affirmative int,
Negative int,
If_Affirmative_Win bool
)
CREATE TABLE debate (
Debate_ID int,
Date text,
Venue text,
Num_of_Audience int
)
CREATE TABLE people (
People_ID int,
District text,
Name text,
Party t... | SELECT Party, COUNT(*) FROM people GROUP BY Party |
### Instruction:
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_ver... | SELECT software_platform FROM device GROUP BY software_platform ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_1397 (
"Headphone Model" text,
"Headphone Class" text,
"Sensitivity (dB)" text,
"Impedance (Ohms)" real,
"Driver-matched dB" text,
"Construction" text,
"Earpads" text,
"Termination" text,
"Succeeded by" text
)
-- Using valid SQLite, answer the fo... | SELECT COUNT("Headphone Class") FROM table_1397 WHERE "Headphone Model" = 'SR100' |
### Instruction:
CREATE TABLE table_42880 (
"Name" text,
"GP-GS" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g l... | SELECT COUNT("Gain") FROM table_42880 WHERE "Long" < '4' AND "Name" = 'brandon mcrae' AND "Avg/G" < '-0.1' |
### Instruction:
CREATE TABLE table_20126 (
"Time" text,
"06:00 PM" text,
"07:00 PM" text,
"08:00 PM" text,
"09:00 PM" text,
"10:00 PM" text,
"10:30 PM" text,
"11:00 PM" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 10 pm for t... | SELECT "10:00 PM" FROM table_20126 WHERE "Time" = 'Thursday' |
### Instruction:
CREATE TABLE table_64962 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Attendance has a Loss o... | SELECT SUM("Attendance") FROM table_64962 WHERE "Loss" = 'divis (0–3–0)' AND "Points" < '38' |
### Instruction:
CREATE TABLE table_61922 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total area with the Census Ranking of 3,129 of 5,008, a... | SELECT COUNT("Area km 2") FROM table_61922 WHERE "Census Ranking" = '3,129 of 5,008' AND "Population" > '460' |
### Instruction:
CREATE TABLE table_name_40 (
average_population__x_1000_ INTEGER,
deaths VARCHAR,
crude_death_rate__per_1000_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average population when deaths are 3 557 and crude death date is les... | SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9 |
### Instruction:
CREATE TABLE table_61450 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2010 value of the monte carlo masters, which had A in 2012?
##... | SELECT "2010" FROM table_61450 WHERE "2012" = 'a' AND "Tournament" = 'monte carlo masters' |
### Instruction:
CREATE TABLE table_76144 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Title when the winner was suntory s... | SELECT "Title" FROM table_76144 WHERE "Winner" = 'suntory sungoliath' AND "Season" = '2011-12 details' |
### Instruction:
CREATE TABLE table_65720 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school in 72 Scott county has an enrollment more t... | SELECT "School" FROM table_65720 WHERE "Enrollment" > '473' AND "IHSAA Class" = 'aaa' AND "# / County" = '72 scott' |
### Instruction:
CREATE TABLE table_72510 (
"Round" real,
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player... | SELECT "Nationality" FROM table_72510 WHERE "College/junior/club team (league)" = 'Seattle Thunderbirds (WHL)' |
### Instruction:
CREATE TABLE table_23859 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directedby" text,
"Writtenby" text,
"Originalairdate" text,
"Production code" text,
"U.S.viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT MAX("No. in series") FROM table_23859 WHERE "Production code" = '3WAB07' |
### Instruction:
CREATE TABLE table_24765 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT MAX("No. in series") FROM table_24765 WHERE "U.S. viewers (millions)" = '17.04' |
### Instruction:
CREATE TABLE table_27978 (
"No. in series" 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 above.
-- ... | SELECT MAX("No. in series") FROM table_27978 WHERE "U.S. viewers (million)" = '13.66' |
### Instruction:
CREATE TABLE table_47320 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUN... | SELECT AVG("Overall") FROM table_47320 WHERE "Pick" = '22' AND "College" = 'rice' AND "Round" > '10' |
### Instruction:
CREATE TABLE news_report (
journalist_id number,
event_id number,
work_type text
)
CREATE TABLE event (
event_id number,
date text,
venue text,
name text,
event_attendance number
)
CREATE TABLE journalist (
journalist_id number,
name text,
nationality text,... | SELECT venue, name FROM event ORDER BY event_attendance DESC LIMIT 2 |
### Instruction:
CREATE TABLE table_25635 (
"Season" text,
"Junior (South) Winners" text,
"Intermediate (South) Winners" text,
"Minor (South) Winners" text,
"Primary (South) Winners" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What isthe minor (S... | SELECT COUNT("Minor (South) Winners") FROM table_25635 WHERE "Primary (South) Winners" = 'Mendip Gate' |
### Instruction:
CREATE TABLE table_204_113 (
id number,
"rank" number,
"area" text,
"state/\nprovince" text,
"csa/cma\n2009 population" number,
"projected\n2025 population" number,
"projected increase\n2009-2025" number
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "area" FROM table_204_113 ORDER BY "projected increase\n2009-2025" LIMIT 1 |
### Instruction:
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE aircraft (
aid number,
... | SELECT eid, salary FROM employee WHERE name = 'Mark Young' |
### Instruction:
CREATE TABLE table_37627 (
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real,
"Nickname" text,
"Present Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the num... | SELECT COUNT("Enrollment") FROM table_37627 WHERE "Nickname" = 'buccaneers' AND "Founded" < '1911' |
### Instruction:
CREATE TABLE table_23302 (
"Rank" real,
"No." real,
"Pos" text,
"Player" text,
"Premier League" real,
"FA Cup" real,
"League Cup" real,
"Champions League" real,
"Club World Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the ... | SELECT COUNT("Club World Cup") FROM table_23302 WHERE "Player" = 'Djibril Cisse' |
### Instruction:
CREATE TABLE table_25400 (
"Player" text,
"Games Played" real,
"Field Goals" real,
"Three Pointers" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions fo... | SELECT COUNT("Three Pointers") FROM table_25400 WHERE "Points" = '581' |
### Instruction:
CREATE TABLE table_9216 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the surface when the winner and score is ... | SELECT "Surface" FROM table_9216 WHERE "Winner and score" = 'gustavo kuerten 6-4, 7-5, 7-6(6)' |
### Instruction:
CREATE TABLE table_15632 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" text,
"Points" real,
"Goals for" real,
"Goals against" real,
"Standing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the total number... | SELECT SUM("Points") FROM table_15632 WHERE "Goals for" > '225' AND "Goals against" = '190' |
### 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.
-- who has more e... | SELECT "name" FROM table_204_255 WHERE "name" IN ('khargapur', 'niwari') ORDER BY "number of electorates (2009)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_12452 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when attendance is larger t... | SELECT "Result" FROM table_12452 WHERE "Attendance" > '31,001' AND "Game site" = 'bears stadium' AND "Week" = '4' |
### Instruction:
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
... | SELECT Year, COUNT(Year) FROM exhibition GROUP BY Year |
### Instruction:
CREATE TABLE table_28946 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times were the candidates leven powell (f) 63.... | SELECT COUNT("First elected") FROM table_28946 WHERE "Candidates" = 'Leven Powell (F) 63.8% Roger West (DR) 36.4%' |
### Instruction:
CREATE TABLE table_train_228 (
"id" int,
"ejection_fraction_ef" int,
"hiv_infection" bool,
"heart_disease" bool,
"body_weight" float,
"body_mass_index_bmi" float,
"allergy_to_beef" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT * FROM table_train_228 WHERE heart_disease = 1 AND ejection_fraction_ef < 30 |
### 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 |
### Instruction:
CREATE TABLE table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many attendees were present at the febr... | SELECT "attendance" FROM table_204_467 WHERE "date" = 2 AND "date" = 11 AND "opponents" = 'huddersfield town' |
### Instruction:
CREATE TABLE table_64824 (
"Name (pinyin)" text,
"Name (Wade Giles)" text,
"Characters" text,
"Type" text,
"Construction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a Construction of 1870, foochow navy yard, and a Name (... | SELECT "Characters" FROM table_64824 WHERE "Construction" = '1870, foochow navy yard' AND "Name (Wade Giles)" = 'fu-hsing' |
### Instruction:
CREATE TABLE table_24386 (
"Title" text,
"Total copies sold" text,
"Sales breakdown" text,
"Genre" text,
"Release date" text,
"Developer" text,
"Publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sales brea... | SELECT "Sales breakdown" FROM table_24386 WHERE "Publisher" = 'Nintendo' AND "Release date" = 'May 15, 2006' |
### Instruction:
CREATE TABLE table_70631 (
"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 "Lost" FROM table_70631 WHERE "Points against" = '479' |
### Instruction:
CREATE TABLE table_70129 (
"Player" text,
"Test Career" text,
"Tests" real,
"Catches" real,
"Stumpings" real,
"Total Dismissals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a career that has test larger than 41, catch... | SELECT "Test Career" FROM table_70129 WHERE "Tests" > '41' AND "Catches" > '33' AND "Total Dismissals" = '147' |
### Instruction:
CREATE TABLE table_42475 (
"Year" real,
"Winner (Male)" text,
"Winner (Female)" text,
"Talent (Male)" text,
"Talent (Female)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had Kim Gevaert as the female winner and Xavier d... | SELECT "Year" FROM table_42475 WHERE "Winner (Female)" = 'kim gevaert' AND "Talent (Male)" = 'xavier de baerdemaeker' |
### Instruction:
CREATE TABLE table_15987 (
"Week" real,
"Dance/song" text,
"Horwood" text,
"Goodman" text,
"Dixon" text,
"Tonioli" text,
"Total" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many scores did Goodman g... | SELECT COUNT("Goodman") FROM table_15987 WHERE "Result" = 'Second place' AND "Dance/song" = 'Samba / Young Hearts Run Free' |
### Instruction:
CREATE TABLE table_36690 (
"Rank" real,
"Name" text,
"Height* m (ft)" text,
"Floors" real,
"Year* (est.)" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many floors were there with a building rank of less than 3... | SELECT COUNT("Floors") FROM table_36690 WHERE "Height* m (ft)" = '300 / 985' AND "Rank" < '3' |
### Instruction:
CREATE TABLE table_56586 (
"Unit" text,
"Complement" text,
"Killed" text,
"Wounded" text,
"Missing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0... | SELECT "Missing" FROM table_56586 WHERE "Killed" = '0 off 0 men' AND "Wounded" = '0 off 0 men' AND "Unit" = 'royal waggon train' |
### Instruction:
CREATE TABLE table_34251 (
"interval name" text,
"size (steps)" real,
"size (cents)" real,
"just ratio" text,
"just (cents)" real,
"error" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- size (steps) of 15, and a just (cents) lar... | SELECT MAX("size (cents)") FROM table_34251 WHERE "size (steps)" = '15' AND "just (cents)" > '435.08' |
### Instruction:
CREATE TABLE table_64623 (
"Award" text,
"Category" text,
"Year" real,
"Title" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback m... | SELECT "Category" FROM table_64623 WHERE "Year" > '1996' AND "Result" = 'won' AND "Title" = 'brokeback mountain' AND "Award" = 'golden globe award' |
### Instruction:
CREATE TABLE table_20049 (
"2000 :" text,
"January" text,
"February" text,
"March" text,
"April" text,
"May" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text
)
-- Using valid SQLite, a... | SELECT COUNT("February") FROM table_20049 |
### 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 T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID |
### Instruction:
CREATE TABLE table_12425 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Count the Number of electorates... | SELECT SUM("Number of electorates (2009)") FROM table_12425 WHERE "District" = 'fatehpur' AND "Name" = 'jahanabad' |
### Instruction:
CREATE TABLE table_34836 (
"Locomotive" text,
"Pre-conversion" text,
"Entered service (T)" text,
"Re-entered service (P)" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owns the item that was a T326 before conversi... | SELECT "Owner" FROM table_34836 WHERE "Re-entered service (P)" = '11 september 1985' AND "Pre-conversion" = 't326' |
### Instruction:
CREATE TABLE table_19234 (
"Team" text,
"Intercontinental" text,
"Recopa 1996" text,
"Supercopa 1996" text,
"CONMEBOL 1996" text,
"Copa Libertadores 1997" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is th copa libertador... | SELECT "Copa Libertadores 1997" FROM table_19234 WHERE "Supercopa 1996" = 'QF' |
### Instruction:
CREATE TABLE table_55976 (
"School" text,
"Location" text,
"Enrolment" real,
"Founded" real,
"Denomination" text,
"Boys/Girls" text,
"Day/Boarding" text,
"School Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT "School Colors" FROM table_55976 WHERE "Enrolment" > '1000' AND "School" = 'the friends'' school' |
### Instruction:
CREATE TABLE table_37537 (
"Year of Marriage" real,
"Name" text,
"Her Age" real,
"His Age" real,
"# of Children" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of her age figures where his age is less than 3... | SELECT SUM("Her Age") FROM table_37537 WHERE "His Age" < '33' AND "Name" = 'diontha walker' AND "# of Children" < '0' |
### Instruction:
CREATE TABLE table_12119 (
"Mininera DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE HIGHEST WINS WITH AGAINST SMALLER THAN 924, LOSSES SMALL... | SELECT MAX("Wins") FROM table_12119 WHERE "Against" < '924' AND "Losses" < '2' |
### Instruction:
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
-- Using valid ... | SELECT T1.name FROM actor AS T1 JOIN musical AS T2 ON T1.musical_id = T2.musical_id ORDER BY T2.year DESC |
### Instruction:
CREATE TABLE table_36788 (
"Rank" text,
"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 total medals under 63, less than 2 silver, more than 2 bro... | SELECT "Nation" FROM table_36788 WHERE "Total" < '63' AND "Silver" < '2' AND "Bronze" > '2' AND "Rank" = '8' |
### Instruction:
CREATE TABLE table_70660 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the coed school with state authority, a Decile... | SELECT "Area" FROM table_70660 WHERE "Authority" = 'state' AND "Decile" > '6' AND "Gender" = 'coed' AND "Roll" = '26' |
### Instruction:
CREATE TABLE table_57593 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Fastest lap" FROM table_57593 WHERE "Constructor" = 'mercedes' AND "Race" = 'british grand prix' |
### Instruction:
CREATE TABLE table_53744 (
"Village (German)" text,
"Village (Slovene)" text,
"Number of people 1991" real,
"Percent of Slovenes 1991" text,
"Percent of Slovenes 1951" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people i... | SELECT COUNT("Number of people 1991") FROM table_53744 WHERE "Village (German)" = 'rupertiberg' |
### Instruction:
CREATE TABLE table_28331 (
"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 c (nf/km) when the r ( /km) is 463.59?
### Res... | SELECT "C (nF/km)" FROM table_28331 WHERE "R (\u03a9/km)" = '463.59' |
### Instruction:
CREATE TABLE table_27827 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are ... | SELECT "No. in series" FROM table_27827 WHERE "Directed by" = 'Win Phelps' AND "No. in season" = '11' |
### Instruction:
CREATE TABLE table_dev_15 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"hepatic_enzymes" bool,
"platelet_count" float,
"liver_disease" bool,
"hba1c" float,
"triglyceride_tg" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT * FROM table_dev_15 WHERE triglyceride_tg > 600 |
### Instruction:
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_Male text,
Age int
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_... | SELECT Country, COUNT(*) FROM people GROUP BY Country |
### Instruction:
CREATE TABLE table_204_534 (
id number,
"#" number,
"name" text,
"height" text,
"weight (lbs.)" number,
"position" text,
"class" text,
"hometown" text,
"previous team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "name" FROM table_204_534 WHERE "name" IN ('dexter fields', 'ovie soko') ORDER BY "weight (lbs.)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_782 (
id number,
"year" number,
"actor" text,
"award" text,
"category" text,
"role" text,
"episode" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last year in which kels... | SELECT MAX("year") FROM table_203_782 WHERE "actor" = 'kelsey grammer' AND "category" = 'outstanding voice-over performance' |
### Instruction:
CREATE TABLE table_821 (
"Year" real,
"Winner" text,
"Language" text,
"Artist" text,
"Song" text,
"Points" real,
"Margin" real,
"Second place" text,
"Date" text,
"Venue" text,
"Location" text,
"Participants" real
)
-- Using valid SQLite, answer the foll... | SELECT "Artist" FROM table_821 WHERE "Venue" = 'Heineken Music Hall' |
### Instruction:
CREATE TABLE table_21573 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text,
"Winners share ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Winning score") FROM table_21573 WHERE "Tournament" = 'RR Donnelley LPGA Founders Cup' |
### Instruction:
CREATE TABLE table_23504 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Written by" FROM table_23504 WHERE "Title" = 'Mission Gone Bad" "Trapped in Paris' |
### Instruction:
CREATE TABLE table_name_96 (
year INTEGER,
hessen VARCHAR,
saar VARCHAR,
main VARCHAR,
rhein VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, S... | SELECT MIN(year) FROM table_name_96 WHERE main = "eintracht frankfurt" AND rhein = "waldhof mannheim" AND saar = "fk pirmasens" AND hessen = "wormatia worms" |
### Instruction:
CREATE TABLE table_73161 (
"Rnd" real,
"Race Name" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the report of the ... | SELECT "Report" FROM table_73161 WHERE "Winning driver" = 'Michael Andretti' AND "Fastest lap" = 'Nigel Mansell' |
### Instruction:
CREATE TABLE table_47973 (
"Year" real,
"President" text,
"(M) Finishing position" text,
"(M) Coach" text,
"(M) Best & Fairest" text,
"(M) Leading Goalkicker" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the (M) Finis... | SELECT "(M) Finishing position" FROM table_47973 WHERE "President" = 'ray kaduck' AND "(M) Coach" = 'corey bowen' |
### Instruction:
CREATE TABLE table_18960 (
"Club" text,
"Played" text,
"Won" 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,... | SELECT "Club" FROM table_18960 WHERE "Points" = '36' |
### Instruction:
CREATE TABLE table_73954 (
"Name" text,
"Turbines" text,
"Capacity (MW)" text,
"Power (MW\u00b7hr/yr)" text,
"Location (county)" text,
"Year Operational" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What all... | SELECT "Turbines" FROM table_73954 WHERE "Location (county)" = 'Somerset' AND "Capacity (MW)" = '30' |
### Instruction:
CREATE TABLE table_203_11 (
id number,
"title" text,
"year" number,
"peak chart positions\nus" number,
"peak chart positions\nus r&b" number,
"peak chart positions\nus rap" number,
"peak chart positions\nuk" number,
"certifications" text,
"album" text
)
-- Using va... | SELECT "year" FROM table_203_11 WHERE "album" = 'total' |
### Instruction:
CREATE TABLE table_22767 (
"Year" real,
"World" real,
"Asia" text,
"Africa" text,
"Europe" text,
"Latin America/Caribbean" text,
"Northern America" text,
"Oceania" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what will... | SELECT "Asia" FROM table_22767 WHERE "Latin America/Caribbean" = '783 (7.5%)' |
### Instruction:
CREATE TABLE table_24834 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Title" FROM table_24834 WHERE "U.S. viewers (millions)" = '9.76' |
### Instruction:
CREATE TABLE table_76406 (
"Year" text,
"2009" text,
"2008" text,
"2007" text,
"2006" text,
"2005" text,
"2004" text,
"2003" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2008 for the 2009 ch our charming la... | SELECT "2008" FROM table_76406 WHERE "2009" = 'ch our charming lady' |
### Instruction:
CREATE TABLE results (
fastestlapspeed INTEGER,
raceid VARCHAR
)
CREATE TABLE races (
name VARCHAR,
year INTEGER,
raceid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the maximum fastest lap speed in races held after 2... | SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year |
### Instruction:
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname... | SELECT roomname FROM rooms WHERE baseprice > (SELECT AVG(baseprice) FROM rooms) |
### Instruction:
CREATE TABLE table_6335 (
"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 follo... | SELECT "Points against" FROM table_6335 WHERE "Club" = 'porthcawl rfc' |
### Instruction:
CREATE TABLE table_2637 (
"Best Male MC" text,
"Best Female MC" text,
"Best Male Artist" text,
"Best Female Artist" text,
"Best Male Lyricist" text,
"Best Female Lyricist" text,
"Best Male Record" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Best Female Artist" FROM table_2637 WHERE "Best Male Lyricist" = 'Best R&B Contributor' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.