instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_name_79 (
seats_2006 INTEGER,
parties_and_voter_communities VARCHAR,
_percentage_2006 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of Seats 2006 held by the Christian Democratic Union of Ge... | SELECT MAX(seats_2006) FROM table_name_79 WHERE parties_and_voter_communities = "christian democratic union of germany" AND _percentage_2006 > 24.6 |
### Instruction:
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
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,
... | SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY AVG(Age) |
### Instruction:
CREATE TABLE table_75734 (
"Name" text,
"Year" real,
"Landfall" text,
"NHC Advisory Number" text,
"V(mph)" real,
"R(miles)" real,
"Saffir-Simpson Category" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest V... | SELECT MIN("V(mph)") FROM table_75734 WHERE "Saffir-Simpson Category" = '4' AND "Year" = '2005' |
### Instruction:
CREATE TABLE table_22470 (
"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 MAX("GEO ID") FROM table_22470 WHERE "Land ( sqmi )" = '35.999' |
### Instruction:
CREATE TABLE table_76980 (
"Poll source" text,
"Dates administered" text,
"Jim DeMint (R)" text,
"Alvin Greene (D)" text,
"Tom Clements (G)" text,
"Other" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whic... | SELECT "Poll source" FROM table_76980 WHERE "Undecided" = '5%' AND "Jim DeMint (R)" = '58%' |
### Instruction:
CREATE TABLE table_16650 (
"#" 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 "Night Rank" FROM table_16650 WHERE "Rating" = '6.2' |
### Instruction:
CREATE TABLE table_73420 (
"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 tab... | SELECT "Miles (km)" FROM table_73420 WHERE "Race Time" = '2:47:11' |
### Instruction:
CREATE TABLE table_74428 (
"Date" text,
"Episode" real,
"Official rating 4+" text,
"Share 4+" text,
"Official rating 16-39" text,
"Share 16-39" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the official rating 16-39 for... | SELECT "Official rating 16-39" FROM table_74428 WHERE "Share 16-39" = '22,77%' |
### Instruction:
CREATE TABLE table_train_23 (
"id" int,
"in_another_study" bool,
"immune_suppression" bool,
"hiv_infection" bool,
"fio2" float,
"head_injury" bool,
"heart_disease" bool,
"steroid_therapy" bool,
"chemotherapy" bool,
"edema" bool,
"NOUSE" float
)
-- Using val... | SELECT * FROM table_train_23 WHERE in_another_study = 1 |
### Instruction:
CREATE TABLE table_20990 (
"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 COUNT("Winnings") FROM table_20990 WHERE "Year" = '1995' |
### Instruction:
CREATE TABLE table_204_792 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- w... | SELECT "opponent" FROM table_204_792 WHERE "#" > (SELECT MAX("#") FROM table_204_792 WHERE "opponent" = 'reds') ORDER BY "#" LIMIT 1 |
### Instruction:
CREATE TABLE table_21564 (
"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 1398 donnera of asteroid which 1391 carel... | SELECT "1398 Donnera" FROM table_21564 WHERE "1391 Carelia" = '1529 Oterma' |
### Instruction:
CREATE TABLE table_73476 (
"Player" text,
"Games Played" real,
"Minutes" 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 fo... | SELECT MAX("Blocks") FROM table_73476 WHERE "Rebounds" = '198' |
### Instruction:
CREATE TABLE table_43082 (
"Usage" text,
"Sn/Sb (%)" text,
"Liquid at (\u00b0C)" text,
"Casting at (\u00b0C)" text,
"Remelting at (\u00b0C)" text,
"Hardness" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Sn/Sb perce... | SELECT "Sn/Sb (%)" FROM table_43082 WHERE "Liquid at (\u00b0C)" = '258' |
### Instruction:
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distan... | SELECT flno, origin, destination FROM flight ORDER BY origin |
### Instruction:
CREATE TABLE table_43440 (
"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 highest top-10 that has a u.s. open... | SELECT MAX("Top-10") FROM table_43440 WHERE "Tournament" = 'u.s. open' AND "Top-25" > '12' |
### Instruction:
CREATE TABLE table_204_104 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which op... | SELECT "title" FROM table_204_104 WHERE "title" IN ('la fortezza al cimento', 'astarto') ORDER BY "sub\u00addivisions" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_86 (
total_assets___percentage_change_ VARCHAR,
performance_return_on_capital___percentage_ VARCHAR,
performance_return_on_capital__score_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Total Assets (% Change... | SELECT total_assets___percentage_change_ FROM table_name_86 WHERE performance_return_on_capital___percentage_ > 25.63 AND performance_return_on_capital__score_ > 7 |
### Instruction:
CREATE TABLE table_203_597 (
id number,
"year" number,
"team" text,
"games" number,
"carries" number,
"yards" number,
"yards per carry" number,
"longest carry" number,
"touchdowns" number,
"first downs" number,
"fumbles" number,
"fumbles lost" number
)
... | SELECT "year" FROM table_203_597 WHERE "games" <= 4 |
### Instruction:
CREATE TABLE table_4980 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament has a 1R value in 2007 and... | SELECT "Tournament" FROM table_4980 WHERE "2007" = '1r' AND "2009" = '1r' |
### Instruction:
CREATE TABLE table_57912 (
"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 "Circuit" FROM table_57912 WHERE "Fastest lap" = 'lorenzo bandini' AND "Pole position" = 'lorenzo bandini' |
### Instruction:
CREATE TABLE table_16172 (
"Commodity" text,
"2001-02" real,
"2002-03" real,
"2003-04" real,
"2004-05" real,
"2005-06" real,
"2006-07" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum amount for wool for 20... | SELECT MIN("2001-02") FROM table_16172 WHERE "Commodity" = 'Wool' |
### Instruction:
CREATE TABLE table_12595 (
"State" text,
"Status" text,
"Association Agreement" text,
"Membership Application" text,
"Candidate status" text,
"Negotiations start" text,
"Screening completed" text,
"Acquis Chapters open/closed" text
)
-- Using valid SQLite, answer the f... | SELECT "State" FROM table_12595 WHERE "Association Agreement" = '2010-05-01 (saa)' |
### Instruction:
CREATE TABLE table_24402 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"RR4 Pts." text,
"Total Pts." real,
"Ranking" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT MIN("RR3 Pts.") FROM table_24402 WHERE "RR4 Pts." = '20' |
### Instruction:
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
-- Using valid SQLite, answer the following question... | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cname = T2.cname JOIN player AS T3 ON T2.pid = T3.pid WHERE T3.pname = 'Charles' |
### Instruction:
CREATE TABLE table_51016 (
"Constituency" text,
"Electorate" real,
"Votes" real,
"Turnout" real,
"Spoilt" real,
"Percent Yes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE LOWEST ELECTORATE WITH 31,511 VOTES, AND PE... | SELECT MIN("Electorate") FROM table_51016 WHERE "Votes" = '31,511' AND "Percent Yes" < '57.2' |
### Instruction:
CREATE TABLE table_24539 (
"University" text,
"Established as a university" real,
"First establishment" real,
"Student population ( FTE , 2009)" real,
"Research grants (2009, in billion SEK )" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT COUNT("Established as a university") FROM table_24539 WHERE "Research grants (2009, in billion SEK )" = '2.203' |
### Instruction:
CREATE TABLE TOURIST_ATTRACTIONS (
Tourist_Attraction_ID VARCHAR,
Name VARCHAR
)
CREATE TABLE PHOTOS (
Name VARCHAR,
Description VARCHAR,
Tourist_Attraction_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names an... | SELECT T1.Name, T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" |
### Instruction:
CREATE TABLE table_51827 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in the final, that... | SELECT "Score in the final" FROM table_51827 WHERE "Date" > '1984' AND "Outcome" = 'winner' AND "Opponent in the final" = 'víctor pecci' |
### Instruction:
CREATE TABLE table_24414 (
"Satellite" text,
"Launch date (UTC)" text,
"Decay" text,
"Mass(kg)" text,
"Diameter(m)" text,
"NSSDC ID" text,
"Nation" text,
"Usage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "Launch date (UTC)" FROM table_24414 WHERE "NSSDC ID" = '1960-009A' |
### Instruction:
CREATE TABLE table_name_24 (
series_number VARCHAR,
dvd_region_1_release_date VARCHAR,
original_air_date VARCHAR,
number_of_episodes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many series originally aired before 1999 with mor... | SELECT COUNT(series_number) FROM table_name_24 WHERE original_air_date < 1999 AND number_of_episodes > 7 AND dvd_region_1_release_date = "16 april 2013" |
### Instruction:
CREATE TABLE table_52612 (
"Block A" text,
"Akira" text,
"Atsushi Aoki" text,
"Black Tiger V" text,
"Jado" text,
"Milano Collection A.T." text,
"Prince Devitt" text,
"Tiger Mask IV" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Akira" FROM table_52612 WHERE "Tiger Mask IV" = 'akira (10:05)' |
### Instruction:
CREATE TABLE table_31048 (
"City/Municipality" text,
"Population (2010)" real,
"Area (km\u00b2)" text,
"Pop. density (per km\u00b2)" text,
"Income Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 82.74 is the area... | SELECT "Pop. density (per km\u00b2)" FROM table_31048 WHERE "Area (km\u00b2)" = '82.74' |
### Instruction:
CREATE TABLE table_6995 (
"Locomotive" text,
"Serial No" text,
"Entered service" text,
"Owner" text,
"Operator" text,
"Livery" text,
"Gauge" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Locomotive ... | SELECT "Locomotive" FROM table_6995 WHERE "Operator" = 'southern shorthaul railroad' AND "Entered service" = 'november 1984' |
### Instruction:
CREATE TABLE table_38761 (
"The Kennel Club (UK) Toy Group" text,
"Canadian Kennel Club Toy Dogs Group" text,
"American Kennel Club Toy Group" text,
"Australian National Kennel Council Toy Dogs Group" text,
"New Zealand Kennel Club Toy Group" text
)
-- Using valid SQLite, answer t... | SELECT "New Zealand Kennel Club Toy Group" FROM table_38761 WHERE "Australian National Kennel Council Toy Dogs Group" = 'papillon' |
### Instruction:
CREATE TABLE table_name_22 (
military_deaths INTEGER,
civilian_deaths__including_foreigners_ VARCHAR,
military_and_or_civilian_wounded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of military deaths when ther... | SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = "33" |
### Instruction:
CREATE TABLE table_name_19 (
gdp__percentage_of_eu__2012_ VARCHAR,
gdp_in_s_billion_of_usd__2012_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the GDP % of EU in 2012 of the country with a GDP in billions of USD in 2012 of 256.3?
... | SELECT gdp__percentage_of_eu__2012_ FROM table_name_19 WHERE gdp_in_s_billion_of_usd__2012_ = 256.3 |
### Instruction:
CREATE TABLE table_71056 (
"Year" real,
"Population (Total)" real,
"(Caboolture)" real,
"(Pine Rivers)" real,
"(Redcliffe)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Redcliffe population with a Pine Rivers populatio... | SELECT SUM("(Redcliffe)") FROM table_71056 WHERE "(Pine Rivers)" > '164,254' AND "Population (Total)" < '103,669' |
### Instruction:
CREATE TABLE table_train_202 (
"id" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"diabetic" string,
"qtc" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"clinical_diagnosis" bool,
"NOUSE" float
)
-- Using valid SQLite, answer ... | SELECT * FROM table_train_202 WHERE qtc < 450 |
### Instruction:
CREATE TABLE table_16703 (
"Year" real,
"Winners" text,
"Grand Finalist" text,
"Scores" text,
"Venue" text,
"Crowd" real,
"Margin" real,
"Season Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the venue wh... | SELECT "Venue" FROM table_16703 WHERE "Scores" = '15.13 (103) – 8.4 (52)' |
### Instruction:
CREATE TABLE table_76166 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" real,
"Profits (billion $)" real,
"Assets (billion $)" real,
"Market Value (billion $)" real
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Sales (billion $)" FROM table_76166 WHERE "Company" = 'exxonmobil' |
### Instruction:
CREATE TABLE table_70972 (
"Rank" real,
"Fastest time (s)" text,
"Wind (m/s)" text,
"Athlete" text,
"Nation" text,
"Date" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank did the United States swimme... | SELECT COUNT("Rank") FROM table_70972 WHERE "Fastest time (s)" = '11.26' AND "Nation" = 'united states' |
### Instruction:
CREATE TABLE table_25321 (
"Game" text,
"Date" text,
"Champion" text,
"Score" text,
"Runner Up" text,
"Stadium" text,
"City" text,
"Ted Morris Memorial Trophy (Game MVP)" text,
"Bruce Coulter Award" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Bruce Coulter Award" FROM table_25321 WHERE "Ted Morris Memorial Trophy (Game MVP)" = 'Forrest Kennerd' |
### Instruction:
CREATE TABLE table_31358 (
"Season" text,
"Division" text,
"League Apps" real,
"League Goals" real,
"FA Cup Apps" real,
"FA Cup Goals" real,
"Other Apps" real,
"Other Goals" real,
"Total Apps" real,
"Total Goals" real
)
-- Using valid SQLite, answer the followi... | SELECT "Other Goals" FROM table_31358 WHERE "League Goals" = '1' |
### 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 ORDER BY Country DESC |
### Instruction:
CREATE TABLE table_73335 (
"Administrative division" text,
"Area (km\u00b2) 2005" text,
"Population 2010 Census" real,
"Population 2011 SIAK Database" text,
"Population density (/km\u00b2 2010)" real
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Area (km\u00b2) 2005" FROM table_73335 WHERE "Administrative division" = 'Cimahi City' |
### 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, AVG(Budget_in_Billions) FROM department GROUP BY Creation |
### Instruction:
CREATE TABLE table_35256 (
"Rank" real,
"Airport" text,
"Location" text,
"Code (IATA)" text,
"Total Cargo (Metric Tonnes)" text,
"2003 Rank" text,
"% Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IATA co... | SELECT "Code (IATA)" FROM table_35256 WHERE "Total Cargo (Metric Tonnes)" = '1,838,894' |
### Instruction:
CREATE TABLE table_77448 (
"Game" text,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins' points" text,
"Opponents' Points" text,
"Record" text,
"Streak" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Streak" FROM table_77448 WHERE "Dolphins' points" = '21' AND "Game" = '16' |
### Instruction:
CREATE TABLE table_204_572 (
id number,
"rank" number,
"county" text,
"per capita\nincome" text,
"median\nhousehold\nincome" text,
"median\nfamily\nincome" text,
"population" number,
"number of\nhouseholds" number
)
-- Using valid SQLite, answer the following questions... | SELECT (SELECT "population" FROM table_204_572 WHERE "county" = 'richland') < 10000 |
### Instruction:
CREATE TABLE table_204_616 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinat... | SELECT COUNT("township") FROM table_204_616 |
### Instruction:
CREATE TABLE table_23365 (
"N\u00ba" real,
"Ep" real,
"Huckleberry Hound" text,
"Pixie and Dixie" text,
"Hokey Wolf" text,
"Air date" text,
"Credited Animators" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Huckleb... | SELECT COUNT("Huckleberry Hound") FROM table_23365 WHERE "Air date" = '1960.09.18' |
### Instruction:
CREATE TABLE table_59645 (
"Golden Rivers" 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 total of against matches when there are less than 12 wi... | SELECT SUM("Against") FROM table_59645 WHERE "Wins" < '12' AND "Golden Rivers" = 'moulamein' AND "Draws" < '0' |
### Instruction:
CREATE TABLE table_204_623 (
id number,
"opponent" text,
"goals" text,
"wins" number,
"draws" number,
"losses" number,
"+- goals" number,
"matches" number,
"qualified" number,
"eliminated" number
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "opponent" FROM table_204_623 WHERE "opponent" IN ('kf laci', 'ks bylis') ORDER BY "draws" DESC LIMIT 1 |
### Instruction:
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name va... | SELECT COUNT(*) FROM geographic, restaurant WHERE geographic.region = 'bay area' AND restaurant.city_name = geographic.city_name AND restaurant.name = 'denny' |
### Instruction:
CREATE TABLE table_22257 (
"#" real,
"Cover Date" text,
"Story Title" text,
"Writer/s" text,
"Artist/s" text,
"Letterer/s" text,
"Colourist/s" text,
"Editor/s" text,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT COUNT("Cover Date") FROM table_22257 WHERE "Story Title" = 'DEVASTATION DERBY! (Part 1)' |
### Instruction:
CREATE TABLE table_name_66 (
total_orphans__total_ INTEGER,
total_orphans__aids_related_ VARCHAR,
maternal__total_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total Orphans number when the number of Total Orphans (AIDS Rel... | SELECT MIN(total_orphans__total_) FROM table_name_66 WHERE total_orphans__aids_related_ = "< 100" AND maternal__total_ < 31 OFFSET 000 |
### Instruction:
CREATE TABLE table_204_981 (
id number,
"ep#" number,
"title" text,
"broadcast date" text,
"written by" text,
"directed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- were more episodes written by michael piller & bill dial ... | SELECT "written by" FROM table_204_981 WHERE "written by" IN ('michael piller & bill dial', 'bob shane & ron friedman') GROUP BY "written by" ORDER BY COUNT("ep#") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_70282 (
"Year" text,
"Record [a ]" text,
"Win %" real,
"League [b ]" text,
"Division [c ]" text,
"GB [d ]" text,
"Post-season record [e ]" text,
"Post-season win %" text,
"MLB affiliate [f ]" text
)
-- Using valid SQLite, answer the following que... | SELECT AVG("Win %") FROM table_70282 WHERE "GB [d ]" = '5' |
### Instruction:
CREATE TABLE table_70174 (
"Month & Year" text,
"Episode" text,
"Title" text,
"Hammond's vehicle" text,
"Clarkson's vehicle" text,
"May's vehicle" text,
"Back-up" text,
"Budget" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "May's vehicle" FROM table_70174 WHERE "Hammond's vehicle" = '1974 toyota land cruiser' |
### Instruction:
CREATE TABLE table_13557 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Median family income" FROM table_13557 WHERE "Population" > '26,233' AND "Per capita income" = '$20,805' |
### Instruction:
CREATE TABLE table_69460 (
"Rider" text,
"Year" real,
"Final Position - Giro" real,
"Final Position - Tour" real,
"Final Position - Vuelta" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of final position-tours Ma... | SELECT COUNT("Final Position - Tour") FROM table_69460 WHERE "Final Position - Giro" > '20' AND "Rider" = 'mariano piccoli' AND "Year" < '1999' |
### Instruction:
CREATE TABLE Students (
student_id VARCHAR,
personal_name VARCHAR
)
CREATE TABLE Student_Course_Enrolment (
date_of_enrolment VARCHAR,
date_of_completion VARCHAR,
student_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List th... | SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = "Karson" |
### Instruction:
CREATE TABLE table_56530 (
"Year" text,
"Starts" real,
"Cuts made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings ($)" real,
"Money list rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smalle... | SELECT MIN("Earnings ($)") FROM table_56530 WHERE "Money list rank" = '6' AND "Starts" < '22' |
### Instruction:
CREATE TABLE table_25207 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race time" text,
"Average speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Manufacturer" FROM table_25207 WHERE "Driver" = 'Cale Yarborough' AND "Year" = '1984' |
### Instruction:
CREATE TABLE table_204_828 (
id number,
"whitworth size (in)" number,
"core diameter (in)" number,
"threads per inch" number,
"pitch (in)" number,
"tapping drill size" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the n... | SELECT "whitworth size (in)" FROM table_204_828 WHERE id = (SELECT id FROM table_204_828 WHERE "whitworth size (in)" = '1/8') + 1 |
### Instruction:
CREATE TABLE table_28433 (
"Specimen weight/size" text,
"Calculated activity ( Bq )" real,
"Calculated activity ( Ci )" text,
"Estimated activity GR(api)" text,
"Estimated exposure ( mRem )/hr*" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT COUNT("Calculated activity ( Bq )") FROM table_28433 WHERE "Specimen weight/size" = '1000 g / 8.79 cm' |
### Instruction:
CREATE TABLE table_24937 (
"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("Directed by") FROM table_24937 WHERE "U.S. viewers (million)" = '1.59' |
### Instruction:
CREATE TABLE table_39015 (
"Start month" text,
"End month" text,
"Cover" text,
"Spine" text,
"Indicia" text,
"Masthead" text,
"Number of issues" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Spine that has fanta... | SELECT "Spine" FROM table_39015 WHERE "Indicia" = 'fantastic' AND "Cover" = 'fantastic stories science fiction & fantasy' AND "End month" = 'aug-72' |
### 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 Code, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 |
### Instruction:
CREATE TABLE table_204_706 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which competition did this person compete in immediately before the... | SELECT "competition" FROM table_204_706 WHERE "year" < (SELECT "year" FROM table_204_706 WHERE "competition" = 'east asian games' AND "year" = 2001) ORDER BY "year" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_1927 (
"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 provid... | SELECT "Longitude" FROM table_1927 WHERE "ANSI code" = '1759682' |
### Instruction:
CREATE TABLE table_68825 (
"Year" real,
"Region total" real,
"Goondiwindi" real,
"Waggamba" real,
"Inglewood" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the region total after 2001 when Goondiwindi had more than 4,103 an... | SELECT COUNT("Region total") FROM table_68825 WHERE "Goondiwindi" > '4,103' AND "Inglewood" = '2,613' AND "Year" > '2001' |
### Instruction:
CREATE TABLE table_17625 (
"Municipality" text,
"Population" real,
"Police officers" real,
"Residents per officer" real,
"Total costs (2005)" text,
"Cost per capita" text,
"Case burden" real,
"Crime rate per 1,000 people" real,
"Police force" text
)
-- Using valid ... | SELECT "Police force" FROM table_17625 WHERE "Population" = '17000' |
### Instruction:
CREATE TABLE table_38396 (
"Name" text,
"Years of Operation" text,
"Location" text,
"Historical Photos" text,
"Year Clubhouse Constructed" text,
"Sign-in/Bicker" text,
"Year co-ed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Year Clubhouse Constructed" FROM table_38396 WHERE "Sign-in/Bicker" = 'bicker' AND "Name" = 'cannon club' |
### Instruction:
CREATE TABLE table_811 (
"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, a... | SELECT COUNT("Points against") FROM table_811 WHERE "Tries for" = '43' |
### Instruction:
CREATE TABLE table_48076 (
"Total Points" real,
"Name" text,
"Career Games" text,
"Position" text,
"Years Played" text,
"Scored 1,500 Points" text,
"Date and Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ... | SELECT "Date and Opponent" FROM table_48076 WHERE "Position" = 'f' AND "Career Games" = '123 games' |
### Instruction:
CREATE TABLE table_61721 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type ends in... | SELECT "Type" FROM table_61721 WHERE "Ends" = '2011' AND "Transfer fee" = 'free' AND "Source" = 'leeds united' |
### Instruction:
CREATE TABLE table_53993 (
"Mid Gippsland FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low draw total for yarragon teams with over 3 wins, ... | SELECT MIN("Draws") FROM table_53993 WHERE "Wins" > '3' AND "Mid Gippsland FL" = 'yarragon' AND "Against" < '966' |
### Instruction:
CREATE TABLE table_72215 (
"Taxonomy" text,
"Species in the world" real,
"Species in Peru" real,
"Species in the Peruvian Amazon" real,
"Peru Vs. world (Percent)" real,
"Peruvian Amazon Vs. Peru (Percent)" real
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT MIN("Species in the Peruvian Amazon") FROM table_72215 WHERE "Peru Vs. world (Percent)" = '7' |
### Instruction:
CREATE TABLE table_7263 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2011 when the ... | SELECT "2011" FROM table_7263 WHERE "Tournament" = 'grand slam tournaments' |
### Instruction:
CREATE TABLE table_17810 (
"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 "Drawn" FROM table_17810 WHERE "Tries against" = '89' |
### Instruction:
CREATE TABLE table_49022 (
"School Year" text,
"Volleyball" text,
"Cross Country" text,
"Soccer" text,
"Tennis" text,
"Golf" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Cross Country, when Soccer is Ashland, when Voll... | SELECT "Cross Country" FROM table_49022 WHERE "Soccer" = 'ashland' AND "Volleyball" = 'wooster' AND "School Year" = '2006-07' |
### Instruction:
CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id number,
medicine_id number,
interaction_type text
)
CREATE TABLE enzyme (
id number,
name text,
location text,
product te... | SELECT name FROM enzyme WHERE name LIKE "%ALA%" |
### Instruction:
CREATE TABLE table_21055 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Carl Levin" text,
"Republican: Jack Hoogendyk" text,
"Lead Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest lead margin... | SELECT MIN("Lead Margin") FROM table_21055 WHERE "Poll Source" = 'Strategic Vision' AND "Democrat: Carl Levin" = '57%' |
### Instruction:
CREATE TABLE table_1253 (
"Year" real,
"Events played" real,
"Cuts made" real,
"Wins" real,
"2nds" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Rank" text,
"Scoring average" text,
"Scoring rank" text
)
-- Using valid SQLite, answer the fo... | SELECT "Best finish" FROM table_1253 WHERE "Scoring rank" = '97' |
### Instruction:
CREATE TABLE table_28027 (
"January\u2013September 2013" text,
"Birth/2013" real,
"Birth/2012" real,
"Death/2013" real,
"Death/2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest death/2013 when the death/2012 i... | SELECT MAX("Death/2013") FROM table_28027 WHERE "Death/2012" = '12,7' |
### Instruction:
CREATE TABLE table_27151 (
"Rnd." real,
"Circuit" text,
"LMP1 Winning Team" text,
"LMP2 Winning Team" text,
"FLM Winning Team" text,
"GT1 Winning Team" text,
"GT2 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT MAX("Rnd.") FROM table_27151 WHERE "GT2 Winning Team" = 'Marc Lieb Richard Lietz' |
### Instruction:
CREATE TABLE table_18008 (
"No." 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 above.
... | SELECT "U.S. viewers (million)" FROM table_18008 WHERE "Production code" = '3T7051' |
### Instruction:
CREATE TABLE table_18321 (
"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.
-- Which district has candidates is dick gephardt (d) 81.9... | SELECT "District" FROM table_18321 WHERE "Candidates" = 'Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%' |
### Instruction:
CREATE TABLE table_44306 (
"Rank" real,
"Country" text,
"Miss United Continent" real,
"Virreina" real,
"1st RU" real,
"2nd RU" real,
"3rd RU" real,
"4th RU" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the... | SELECT MAX("Rank") FROM table_44306 WHERE "Country" = 'peru' AND "Total" > '3' |
### Instruction:
CREATE TABLE table_13268 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
-- Using valid SQLite, answer the... | SELECT "FA Cup Apps" FROM table_13268 WHERE "League Apps" = '21' |
### Instruction:
CREATE TABLE table_name_92 (
highest_score INTEGER,
lowest_score VARCHAR,
worst_dancer_s_ VARCHAR,
best_dancer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest score in the Highest score column when Master P was t... | SELECT MIN(highest_score) FROM table_name_92 WHERE worst_dancer_s_ = "master p" AND best_dancer_s_ = "drew lachey" AND lowest_score < 8 |
### Instruction:
CREATE TABLE table_56531 (
"Year" text,
"Starts" real,
"Cuts made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings ($)" real,
"Money list rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highes... | SELECT MAX("Cuts made") FROM table_56531 WHERE "Top 10" < '8' AND "Wins" > '0' |
### Instruction:
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
... | SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY Country |
### Instruction:
CREATE TABLE table_59343 (
"DVD Title" text,
"No. of Discs" real,
"Year" text,
"No. of Episodes" real,
"Region 1" text,
"Region 2" text,
"Region 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region 1 has 12 Episode... | SELECT "Region 1" FROM table_59343 WHERE "No. of Episodes" = '12' AND "Region 2" = '18 august 2008' |
### Instruction:
CREATE TABLE table_72843 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Fourth" FROM table_72843 WHERE "Sixth" = 'Air Traffic' |
### Instruction:
CREATE TABLE table_43893 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Away Team, when Ground ... | SELECT "Away team" FROM table_43893 WHERE "Ground" = 'waverley park' AND "Away team score" = '10.14 (74)' |
### Instruction:
CREATE TABLE table_45085 (
"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 SUM("Goals For") FROM table_45085 WHERE "Points 1" = '38' AND "Played" < '42' |
### Instruction:
CREATE TABLE table_204_363 (
id number,
"res." text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" number,
"time" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "event" FROM table_204_363 WHERE id = (SELECT id FROM table_204_363 WHERE "event" = 'dynamite!! usa') - 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.