instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_train_24 (
"id" int,
"systolic_blood_pressure_sbp" int,
"do_not_resuscitate_dnr" bool,
"temperature" float,
"hypotension" bool,
"cardiac_arrest" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT * FROM table_train_24 WHERE do_not_resuscitate_dnr = 1 |
### Instruction:
CREATE TABLE table_17423 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the built data on the scrapped information th... | SELECT "Built" FROM table_17423 WHERE "Scrapped/Sold" = 'Cannot handle non-empty timestamp argument! 1947' |
### Instruction:
CREATE TABLE table_204_349 (
id number,
"year" number,
"conservative\ncouncillors" number,
"labour\ncouncillors" number,
"independent\ncouncillors" number,
"liberal\ncouncillors" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT COUNT("year") FROM table_204_349 WHERE "liberal\ncouncillors" > 3 |
### Instruction:
CREATE TABLE table_57212 (
"Year" text,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Champion in Sne... | SELECT "Champion" FROM table_57212 WHERE "Location" = 'snellville, ga' AND "Year" = '2006' |
### Instruction:
CREATE TABLE table_46699 (
"Class" text,
"Leading bits" real,
"Size of network number bit field" text,
"Size of rest bit field" text,
"Number of networks" text,
"Addresses per network" text,
"Start address" text,
"End address" text
)
-- Using valid SQLite, answer the f... | SELECT "Start address" FROM table_46699 WHERE "Size of network number bit field" = '16' |
### Instruction:
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- U... | SELECT allergytype, COUNT(*) FROM allergy_type GROUP BY allergytype |
### Instruction:
CREATE TABLE table_204_111 (
id number,
"name" text,
"animal type" text,
"introduced" number,
"reintroduced" text,
"retired" number,
"beanie baby resembled" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of ... | SELECT "name" FROM table_204_111 WHERE id = (SELECT id FROM table_204_111 WHERE "name" = 'clover') + 1 |
### Instruction:
CREATE TABLE table_71060 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result for Gold Coast when Melbourne and Adelaid... | SELECT "Gold Coast" FROM table_71060 WHERE "Melbourne" = 'yes' AND "Perth" = 'no' AND "Adelaide" = 'yes' |
### Instruction:
CREATE TABLE table_64519 (
"Country" text,
"Athlete" text,
"Technical" real,
"Free" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more ... | SELECT MAX("Technical") FROM table_64519 WHERE "Athlete" = 'jiang tingting & jiang wenwen' AND "Total" > '96.334' |
### 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 liver_disease = 1 AND alt = 1 |
### Instruction:
CREATE TABLE table_31079 (
"Week of" text,
"Tournament" text,
"Champion" text,
"Runner-up" text,
"Semifinalists" text,
"Quarterfinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the semifinalists in the tournamen... | SELECT "Semifinalists" FROM table_31079 WHERE "Champion" = 'Mats Wilander 7-6, 6-3' |
### Instruction:
CREATE TABLE table_65628 (
"Club" text,
"Total points" text,
"Bonus points" text,
"Match points" text,
"Games" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Diff" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Match points" FROM table_65628 WHERE "Points against" = '755' |
### Instruction:
CREATE TABLE table_61748 (
"Champions" text,
"Runners-up" text,
"Third-place" text,
"Fourth-place" text,
"Semi-finalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What fourth-place has 2 (1999, 2005) as the runner(s)-up?
###... | SELECT "Fourth-place" FROM table_61748 WHERE "Runners-up" = '2 (1999, 2005)' |
### Instruction:
CREATE TABLE table_30999 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Score" FROM table_30999 WHERE "High points" = 'Boris Diaw (34)' |
### Instruction:
CREATE TABLE table_22871 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was the score 6 7(5), 6 2, ... | SELECT COUNT("Opponents") FROM table_22871 WHERE "Score" = '6–7(5), 6–2, 6–3' |
### Instruction:
CREATE TABLE table_20971 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the wickets when there... | SELECT "Wicket" FROM table_20971 WHERE "Runs" = '451' AND "Fielding team" = 'India' |
### Instruction:
CREATE TABLE table_29556 (
"Season" text,
"Points per Game" text,
"Total Yards per Game" text,
"Rushing Yards per Game" text,
"Passing Yards per Game" text,
"Sacks" text,
"Interceptions" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Rushing Yards per Game" FROM table_29556 WHERE "Season" = '1984' |
### Instruction:
CREATE TABLE table_14763 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 1st Party has a 2nd Party of conservative, and a 1st Member of will... | SELECT "1st Party" FROM table_14763 WHERE "2nd Party" = 'conservative' AND "1st Member" = 'william wither bramston beach' |
### Instruction:
CREATE TABLE table_204_971 (
id number,
"m" number,
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score" text,
"attendance" number,
"dinamo scorers" text,
"report" text
)
-- Using valid SQLite, answer the following questions... | SELECT "date" FROM table_204_971 ORDER BY "attendance" DESC LIMIT 1 |
### Instruction:
CREATE TABLE course (
title VARCHAR,
credits VARCHAR,
dept_name VARCHAR,
course_id VARCHAR
)
CREATE TABLE prereq (
course_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the title, credit, and department name of courses t... | SELECT T1.title, T1.credits, T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) > 1 |
### Instruction:
CREATE TABLE table_18919 (
"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 COUNT("Equivalent daily inflation rate") FROM table_18919 WHERE "Currency name" = 'Republika Srpska dinar' |
### Instruction:
CREATE TABLE table_46595 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time before round 2, a... | SELECT "Time" FROM table_46595 WHERE "Round" < '2' AND "Method" = 'ko (knee to the body)' |
### Instruction:
CREATE TABLE table_35305 (
"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.
-- Which Runner(s)-up has a Margin of victory of 1 stroke, and a T... | SELECT "Runner(s)-up" FROM table_35305 WHERE "Margin of victory" = '1 stroke' AND "Tournament" = 'world seniors invitational' |
### Instruction:
CREATE TABLE table_train_28 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"systemic_antifungal_therapy" bool,
"child_pugh_class" string,
"invasive_candida_infection" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions ... | SELECT * FROM table_train_28 WHERE systemic_antifungal_therapy = 1 |
### Instruction:
CREATE TABLE table_name_76 (
administrative_district VARCHAR,
pre_1009_province VARCHAR,
post_1009_province VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Administrative district has a Pre-1009 province of gwannae -do and a Post-10... | SELECT administrative_district FROM table_name_76 WHERE pre_1009_province = "gwannae -do" AND post_1009_province = "seohae -do" |
### Instruction:
CREATE TABLE table_203_397 (
id number,
"series" text,
"launch date" text,
"finale date" text,
"days" number,
"housemates" number,
"winner" text,
"main presenter" text,
"grand prize" text,
"liveshow\naudience\nmillions" number
)
-- Using valid SQLite, answer th... | SELECT MAX("housemates") FROM table_203_397 |
### Instruction:
CREATE TABLE table_64326 (
"Season" text,
"Date" text,
"Venue" text,
"Competition" text,
"Score" text,
"Attendance" real,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the Scottish Cup on 2... | SELECT "Attendance" FROM table_64326 WHERE "Competition" = 'scottish cup' AND "Date" = '29.02.2000' |
### Instruction:
CREATE TABLE table_22659 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Record") FROM table_22659 WHERE "Score" = 'W 70-66' |
### Instruction:
CREATE TABLE table_77632 (
"YEAR" real,
"Seniors" text,
"Reserves" text,
"Thirds (Under 17's)" text,
"Fourths (Under 14's)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Fourths (Under 14's) have Seniors of dederang mt beauty... | SELECT "Fourths (Under 14's)" FROM table_77632 WHERE "Seniors" = 'dederang mt beauty' |
### Instruction:
CREATE TABLE table_3770 (
"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.
-- Wh... | SELECT "No. in season" FROM table_3770 WHERE "U.S. viewers (millions)" = '10.18' |
### Instruction:
CREATE TABLE table_57383 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of grids with an engine in Time/Retired with less than 45 laps for... | SELECT SUM("Grid") FROM table_57383 WHERE "Time/Retired" = 'engine' AND "Laps" < '45' AND "Driver" = 'giancarlo baghetti' |
### Instruction:
CREATE TABLE table_31923 (
"Year" text,
"Total matches" real,
"Total W-L-H" text,
"Singles W-L-H" text,
"Points won" real,
"Points %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 2007, what is the average total matches with... | SELECT AVG("Total matches") FROM table_31923 WHERE "Points %" > '33.3' AND "Year" = '2007' |
### Instruction:
CREATE TABLE table_16286 (
"Rnd" text,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questio... | SELECT "Rnd" FROM table_16286 WHERE "Date" = 'August 9' |
### Instruction:
CREATE TABLE table_5904 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Set 2 of 25 17, and a Time of 16:00?
### ... | SELECT "Score" FROM table_5904 WHERE "Set 2" = '25–17' AND "Time" = '16:00' |
### Instruction:
CREATE TABLE table_203_296 (
id number,
"country" text,
"total gdp (nominal)\n(billion us$)" text,
"gdp per capita\n(us$, ppp)" text,
"gdp growth,\n2007-2011\n(in %)" number,
"hdi" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "country" FROM table_203_296 ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_4225 (
"Quartier" text,
"% 0-19 years" text,
"% 20-39 years" text,
"% 40-59 years" text,
"% 60-74 years" text,
"% 75 years and +" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the quartier menpenti has how ma... | SELECT "% 40-59 years" FROM table_4225 WHERE "Quartier" = 'Menpenti' |
### Instruction:
CREATE TABLE table_17740 (
"Team" text,
"Car(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the driver for the team whose... | SELECT "Driver(s)" FROM table_17740 WHERE "Primary Sponsor(s)" = 'Quicken Loans / Haas Automation' |
### Instruction:
CREATE TABLE table_76226 (
"Alianza wins" real,
"Draws" real,
"U wins" real,
"Alianza goals" real,
"U goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Alianza Wins, when Alianza Goals is '317, and when U Goal... | SELECT SUM("Alianza wins") FROM table_76226 WHERE "Alianza goals" = '317' AND "U goals" > '296' |
### Instruction:
CREATE TABLE table_29113 (
"Season" text,
"Games" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Points" real,
"Goals For" real,
"Goals Against" real,
"Standing" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT MIN("Points") FROM table_29113 WHERE "Standing" = '5th' |
### Instruction:
CREATE TABLE table_74684 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the largest crowd to v... | SELECT MAX("Crowd") FROM table_74684 WHERE "Away team score" = '17.8 (110)' |
### Instruction:
CREATE TABLE table_57610 (
"Country" text,
"Abbreviation" text,
"Assets US$Billion" text,
"Inception" text,
"Origin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the abbreviation for the country with an inception of 1999 an... | SELECT "Abbreviation" FROM table_57610 WHERE "Inception" = '1999' AND "Assets US$Billion" = '7.1' |
### Instruction:
CREATE TABLE table_name_61 (
married_filing_jointly_or_qualified_widow_er_ VARCHAR,
head_of_household VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the married filing jointly or qualified widow(er) with head of household being $117,451... | SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = "$117,451–$190,200" |
### Instruction:
CREATE TABLE table_50391 (
"Outcome" text,
"Date" text,
"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 is the date of the match with a ... | SELECT "Date" FROM table_50391 WHERE "Outcome" = 'winner' AND "Opponent in the final" = 'jim courier' |
### Instruction:
CREATE TABLE table_58302 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which entry has the highest laps of those with constructor Minardi - Fondmetal, dr... | SELECT MAX("Laps") FROM table_58302 WHERE "Constructor" = 'minardi - fondmetal' AND "Driver" = 'marc gené' AND "Grid" > '20' |
### Instruction:
CREATE TABLE table_50404 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"Ast. Avg." real,
"Total Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108... | SELECT SUM("Ast. Avg.") FROM table_50404 WHERE "Rank" = '5' AND "Games" > '108' |
### Instruction:
CREATE TABLE table_45917 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "High points" FROM table_45917 WHERE "Opponent" = 'los angeles' |
### Instruction:
CREATE TABLE table_60518 (
"Season" real,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has... | SELECT MAX("Season") FROM table_60518 WHERE "Podiums" = '0' AND "Races" = '16' |
### Instruction:
CREATE TABLE table_38621 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of ... | SELECT MAX("Points") FROM table_38621 WHERE "Team" = 'vitória' AND "Played" > '38' |
### Instruction:
CREATE TABLE table_204_87 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what city has more courthouse... | SELECT "city" FROM table_204_87 WHERE "city" IN ('aberdeen', 'greenville') GROUP BY "city" ORDER BY COUNT("courthouse") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_456 (
id number,
"player" text,
"-1967" text,
"3.3" text,
"3.31" text,
"4.04" text,
"10.14" text,
"1968" text,
"total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total did mitsuo k... | SELECT "total" FROM table_203_456 WHERE "player" = 'mitsuo kamata' |
### Instruction:
CREATE TABLE table_37468 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 2003" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Team with a Capacity larger than 5,000, and a Position... | SELECT "Team" FROM table_37468 WHERE "Capacity" > '5,000' AND "Position in 2003" = '13' |
### Instruction:
CREATE TABLE review (
a_id number,
u_id number,
i_id number,
rating number,
rank number
)
CREATE TABLE item (
i_id number,
title text
)
CREATE TABLE useracct (
u_id number,
name text
)
CREATE TABLE trust (
source_u_id number,
target_u_id number,
trust ... | SELECT COUNT(DISTINCT i_id) FROM review |
### Instruction:
CREATE TABLE table_68690 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the foll... | SELECT "Points" FROM table_68690 WHERE "Club" = 'club' |
### Instruction:
CREATE TABLE table_55197 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the tournament when anto... | SELECT "Tournament" FROM table_55197 WHERE "Opponents" = 'antonia xenia tout nataša zorić' |
### Instruction:
CREATE TABLE table_204_609 (
id number,
"year" number,
"car" number,
"start" number,
"qual" number,
"rank" number,
"finish" number,
"laps" number,
"led" number,
"retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT("year") FROM table_204_609 WHERE "car" = 54 |
### Instruction:
CREATE TABLE table_26567 (
"No. in series" real,
"No. in 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.
-- Who was t... | SELECT "Directed by" FROM table_26567 WHERE "Original air date" = 'September 24, 1993' |
### Instruction:
CREATE TABLE table_57482 (
"Date" text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Goals" text,
"Attendance" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 15/04/07 in the competition Super Lea... | SELECT "Score" FROM table_57482 WHERE "Competition" = 'super league xii' AND "Date" = '15/04/07' |
### Instruction:
CREATE TABLE table_76498 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest value for Week, when the Attendance is greater than 22,958, and when... | SELECT MIN("Week") FROM table_76498 WHERE "Attendance" > '22,958' AND "Opponent" = 'at chicago cardinals' |
### Instruction:
CREATE TABLE table_18080 (
"Complete Series" text,
"Region 1" text,
"Region 2" text,
"Region 4" text,
"DVD Extras and Bonus Features" text,
"Number Of Discs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the region 1 wh... | SELECT "Region 1" FROM table_18080 WHERE "Region 4" = 'TBA' AND "Complete Series" = 'The Complete Eighth Series' |
### 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 Name, Height FROM people |
### Instruction:
CREATE TABLE table_70724 (
"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 highest rank a country with less than 3 gold, more than 2 silve... | SELECT MAX("Rank") FROM table_70724 WHERE "Gold" < '3' AND "Silver" > '2' AND "Total" < '5' |
### Instruction:
CREATE TABLE table_55189 (
"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.
-- Who was the visiting team on April 8 where ... | SELECT "Visitor" FROM table_55189 WHERE "Attendance" > '19,141' AND "Date" = 'april 8' |
### Instruction:
CREATE TABLE table_13986 (
"No. in series" real,
"No. in 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.
-- What episode number in the series was... | SELECT MIN("No. in series") FROM table_13986 WHERE "Title" = 'facing the music' AND "No. in season" > '6' |
### Instruction:
CREATE TABLE table_59484 (
"Series" text,
"Platform" text,
"Japanese Release Date" text,
"North American Release Date" text,
"European Release Date" text,
"Australia Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "North American Release Date" FROM table_59484 WHERE "Japanese Release Date" = '2011-06-23' |
### Instruction:
CREATE TABLE table_9372 (
"Year" text,
"Starts" real,
"Wins" real,
"Top Fives" real,
"Top Tens" real,
"Poles" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of top fives when casey mears... | SELECT SUM("Top Fives") FROM table_9372 WHERE "Poles" > '1' AND "Top Tens" < '9' |
### Instruction:
CREATE TABLE table_19467 (
"Rnd" real,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questio... | SELECT "Circuit" FROM table_19467 WHERE "Rnd" = '5' |
### Instruction:
CREATE TABLE table_49829 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira r... | SELECT "Manufacturer" FROM table_49829 WHERE "Laps" = '21' AND "Grid" > '16' AND "Rider" = 'akira ryō' |
### Instruction:
CREATE TABLE table_31432 (
"Rank" real,
"Country/Territory" text,
"Manhunt 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 ... | SELECT MIN("Manhunt International") FROM table_31432 |
### Instruction:
CREATE TABLE table_56751 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total Crowd number ... | SELECT SUM("Crowd") FROM table_56751 WHERE "Home team score" = '13.9 (87)' |
### Instruction:
CREATE TABLE table_68399 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which engine of bmw had the lowest points and chassis of march 792 that is newer than 197... | SELECT MIN("Points") FROM table_68399 WHERE "Engine" = 'bmw' AND "Chassis" = 'march 792' AND "Year" > '1979' |
### Instruction:
CREATE TABLE table_46781 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Location/Attendance of delta center/19,... | SELECT "Opponent" FROM table_46781 WHERE "Location/Attendance" = 'delta center/19,911' AND "Date" = 'dec 6' |
### Instruction:
CREATE TABLE table_11679 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Constructor has a Grid smaller than 24, more than 77 laps, and a Driver of j... | SELECT "Constructor" FROM table_11679 WHERE "Grid" < '24' AND "Laps" > '77' AND "Driver" = 'jean-pierre beltoise' |
### Instruction:
CREATE TABLE customer_addresses (
customer_id VARCHAR,
address_id VARCHAR
)
CREATE TABLE customers (
customer_id VARCHAR
)
CREATE TABLE addresses (
city VARCHAR,
address_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which c... | SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_57 (
electorate INTEGER,
name VARCHAR,
political_party VARCHAR,
constituency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest electorate for the Conservative party in South West Devon consti... | SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford" |
### Instruction:
CREATE TABLE table_35560 (
"Game" real,
"Date" real,
"Opponent" text,
"Score" text,
"Location/attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent of game 54, which was in Los Angeles and... | SELECT "Opponent" FROM table_35560 WHERE "Location/attendance" = 'los angeles' AND "Date" < '18' AND "Game" = '54' |
### Instruction:
CREATE TABLE table_11935 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the player with TD's more than 1 and long less than 24 with avg less than ... | SELECT "Player" FROM table_11935 WHERE "Avg." < '11.4' AND "Long" < '24' AND "TD's" > '1' |
### Instruction:
CREATE TABLE table_78148 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date is listed for the tea... | SELECT "Date" FROM table_78148 WHERE "Away team score" = '20.21 (141)' |
### Instruction:
CREATE TABLE table_name_9 (
mintage INTEGER,
year VARCHAR,
artist VARCHAR,
issue_price VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Mintage for the Artist Royal Canadian Mint Engravers, in the Year 2009, with an ... | SELECT MIN(mintage) FROM table_name_9 WHERE artist = "royal canadian mint engravers" AND issue_price = "$10,199.95" AND year > 2009 |
### Instruction:
CREATE TABLE table_57338 (
"Tallangatta 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 Tallangatta DFL losses greater than 2 and an against ... | SELECT "Tallangatta DFL" FROM table_57338 WHERE "Against" > '1013' AND "Losses" > '2' |
### Instruction:
CREATE TABLE table_30382 (
"\u2116" real,
"#" 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 provided abo... | SELECT COUNT("#") FROM table_30382 WHERE "Production code" = '7ABB21' |
### Instruction:
CREATE TABLE table_27898 (
"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 was th... | SELECT COUNT("Population (2011)") FROM table_27898 WHERE "Cyrillic Name" = 'Сурдук' |
### Instruction:
CREATE TABLE table_30970 (
"Episode" text,
"First broadcast" text,
"Andrew and Jacks guest" text,
"Jamies guests Peter Crouch replaced Jamie Redknapp as team captain for one week in series 5, episode 2." text,
"Scores" text
)
-- Using valid SQLite, answer the following questions f... | SELECT "First broadcast" FROM table_30970 WHERE "Andrew and Jacks guest" = 'Jessica Ennis' |
### Instruction:
CREATE TABLE table_21220 (
"Province" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT MAX("Ends Lost") FROM table_21220 |
### Instruction:
CREATE TABLE table_33001 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total laps for the driver with Winnings of $116,033, and a Car #... | SELECT COUNT("Laps") FROM table_33001 WHERE "Winnings" = '$116,033' AND "Car #" < '18' |
### Instruction:
CREATE TABLE table_70640 (
"Season" text,
"Games" real,
"Lost" real,
"Points" real,
"Goalsfor" real,
"Goalsagainst" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Season of 2002 03, and a Lost larger than 14, what is the lowest ... | SELECT MIN("Goalsfor") FROM table_70640 WHERE "Season" = '2002–03' AND "Lost" > '14' |
### Instruction:
CREATE TABLE table_32176 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round for Wisconsin when the overall is larger than 238 a... | SELECT AVG("Round") FROM table_32176 WHERE "Overall" > '238' AND "Position" = 'defensive end' AND "School/Club Team" = 'wisconsin' |
### Instruction:
CREATE TABLE table_67954 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the melbourne for adelaide of no with auckland of yes a... | SELECT "Melbourne" FROM table_67954 WHERE "Adelaide" = 'no' AND "Auckland" = 'yes' AND "Gold Coast" = 'no' |
### Instruction:
CREATE TABLE table_34614 (
"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.
-- Who was the winner in the game that had a title... | SELECT "Winner" FROM table_34614 WHERE "Runner-up" = 'waseda' AND "Title" = '32nd' |
### Instruction:
CREATE TABLE table_53645 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the away ... | SELECT "Away team score" FROM table_53645 WHERE "Home team score" = '19.17 (131)' |
### Instruction:
CREATE TABLE table_76535 (
"Scorer" text,
"Club" text,
"League goals" text,
"FA Cup goals" text,
"League Cup goals" real,
"Texaco Cup goals" text,
"Euro competitions" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT MIN("League Cup goals") FROM table_76535 WHERE "Scorer" = 'denis law' |
### Instruction:
CREATE TABLE table_41425 (
"Tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
### Resp... | SELECT "2012" FROM table_41425 WHERE "2013" = '2r' AND "Tournament" = 'wimbledon' |
### Instruction:
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Locati... | SELECT Party, COUNT(*) FROM driver GROUP BY Party |
### Instruction:
CREATE TABLE table_61994 (
"Source" text,
"Date" text,
"Kaine (D)" text,
"Kilgore (R)" text,
"Potts (I)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Kaine's (D) percentage in the Rasmussen poll on October 24, 2005?
###... | SELECT "Kaine (D)" FROM table_61994 WHERE "Source" = 'rasmussen' AND "Date" = 'october 24, 2005' |
### Instruction:
CREATE TABLE table_59369 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format for the label Mightier than Sword on January 12, 2010 in the United Stat... | SELECT "Format" FROM table_59369 WHERE "Region" = 'united states' AND "Date" = 'january 12, 2010' AND "Label" = 'mightier than sword' |
### Instruction:
CREATE TABLE table_56556 (
"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.
-- Which number of Crowd has an Aw... | SELECT COUNT("Crowd") FROM table_56556 WHERE "Away team score" = '20.11 (131)' |
### Instruction:
CREATE TABLE table_60684 (
"HD designation" text,
"Constellation" text,
"Distance ( ly )" real,
"Spectral type" text,
"Signal power ( kW )" real,
"Date sent" text,
"Arrival date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Constellation" FROM table_60684 WHERE "HD designation" = 'hd197076' |
### Instruction:
CREATE TABLE table_name_82 (
miss_universe_philippines VARCHAR,
first_runner_up VARCHAR,
binibining_pilipinas_world VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Miss Universe Philippines when the first runner-up was Danielle Ca... | SELECT miss_universe_philippines FROM table_name_82 WHERE first_runner_up = "danielle castaño" AND binibining_pilipinas_world = "janina san miguel" |
### Instruction:
CREATE TABLE table_50533 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has a Skip of Eve Muirhead with a thirs of Jackie Lockhart (e/o) Kelly Wood (w)?
... | SELECT "Season" FROM table_50533 WHERE "Skip" = 'eve muirhead' AND "Third" = 'jackie lockhart (e/o) kelly wood (w)' |
### Instruction:
CREATE TABLE table_26540 (
"No. in series" real,
"No. in 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 seri... | SELECT MIN("No. in series") FROM table_26540 WHERE "Original air date" = 'March 1, 1991' |
### Instruction:
CREATE TABLE table_20662 (
"Title" text,
"Series" text,
"Release" text,
"Featuring" text,
"Writer" text,
"Director" text,
"Length" text,
"Timeline" text,
"Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Director" FROM table_20662 WHERE "Release Date" = 'August 31, 2009' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.