instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_64022 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round has an Opposing Team of manchester united?
### Response:
| SELECT "Round" FROM table_64022 WHERE "Opposing Team" = 'manchester united' |
### Instruction:
CREATE TABLE table_name_56 (
collegiate_institution VARCHAR,
status VARCHAR,
charter_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What collegiate institution has an active status and a charter date of march 30, 2002?
### Respons... | SELECT collegiate_institution FROM table_name_56 WHERE status = "active" AND charter_date = "march 30, 2002" |
### Instruction:
CREATE TABLE prescribes (
physician VARCHAR,
dose VARCHAR
)
CREATE TABLE physician (
name VARCHAR,
employeeid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of the physician who prescribed the highest dose?
### ... | SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_863 (
id number,
"state" text,
"city/county" text,
"population served" number,
"charter type" text,
"station name" text,
"web site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the top popula... | SELECT MAX("population served") FROM table_204_863 |
### Instruction:
CREATE TABLE table_40785 (
"Rank" text,
"Runs" text,
"Player" text,
"Match" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What match has Clem Hill (sa) as the player?
### Response:
| SELECT "Match" FROM table_40785 WHERE "Player" = 'clem hill (sa)' |
### Instruction:
CREATE TABLE table_24573 (
"Train No." text,
"Train Name" text,
"Destination" text,
"Category" text,
"Frequency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the train name that has a destination of Tuticorin?
### Respon... | SELECT "Train Name" FROM table_24573 WHERE "Destination" = 'Tuticorin' |
### Instruction:
CREATE TABLE table_name_83 (
social_ao VARCHAR,
external_co VARCHAR,
internal_co VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?
### Response:... | SELECT social_ao FROM table_name_83 WHERE external_co = "simonas savickas" AND internal_co = "pieter kuijsten" |
### Instruction:
CREATE TABLE table_34389 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many picks does chad owens have?
### Response:
| SELECT COUNT("Pick #") FROM table_34389 WHERE "Name" = 'chad owens' |
### Instruction:
CREATE TABLE table_41911 (
"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 average Week, when Result is l 37 34?
### Response:
| SELECT AVG("Week") FROM table_41911 WHERE "Result" = 'l 37–34' |
### Instruction:
CREATE TABLE table_203_726 (
id number,
"year" number,
"national champion" text,
"score" text,
"runner-up" text,
"host or site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years has stanford been national champion ?
... | SELECT COUNT("year") FROM table_203_726 WHERE "national champion" = 'stanford' |
### Instruction:
CREATE TABLE table_name_85 (
kansas_state_vs VARCHAR,
current_streak VARCHAR,
games_played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kansas vs. that has w 2 as the current streak, and 31 as games played?
### Response:
| SELECT kansas_state_vs FROM table_name_85 WHERE current_streak = "w 2" AND games_played = "31" |
### Instruction:
CREATE TABLE table_52741 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider had a speed of 104.630mph?
### Response:
| SELECT "Rider" FROM table_52741 WHERE "Speed" = '104.630mph' |
### Instruction:
CREATE TABLE table_203_186 (
id number,
"painter" text,
"composition" number,
"drawing" number,
"color" number,
"expression" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many painters received a color mark below 10 ?
#... | SELECT COUNT("painter") FROM table_203_186 WHERE "color" < 10 |
### Instruction:
CREATE TABLE table_50007 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the tie number for the round against visiting opponent Newcastle United?
##... | SELECT "Tie no" FROM table_50007 WHERE "Away team" = 'newcastle united' |
### Instruction:
CREATE TABLE table_15951 (
"Pick" real,
"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.
-- All players are position mark polak.
### Re... | SELECT "Position" FROM table_15951 WHERE "Player" = 'Mark Polak' |
### Instruction:
CREATE TABLE table_name_75 (
points_1 VARCHAR,
lost VARCHAR,
position VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed under points 1 when the position was greater than 4, there were 54 goals for and m... | SELECT points_1 FROM table_name_75 WHERE position > 4 AND goals_for = 54 AND lost > 11 |
### Instruction:
CREATE TABLE table_55006 (
"Year" text,
"Make & Model" text,
"Length" text,
"Engine Type" text,
"Numbers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has a make & model of mci d4000n?
### Response:
| SELECT "Year" FROM table_55006 WHERE "Make & Model" = 'mci d4000n' |
### Instruction:
CREATE TABLE table_203_367 (
id number,
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of years the event was not held ?
### Re... | SELECT ABS("year" - "year") FROM table_203_367 WHERE "report" = 'not held' |
### Instruction:
CREATE TABLE table_11318462_5 (
open_1st_viii VARCHAR,
u15_6th_iv VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the open 1st viii with u15 6th iv being bgs
### Response:
| SELECT open_1st_viii FROM table_11318462_5 WHERE u15_6th_iv = "BGS" |
### Instruction:
CREATE TABLE table_74783 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of laps for the driver with 5 points?
###... | SELECT MAX("Laps") FROM table_74783 WHERE "Points" = '5' |
### Instruction:
CREATE TABLE table_4020 (
"Pick" real,
"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.
-- Which team picked Blaine Russell?
### Respon... | SELECT "NHL team" FROM table_4020 WHERE "Player" = 'Blaine Russell' |
### Instruction:
CREATE TABLE table_name_87 (
black VARCHAR,
opening VARCHAR,
white VARCHAR,
moves VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen's Indian Defence?
... | SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence" |
### Instruction:
CREATE TABLE table_22766 (
"Entities" text,
"Country" text,
"Supply point" text,
"Voltage (kV)" real,
"Power (MW)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the electric companies drawing power from Itaipu?
### Respo... | SELECT "Entities" FROM table_22766 WHERE "Supply point" = 'Itaipu' |
### Instruction:
CREATE TABLE table_59230 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is District, when Incumbent is 'Richard Neal'?
### Response:
| SELECT "District" FROM table_59230 WHERE "Incumbent" = 'richard neal' |
### Instruction:
CREATE TABLE table_26850 (
"Governorate" text,
"Kurdistan Democratic Party" real,
"Patriotic Union of Kurdistan" real,
"Total Kurdistan List" real,
"Total Governorate Seats" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the le... | SELECT MIN("Total Kurdistan List") FROM table_26850 |
### Instruction:
CREATE TABLE table_204_62 (
id number,
"year" number,
"winner" text,
"second" text,
"third" text,
"starters" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the previous winner to the 1997 winner ?
### Response:
| SELECT "winner" FROM table_204_62 WHERE "year" = 1997 - 1 |
### Instruction:
CREATE TABLE table_48025 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To Par, when Score is '69-72=141
### Response:
| SELECT "To par" FROM table_48025 WHERE "Score" = '69-72=141' |
### Instruction:
CREATE TABLE table_35177 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the game before week 15 with the result of bye?
### Response:
| SELECT "Date" FROM table_35177 WHERE "Week" < '15' AND "Result" = 'bye' |
### Instruction:
CREATE TABLE table_15129 (
"Hindi" text,
"Romani" text,
"Domari" text,
"Lomavren" text,
"Persian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Domari word has the same meaning as the Hindi word p c?
### Response:
| SELECT "Domari" FROM table_15129 WHERE "Hindi" = 'pāñc' |
### Instruction:
CREATE TABLE table_29548 (
"Country" text,
"Name" text,
"Host(s)" text,
"Judges" text,
"Network" text,
"Air dates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the version aired on SBS 6 called?
### Response:
| SELECT "Name" FROM table_29548 WHERE "Network" = 'SBS 6' |
### Instruction:
CREATE TABLE table_61611 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the player with a To Par of +1 from Spain?
### Response:
| SELECT "Score" FROM table_61611 WHERE "To par" = '+1' AND "Country" = 'spain' |
### Instruction:
CREATE TABLE table_name_37 (
game VARCHAR,
season VARCHAR,
result VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has a Result of win, and an Opponent of new hampshire, and a Season smaller than 2008?
##... | SELECT game FROM table_name_37 WHERE result = "win" AND opponent = "new hampshire" AND season < 2008 |
### Instruction:
CREATE TABLE table_18560 (
"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.
-- What party is associated with Texas 2?
### Response:
| SELECT "Party" FROM table_18560 WHERE "District" = 'Texas 2' |
### Instruction:
CREATE TABLE table_203_559 (
id number,
"no." number,
"name" text,
"took office" text,
"left office" text,
"president served under" text,
"notable for" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many commissioners ha... | SELECT COUNT(DISTINCT "no.") FROM table_203_559 |
### Instruction:
CREATE TABLE table_47895 (
"Issued" text,
"Type" text,
"Design" text,
"Serial format" text,
"Serials issued" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which design has a serial format of AB-12-34?
### Response:
| SELECT "Design" FROM table_47895 WHERE "Serial format" = 'ab-12-34' |
### Instruction:
CREATE TABLE table_1484 (
"Series #" real,
"Episode #" 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.
-- How many directors did Episode #3 have
### Re... | SELECT COUNT("Directed by") FROM table_1484 WHERE "Episode #" = '3' |
### Instruction:
CREATE TABLE table_60633 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Place of t1, and a Country of india?
### Response:
| SELECT "To par" FROM table_60633 WHERE "Place" = 't1' AND "Country" = 'india' |
### Instruction:
CREATE TABLE table_1751142_2 (
distance__m_ INTEGER,
shuttle_time__seconds_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the distance (in meters) when the shuttle time is 6.86 seconds?
### Response:
| SELECT MIN(distance__m_) FROM table_1751142_2 WHERE shuttle_time__seconds_ = "6.86" |
### Instruction:
CREATE TABLE table_name_62 (
latitude VARCHAR,
township VARCHAR,
geo_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the latitude for the berlin township with a geo id less than 3801706260
### Response:
| SELECT COUNT(latitude) FROM table_name_62 WHERE township = "berlin" AND geo_id < 3801706260 |
### Instruction:
CREATE TABLE table_24837750_1 (
turbine_manufacturer VARCHAR,
installed_capacity__mw_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many turbine manufacturers installed a capacity of 189 MW?
### Response:
| SELECT COUNT(turbine_manufacturer) FROM table_24837750_1 WHERE installed_capacity__mw_ = "189" |
### Instruction:
CREATE TABLE table_name_21 (
winning_driver VARCHAR,
fastest_lap VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Winnning driver in which lorenzo bandini has the fastest lap as well as the Pole position?
... | SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini" |
### Instruction:
CREATE TABLE table_38189 (
"Name" text,
"Size" text,
"Price" text,
"Quantity" real,
"Released" text,
"Nicotine" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Raison Blue has the highest nicotine?
### Response:
| SELECT MAX("Nicotine") FROM table_38189 WHERE "Name" = 'raison blue' |
### Instruction:
CREATE TABLE table_134987_3 (
target_city__market VARCHAR,
city_of_license VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the market city/market(s) for Rapid City Alternative format?
### Response:
| SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative" |
### Instruction:
CREATE TABLE table_22827 (
"DMA" real,
"Market" text,
"Station" text,
"Frequency" text,
"Branding" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which frequency is station wlfv-fm?
### Response:
| SELECT "Frequency" FROM table_22827 WHERE "Station" = 'WLFV-FM' |
### Instruction:
CREATE TABLE table_204_207 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what week was the first bye opponent ?
### Respo... | SELECT "week" FROM table_204_207 WHERE "opponent" IS NULL |
### Instruction:
CREATE TABLE table_204_34 (
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.
-- which three countries have at least nine metals ?... | SELECT "nation" FROM table_204_34 WHERE "total" >= 9 |
### Instruction:
CREATE TABLE table_13399573_4 (
losing_bonus VARCHAR,
tries_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the 2008/2009 season one team had 39 tries against, how many losing bonuses did they have that year?
### Response:
| SELECT losing_bonus FROM table_13399573_4 WHERE tries_against = "39" |
### Instruction:
CREATE TABLE table_37591 (
"Region" text,
"Date" real,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest date with Great Expectations label with LP format?
### Response:
| SELECT MIN("Date") FROM table_37591 WHERE "Label" = 'great expectations' AND "Format" = 'lp' |
### Instruction:
CREATE TABLE table_name_65 (
class_aAAAA VARCHAR,
class_aAA VARCHAR,
atlanta VARCHAR,
class_aA VARCHAR,
weimar VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where Class AAA is Atlanta and Class AA is Weimar, what is Class AAAAA?... | SELECT class_aAAAA FROM table_name_65 WHERE class_aAA = atlanta AND class_aA = weimar |
### Instruction:
CREATE TABLE table_name_96 (
opposing_teams VARCHAR,
status VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opposing Teams, when Status is 'Test Match', and when Date is '25/11/2000'?
### Response:
| SELECT opposing_teams FROM table_name_96 WHERE status = "test match" AND date = "25/11/2000" |
### Instruction:
CREATE TABLE table_name_8 (
points INTEGER,
fl VARCHAR,
year VARCHAR,
races VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?
### Res... | SELECT SUM(points) FROM table_name_8 WHERE year = 2010 AND races > 14 AND fl < 0 |
### Instruction:
CREATE TABLE table_70350 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Chassis supports an Equipe Gordini Entrant?
### Response:
| SELECT "Chassis" FROM table_70350 WHERE "Entrant" = 'equipe gordini' |
### Instruction:
CREATE TABLE table_2402864_1 (
year INTEGER,
regular_season VARCHAR,
league VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year where USL PDL played in 3rd, Southeast season?
### Response:
| SELECT MIN(year) FROM table_2402864_1 WHERE regular_season = "3rd, Southeast" AND league = "USL PDL" |
### Instruction:
CREATE TABLE table_name_29 (
name_of_deity VARCHAR,
name_of_the_state_where_found_in_india VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the deity that the state of Bihar was named after?
### Response:
| SELECT name_of_deity FROM table_name_29 WHERE name_of_the_state_where_found_in_india = "bihar" |
### Instruction:
CREATE TABLE table_72580 (
"Cardinal direction" text,
"Burmese" text,
"Sanskrit" text,
"English" text,
"Planet" text,
"Sign" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the cardinal direction associated with Venus?
... | SELECT "Cardinal direction" FROM table_72580 WHERE "Planet" = 'Venus' |
### Instruction:
CREATE TABLE table_name_79 (
ε__m__1_cm__1__ VARCHAR,
mass__g_mol_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which (M -1 cm -1) has a molar mass of 1008 g/mol?
### Response:
| SELECT ε__m__1_cm__1__ FROM table_name_79 WHERE mass__g_mol_ = "1008" |
### Instruction:
CREATE TABLE table_32798 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game against the St. Louis Cardinals?
### Response:
| SELECT "Result" FROM table_32798 WHERE "Opponent" = 'st. louis cardinals' |
### Instruction:
CREATE TABLE table_23696 (
"County" text,
"McCain #" real,
"McCain %" text,
"Obama #" real,
"Obama %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where did obama get 39.8%
### Response:
| SELECT "County" FROM table_23696 WHERE "Obama %" = '39.8%' |
### Instruction:
CREATE TABLE table_name_66 (
played INTEGER,
against VARCHAR,
lost VARCHAR,
difference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played is the highest one that has a Lost smaller than 1, and a Difference of 6, and an Again... | SELECT MAX(played) FROM table_name_66 WHERE lost < 1 AND difference = "6" AND against > 2 |
### Instruction:
CREATE TABLE table_2562572_44 (
settlement VARCHAR,
cyrillic_name_other_names VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which settlement has the cyrillic and other name of (romanian: locve)?
### Response:
| SELECT settlement FROM table_2562572_44 WHERE cyrillic_name_other_names = "Локве (Romanian: Locve)" |
### Instruction:
CREATE TABLE table_42989 (
"Pos." text,
"Player" text,
"Team" text,
"Height" text,
"Weight" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of the F who weighs less than 195?
### Response:
| SELECT "Height" FROM table_42989 WHERE "Pos." = 'f' AND "Weight" < '195' |
### Instruction:
CREATE TABLE table_name_13 (
rating___percentage_ INTEGER,
channel VARCHAR,
share___percentage_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average rating % for shandong satellite tv and share % less than 1.74
### Response:... | SELECT AVG(rating___percentage_) FROM table_name_13 WHERE channel = "shandong satellite tv" AND share___percentage_ < 1.74 |
### Instruction:
CREATE TABLE table_name_45 (
draws INTEGER,
season VARCHAR,
losses VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Draws with less than 18 losses for north melbourne later than 1926?
### Response:
| SELECT MAX(draws) FROM table_name_45 WHERE losses < 18 AND team = "north melbourne" AND season > 1926 |
### Instruction:
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following question... | SELECT COUNT(*) FROM college |
### Instruction:
CREATE TABLE table_26808178_3 (
original_air_date VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which original air date had 0.871 U.S. viewers (millions)?
### Response:
| SELECT original_air_date FROM table_26808178_3 WHERE us_viewers__millions_ = "0.871" |
### Instruction:
CREATE TABLE table_20480 (
"Office" text,
"Type" text,
"Location" text,
"Elected" real,
"Term began" text,
"Term ended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type had an election day in 1980
### Response:
| SELECT "Type" FROM table_20480 WHERE "Elected" = '1980' |
### Instruction:
CREATE TABLE table_21444 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When they played San Lorenzo, what was the score of the second leg?
### Response:
| SELECT "2nd leg" FROM table_21444 WHERE "Team #1" = 'San Lorenzo' |
### Instruction:
CREATE TABLE table_42745 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the United States International University, what was the highest pick nu... | SELECT MAX("Pick") FROM table_42745 WHERE "College" = 'united states international university' |
### Instruction:
CREATE TABLE table_16318 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the team of the player from St. Francis Xavier College?
### Response:
| SELECT "CFL Team" FROM table_16318 WHERE "College" = 'St. Francis Xavier' |
### Instruction:
CREATE TABLE table_59416 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which golfer finished with a score of 70-71=141?
### Response:
| SELECT "Player" FROM table_59416 WHERE "Score" = '70-71=141' |
### Instruction:
CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which county has the most representation ?
### Response:
| SELECT "county" FROM table_204_190 GROUP BY "county" ORDER BY SUM("percentage") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_58738 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year of the Lotus 25 chassis?
### Response:
| SELECT AVG("Year") FROM table_58738 WHERE "Chassis" = 'lotus 25' |
### Instruction:
CREATE TABLE table_name_92 (
genre VARCHAR,
english_title__chinese_title_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Genre has an English title (Chinese title) of the romance of the white hair maiden ?
### Response:
| SELECT genre FROM table_name_92 WHERE english_title__chinese_title_ = "the romance of the white hair maiden 白髮魔女傳" |
### Instruction:
CREATE TABLE table_72772 (
"School" text,
"Record" text,
"Conference" text,
"Conf. record" text,
"Regular season finish" text,
"Regular season second place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which conference is Belm... | SELECT "Conference" FROM table_72772 WHERE "School" = 'Belmont' |
### Instruction:
CREATE TABLE table_2549 (
"High School" text,
"Type" text,
"Established" real,
"Enrollment" real,
"Mascot" text,
"WIAA Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school classifications have trappers as m... | SELECT "Type" FROM table_2549 WHERE "Mascot" = 'Trappers' |
### Instruction:
CREATE TABLE table_name_87 (
result VARCHAR,
recipients_and_nominees VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?
###... | SELECT result FROM table_name_87 WHERE recipients_and_nominees = "outstanding achievement in drama" AND year = 1995 |
### Instruction:
CREATE TABLE table_name_80 (
up_for_reelection INTEGER,
took_office VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year a Chairman who took office after 2011 is up for reelection?
### Response:
| SELECT MIN(up_for_reelection) FROM table_name_80 WHERE took_office > 2011 AND position = "chairman" |
### Instruction:
CREATE TABLE table_43707 (
"Title" text,
"Russian" text,
"Transliteration" text,
"Original Text" text,
"Start" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Title's Transliteration is Fal'shivaya Nota?
### Response:
| SELECT "Title" FROM table_43707 WHERE "Transliteration" = 'fal''shivaya nota' |
### Instruction:
CREATE TABLE table_30441 (
"Stadium" text,
"Capacity" real,
"City" text,
"Country" text,
"Tenant" text,
"Opening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the country for lusail national stadium
### Response:
| SELECT "Country" FROM table_30441 WHERE "Stadium" = 'Lusail National Stadium' |
### Instruction:
CREATE TABLE table_name_2 (
wins INTEGER,
losses VARCHAR,
ties VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?
### Response:
| SELECT SUM(wins) FROM table_name_2 WHERE ties < 2 AND goals_against = 18 AND losses < 2 |
### Instruction:
CREATE TABLE table_68234 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game that had a loss of Williams (1-1)?
### Response:
| SELECT "Score" FROM table_68234 WHERE "Loss" = 'williams (1-1)' |
### Instruction:
CREATE TABLE table_55898 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the game on May 30?
### Response:
| SELECT "Record" FROM table_55898 WHERE "Date" = 'may 30' |
### Instruction:
CREATE TABLE table_57655 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which category was Gene Barry nominated in?
### Response:
| SELECT "Category" FROM table_57655 WHERE "Result" = 'nominated' AND "Nominee" = 'gene barry' |
### Instruction:
CREATE TABLE table_11377 (
"Grid" real,
"Constructor" text,
"Qual" real,
"Rank" real,
"Laps" real,
"Time/Retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total qual where the grid number is 24?
### Response:... | SELECT SUM("Qual") FROM table_11377 WHERE "Grid" = '24' |
### Instruction:
CREATE TABLE table_59749 (
"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 Opposing Teams, when Against is less than 6?
### Response:
| SELECT "Opposing Teams" FROM table_59749 WHERE "Against" < '6' |
### Instruction:
CREATE TABLE table_name_70 (
silver INTEGER,
bronze VARCHAR,
gold VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Silver is the lowest one that has a Gold larger than 0, and a Rank of total, and a Bronze smaller th... | SELECT MIN(silver) FROM table_name_70 WHERE gold > 0 AND rank = "total" AND bronze < 32 |
### Instruction:
CREATE TABLE table_name_66 (
top_5 INTEGER,
top_25 VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average value for Top-5, when the value for Top-25 is 0, and the value for Wins is less than 0?
### Response:
| SELECT AVG(top_5) FROM table_name_66 WHERE top_25 = 0 AND wins < 0 |
### Instruction:
CREATE TABLE table_79561 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the tie that had Shrewsbury Town as home team?
### Response:
| SELECT "Score" FROM table_79561 WHERE "Home team" = 'shrewsbury town' |
### Instruction:
CREATE TABLE table_45451 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the place when the score is 70-72=142?
### Response:
| SELECT "Place" FROM table_45451 WHERE "Score" = '70-72=142' |
### Instruction:
CREATE TABLE table_name_90 (
gold INTEGER,
total VARCHAR,
bronze VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is ... | SELECT AVG(gold) FROM table_name_90 WHERE bronze < 2 AND nation = "turkey" AND total > 1 |
### Instruction:
CREATE TABLE table_55320 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the opponent for the game at Multi-sport Field?
### Response:
| SELECT "Opponent" FROM table_55320 WHERE "Field" = 'multi-sport field' |
### Instruction:
CREATE TABLE table_name_59 (
home_team VARCHAR,
date VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Home Team, when Date is 18 February 1956, and when Away Team is Blackburn Rovers?
### Response:
| SELECT home_team FROM table_name_59 WHERE date = "18 february 1956" AND away_team = "blackburn rovers" |
### Instruction:
CREATE TABLE table_200_15 (
id number,
"year" text,
"title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years did pee wee 's playhouse run on television ?
### Response:
| SELECT "year" - "year" FROM table_200_15 WHERE "title" = "pee-wee's playhouse" |
### Instruction:
CREATE TABLE table_65000 (
"Date" text,
"Venue" text,
"Score" text,
"Comp" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Report on November 15, 2000?
### Response:
| SELECT "Report" FROM table_65000 WHERE "Date" = 'november 15, 2000' |
### Instruction:
CREATE TABLE table_53897 (
"Name" text,
"Original name" text,
"Commissioned" text,
"Final decommission" text,
"Fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the ship originally named sachem finally decommissioned?
... | SELECT "Final decommission" FROM table_53897 WHERE "Original name" = 'sachem' |
### Instruction:
CREATE TABLE table_66391 (
"Year" real,
"Title" text,
"Type" text,
"Label" text,
"Label-Nr" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year with a label-Nr of st-43?
### Response:
| SELECT MIN("Year") FROM table_66391 WHERE "Label-Nr" = 'st-43' |
### Instruction:
CREATE TABLE table_name_9 (
extras INTEGER,
er VARCHAR,
runs_conceded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded?
### Response:
| SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101 |
### Instruction:
CREATE TABLE table_204_320 (
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.
-- what country ranks in first place ?
### Respon... | SELECT "nation" FROM table_204_320 WHERE "rank" = 1 |
### Instruction:
CREATE TABLE table_46046 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school was Chris Robinson from?
### Response:
| SELECT "School/Club Team" FROM table_46046 WHERE "Player" = 'chris robinson' |
### Instruction:
CREATE TABLE table_name_83 (
population VARCHAR,
total_congregations VARCHAR,
_percentage_lds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?
### Resp... | SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = "0.54%" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.