instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_54097 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode written cyrus nowrasteh?
### Response:
| SELECT "Directed by" FROM table_54097 WHERE "Written by" = 'cyrus nowrasteh' |
### Instruction:
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT AVG(price) FROM products WHERE manufacturer = 2 |
### Instruction:
CREATE TABLE table_name_14 (
film_title_used_in_nomination VARCHAR,
language VARCHAR,
original_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the German film that is originally called Mama, Ich Lebe?
### Respo... | SELECT film_title_used_in_nomination FROM table_name_14 WHERE language = "german" AND original_name = "mama, ich lebe" |
### Instruction:
CREATE TABLE table_47623 (
"Portfolio" text,
"Minister" text,
"Took office" text,
"Left office" text,
"Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Party, when Minister is 'Franco Frattini'?
### Response:
| SELECT "Party" FROM table_47623 WHERE "Minister" = 'franco frattini' |
### Instruction:
CREATE TABLE table_68362 (
"Race Title" text,
"Circuit" text,
"Location / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team of winner Dick Johnson?
### Response:
| SELECT "Team" FROM table_68362 WHERE "Winner" = 'dick johnson' |
### Instruction:
CREATE TABLE table_76952 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest December, when Score is '4 - 4'?
### Response:
| SELECT MIN("December") FROM table_76952 WHERE "Score" = '4 - 4' |
### Instruction:
CREATE TABLE table_5687 (
"Game #" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Date has a Home listed as Calgary?
### Response:
| SELECT "Date" FROM table_5687 WHERE "Home" = 'calgary' |
### Instruction:
CREATE TABLE table_68805 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting team against the Minnesota Vikings?
### Response:
| SELECT "Visiting Team" FROM table_68805 WHERE "Host Team" = 'minnesota vikings' |
### Instruction:
CREATE TABLE table_name_90 (
date VARCHAR,
tv_time VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Game with a Result of w 22 16 in TV Time of CBS 1:00ET?
### Response:
| SELECT date FROM table_name_90 WHERE tv_time = "cbs 1:00et" AND result = "w 22–16" |
### Instruction:
CREATE TABLE table_204_115 (
id number,
"year" number,
"track" text,
"number" number,
"team" text,
"car" text,
"round result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many 1st place round results were there ?
###... | SELECT COUNT(*) FROM table_204_115 WHERE "round result" = 1 |
### Instruction:
CREATE TABLE table_12049 (
"Points" real,
"Name" text,
"Club" text,
"Apps" real,
"Tries" real,
"Drop" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the points are less than 65 what is the drop #?
### Response:
| SELECT COUNT("Drop") FROM table_12049 WHERE "Points" < '65' |
### Instruction:
CREATE TABLE table_name_68 (
team VARCHAR,
manner_of_departure VARCHAR,
date_of_vacancy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want to know the team that was sacked and date of vacancy was 4 december
### Response:
| SELECT team FROM table_name_68 WHERE manner_of_departure = "sacked" AND date_of_vacancy = "4 december" |
### Instruction:
CREATE TABLE table_name_14 (
years_as_tallest VARCHAR,
height_metres___ft VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?
### Response:
| SELECT years_as_tallest FROM table_name_14 WHERE height_metres___ft = "01.0 27 / 90" |
### Instruction:
CREATE TABLE table_train_43 (
"id" int,
"anemia" bool,
"cystinuria" bool,
"hyperoxaluria" bool,
"acute_gout_attack" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- acute gout attack
### Response:
| SELECT * FROM table_train_43 WHERE acute_gout_attack = 1 |
### Instruction:
CREATE TABLE table_69697 (
"Name" text,
"Championship" real,
"League Cup" real,
"FA Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of league cups associated with 0 FA cups?
### Response... | SELECT MIN("League Cup") FROM table_69697 WHERE "FA Cup" < '0' |
### Instruction:
CREATE TABLE table_72715 (
"City/town" text,
"Municipality" text,
"County" text,
"City/town status" real,
"Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which county is the city/town of Halden located?
### Response... | SELECT "County" FROM table_72715 WHERE "City/town" = 'Halden' |
### Instruction:
CREATE TABLE table_25244412_1 (
renewable_electricity__gw INTEGER,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum renewable energy (gw h) for the state of Delaware?
### Response:
| SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = "Delaware" |
### Instruction:
CREATE TABLE table_38683 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Mike Harris' lowest overall?
### Response:
| SELECT MIN("Overall") FROM table_38683 WHERE "Name" = 'mike harris' |
### Instruction:
CREATE TABLE table_41238 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name has gen et sp nov as the novelty?
### Response:
| SELECT "Name" FROM table_41238 WHERE "Novelty" = 'gen et sp nov' |
### Instruction:
CREATE TABLE table_204_607 (
id number,
"season" number,
"date" text,
"location" text,
"discipline" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the final race finishing place was not 1st but what other place ?
... | SELECT "place" FROM table_204_607 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_48825 (
"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 total rounds has lehigh as the college?
### Response:
| SELECT COUNT("Round") FROM table_48825 WHERE "College" = 'lehigh' |
### Instruction:
CREATE TABLE table_10424 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of earnings for rank less than 1
### Response:
| SELECT SUM("Earnings( $ )") FROM table_10424 WHERE "Rank" < '1' |
### Instruction:
CREATE TABLE table_name_81 (
area__km_2__ INTEGER,
location VARCHAR,
area__sq_mi_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area located in Rhode Island with more than 38 sq mi area?
### Response:
| SELECT AVG(area__km_2__) FROM table_name_81 WHERE location = "rhode island" AND area__sq_mi_ > 38 |
### Instruction:
CREATE TABLE table_65016 (
"District" text,
"Number of Households" real,
"Total Population" real,
"Male" real,
"Female" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total population with less than 789 males?
### Resp... | SELECT COUNT("Total Population") FROM table_65016 WHERE "Male" < '789' |
### Instruction:
CREATE TABLE table_60146 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest total to par of +9?
### Response:
| SELECT MAX("Total") FROM table_60146 WHERE "To par" = '+9' |
### Instruction:
CREATE TABLE table_203_507 (
id number,
"#" text,
"player" text,
"\u03c3 points" number,
"qual." number,
"final" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players had a 8 points ?
### Response:
| SELECT COUNT("player") FROM table_203_507 WHERE "\u03c3 points" = 8 |
### Instruction:
CREATE TABLE table_name_47 (
studio_host VARCHAR,
play_by_play VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Play-by-play of sean grande, and a Year of 2004-05 had what studio host?
### Response:
| SELECT studio_host FROM table_name_47 WHERE play_by_play = "sean grande" AND year = "2004-05" |
### Instruction:
CREATE TABLE table_name_17 (
week_14_dec_3 VARCHAR,
week_11_nov_12 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What happened in week 14 when week 11's result was Michigan (7-2)?
### Response:
| SELECT week_14_dec_3 FROM table_name_17 WHERE week_11_nov_12 = "michigan (7-2)" |
### Instruction:
CREATE TABLE table_name_65 (
rider VARCHAR,
total VARCHAR,
round_1_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the rider that had round 1 points of 7.465 and total more than 16.615
### Response:
| SELECT rider FROM table_name_65 WHERE total > 16.615 AND round_1_points = "7.465" |
### Instruction:
CREATE TABLE table_76372 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total silvers does Russia have?
### Response:
| SELECT COUNT("Silver") FROM table_76372 WHERE "Nation" = 'russia' |
### Instruction:
CREATE TABLE table_33010 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue is in Santa Barbara, California?
### Response:
| SELECT "Venue" FROM table_33010 WHERE "State" = 'california' AND "City" = 'santa barbara' |
### Instruction:
CREATE TABLE table_204_796 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many networks show soap operas ?
### Respon... | SELECT COUNT("network name") FROM table_204_796 WHERE "programming type" = 'soap operas' |
### Instruction:
CREATE TABLE table_name_11 (
against INTEGER,
opposing_teams VARCHAR,
status VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Against, when Opposing Teams is 'South Africa', and when Status is 'First Test'?
### Respons... | SELECT SUM(against) FROM table_name_11 WHERE opposing_teams = "south africa" AND status = "first test" |
### Instruction:
CREATE TABLE table_225205_3 (
state__class_ VARCHAR,
reason_for_change VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the state class for iowa admitted to the union december 28, 1846
### Response:
| SELECT state__class_ FROM table_225205_3 WHERE reason_for_change = "Iowa admitted to the Union December 28, 1846" |
### Instruction:
CREATE TABLE table_25904 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Jons team" text,
"Scores" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes are numbered 12x03?
### Response:
| SELECT COUNT("First broadcast") FROM table_25904 WHERE "Episode" = '12x03' |
### Instruction:
CREATE TABLE table_204_726 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"behind" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last athlete ?
### Response:
| SELECT "athlete" FROM table_204_726 ORDER BY "rank" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_228973_9 (
no_in_series VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the original air date is April 1, 2003, what number in the series is this episode?
### Response:
| SELECT no_in_series FROM table_228973_9 WHERE original_air_date = "April 1, 2003" |
### Instruction:
CREATE TABLE table_name_90 (
year INTEGER,
west VARCHAR,
berlin VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin?
### Response:
| SELECT MIN(year) FROM table_name_90 WHERE west = "borussia dortmund" AND berlin = "bfc viktoria 1889" |
### Instruction:
CREATE TABLE table_11734041_16 (
height_in_ft VARCHAR,
years_for_rockets VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height in ft for the rockets from 1973-78?
### Response:
| SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78" |
### 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.
-- which artists scored at least 16 for composition ?
#... | SELECT "painter" FROM table_203_186 WHERE "composition" >= 16 |
### Instruction:
CREATE TABLE table_19300 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the celebrity where the finished is 5th?
### Response:
| SELECT "Celebrity" FROM table_19300 WHERE "Finished" = '5th' |
### Instruction:
CREATE TABLE table_204_796 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who has the most number of affiliates ?
### Res... | SELECT "network name" FROM table_204_796 ORDER BY "affiliates" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_63585 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record for the game played on September 27?
### Response... | SELECT "Record" FROM table_63585 WHERE "Date" = 'september 27' |
### Instruction:
CREATE TABLE table_name_20 (
venue VARCHAR,
competition VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?
### Respons... | SELECT venue FROM table_name_20 WHERE competition = "european cross country championships" AND notes = "junior men individual 6.595km" |
### Instruction:
CREATE TABLE table_49500 (
"Date" text,
"Tournament" text,
"Location" text,
"Opponent team" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score on 1 August 2008?
### Response:
| SELECT "Score" FROM table_49500 WHERE "Date" = '1 august 2008' |
### Instruction:
CREATE TABLE table_46855 (
"School" text,
"Locality" text,
"Description" text,
"Ofsted" real,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many values for Ofsted occurr at Chowbent Primary School?
### Response:
| SELECT COUNT("Ofsted") FROM table_46855 WHERE "School" = 'chowbent primary school' |
### Instruction:
CREATE TABLE table_64764 (
"Rank" text,
"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 most gold when the total is 7?
### Response:
| SELECT MAX("Gold") FROM table_64764 WHERE "Total" = '7' |
### Instruction:
CREATE TABLE table_203_583 (
id number,
"title" text,
"release" number,
"6th gen" text,
"handheld" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games were released for the psp ?
### Response:
| SELECT COUNT("title") FROM table_203_583 WHERE "handheld" = 'psp' |
### Instruction:
CREATE TABLE table_26832 (
"Series" real,
"Season" text,
"Original air date" text,
"Production code" text,
"Episode title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many production codes are there for episode 10 in the seas... | SELECT COUNT("Production code") FROM table_26832 WHERE "Season" = '10' |
### Instruction:
CREATE TABLE table_name_74 (
lap_by_lap VARCHAR,
year VARCHAR,
pit_reporters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?
### Response:
| SELECT lap_by_lap FROM table_name_74 WHERE year > 1973 AND pit_reporters = "bill flemming" |
### Instruction:
CREATE TABLE table_79171 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did United States place when the player was Raymond Floyd?
### Response:
| SELECT "Place" FROM table_79171 WHERE "Country" = 'united states' AND "Player" = 'raymond floyd' |
### Instruction:
CREATE TABLE table_name_26 (
president VARCHAR,
treasurer VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the President who has a Treasurer of james davidson, and a Season of 2006 2007?
### Response:
| SELECT president FROM table_name_26 WHERE treasurer = "james davidson" AND season = "2006–2007" |
### Instruction:
CREATE TABLE table_20971444_3 (
rank__timeslot_ VARCHAR,
rating__18_49_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of rank timeslot for 18-49 being 3.1
### Response:
| SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1" |
### Instruction:
CREATE TABLE table_69717 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which area has a Name of william colenso college?
### Response:
| SELECT "Area" FROM table_69717 WHERE "Name" = 'william colenso college' |
### Instruction:
CREATE TABLE table_71516 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The game that had a record of 39-25, what was the score?
### Response:
| SELECT "Score" FROM table_71516 WHERE "Record" = '39-25' |
### Instruction:
CREATE TABLE table_204_585 (
id number,
"year" text,
"player" text,
"high school" text,
"college" text,
"nba/aba draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many went to cincinnati ?
### Response:
| SELECT COUNT(*) FROM table_204_585 WHERE "college" = 'cincinnati' |
### Instruction:
CREATE TABLE table_name_86 (
partner VARCHAR,
year VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the partner where the score was 2 6, 3 6 and happened after 2007?
### Response:
| SELECT partner FROM table_name_86 WHERE year > 2007 AND score_in_the_final = "2–6, 3–6" |
### Instruction:
CREATE TABLE table_34001 (
"Rank" text,
"Runs" text,
"Player" text,
"Opponent" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which athlete played against Queensland?
### Response:
| SELECT "Player" FROM table_34001 WHERE "Opponent" = 'queensland' |
### Instruction:
CREATE TABLE table_4916 (
"Lane" real,
"Name" text,
"Nationality" text,
"50m Split" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Lane had a 50m Split of 25.8?
### Response:
| SELECT COUNT("Lane") FROM table_4916 WHERE "50m Split" = '25.8' |
### Instruction:
CREATE TABLE table_70185 (
"Week" real,
"Issue Date" text,
"Artist" text,
"Single" text,
"Download" text,
"Title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Download information for the song from Week 44?
### Re... | SELECT "Download" FROM table_70185 WHERE "Week" = '44' |
### Instruction:
CREATE TABLE table_23407 (
"Season" text,
"Player" text,
"Junior college" text,
"State" text,
"Position" text,
"Class" text,
"University" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which season the position was center... | SELECT "Season" FROM table_23407 WHERE "Position" = 'Center' |
### Instruction:
CREATE TABLE table_18304259_1 (
earnings_per_share__p_ VARCHAR,
net_profit__£m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the eps for net profit being 39.2
### Response:
| SELECT earnings_per_share__p_ FROM table_18304259_1 WHERE net_profit__£m_ = "39.2" |
### Instruction:
CREATE TABLE table_45444 (
"Round" real,
"Race Name" text,
"Pole position" text,
"Winning driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round did jonathan bomarito win?
### Response:
| SELECT "Round" FROM table_45444 WHERE "Winning driver" = 'jonathan bomarito' |
### Instruction:
CREATE TABLE table_name_33 (
barrel_twist VARCHAR,
stock VARCHAR,
hand_guards VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Barrel twist has a Stock of canadian 3rd generation and a Hand guards of short ribbed?
### Response:
| SELECT barrel_twist FROM table_name_33 WHERE stock = "canadian 3rd generation" AND hand_guards = "short ribbed" |
### Instruction:
CREATE TABLE table_204_336 (
id number,
"operators" text,
"named trains" text,
"destination" text,
"year begun" text,
"year discontinued" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first train to begin service... | SELECT "named trains" FROM table_204_336 ORDER BY "year begun" LIMIT 1 |
### Instruction:
CREATE TABLE table_name_20 (
region VARCHAR,
catalog VARCHAR,
format VARCHAR,
label VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Region has a Format of cd album, and a Label of kemado records, and a Catalog of kem 071?
### ... | SELECT region FROM table_name_20 WHERE format = "cd album" AND label = "kemado records" AND catalog = "kem 071" |
### Instruction:
CREATE TABLE table_name_3 (
qualifying_goals INTEGER,
player VARCHAR,
finals_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0?
### Respo... | SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0 |
### Instruction:
CREATE TABLE table_8688 (
"Winner" text,
"Country" text,
"Winter Olympics" text,
"FIS Nordic World Ski Championships" text,
"Holmenkollen" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The winner Arnfinn Bergmann has what under cou... | SELECT "Country" FROM table_8688 WHERE "Winner" = 'arnfinn bergmann' |
### Instruction:
CREATE TABLE table_42202 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country had a Score of 71-67=138?
### Response:
| SELECT "Country" FROM table_42202 WHERE "Score" = '71-67=138' |
### Instruction:
CREATE TABLE table_28372291_1 (
female_saber VARCHAR,
average_fencers_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What female fenced with a saber on the team that had an average fencer rank of 3.5?
### Response:
| SELECT female_saber FROM table_28372291_1 WHERE average_fencers_rank = "3.5" |
### Instruction:
CREATE TABLE table_43616 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a best time of 1:00.870?
### Response:
| SELECT "Name" FROM table_43616 WHERE "Best" = '1:00.870' |
### Instruction:
CREATE TABLE table_52027 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is Andre Owens in Year for Jazz?
### Response:
| SELECT "Years for Jazz" FROM table_52027 WHERE "Player" = 'andre owens' |
### Instruction:
CREATE TABLE table_32367 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team had a qual 1 of 59.895?
### Response:
| SELECT "Team" FROM table_32367 WHERE "Qual 1" = '59.895' |
### Instruction:
CREATE TABLE table_49225 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which part three is class 4?
### Response:
| SELECT "Part 3" FROM table_49225 WHERE "Class" = '4' |
### Instruction:
CREATE TABLE table_name_83 (
home VARCHAR,
visitor VARCHAR,
leading_scorer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading score... | SELECT home FROM table_name_83 WHERE visitor = "grizzlies" AND leading_scorer = "rudy gay (21)" |
### Instruction:
CREATE TABLE table_80379 (
"Rank" text,
"Goals" text,
"Player" text,
"Club/Clubs" text,
"Career" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what club(s) does Tony Lockett play?
### Response:
| SELECT "Club/Clubs" FROM table_80379 WHERE "Player" = 'tony lockett' |
### Instruction:
CREATE TABLE table_name_87 (
pre_race_host VARCHAR,
lap_by_lap VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005?
### Response:
| SELECT pre_race_host FROM table_name_87 WHERE lap_by_lap = "mike joy" AND year = 2005 |
### Instruction:
CREATE TABLE table_18424435_5 (
us_air_date VARCHAR,
canadian_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which air dates have 1.229 canadian viewers (millions)?
### Response:
| SELECT us_air_date FROM table_18424435_5 WHERE canadian_viewers__million_ = "1.229" |
### Instruction:
CREATE TABLE table_18779 (
"Series Number" real,
"Season Number" real,
"Episode Title" text,
"Premiere Date" text,
"Production Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes have a series number of 35?
### ... | SELECT COUNT("Episode Title") FROM table_18779 WHERE "Series Number" = '35' |
### Instruction:
CREATE TABLE table_204_438 (
id number,
"year" number,
"title" text,
"album" text,
"us r&b" number,
"us pop" number,
"us dance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last year listed ?
### Response:
| SELECT "year" FROM table_204_438 ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_38324 (
"Event" text,
"Round" text,
"Result" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Opponent of igor samoilenco had what result?
### Response:
| SELECT "Result" FROM table_38324 WHERE "Opponent" = 'igor samoilenco' |
### Instruction:
CREATE TABLE table_20884163_2 (
date VARCHAR,
team VARCHAR,
race_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What dates was the falken tasmania challenge race that had triple eight race engineering as the team?
### Response:
| SELECT date FROM table_20884163_2 WHERE team = "Triple Eight Race Engineering" AND race_title = "Falken Tasmania Challenge" |
### Instruction:
CREATE TABLE table_28249 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Points Classification" text,
"Young Rider Classification" text,
"Teams Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who le... | SELECT "General Classification" FROM table_28249 WHERE "Stage" = '3' |
### Instruction:
CREATE TABLE table_202_135 (
id number,
"series" number,
"year" text,
"rank" text,
"average audience share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year -lrb- s -rrb- saw the greatest average audience share ?
### Resp... | SELECT "year" FROM table_202_135 ORDER BY "average audience share" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_41733 (
"Date" text,
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the producer of city sharks?
### Response:... | SELECT "Producer" FROM table_41733 WHERE "Title" = 'city sharks' |
### Instruction:
CREATE TABLE table_203_102 (
id number,
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of countries listed in the table... | SELECT COUNT(DISTINCT "nation") FROM table_203_102 |
### Instruction:
CREATE TABLE races (
raceid VARCHAR,
name VARCHAR
)
CREATE TABLE results (
raceid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many drivers participated in the race Australian Grand Prix held in 2009?
### Response:
| SELECT COUNT(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = "Australian Grand Prix" AND YEAR = 2009 |
### Instruction:
CREATE TABLE table_56002 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was Corey Cowick picked?
### Response:
| SELECT AVG("Round") FROM table_56002 WHERE "Player" = 'corey cowick' |
### Instruction:
CREATE TABLE table_6472 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Score when the Loss was ruthven (1-4)?
### Response:
| SELECT "Score" FROM table_6472 WHERE "Loss" = 'ruthven (1-4)' |
### Instruction:
CREATE TABLE table_3716 (
"season" text,
"division" text,
"date" text,
"home team" text,
"result" text,
"away team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season had a result of 1 0 (aet)?
### Response:
| SELECT "season" FROM table_3716 WHERE "result" = '1–0 (aet)' |
### Instruction:
CREATE TABLE table_33166 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has a catalogue of asw 40362?
### Response:
| SELECT "Date" FROM table_33166 WHERE "Catalogue" = 'asw 40362' |
### Instruction:
CREATE TABLE table_69812 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the visitor for home of dallas
### Respons... | SELECT "Visitor" FROM table_69812 WHERE "Home" = 'dallas' |
### Instruction:
CREATE TABLE table_33953 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is from the College of Cincinnati?
### Response:
| SELECT "Name" FROM table_33953 WHERE "College" = 'cincinnati' |
### Instruction:
CREATE TABLE table_name_22 (
drawn VARCHAR,
played VARCHAR,
position VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times what the position 6th, the competition was super league xvii and played was large... | SELECT COUNT(drawn) FROM table_name_22 WHERE position = "6th" AND competition = "super league xvii" AND played > 27 |
### Instruction:
CREATE TABLE table_8856 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"Former Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Pick larger than 2, and a Position of forward?
### Response... | SELECT "Player" FROM table_8856 WHERE "Pick" > '2' AND "Position" = 'forward' |
### Instruction:
CREATE TABLE table_59778 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the game in which Arsenal was the away team?
### Respons... | SELECT "Score" FROM table_59778 WHERE "Away team" = 'arsenal' |
### Instruction:
CREATE TABLE table_59468 (
"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.
-- When the away team was Bolton Wanderers, what was the score?
### Response:
| SELECT "Score" FROM table_59468 WHERE "Away team" = 'bolton wanderers' |
### Instruction:
CREATE TABLE table_49708 (
"Exit Date" text,
"Pos." text,
"Player" text,
"To club" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date that a player went to the club Doncaster Rovers?
### Response... | SELECT "Exit Date" FROM table_49708 WHERE "To club" = 'doncaster rovers' |
### Instruction:
CREATE TABLE table_name_18 (
pl_gp INTEGER,
pick__number VARCHAR,
rd__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the PI GP fpr pick# 235 for Rd# larger than 12?
### Response:
| SELECT MIN(pl_gp) FROM table_name_18 WHERE pick__number = 235 AND rd__number > 12 |
### Instruction:
CREATE TABLE table_2668374_18 (
incumbent VARCHAR,
party VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What incumbent was a federalist that was first elected in 1803?
### Response:
| SELECT incumbent FROM table_2668374_18 WHERE party = "Federalist" AND first_elected = "1803" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.