instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_2178 (
"Pitcher" text,
"Starts" real,
"Wins" real,
"Losses" real,
"No decisions" real,
"Winning %" text,
"Seasons" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- stae the least number of wins in 1986
###... | SELECT MIN("Wins") FROM table_2178 WHERE "Seasons" = '1986' |
### Instruction:
CREATE TABLE table_1081235_1 (
name_of_lava_dome VARCHAR,
last_eruption_or_growth_episode VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lava domes erupted or had a growth episode during the Holocene period?
### Response:
| SELECT name_of_lava_dome FROM table_1081235_1 WHERE last_eruption_or_growth_episode = "Holocene" |
### Instruction:
CREATE TABLE table_46912 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a Time/Retired of +49.222 secs?
### Response:
| SELECT MAX("Points") FROM table_46912 WHERE "Time/Retired" = '+49.222 secs' |
### Instruction:
CREATE TABLE table_name_87 (
title VARCHAR,
written_by VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?
### R... | SELECT title FROM table_name_87 WHERE written_by = "terri hughes & ron milbauer" AND original_air_date = "march 6, 2001" |
### Instruction:
CREATE TABLE table_41016 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tries against have... | SELECT MAX("Tries against") FROM table_41016 WHERE "Points against" > '109' |
### Instruction:
CREATE TABLE table_204_392 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"country" text,
"domed or retractable roof" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the only stadium on the ... | SELECT "stadium" FROM table_204_392 WHERE "country" = 'kazakhstan' |
### Instruction:
CREATE TABLE table_203_538 (
id number,
"flight" text,
"date" text,
"payload nickname" text,
"payload" text,
"orbit" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many at most flights were canceled accord... | SELECT COUNT(DISTINCT "flight") FROM table_203_538 WHERE "result" = 'canceled' |
### Instruction:
CREATE TABLE table_18602462_22 (
round_of_16 VARCHAR,
semifinals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?
### Response:
| SELECT round_of_16 FROM table_18602462_22 WHERE semifinals = "Vergeer ( NED ) L 0-6, 1-6" |
### Instruction:
CREATE TABLE table_54353 (
"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.
-- In what venue is Essendon the h... | SELECT "Venue" FROM table_54353 WHERE "Home team" = 'essendon' |
### Instruction:
CREATE TABLE table_name_5 (
winter_olympics INTEGER,
country VARCHAR,
holmenkollen VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the winter olympics when the country is soviet union and holmenkollen is 1970, 1979?
### Response... | SELECT SUM(winter_olympics) FROM table_name_5 WHERE country = "soviet union" AND holmenkollen = "1970, 1979" |
### Instruction:
CREATE TABLE table_79609 (
"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 bronze when the rank is 3 and the total is more than 2?
### Respo... | SELECT SUM("Bronze") FROM table_79609 WHERE "Rank" = '3' AND "Total" > '2' |
### Instruction:
CREATE TABLE table_58775 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?
### ... | SELECT SUM("Laps") FROM table_58775 WHERE "Grid" < '5' AND "Time/Retired" = 'retirement' |
### Instruction:
CREATE TABLE table_39894 (
"Order" real,
"Minister" text,
"Party affiliation" text,
"Prime Minister" text,
"Term start" text,
"Term end" text,
"Term in office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowes... | SELECT MIN("Order") FROM table_39894 WHERE "Minister" = 'joe hockey' |
### Instruction:
CREATE TABLE table_32780 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has less than 73 laps and a gearbox time?
### Response:
| SELECT "Team" FROM table_32780 WHERE "Laps" < '73' AND "Time/Retired" = 'gearbox' |
### Instruction:
CREATE TABLE table_32407 (
"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 points did the away te... | SELECT "Away team score" FROM table_32407 WHERE "Away team" = 'melbourne' |
### Instruction:
CREATE TABLE table_24997 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different cities are represente... | SELECT COUNT("Hometown") FROM table_24997 WHERE "Height" = '1.80' |
### Instruction:
CREATE TABLE accounts (
custid number,
name text
)
CREATE TABLE checking (
custid number,
balance number
)
CREATE TABLE savings (
custid number,
balance number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the balance of the ... | SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' |
### Instruction:
CREATE TABLE table_34650 (
"Draw" real,
"Singer" text,
"Song" text,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for the place when the singer is Mariza Ikonomi when points are larger than ... | SELECT COUNT("Place") FROM table_34650 WHERE "Singer" = 'mariza ikonomi' AND "Points" > '20' |
### Instruction:
CREATE TABLE table_36971 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of first prizes in USD for the Ca... | SELECT SUM("1st prize ( $ )") FROM table_36971 WHERE "Tournament" = 'canadian open' |
### Instruction:
CREATE TABLE table_66056 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which IHSAA Class has a Lo... | SELECT "IHSAA Class" FROM table_66056 WHERE "Location" = 'brazil' |
### Instruction:
CREATE TABLE table_47201 (
"Model" text,
"A300" text,
"A310" text,
"A320" text,
"A330" text,
"A340" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the A330 and the A310 wide?
### Response:
| SELECT "A330" FROM table_47201 WHERE "A310" = 'wide' |
### Instruction:
CREATE TABLE table_47635 (
"Opponent" text,
"Res." text,
"Class" text,
"Score" text,
"Date" text,
"Competition" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT OPPONENT HAD A SCORE OF 5:5?
### Response:
| SELECT "Opponent" FROM table_47635 WHERE "Score" = '5:5' |
### Instruction:
CREATE TABLE table_name_45 (
field_goals INTEGER,
extra_points VARCHAR,
touchdowns VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and a... | SELECT SUM(field_goals) FROM table_name_45 WHERE touchdowns < 3 AND player = "willis ward" AND extra_points < 0 |
### Instruction:
CREATE TABLE table_5317 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Position of number 8, and a Club/province of scarle... | SELECT "Player" FROM table_5317 WHERE "Position" = 'number 8' AND "Club/province" = 'scarlets' |
### Instruction:
CREATE TABLE table_59612 (
"Ship" text,
"Tonnage" text,
"Builder" text,
"Original Operator" text,
"Fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the original operator for the AG Vulcan builder and the Prinzess Irene sh... | SELECT "Original Operator" FROM table_59612 WHERE "Builder" = 'ag vulcan' AND "Ship" = 'prinzess irene' |
### Instruction:
CREATE TABLE table_74782 (
"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 was the game when Footscra... | SELECT "Date" FROM table_74782 WHERE "Away team" = 'footscray' |
### Instruction:
CREATE TABLE table_75257 (
"Team" text,
"City" text,
"Arena" text,
"Founded" real,
"First AF2 season" real,
"Final AF2 season" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean Founded number when the team is the B... | SELECT AVG("Founded") FROM table_75257 WHERE "Team" = 'baton rouge blaze' |
### Instruction:
CREATE TABLE table_61127 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has an Attendance larger than 63,36... | SELECT MIN("Week") FROM table_61127 WHERE "Attendance" > '63,369' |
### Instruction:
CREATE TABLE table_13609 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Finish position has a 4th Day of bumped robinson?
#... | SELECT "Finish position" FROM table_13609 WHERE "4th Day" = 'bumped robinson' |
### Instruction:
CREATE TABLE table_13507 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Dominik Meichtry's Time in Heat 7 or lower?
### Response:
| SELECT COUNT("Time") FROM table_13507 WHERE "Name" = 'dominik meichtry' AND "Heat" < '7' |
### Instruction:
CREATE TABLE table_73067 (
"Episode title" text,
"Air date" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When jim is eliminated what is the fin... | SELECT "Finish" FROM table_73067 WHERE "Eliminated" = 'Jim' |
### Instruction:
CREATE TABLE table_52399 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the sum of Laps with Grid less than 11 for jean-pierre jarier
### Respons... | SELECT SUM("Laps") FROM table_52399 WHERE "Grid" < '11' AND "Driver" = 'jean-pierre jarier' |
### Instruction:
CREATE TABLE table_79505 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of frida svensson's race that had sa/b under the notes?
### Response:
| SELECT "Time" FROM table_79505 WHERE "Notes" = 'sa/b' AND "Athlete" = 'frida svensson' |
### Instruction:
CREATE TABLE table_203_839 (
id number,
"station" text,
"type" text,
"latitude" text,
"longitude" text,
"el. (m)" number,
"opened" number,
"closed" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MAX("opened") FROM table_203_839 |
### Instruction:
CREATE TABLE table_61143 (
"Year" real,
"Winner" text,
"Sport" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winner who attended college at Connecticut and is from North Syracuse, NY?
#... | SELECT "Winner" FROM table_61143 WHERE "College" = 'connecticut' AND "Hometown" = 'north syracuse, ny' |
### Instruction:
CREATE TABLE table_80184 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the place for score of 67-70=137 and stuart appleby
### Response:
| SELECT "Place" FROM table_80184 WHERE "Score" = '67-70=137' AND "Player" = 'stuart appleby' |
### Instruction:
CREATE TABLE table_41962 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score for the Andy Williams-San Diego Open... | SELECT "Winning score" FROM table_41962 WHERE "Tournament" = 'andy williams-san diego open invitational' |
### Instruction:
CREATE TABLE table_203_541 (
id number,
"games" text,
"host city" text,
"dates" text,
"nations" number,
"participants" number,
"events" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many events were at the 1980 winter... | SELECT "events" FROM table_203_541 WHERE "games" = '1980 winter olympics' |
### Instruction:
CREATE TABLE table_63092 (
"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 much Silver has a Nation of total, and a Total smaller than 54?
### R... | SELECT COUNT("Silver") FROM table_63092 WHERE "Nation" = 'total' AND "Total" < '54' |
### Instruction:
CREATE TABLE table_23128 (
"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.
-- What's the number of positions of the playe... | SELECT COUNT("Position") FROM table_23128 WHERE "NHL team" = 'Minnesota North Stars' |
### Instruction:
CREATE TABLE table_63087 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the format for the country united kingdom on 20 october 2008?
### Response... | SELECT "Format" FROM table_63087 WHERE "Country" = 'united kingdom' AND "Date" = '20 october 2008' |
### Instruction:
CREATE TABLE table_31149 (
"Name/ designation" text,
"Year of intro" real,
"Country of origin" text,
"Primary cartridge" text,
"Major users" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all the major users of the Gordon Cl... | SELECT "Major users" FROM table_31149 WHERE "Name/ designation" = 'Gordon Close-Support Weapon System' |
### Instruction:
CREATE TABLE table_9651 (
"Season" text,
"Premiere" text,
"Finale" text,
"Episodes" real,
"Timeslot" text,
"Rank" text,
"Viewers (in households)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the premiere of the sh... | SELECT "Premiere" FROM table_9651 WHERE "Rank" = '#7' |
### Instruction:
CREATE TABLE table_5403 (
"Score" real,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has a Year larger than 1868, and an Opposition of derbyshire?
### Response:
| SELECT "Venue" FROM table_5403 WHERE "Year" > '1868' AND "Opposition" = 'derbyshire' |
### Instruction:
CREATE TABLE table_19227 (
"Country/Territory" text,
"Former pageant" text,
"Last competed" real,
"New pageant" text,
"Franchise since" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the former pageant in the country where ... | SELECT "Former pageant" FROM table_19227 WHERE "New pageant" = 'Miss Bahamas' |
### Instruction:
CREATE TABLE table_203_501 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year did he release ... | SELECT "premiere date" FROM table_203_501 ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_33751 (
"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 games is collingwood t... | SELECT COUNT("Crowd") FROM table_33751 WHERE "Home team" = 'collingwood' |
### Instruction:
CREATE TABLE table_76215 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country is Player Sam Snead with a To par of less than 5 from... | SELECT "Country" FROM table_76215 WHERE "To par" < '5' AND "Player" = 'sam snead' |
### Instruction:
CREATE TABLE table_name_84 (
pop_area__1_km²_ INTEGER,
no_p VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pop/Area (1/km ) has a No P. larger than 1, and a Name of albergaria-a-velha?
### Response:
| SELECT AVG(pop_area__1_km²_) FROM table_name_84 WHERE no_p > 1 AND name = "albergaria-a-velha" |
### Instruction:
CREATE TABLE table_2176 (
"Pitcher" text,
"Stats" real,
"Wins" real,
"Losses" real,
"No decisions" real,
"Winning %" text,
"Seasons" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins had a win percentage of 0.667
... | SELECT "Wins" FROM table_2176 WHERE "Winning %" = '0.667' |
### Instruction:
CREATE TABLE table_75826 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has an Opponent of hibernians?
###... | SELECT "Season" FROM table_75826 WHERE "Opponent" = 'hibernians' |
### Instruction:
CREATE TABLE table_203_655 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of goals sc... | SELECT "score" FROM table_203_655 WHERE "opponent" = 'faroe islands' |
### Instruction:
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT mID, AVG(stars) FROM Rating GROUP BY mID |
### Instruction:
CREATE TABLE table_51270 (
"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 when t... | SELECT SUM("Crowd") FROM table_51270 WHERE "Away team" = 'richmond' |
### Instruction:
CREATE TABLE table_37636 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Attendance of 55,340 had what opponent?
### ... | SELECT "Opponent" FROM table_37636 WHERE "Attendance" = '55,340' |
### Instruction:
CREATE TABLE table_32417 (
"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.
-- Where did Essendon play as the ... | SELECT "Venue" FROM table_32417 WHERE "Away team" = 'essendon' |
### Instruction:
CREATE TABLE table_4178 (
"Position" real,
"Top MC" text,
"Year inducted" real,
"Appearances" real,
"Peak ranking" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all the MCs with peak ranking of 6 who were inducted in 2007.
#... | SELECT "Top MC" FROM table_4178 WHERE "Year inducted" = '2007' AND "Peak ranking" = '6' |
### Instruction:
CREATE TABLE table_36789 (
"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 golds have bronze values of 4 and silver values over 2?
### Resp... | SELECT COUNT("Gold") FROM table_36789 WHERE "Bronze" = '4' AND "Silver" > '2' |
### 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.
-- which years did the album changes not make it o... | SELECT "year" FROM table_204_438 WHERE "album" = 'changes' AND "us dance" IS NULL |
### Instruction:
CREATE TABLE table_203_391 (
id number,
"season" text,
"greek league" text,
"greek cup" text,
"europe" text,
"coach" text,
"roster" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was is the number of wins by roderick bl... | SELECT COUNT(*) FROM table_203_391 WHERE "roster" = 'roderick blakney' |
### Instruction:
CREATE TABLE table_409 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What height was the forward posit... | SELECT "Height" FROM table_409 WHERE "Position" = 'Forward' AND "High School" = 'Crockett' |
### Instruction:
CREATE TABLE table_79736 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rebuilt has a Name as rebuilt of binevanagh?
... | SELECT "Rebuilt" FROM table_79736 WHERE "Name as rebuilt" = 'binevanagh' |
### Instruction:
CREATE TABLE table_204_42 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long after 1999 was there a relegated mov... | SELECT (SELECT "season" FROM table_204_42 WHERE "movements" = 'relegated') - 1999 |
### Instruction:
CREATE TABLE table_36456 (
"Driver" text,
"Season" real,
"Races" real,
"Poles" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver?
... | SELECT MAX("Season") FROM table_36456 WHERE "Percentage" = '67%' AND "Driver" = 'alberto ascari' |
### Instruction:
CREATE TABLE table_30947 (
"Episode" real,
"Broadcast date" text,
"Guest(s)" text,
"Singer(s)" text,
"Comedian" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of ratings for bruce forsyth
### Re... | SELECT COUNT("Ratings") FROM table_30947 WHERE "Guest(s)" = 'Bruce Forsyth' |
### Instruction:
CREATE TABLE table_50633 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player is in the place of t1 and has the score of 67-70=137?
### Response:
| SELECT "Player" FROM table_50633 WHERE "Place" = 't1' AND "Score" = '67-70=137' |
### Instruction:
CREATE TABLE table_23234 (
"Office" text,
"Branch" text,
"Location" text,
"Elected" real,
"Term began" text,
"Term ended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What branch was involved when the term began in January 3, ... | SELECT "Branch" FROM table_23234 WHERE "Term began" = 'January 3, 1985' |
### Instruction:
CREATE TABLE table_72972 (
"Segment description" text,
"Date opened" text,
"Line(s)" text,
"Endpoints" text,
"# of new stations" text,
"Length (miles)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many lines have the segme... | SELECT "Line(s)" FROM table_72972 WHERE "Segment description" = 'Red Line MOS-2 West' |
### Instruction:
CREATE TABLE table_35685 (
"Name" text,
"Town/City" text,
"Region" text,
"On Dinosaur Trail?" text,
"Education programs/ Guided tours?" text,
"Associated Field Digs?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the re... | SELECT "Region" FROM table_35685 WHERE "Name" = 'blaine county museum' |
### Instruction:
CREATE TABLE table_68587 (
"Season" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won mixed doubles in the 20... | SELECT "Mixed doubles" FROM table_68587 WHERE "Season" = '2002' |
### Instruction:
CREATE TABLE table_204_883 (
id number,
"pos." text,
"name" text,
"place of birth" text,
"date of birth" text,
"previous club" text,
"date joined" text,
"fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the da... | SELECT "date joined" FROM table_204_883 ORDER BY "date joined" LIMIT 1 |
### Instruction:
CREATE TABLE table_66419 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game with a score of 111-106?
... | SELECT "Opponent" FROM table_66419 WHERE "Score" = '111-106' |
### Instruction:
CREATE TABLE table_55649 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least yards when the average is 7 and the long is less than 7?
##... | SELECT MIN("Yards") FROM table_55649 WHERE "Avg." = '7' AND "Long" < '7' |
### Instruction:
CREATE TABLE table_203_390 (
id number,
"year" number,
"venue" text,
"winners" text,
"runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- previous to 2008 how many times was sweden the runner up ?
### R... | SELECT COUNT(*) FROM table_203_390 WHERE "year" < 2008 AND "runner-up" = 'sweden' |
### 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.
-- how many directors were from 2000 to 2009 ?
### Response:
| SELECT COUNT("name") FROM table_203_141 WHERE "from" >= 2000 AND "from" <= 2009 |
### Instruction:
CREATE TABLE table_44489 (
"Team" text,
"Tries for" text,
"Tries against" text,
"Try diff" text,
"Points for" text,
"Points against" text,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tries Against, w... | SELECT "Tries against" FROM table_44489 WHERE "Try diff" = '+15' |
### Instruction:
CREATE TABLE table_203_545 (
id number,
"single/ep" text,
"release date" text,
"label" text,
"format(s)" text,
"uk singles chart position" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year was try not... | SELECT "release date" FROM table_203_545 WHERE "single/ep" = '"try not to think"' |
### Instruction:
CREATE TABLE table_name_53 (
money___ INTEGER,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?
### Response:
| SELECT AVG(money___) AS $__ FROM table_name_53 WHERE place = "t8" AND score = 68 - 71 - 69 - 72 = 280 |
### Instruction:
CREATE TABLE table_63291 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Channel" text,
"Stadium" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Channel has an Opponent of washington red... | SELECT "Channel" FROM table_63291 WHERE "Opponent" = 'washington redskins' |
### Instruction:
CREATE TABLE table_name_64 (
home_stadium VARCHAR,
city VARCHAR,
division VARCHAR,
conference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Home Stadium in which the Division is in the south, and Conference i... | SELECT home_stadium FROM table_name_64 WHERE division = "south" AND conference = "national" AND city = "charlotte, north carolina" |
### Instruction:
CREATE TABLE table_11172 (
"Round" real,
"Overall" real,
"Player" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What club was derrick byfuglien drafted by before 283?
### Response:
| SELECT "Club team" FROM table_11172 WHERE "Overall" < '283' AND "Player" = 'derrick byfuglien' |
### Instruction:
CREATE TABLE table_31678 (
"Cellist" text,
"Orchestra" text,
"Conductor" text,
"Record Company" text,
"Year of Recording" real,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record company released a CD in 1964?
... | SELECT "Record Company" FROM table_31678 WHERE "Year of Recording" = '1964' AND "Format" = 'cd' |
### Instruction:
CREATE TABLE table_6138 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position has L bats and Anderson as a surname?
... | SELECT "Position" FROM table_6138 WHERE "Bats" = 'l' AND "Surname" = 'anderson' |
### Instruction:
CREATE TABLE table_204_506 (
id number,
"seasons" number,
"team" text,
"ch.wins" number,
"promotions" number,
"relegations" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than scafati basket , who appeared in 9 seasons ?... | SELECT "team" FROM table_204_506 WHERE "team" <> 'scafati basket' AND "seasons" = 9 |
### Instruction:
CREATE TABLE table_17238 (
"Tournament" text,
"Date" text,
"City" text,
"Country" text,
"Surface" text,
"Singles champions" text,
"Doubles champions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many singles tournament... | SELECT COUNT("Tournament") FROM table_17238 WHERE "Singles champions" = 'Ludovic Walter' |
### Instruction:
CREATE TABLE table_52079 (
"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.
-- Where was Collingwood's away ga... | SELECT "Venue" FROM table_52079 WHERE "Away team" = 'collingwood' |
### Instruction:
CREATE TABLE table_6522 (
"Stage" real,
"Date" text,
"Route" text,
"Stage Winner" text,
"GC Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the GC leader when Laurent Jalabert was the stage winner and the stage was gre... | SELECT "GC Leader" FROM table_6522 WHERE "Stage Winner" = 'laurent jalabert' AND "Stage" > '6' |
### Instruction:
CREATE TABLE table_32767 (
"Freq" real,
"Call" text,
"City" text,
"Owner" text,
"Day Power ( W )" real,
"Night Power" real,
"Format" text,
"Stereo" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is WPEO in stereo?
### ... | SELECT "Stereo" FROM table_32767 WHERE "Call" = 'wpeo' |
### Instruction:
CREATE TABLE table_name_22 (
term_expiration INTEGER,
appointing_governor VARCHAR,
appointed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed l... | SELECT SUM(term_expiration) FROM table_name_22 WHERE appointing_governor = "george pataki, republican" AND appointed > 2004 |
### Instruction:
CREATE TABLE table_22289 (
"Departure" text,
"Going to" text,
"Calling at" text,
"Arrival" text,
"Operator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the train destination when it has a calling at Boston, Sleaford, Not... | SELECT "Going to" FROM table_22289 WHERE "Calling at" = 'Boston, Sleaford, Nottingham Victoria' |
### Instruction:
CREATE TABLE table_62991 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What series was directed by Frank Tashlin and has the production number, ... | SELECT "Series" FROM table_62991 WHERE "Director" = 'frank tashlin' AND "Production Num." = '8053' |
### Instruction:
CREATE TABLE table_12222 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Record, when Home is 'New York Rangers', and when Date is 'April 17'?
### Response:... | SELECT "Record" FROM table_12222 WHERE "Home" = 'new york rangers' AND "Date" = 'april 17' |
### Instruction:
CREATE TABLE table_203_876 (
id number,
"name" text,
"birth" text,
"marriages" text,
"death" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what name is above james iii and below james ii ?
### Response:
| SELECT "name" FROM table_203_876 WHERE id = (SELECT id FROM table_203_876 WHERE "name" = 'james iii') - 1 |
### Instruction:
CREATE TABLE table_18383 (
"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.
-- Incumbent Bill Harsha was the winner in an election in ... | SELECT "Candidates" FROM table_18383 WHERE "Incumbent" = 'Bill Harsha' |
### Instruction:
CREATE TABLE table_name_17 (
goals_for INTEGER,
goals_against VARCHAR,
position VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against ... | SELECT MIN(goals_for) FROM table_name_17 WHERE position < 16 AND wins < 19 AND goals_against < 32 |
### Instruction:
CREATE TABLE table_12797 (
"Track" real,
"Title" text,
"Songwriter(s)" text,
"Production credits" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which song was written by Nigel Stock and is 4:12 long?
### Response:
| SELECT "Title" FROM table_12797 WHERE "Songwriter(s)" = 'nigel stock' AND "Time" = '4:12' |
### Instruction:
CREATE TABLE table_1847180_3 (
state__class_ VARCHAR,
date_of_successors_formal_installation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the state (class) where the new successor was formally installed on May 11, 1966?
### Resp... | SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966" |
### Instruction:
CREATE TABLE table_44385 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance is the lowest one that has a Recor... | SELECT MIN("Attendance") FROM table_44385 WHERE "Record" = '5–5–0' |
### Instruction:
CREATE TABLE table_64509 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"# / County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IHSAA clas... | SELECT "IHSAA Class" FROM table_64509 WHERE "Location" = 'monon' |
### Instruction:
CREATE TABLE table_22573 (
"Episode #" real,
"Air date" text,
"Team 1" text,
"Players left after Round 1" text,
"Team 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date that had the wykeham wonderers as ... | SELECT "Air date" FROM table_22573 WHERE "Team 1" = 'Wykeham Wonderers' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.