instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_28997 (
"Electoral District" text,
"Registered voters" real,
"Seats in Congress" real,
"Candidates per party" real,
"Participating parties" real,
"Total candidates" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Participating parties") FROM table_28997 WHERE "Registered voters" = '643629' |
### Instruction:
CREATE TABLE table_203_152 (
id number,
"province" text,
"capital" text,
"area (km2)" number,
"population" number,
"density" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in the dominican republic , does the province of indep... | SELECT "province" FROM table_203_152 WHERE "province" IN ('independencia', 'barahona') ORDER BY "population" LIMIT 1 |
### Instruction:
CREATE TABLE weather (
zip_code VARCHAR,
mean_temperature_f INTEGER
)
CREATE TABLE trip (
id VARCHAR,
zip_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give me ids for all the trip that took place in a zip code area with avera... | SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING AVG(T2.mean_temperature_f) > 60 |
### Instruction:
CREATE TABLE table_72584 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the n... | SELECT MAX("Losses") FROM table_72584 WHERE "Scored" = '25' |
### Instruction:
CREATE TABLE table_51627 (
"Year" real,
"Date" text,
"Type" text,
"EU Council presidency" text,
"President-in-Office" text,
"Host city" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type for EU Council Presidency of... | SELECT "Type" FROM table_51627 WHERE "EU Council presidency" = 'uk' AND "President-in-Office" = 'john major' |
### Instruction:
CREATE TABLE table_26361 (
"1 January 2010" text,
"DF" text,
"Adam Hinshelwood" text,
"Aldershot Town" text,
"Wycombe Wanderers" text,
"Undisclosed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the undisclosed when Ad... | SELECT "Undisclosed" FROM table_26361 WHERE "Adam Hinshelwood" = 'Ricky Newman' |
### Instruction:
CREATE TABLE table_204_843 (
id number,
"volume" number,
"year" text,
"names" text,
"articles" number,
"pages" number,
"images" number,
"maps" number,
"number of copies" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "year" FROM table_204_843 WHERE "year" <> 1977 AND "maps" = 53 |
### Instruction:
CREATE TABLE table_79534 (
"Year" real,
"Event" text,
"Venue" text,
"Place" text,
"Weight class (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest year that has edmonton, canada as the venue with a weight class ... | SELECT MIN("Year") FROM table_79534 WHERE "Venue" = 'edmonton, canada' AND "Weight class (kg)" > '100' |
### Instruction:
CREATE TABLE table_26612 (
"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 "Directed by" FROM table_26612 WHERE "Title" = 'If I Had a Hammer' |
### Instruction:
CREATE TABLE table_75314 (
"Date" text,
"Type" text,
"Record description" text,
"Achievement" text,
"Pilot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record description of maximum load to m (ft), and a Date of 23 september 1961... | SELECT "Pilot" FROM table_75314 WHERE "Record description" = 'maximum load to m (ft)' AND "Date" = '23 september 1961' |
### Instruction:
CREATE TABLE table_train_79 (
"id" int,
"fasting_triglycerides" int,
"fasting_total_cholesterol" int,
"fasting_glucose" int,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- laboratory findings of fasting tot... | SELECT * FROM table_train_79 WHERE fasting_total_cholesterol >= 240 |
### Instruction:
CREATE TABLE table_16534 (
"Year" real,
"Numer of Jamaicans granted British citizenship" real,
"Naturalisation by residence" real,
"Naturalisation by marriage" real,
"Registration of a minor child" real,
"Registration by other means" real
)
-- Using valid SQLite, answer the fo... | SELECT MAX("Year") FROM table_16534 WHERE "Registration of a minor child" = '281' |
### Instruction:
CREATE TABLE table_37518 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "Date" FROM table_37518 WHERE "Home team score" = '6.5 (41)' |
### Instruction:
CREATE TABLE table_15971 (
"Formula" text,
"Notation" text,
"T c (K)" real,
"No. of Cu-O planes in unit cell" real,
"Crystal structure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the formula tl 2 ba 2 cuo 6?
... | SELECT "No. of Cu-O planes in unit cell" FROM table_15971 WHERE "Formula" = 'Tl 2 Ba 2 CuO 6' |
### Instruction:
CREATE TABLE table_204_780 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the 1990 european championships and the 1988 olympic games both res... | SELECT "position" FROM table_204_780 WHERE "year" = 1990 AND "competition" = 'european championships' |
### Instruction:
CREATE TABLE table_56977 (
"Rank" real,
"Name" text,
"Nation" text,
"SP+FS" real,
"Points" real,
"Placings" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number for Rank with 185.16 points and a SP+FS value gr... | SELECT COUNT("Rank") FROM table_56977 WHERE "Points" = '185.16' AND "SP+FS" > '5' |
### Instruction:
CREATE TABLE table_43907 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team during... | SELECT "Away team" FROM table_43907 WHERE "Home team" = 'new zealand breakers' |
### Instruction:
CREATE TABLE table_13299 (
"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 sum on week against the Tampa Bay Buccaneers with less than 60,320 in atten... | SELECT SUM("Week") FROM table_13299 WHERE "Opponent" = 'tampa bay buccaneers' AND "Attendance" < '60,320' |
### Instruction:
CREATE TABLE table_73724 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Youth Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Most Courageous" text,
"Team Classification" text
)
-- Using valid SQLite, answer the fol... | SELECT "Team Classification" FROM table_73724 WHERE "General Classification" = 'Brett Lancaster' |
### Instruction:
CREATE TABLE table_30537 (
"Season" text,
"Sport" text,
"Tournament Structure" text,
"# of Divisions" real,
"1st Tournament" real,
"2011-2012 State Tournament Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many fir... | SELECT COUNT("1st Tournament") FROM table_30537 WHERE "Season" = 'Winter' AND "# of Divisions" = '1' |
### Instruction:
CREATE TABLE table_9319 (
"Length feet (m)" text,
"Width feet (m)" text,
"Load short tons (MT)" text,
"Truss type(s)" text,
"Year built" text,
"Source (Year)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the width feet... | SELECT "Width feet (m)" FROM table_9319 WHERE "Source (Year)" = 'nbi (2009)' |
### Instruction:
CREATE TABLE table_977 (
"Common Name" text,
"Scientific Name" text,
"Life Span" text,
"Adult Weight" text,
"Height at Shoulder" text,
"Length of Fur" text,
"Load Bearing Capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Load Bearing Capacity" FROM table_977 WHERE "Scientific Name" = 'Camelus dromedarius' |
### Instruction:
CREATE TABLE table_204_985 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- fc schalke 04 and what other club... | SELECT "club" FROM table_204_985 WHERE "club" <> 'fc schalke 04' AND "aggregate" < "aggregate" |
### Instruction:
CREATE TABLE table_56961 (
"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.
-- How many people attended the ga... | SELECT MAX("Crowd") FROM table_56961 WHERE "Home team score" = '8.10 (58)' |
### Instruction:
CREATE TABLE table_650 (
"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.
-- How... | SELECT COUNT("No. in series") FROM table_650 WHERE "Title" = 'Guerillas in the Mist' |
### Instruction:
CREATE TABLE table_name_22 (
year INTEGER,
result VARCHAR,
extra VARCHAR,
tournament VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year that anna thompson had an 8th place result in team compet... | SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th" |
### Instruction:
CREATE TABLE table_29865 (
"Game" real,
"Date" text,
"Team" 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 provided ... | SELECT COUNT("Location Attendance") FROM table_29865 WHERE "Date" = 'April 8' |
### Instruction:
CREATE TABLE table_204_554 (
id number,
"rank" number,
"name" text,
"nation" text,
"time" text,
"speed" number,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who finished before ellen van dijk ?
### Response:
| SELECT "name" FROM table_204_554 WHERE "rank" < (SELECT "rank" FROM table_204_554 WHERE "name" = 'ellen van dijk') ORDER BY "rank" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_27390 (
"Language" text,
"Padilla Municipality" real,
"Tomina Municipality" real,
"Sopachuy Municipality" real,
"Villa Alcal\u00e1 Municipality" real,
"El Villar Municipality" real
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Language" FROM table_27390 WHERE "Villa Alcal\u00e1 Municipality" = '1167' |
### Instruction:
CREATE TABLE table_22094 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Why did the change happen in the st... | SELECT "Reason for change" FROM table_22094 WHERE "Date of successors formal installation" = 'February 14, 1859' |
### Instruction:
CREATE TABLE table_37917 (
"Date" 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 Set 2 has a Date of 25 may, and a Set 3 of 21 25?
### Response:
| SELECT "Set 2" FROM table_37917 WHERE "Date" = '25 may' AND "Set 3" = '21–25' |
### Instruction:
CREATE TABLE table_203_609 (
id number,
"#" number,
"matters" text,
"sections of the constitution allowing their institution" text,
"eligible petitioners" text,
"type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many matt... | SELECT COUNT("matters") FROM table_203_609 WHERE "eligible petitioners" = 'at least one tenth of the existing representatives or senators' |
### Instruction:
CREATE TABLE table_23117 (
"Fleet #" text,
"Year" real,
"Manufacture" text,
"Model" text,
"Length (ft)" real,
"Engine" text,
"Transmission" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had an Allison B400R transm... | SELECT "Year" FROM table_23117 WHERE "Transmission" = 'Allison B400R' AND "Model" = 'BRT' |
### Instruction:
CREATE TABLE table_75023 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Opponent of @ braves, and a Loss of pelfrey (2 5) had what score?
#... | SELECT "Score" FROM table_75023 WHERE "Opponent" = '@ braves' AND "Loss" = 'pelfrey (2–5)' |
### Instruction:
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
-- Using val... | SELECT Team, COUNT(*) FROM Elimination GROUP BY Team |
### Instruction:
CREATE TABLE table_79080 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Opposing Teams is 'Australia', and when Venue is 'Twickenham , L... | SELECT "Date" FROM table_79080 WHERE "Opposing Teams" = 'australia' AND "Venue" = 'twickenham , london' |
### Instruction:
CREATE TABLE table_55611 (
"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 name of the away te... | SELECT "Away team" FROM table_55611 WHERE "Home team score" = '11.8 (74)' |
### Instruction:
CREATE TABLE table_31188 (
"Year" text,
"Universities" real,
"No. of Students Signed up" real,
"% electricity reduction" text,
"Tonnes of CO2 Saved" real,
"\u00a3 Saved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1522 i... | SELECT "Year" FROM table_31188 WHERE "Tonnes of CO2 Saved" = '1522' |
### Instruction:
CREATE TABLE table_29360 (
"Vertical" real,
"Horizontal" real,
"Aspect ratio" text,
"Pixel aspect ratio" text,
"Scanning" text,
"Frame rate ( Hz )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the aspect ratio if the ... | SELECT "Aspect ratio" FROM table_29360 WHERE "Vertical" = '480' AND "Pixel aspect ratio" = '1:1' |
### Instruction:
CREATE TABLE table_74211 (
"Game" real,
"Date" text,
"Team" 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 provided ... | SELECT "Date" FROM table_74211 WHERE "Score" = 'W 104-98' |
### Instruction:
CREATE TABLE table_58431 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting tea... | SELECT "Visitor" FROM table_58431 WHERE "Leading scorer" = 'jones : 20' |
### Instruction:
CREATE TABLE table_203_716 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many nations scored more total medals than b... | SELECT COUNT("nation") FROM table_203_716 WHERE "total" > (SELECT "total" FROM table_203_716 WHERE "nation" = 'brazil') |
### Instruction:
CREATE TABLE table_name_21 (
assists VARCHAR,
minutes VARCHAR,
player VARCHAR,
position VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of assists when Edmundo Rodriguez is playing the posit... | SELECT COUNT(assists) FROM table_name_21 WHERE position = "striker" AND goals < 4 AND player = "edmundo rodriguez" AND minutes < 473 |
### Instruction:
CREATE TABLE Drama_Workshop_Groups (
Store_Phone VARCHAR,
Store_Email_Address VARCHAR,
Workshop_Group_ID VARCHAR
)
CREATE TABLE Services (
Workshop_Group_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the phones and emai... | SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID |
### Instruction:
CREATE TABLE table_56509 (
"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 team was playing at home w... | SELECT "Home team score" FROM table_56509 WHERE "Away team score" = '6.18 (54)' |
### Instruction:
CREATE TABLE table_68917 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" text,
"Issue price" real,
"Special notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was a mintage of 1264 with more than 24.95 issued?
##... | SELECT MAX("Year") FROM table_68917 WHERE "Mintage" = '1264' AND "Issue price" > '24.95' |
### Instruction:
CREATE TABLE table_203_601 (
id number,
"manufacturer" text,
"model" text,
"first flight" number,
"max payload (t)" number,
"cruise (km/h)" text,
"max range (km)" number,
"mtow" number
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT COUNT(*) FROM table_203_601 WHERE "manufacturer" = 'antonov' |
### Instruction:
CREATE TABLE table_69467 (
"Ranking" real,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the years when the ranking is less than 8 with less than 66 goals and name is ... | SELECT "Years" FROM table_69467 WHERE "Ranking" < '8' AND "Goals" < '66' AND "Name" = 'paul mcgee' |
### Instruction:
CREATE TABLE table_57251 (
"Born" text,
"Became oldest MP" text,
"Left House" text,
"Age on leaving" text,
"Died" text,
"Political Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old was the conservative party member t... | SELECT "Age on leaving" FROM table_57251 WHERE "Political Party" = 'conservative' AND "Left House" = '2001' |
### Instruction:
CREATE TABLE table_24713 (
"Rank" real,
"Team Name" text,
"Basic Elements" text,
"Tumbling" text,
"Stunts" text,
"Tosses/Pyramids" text,
"Deductions" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tea... | SELECT "Team Name" FROM table_24713 WHERE "Tumbling" = '44.5' |
### Instruction:
CREATE TABLE table_24320 (
"Draw" real,
"Song" text,
"Artist" text,
"Panel Points" real,
"Televotes" real,
"Televote Points" real,
"Score" real,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total num... | SELECT COUNT("Televote Points") FROM table_24320 WHERE "Song" = 'Cry on my shoulders' |
### Instruction:
CREATE TABLE table_55507 (
"PRR Class" text,
"Builder\u2019s Model" text,
"Build date" text,
"Total produced" real,
"Wheel arrangement" text,
"Service" text,
"Power output" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "PRR Class" FROM table_55507 WHERE "Wheel arrangement" = 'a1a-a1a' |
### Instruction:
CREATE TABLE table_34082 (
"Week" real,
"Date" text,
"Opponent" text,
"Time / Time Zone" text,
"Game Site" text,
"Final Score" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Final Score" FROM table_34082 WHERE "Game Site" = 'raymond james stadium' |
### Instruction:
CREATE TABLE table_203_393 (
id number,
"year" number,
"film" text,
"director" text,
"cast" text,
"details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- prema katha won more than how many awards compared to aaha ?
### Respon... | SELECT (SELECT "details" FROM table_203_393 WHERE "film" = 'prema katha') - (SELECT "details" FROM table_203_393 WHERE "film" = 'aaha') |
### Instruction:
CREATE TABLE table_204_151 (
id number,
"game" number,
"day" text,
"date" text,
"kickoff" text,
"opponent" text,
"results\nscore" text,
"results\nrecord" text,
"location" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "opponent" FROM table_204_151 WHERE id = 1 |
### Instruction:
CREATE TABLE table_1647 (
"Game" real,
"Date" text,
"Team" 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 provided a... | SELECT "Record" FROM table_1647 WHERE "Score" = 'L 77–80 (OT)' |
### Instruction:
CREATE TABLE table_75035 (
"Games" real,
"First" real,
"Last" real,
"Gold" real,
"Bronze" real,
"Total" real,
"Best finish (first/last)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest number of medals asso... | SELECT MIN("Total") FROM table_75035 WHERE "Games" < '6' AND "Gold" > '0' |
### Instruction:
CREATE TABLE table_70548 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"GameCenter" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Nam... | SELECT "GameCenter" FROM table_70548 WHERE "Attendance" = '78,551' |
### Instruction:
CREATE TABLE table_50686 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance at week earlier than 6 on October 14... | SELECT AVG("Attendance") FROM table_50686 WHERE "Week" < '6' AND "Date" = 'october 14, 2001' |
### Instruction:
CREATE TABLE table_13880 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest pick number for Arturo McDowell, who plays the OF position for the San F... | SELECT MIN("Pick") FROM table_13880 WHERE "Position" = 'of' AND "Team" = 'san francisco giants' AND "Player" = 'arturo mcdowell' |
### Instruction:
CREATE TABLE table_27597 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Position in table" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Replaced by" FROM table_27597 WHERE "Date of vacancy" = 'August 9' AND "Date of appointment" = 'August 9' |
### Instruction:
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
-- Using valid SQLite, answer the following q... | SELECT Name, COUNT(Name) FROM editor GROUP BY Name ORDER BY COUNT(Name) DESC |
### Instruction:
CREATE TABLE table_432 (
"Rnd" real,
"Circuit" text,
"CA Winning Team" text,
"GT1 Winning Team" text,
"GT2 Winning Team" text,
"GT3 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rnd... | SELECT "Rnd" FROM table_432 WHERE "GT1 Winning Team" = 'Doc Bundy Andy Wallace' |
### Instruction:
CREATE TABLE table_15109 (
"Year" real,
"\u00c1lbum" text,
"Charts" text,
"Sales" real,
"Certification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chart number of the Requebra album with sales smaller than 32,000?
... | SELECT "Charts" FROM table_15109 WHERE "Sales" < '32,000' AND "\u00c1lbum" = 'requebra' |
### Instruction:
CREATE TABLE table_13918 (
"Position" text,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Total that has the A Score larger than 6.4, and the B Score small... | SELECT "Total" FROM table_13918 WHERE "A Score" > '6.4' AND "B Score" < '9.025' |
### Instruction:
CREATE TABLE table_40663 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Total that has a League Cup larger... | SELECT COUNT("Total") FROM table_40663 WHERE "League Cup" > '3' AND "League" < '16' |
### Instruction:
CREATE TABLE table_23357 (
"Series #" real,
"Season #" real,
"Title" text,
"Director(s)" text,
"Writer(s)" text,
"Airdate" text,
"Production code" real,
"Arties disguises" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT MIN("Series #") FROM table_23357 WHERE "Writer(s)" = 'Max Ehrlich' |
### Instruction:
CREATE TABLE table_47119 (
"Senator" text,
"Party" text,
"District" real,
"Home Town" text,
"Took Office" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Took Office, when Senator is Eddie Bernice Johnson, and when... | SELECT MIN("Took Office") FROM table_47119 WHERE "Senator" = 'eddie bernice johnson' AND "District" > '23' |
### Instruction:
CREATE TABLE table_3854 (
"Game" real,
"Date" text,
"Team" 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 provided a... | SELECT "Date" FROM table_3854 WHERE "High points" = 'Toney Douglas (23)' |
### Instruction:
CREATE TABLE table_6404 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Channel" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What stadium was the game hel... | SELECT "Stadium" FROM table_6404 WHERE "Date" = 'december 23, 2001' |
### Instruction:
CREATE TABLE table_56371 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- before 1995 waht is the aveage pts for a mclaren mp4/10b chassis
### Response:
| SELECT AVG("Pts.") FROM table_56371 WHERE "Chassis" = 'mclaren mp4/10b' AND "Year" < '1995' |
### Instruction:
CREATE TABLE table_41146 (
"Date" text,
"Rocket" text,
"Type" text,
"Launch site" text,
"Satellite" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 ... | SELECT "Launch site" FROM table_41146 WHERE "Date" = 'unknown' AND "Rocket" = 'delta iv' AND "Satellite" = 'gps iif-10' |
### Instruction:
CREATE TABLE table_35943 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the tournament... | SELECT "Surface" FROM table_35943 WHERE "Date" = '26 february 2006' |
### Instruction:
CREATE TABLE table_9505 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Points, when Class is 50cc, when Year is 1965, and when Wins is less than 0?
... | SELECT MIN("Points") FROM table_9505 WHERE "Class" = '50cc' AND "Year" = '1965' AND "Wins" < '0' |
### Instruction:
CREATE TABLE table_26050 (
"Episode #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code (order they were made) #" real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Directed by" FROM table_26050 WHERE "Written by" = 'Sherwood Schwartz' |
### Instruction:
CREATE TABLE table_42472 (
"Year" real,
"Team" text,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of the player from Pacific Lutheran University named Greg Fredlund in... | SELECT "Position" FROM table_42472 WHERE "School" = 'pacific lutheran university' AND "Player" = 'greg fredlund' AND "Year" > '2010' |
### Instruction:
CREATE TABLE table_72560 (
"Rank" text,
"Common of" text,
"Population" real,
"Area (km 2 )" text,
"Density (inhabitants/km 2 )" text,
"Altitude (mslm)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank is the common with ... | SELECT "Rank" FROM table_72560 WHERE "Area (km 2 )" = '47.3' |
### Instruction:
CREATE TABLE table_203_141 (
id number,
"sr. no." number,
"name" text,
"from" text,
"till" text,
"occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was director after rajeshwar prasad ?
### Response:
| SELECT "name" FROM table_203_141 WHERE "sr. no." = (SELECT "sr. no." FROM table_203_141 WHERE "name" = 'rajeshwar prasad') - 1 |
### Instruction:
CREATE TABLE table_636 (
"W.H. Archer" text,
"J.E. Armstrong" text,
"H.L. Birkett" text,
"F.A. Brill" text,
"H.T. Brewer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the fa.brill when w.h. archer is known as r. newman?
... | SELECT "F.A. Brill" FROM table_636 WHERE "W.H. Archer" = 'R. Newman' |
### Instruction:
CREATE TABLE services (
service_type_code VARCHAR,
organization_id VARCHAR
)
CREATE TABLE organizations (
organization_id VARCHAR,
organization_details VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the distinct service type... | SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' |
### Instruction:
CREATE TABLE table_27608 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Team" FROM table_27608 WHERE "Points" = '56' |
### Instruction:
CREATE TABLE table_31236 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" real,
"New entries this round" text,
"Leagues entering at this round" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT MIN("Clubs remaining") FROM table_31236 WHERE "Leagues entering at this round" = 'Allsvenskan' |
### Instruction:
CREATE TABLE table_33658 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date when the opponent in the final is ... | SELECT "Date" FROM table_33658 WHERE "Opponents in the final" = 'gastón etlis martín rodríguez' |
### Instruction:
CREATE TABLE table_13555999_1 (
senior_high_school__15_18_yrs_ VARCHAR,
junior_high_school__12_15_yrs_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What amount of senior high school where junior high school is 114cm?
### Response:
| SELECT senior_high_school__15_18_yrs_ FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "114cm" |
### Instruction:
CREATE TABLE table_2489 (
"Issuer" text,
"Issue Date" text,
"ISIN" text,
"Amount Issued [\u20ac]" text,
"Coupon" text,
"Maturity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ISIN associated with the maturity date ... | SELECT "ISIN" FROM table_2489 WHERE "Maturity" = '3/11/2011' |
### Instruction:
CREATE TABLE table_37999 (
"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 high point total a... | SELECT MAX("Points") FROM table_37999 WHERE "Difference" = '1' AND "Drawn" = '0' |
### Instruction:
CREATE TABLE table_55544 (
"Tournament" text,
"Wins" 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 lowest number of events the Open Championship has wit... | SELECT MIN("Events") FROM table_55544 WHERE "Tournament" = 'the open championship' AND "Top-10" < '0' |
### Instruction:
CREATE TABLE table_5608 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the Final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the match played on a hard surface with an opponent ... | SELECT "Score" FROM table_5608 WHERE "Surface" = 'hard' AND "Opponent in the Final" = 'elena likhovtseva' |
### Instruction:
CREATE TABLE table_9238 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years with Spurs" text,
"School/Previous Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Height in Ft., wh... | SELECT "Height in Ft." FROM table_9238 WHERE "Years with Spurs" = '1973-74' |
### Instruction:
CREATE TABLE table_204_622 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which 4x400 was faster , 2005 or 2003 ?
### Res... | SELECT "year" FROM table_204_622 WHERE "year" IN (2005, 2003) ORDER BY "notes" LIMIT 1 |
### Instruction:
CREATE TABLE table_204_763 (
id number,
"county" text,
"km" number,
"intersecting road" text,
"notes" text,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which intersecting road comes before range road 273 ?
###... | SELECT "intersecting road" FROM table_204_763 WHERE id = (SELECT id FROM table_204_763 WHERE "intersecting road" = 'range road 273') - 1 |
### Instruction:
CREATE TABLE table_15679 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What point had team Lotus whit the lotus 33 chassis in 1964?
### Response:
| SELECT "Points" FROM table_15679 WHERE "Chassis" = 'lotus 33' AND "Entrant" = 'team lotus' AND "Year" = '1964' |
### Instruction:
CREATE TABLE table_53259 (
"Rank" real,
"Previous Rank" text,
"Name" text,
"Nationality" text,
"Team" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the team with a rank less than 13 and points more than 7... | SELECT "Team" FROM table_53259 WHERE "Rank" < '13' AND "Points" > '79' AND "Previous Rank" = '4' |
### Instruction:
CREATE TABLE table_30815 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How may college/junior/club team has a the nh... | SELECT COUNT("College/junior/club team") FROM table_30815 WHERE "NHL team" = 'Colorado Avalanche' |
### Instruction:
CREATE TABLE table_name_11 (
points_classification_navy_blue_jersey VARCHAR,
mountains_classification_green_jersey VARCHAR,
team_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Points Classification Navy Blue Je... | SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner" |
### Instruction:
CREATE TABLE table_name_15 (
seasons_in_csl VARCHAR,
top_division_titles__overall_ VARCHAR,
home_stadium VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the years for Seasons in CSL when they played in the Guiyang Olympic Sports... | SELECT seasons_in_csl FROM table_name_15 WHERE top_division_titles__overall_ = 0 AND home_stadium = "guiyang olympic sports center" |
### Instruction:
CREATE TABLE table_57223 (
"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.
-- When an away team scored 10.8 (... | SELECT "Crowd" FROM table_57223 WHERE "Away team score" = '10.8 (68)' |
### Instruction:
CREATE TABLE table_204_994 (
id number,
"date" text,
"time" 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 is the only t... | SELECT "opponent#" FROM table_204_994 WHERE "date" = 1 |
### Instruction:
CREATE TABLE table_24140 (
"Rank" real,
"Commodity" text,
"Value (Int $1000)" real,
"Production (MT)" real,
"Quantity world rank" text,
"Value world rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the production (mt) i... | SELECT "Value world rank" FROM table_24140 WHERE "Production (MT)" = '446424' |
### Instruction:
CREATE TABLE table_17352 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the... | SELECT "Leading scorer" FROM table_17352 WHERE "Home" = 'Sacramento Kings' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.