instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE drivers (
driverid VARCHAR,
surname VARCHAR
)
CREATE TABLE races (
raceid VARCHAR
)
CREATE TABLE results (
driverid VARCHAR,
raceid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the id and surname of the driv... | SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_21532 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High rebounds" FROM table_21532 WHERE "High assists" = 'Shawn Marion (6)' |
### Instruction:
CREATE TABLE table_64526 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Date of vacancy" FROM table_64526 WHERE "Date of appointment" = '1 january 2009' |
### Instruction:
CREATE TABLE table_10592 (
"Governorate" text,
"Name in Russian" text,
"Name in Polish" text,
"Seat" text,
"Area, in thousands of km 2" real,
"Population, in thousands,( 1905 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tel... | SELECT "Population, in thousands,( 1905 )" FROM table_10592 WHERE "Name in Polish" = 'gubernia łomżyńska' |
### Instruction:
CREATE TABLE table_42228 (
"Rank" real,
"Celebrity" text,
"Professional Partner" text,
"Season" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season had an average under 28, a rank under 10, and a partner of J... | SELECT "Season" FROM table_42228 WHERE "Average" < '28' AND "Rank" < '10' AND "Professional Partner" = 'janja lesar' |
### Instruction:
CREATE TABLE table_203_287 (
id number,
"rank" number,
"area" text,
"date" text,
"presenter" text,
"seven wonders covered" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the presenter after the presenter who presented the e... | SELECT "presenter" FROM table_203_287 WHERE "rank" = (SELECT "rank" FROM table_203_287 WHERE "seven wonders covered" = 'epping forest') + 1 |
### Instruction:
CREATE TABLE table_38680 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Ashton Cobb's clas... | SELECT "Class" FROM table_38680 WHERE "Games\u2191" = '2' AND "Name" = 'ashton cobb' |
### Instruction:
CREATE TABLE table_72473 (
"Country" real,
"Rank" text,
"Aid" text,
"Trade" text,
"Investment" text,
"Migration" text,
"Environment" text,
"Security" text,
"Technology" text,
"Overall (Average)" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Migration" FROM table_72473 WHERE "Trade" = '5.7' |
### Instruction:
CREATE TABLE table_204_450 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the name of the venue after rome , italy... | SELECT "venue" FROM table_204_450 WHERE "year" > (SELECT "year" FROM table_204_450 WHERE "venue" = 'rome, italy') ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE table_34594 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean drawn when th... | SELECT AVG("Drawn") FROM table_34594 WHERE "Difference" = '0' AND "Against" > '31' |
### Instruction:
CREATE TABLE table_204_869 (
id number,
"species" text,
"country of origin" text,
"total released" number,
"first release" text,
"last release" text,
"areas of release" text,
"areas established" text,
"pasture type" text
)
-- Using valid SQLite, answer the followin... | SELECT COUNT(DISTINCT "species") FROM table_204_869 WHERE "country of origin" = 'south africa' |
### Instruction:
CREATE TABLE table_48906 (
"State" text,
"Preliminary" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the best preliminary score from a contestant f... | SELECT MAX("Preliminary") FROM table_48906 WHERE "State" = 'oklahoma' AND "Evening Gown" < '8.853' |
### Instruction:
CREATE TABLE table_35296 (
"Round" real,
"Player" text,
"Nationality" text,
"NHL team" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a NHL team of edmonton oilers and a Play... | SELECT AVG("Round") FROM table_35296 WHERE "NHL team" = 'edmonton oilers' AND "Player" = 'vyacheslav trukhno' |
### Instruction:
CREATE TABLE table_7914 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest total when the league cup is more than 0, the name is hei ar helguson ... | SELECT MIN("Total") FROM table_7914 WHERE "League Cup" > '0' AND "Name" = 'heiðar helguson' AND "League" < '3' |
### Instruction:
CREATE TABLE table_25234 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name o... | SELECT "Track" FROM table_25234 WHERE "Race Name" = 'International 500 Mile Sweepstakes' |
### Instruction:
CREATE TABLE table_23863 (
"Party" text,
"Seats Contested" real,
"Seats Won" real,
"No. of Votes" real,
"% of Votes" text,
"% in Seats contested" text,
"Seats Forfeited" real,
"2003 Seats" real
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Seats Contested" FROM table_23863 WHERE "Party" = 'Independents' |
### Instruction:
CREATE TABLE table_65517 (
"Shirt No" real,
"Nationality" text,
"Player" text,
"Birth Date" text,
"Height" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the shirt no with a position of setter, a nationa... | SELECT SUM("Shirt No") FROM table_65517 WHERE "Position" = 'setter' AND "Nationality" = 'italy' AND "Height" > '172' |
### Instruction:
CREATE TABLE table_75047 (
"Stage" text,
"Time" text,
"Name" text,
"Length" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage ... | SELECT "Name" FROM table_75047 WHERE "Winner" = 's. loeb' AND "Length" = '13.04km' AND "Stage" = 'ss12' |
### Instruction:
CREATE TABLE table_204_800 (
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.
-- venezuela was 7th overall in total medals . who ... | SELECT "nation" FROM table_204_800 WHERE id = (SELECT id FROM table_204_800 WHERE "nation" = 'venezuela') + 1 |
### Instruction:
CREATE TABLE table_22227 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Directed by" FROM table_22227 WHERE "Written by" = 'Mike Daniels' |
### Instruction:
CREATE TABLE table_68486 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" real,
"Investing Dragon(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name th... | SELECT "First aired" FROM table_68486 WHERE "Money requested (\u00a3)" > '85,000' |
### Instruction:
CREATE TABLE table_35978 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Cuts made has a Tournament of totals, and... | SELECT AVG("Cuts made") FROM table_35978 WHERE "Tournament" = 'totals' AND "Wins" < '11' |
### Instruction:
CREATE TABLE table_78458 (
"Name" text,
"Nation" text,
"Points" real,
"Games" real,
"Pts/game" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of en... | SELECT AVG("Points") FROM table_78458 WHERE "Pts/game" > '4' AND "Nation" = 'england' AND "Games" < '5' |
### Instruction:
CREATE TABLE table_24446 (
"Class" text,
"Weapon" text,
"Caliber" text,
"Type" text,
"Weight (g)" text,
"Range (m)" text,
"Velocity (m/s)" text,
"Impact Energy" text,
"Shots" real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Type" FROM table_24446 WHERE "Caliber" = '.44 Magnum' |
### Instruction:
CREATE TABLE table_79574 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"IHSAA Class Football" text,
"County" text,
"Year Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "IHSAA Class" FROM table_79574 WHERE "School" = 'seymour' |
### Instruction:
CREATE TABLE table_38380 (
"Team" text,
"Manufacturer" text,
"Car model" text,
"Engine" text,
"Driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and the Dr... | SELECT "Team" FROM table_38380 WHERE "Engine" = 'chevrolet 6.0 v8' AND "Manufacturer" = 'opel' AND "Driver" = 'chris jackson' |
### Instruction:
CREATE TABLE table_26380 (
"Province (ashkharh)" text,
"Armenian name" text,
"Area (km\u00b2)" real,
"Number of cantons (gavars)" real,
"Center" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different numbers of cantons do... | SELECT COUNT("Number of cantons (gavars)") FROM table_26380 WHERE "Armenian name" = 'Վասպուրական' |
### Instruction:
CREATE TABLE table_21292 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MIN("Game") FROM table_21292 WHERE "Location Attendance" = 'ARCO Arena 13,330' |
### Instruction:
CREATE TABLE table_name_50 (
preliminary INTEGER,
evening_gown VARCHAR,
swimsuit VARCHAR,
interview VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest preliminary when swimsuit is less than 8.822, interview is more t... | SELECT MIN(preliminary) FROM table_name_50 WHERE swimsuit < 8.822 AND interview > 8.744 AND evening_gown > 9.333 |
### Instruction:
CREATE TABLE table_2071644_1 (
moment_of_inertia_in_torsion__j___cm_4__ VARCHAR,
beam_height__mm_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=
### Respons... | SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120 |
### Instruction:
CREATE TABLE table_15783 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week was the game held at Kingdome on Oc... | SELECT MIN("Week") FROM table_15783 WHERE "Game site" = 'kingdome' AND "Date" = 'october 13, 1991' |
### Instruction:
CREATE TABLE table_52088 (
"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 big was the crowd in a game... | SELECT COUNT("Crowd") FROM table_52088 WHERE "Home team score" = '18.19 (127)' |
### Instruction:
CREATE TABLE table_77364 (
"Province" text,
"Membership" real,
"Population" real,
"% LDS" text,
"Branches" real,
"Total Congregations" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of population when the membersh... | SELECT SUM("Population") FROM table_77364 WHERE "Membership" = '51,439' AND "Branches" < '40' |
### Instruction:
CREATE TABLE table_69748 (
"Year" text,
"Team" text,
"Tackles" text,
"Solo" real,
"Sacks" real,
"INT YDS" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for lowest Sacks, when the Team is New Orleans Saints, an... | SELECT MIN("Sacks") FROM table_69748 WHERE "Team" = 'new orleans saints' AND "Tackles" = '132' |
### Instruction:
CREATE TABLE table_14010 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronze medals did the nation have that had less than 3 silver, 5 g... | SELECT SUM("Bronze") FROM table_14010 WHERE "Silver" < '3' AND "Rank" < '31' AND "Gold" = '5' |
### Instruction:
CREATE TABLE table_28051 (
"Episode no." real,
"Airdate" text,
"Dave Viewers" real,
"Dave Rank" real,
"Rank (cable)" real,
"Dave ja vu Viewers" real,
"Total viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episo... | SELECT MIN("Episode no.") FROM table_28051 WHERE "Airdate" = '18 October 2012' |
### Instruction:
CREATE TABLE table_58767 (
"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 is the total amount of money that has a t2 place, is from the... | SELECT COUNT("Money ( $ )") FROM table_58767 WHERE "Place" = 't2' AND "Country" = 'united states' AND "Player" = 'leo diegel' |
### Instruction:
CREATE TABLE table_62102 (
"Club" text,
"Season's Last Head Coach" text,
"City" text,
"Stadium" text,
"2004-2005 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the stadium for the team that was 6th in the liga in the... | SELECT "Stadium" FROM table_62102 WHERE "2004-2005 season" = '6th in the liga' |
### Instruction:
CREATE TABLE table_60204 (
"Benalla DFL" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Byes" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Losses, when Wins is '16', and when Again... | SELECT COUNT("Losses") FROM table_60204 WHERE "Wins" = '16' AND "Against" < '772' |
### Instruction:
CREATE TABLE table_30972 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT COUNT("No. in season") FROM table_30972 WHERE "No. in series" = '122' |
### Instruction:
CREATE TABLE table_31689 (
"Place" real,
"Title" text,
"Units sold in Japan" text,
"Units sold in the UK" text,
"Units sold in the US" text,
"Total units sold" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many units were s... | SELECT "Units sold in the US" FROM table_31689 WHERE "Units sold in Japan" = '346,000' |
### Instruction:
CREATE TABLE table_203_7 (
id number,
"pos." number,
"artist" text,
"single" text,
"year" number,
"sales" number,
"peak" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many more sales did elton john have than lou bega ... | SELECT (SELECT "sales" FROM table_203_7 WHERE "artist" = 'elton john') - (SELECT "sales" FROM table_203_7 WHERE "artist" = 'lou bega') |
### Instruction:
CREATE TABLE table_31623 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played men's doubles when gao ling huang sui played wom... | SELECT "Men's doubles" FROM table_31623 WHERE "Women's doubles" = 'gao ling huang sui' AND "Year" = '2007' |
### Instruction:
CREATE TABLE table_79640 (
"Round" real,
"Date" text,
"Home Team" text,
"Away Team" text,
"Attendance" real,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least round for the game played at Members Equity ... | SELECT MIN("Round") FROM table_79640 WHERE "Stadium" = 'members equity stadium' AND "Attendance" < '12,581' |
### Instruction:
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following question... | SELECT cname FROM college WHERE enr > (SELECT MAX(enr) FROM college WHERE state = 'FL') |
### Instruction:
CREATE TABLE table_78521 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losses did the team with 22 goal... | SELECT COUNT("Losses") FROM table_78521 WHERE "Goals For" = '22' AND "Games Played" > '8' |
### Instruction:
CREATE TABLE table_203_413 (
id number,
"rank" text,
"city" text,
"population" number,
"area\n(km2)" number,
"density\n(inhabitants/km2)" number,
"altitude\n(mslm)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many c... | SELECT COUNT("rank") FROM table_203_413 WHERE "density\n(inhabitants/km2)" > 400 |
### Instruction:
CREATE TABLE table_47496 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT AVG("Goals Against") FROM table_47496 WHERE "Played" > '42' |
### Instruction:
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- U... | SELECT allergytype, COUNT(*) FROM allergy_type GROUP BY allergytype |
### Instruction:
CREATE TABLE table_52402 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis did Aguri Suzuki drive with an e... | SELECT "Chassis" FROM table_52402 WHERE "Entrant" = 'larrousse f1' AND "Driver" = 'aguri suzuki' |
### Instruction:
CREATE TABLE table_16492 (
"#" real,
"Episode" text,
"Air Date" text,
"Rating" text,
"Share" real,
"18\u201349 (Rating/Share)" text,
"Viewers (m)" text,
"Weekly Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "Air Date" FROM table_16492 WHERE "Episode" = 'Blowback' |
### Instruction:
CREATE TABLE table_203_461 (
id number,
"dvd title" text,
"discs" number,
"year" text,
"no. of ep." number,
"dvd release\nregion 2" text,
"dvd release\nregion 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- total number of... | SELECT SUM("no. of ep.") FROM table_203_461 WHERE "dvd release\nregion 2" = 2007 |
### Instruction:
CREATE TABLE table_49057 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" real,
"To par" text,
"Margin of victory" text,
"Purse ( US $ )" real,
"Winner's share" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT SUM("Purse ( US $ )") FROM table_49057 WHERE "Country" = 'sweden' |
### Instruction:
CREATE TABLE table_69385 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Total, when the Name is Simon Gillett Category:Art... | SELECT AVG("Total") FROM table_69385 WHERE "Name" = 'simon gillett category:articles with hcards' AND "Other" > '3' |
### Instruction:
CREATE TABLE table_61725 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ends ... | SELECT "Ends" FROM table_61725 WHERE "Transfer fee" = 'free' AND "Moving from" = 'middlesbrough' |
### Instruction:
CREATE TABLE table_16196 (
"Date" text,
"Opponent" text,
"Home / Away" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "Score" FROM table_16196 WHERE "Record" = '6-9' |
### Instruction:
CREATE TABLE table_55231 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team's score ... | SELECT "Away team score" FROM table_55231 WHERE "Home team score" = '16.19 (115)' |
### Instruction:
CREATE TABLE table_21329 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Record" FROM table_21329 WHERE "High assists" = 'Canty (6)' |
### Instruction:
CREATE TABLE table_16723 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Fastest Lap" FROM table_16723 WHERE "Pole Position" = 'Gilles Villeneuve' |
### Instruction:
CREATE TABLE table_63985 (
"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.
-- What is the lowest points for a time/retired of +30.7 secs, and laps s... | SELECT MIN("Points") FROM table_63985 WHERE "Time/Retired" = '+30.7 secs' AND "Laps" < '165' |
### Instruction:
CREATE TABLE table_77039 (
"Year" text,
"Total matches" real,
"Total W-L-H" text,
"Points won" real,
"Points %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Points won that has the Total matches of 4, an... | SELECT MIN("Points won") FROM table_77039 WHERE "Total matches" = '4' AND "Total W-L-H" = '4-0-0' |
### Instruction:
CREATE TABLE table_6894 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Played when ... | SELECT SUM("Played") FROM table_6894 WHERE "Drawn" < '2' AND "Against" > '29' |
### Instruction:
CREATE TABLE table_23631 (
"Candidate" text,
"Office" text,
"Home state" text,
"Popular vote" real,
"States \u2013 first place" real,
"States \u2013 second place" real,
"States \u2013 third place" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Office" FROM table_23631 WHERE "Candidate" = 'Jon Huntsman' |
### Instruction:
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- U... | SELECT stuid FROM student EXCEPT SELECT stuid FROM has_allergy |
### Instruction:
CREATE TABLE table_62891 (
"Name" text,
"Tests" real,
"Club" text,
"Career caps" real,
"Tour Apps" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name has tour Apps larger than 7, tests larger than 4, and a... | SELECT "Name" FROM table_62891 WHERE "Tour Apps" > '7' AND "Tests" > '4' AND "Career caps" = '20' |
### Instruction:
CREATE TABLE table_79433 (
"Rank" real,
"Attendance" real,
"Opponent" text,
"Result" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the rank for February 11, 2012 with less than 18,735 in attendance?
### Respon... | SELECT AVG("Rank") FROM table_79433 WHERE "Date" = 'february 11, 2012' AND "Attendance" < '18,735' |
### Instruction:
CREATE TABLE table_50906 (
"Acharya Number" real,
"Name of Acharya" text,
"Born on" text,
"Became Acharya on" text,
"Death" text,
"Term" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the term of acharya shree vasudevpra... | SELECT "Term" FROM table_50906 WHERE "Name of Acharya" = 'acharya shree vasudevprasadji maharaj' |
### Instruction:
CREATE TABLE table_24439 (
"Day" text,
"Stage" text,
"Time (CET)" text,
"Name" text,
"Length" text,
"Winner" text,
"Time" text,
"Avg. spd." text,
"Rally leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is e... | SELECT "Name" FROM table_24439 WHERE "Time (CET)" = '09:58' |
### Instruction:
CREATE TABLE table_25182 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Regular Season Winner" FROM table_25182 WHERE "Tournament Winner" = 'Arkansas-Pine Bluff' |
### Instruction:
CREATE TABLE table_203_873 (
id number,
"model name" text,
"length" text,
"width" text,
"height" text,
"riders" number,
"capacity" number,
"description" text,
"portable" text,
"notes" number
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT COUNT(DISTINCT ("model name")) FROM table_203_873 WHERE "capacity" = 600 |
### Instruction:
CREATE TABLE table_57746 (
"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.
-- If the Away team score was 15.2... | SELECT "Home team" FROM table_57746 WHERE "Away team score" = '15.20 (110)' |
### Instruction:
CREATE TABLE table_12290 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game wi... | SELECT "Score" FROM table_12290 WHERE "Points" = '22' AND "Opponent" = 'capitals' |
### Instruction:
CREATE TABLE table_8799 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During what wicket were Mahela J... | SELECT "Wicket" FROM table_8799 WHERE "Batting partners" = 'mahela jayawardene and thilan samaraweera' |
### Instruction:
CREATE TABLE table_26009 (
"Pos" real,
"Constructor" text,
"Chassis" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Power stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT MIN("Pos") FROM table_26009 WHERE "Finishes" = '10' |
### Instruction:
CREATE TABLE table_76211 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many races di... | SELECT SUM("Races") FROM table_76211 WHERE "Series" = 'formula three euroseries' AND "Team" = 'signature' |
### Instruction:
CREATE TABLE table_name_39 (
played INTEGER,
losses VARCHAR,
goals_for VARCHAR,
goals_against VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played has Goals against larger than 34, and Wins smaller than 12, a... | SELECT AVG(played) FROM table_name_39 WHERE goals_against > 34 AND wins < 12 AND goals_for < 50 AND losses > 15 |
### Instruction:
CREATE TABLE film_market_estimation (
market_id VARCHAR
)
CREATE TABLE film (
title VARCHAR,
director VARCHAR,
film_id VARCHAR,
country VARCHAR
)
CREATE TABLE market (
Market_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT title, director FROM film WHERE NOT film_id IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.market_id WHERE country = 'China') |
### Instruction:
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
-- Using valid SQ... | SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result ORDER BY Result DESC |
### Instruction:
CREATE TABLE table_name_7 (
administrative_panel INTEGER,
labour_panel VARCHAR,
agricultural_panel VARCHAR,
industrial_and_commercial_panel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many are on the administrative panel with ... | SELECT AVG(administrative_panel) FROM table_name_7 WHERE agricultural_panel < 11 AND industrial_and_commercial_panel = 3 AND labour_panel < 4 |
### Instruction:
CREATE TABLE table_64018 (
"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 average number of golds for teams with 1 bronze, less than 3 si... | SELECT AVG("Gold") FROM table_64018 WHERE "Bronze" = '1' AND "Total" > '2' AND "Silver" < '3' |
### Instruction:
CREATE TABLE table_2295 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directedby" text,
"Writtenby" text,
"Originalairdate" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT MIN("No. in season") FROM table_2295 WHERE "Directedby" = 'Karen Gaviola' |
### Instruction:
CREATE TABLE table_20065 (
"Name" text,
"Year" real,
"Landfall" text,
"NHC Advisory Number" text,
"V(mph)" real,
"R(miles)" real,
"Saffir-Simpson Category" real,
"CHI" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ... | SELECT MAX("Saffir-Simpson Category") FROM table_20065 |
### Instruction:
CREATE TABLE table_13666 (
"Driver" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of wins associated with 1 p... | SELECT "Wins" FROM table_13666 WHERE "Finishes" < '7' AND "Starts" > '1' AND "Points" = '1' |
### Instruction:
CREATE TABLE table_23721 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT COUNT("Player") FROM table_23721 WHERE "180s" = '6' |
### Instruction:
CREATE TABLE table_39694 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of weeks where the venue was memorial stadium and ... | SELECT COUNT("Week") FROM table_39694 WHERE "Venue" = 'memorial stadium' AND "Attendance" < '41,252' |
### Instruction:
CREATE TABLE table_30166 (
"Series episode" real,
"Season episode" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Season episode" FROM table_30166 WHERE "U.S. viewers (in million)" = '5.68' |
### Instruction:
CREATE TABLE table_203_484 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- allan fraser was elected how many years before frank crean ?
... | SELECT ABS((SELECT "first elected" FROM table_203_484 WHERE "member" = 'allan fraser') - (SELECT "first elected" FROM table_203_484 WHERE "member" = 'frank crean')) |
### Instruction:
CREATE TABLE table_2849 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Record" FROM table_2849 WHERE "Location Attendance" = 'Arco Arena 17361' |
### Instruction:
CREATE TABLE table_23677 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"Television order" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Ho... | SELECT COUNT("No.") FROM table_23677 WHERE "Directed by" = 'Ben Jones' AND "Written by" = 'Paul Dini' |
### Instruction:
CREATE TABLE table_59570 (
"Club" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Against has Losses larger than 10, and Wins smaller than 4, and a Club of dunolly?
###... | SELECT MIN("Against") FROM table_59570 WHERE "Losses" > '10' AND "Wins" < '4' AND "Club" = 'dunolly' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY COUNT(Class) |
### Instruction:
CREATE TABLE table_9581 (
"Year" real,
"Lijsttrekker" text,
"Fractievoorzitter" text,
"Cabinet" text,
"Chair" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Lijsttrekker, when Year is after 1990, and when Chair is 'Ingrid Va... | SELECT "Lijsttrekker" FROM table_9581 WHERE "Year" > '1990' AND "Chair" = 'ingrid van engelshoven' |
### Instruction:
CREATE TABLE table_29860 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High points" FROM table_29860 WHERE "Score" = 'L 110–112 (OT)' |
### Instruction:
CREATE TABLE Ref_Service_Types (
Service_Type_Description VARCHAR,
Service_Type_Code VARCHAR
)
CREATE TABLE Services (
Service_Type_Code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the description and code of the type of serv... | SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_17574 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is prothrombin time long when thrombopla... | SELECT "Prothrombin time" FROM table_17574 WHERE "Bleeding time" = 'Prolonged' AND "Partial thromboplastin time" = 'Prolonged' |
### Instruction:
CREATE TABLE table_34742 (
"Year" text,
"Regular Season Champion(s)" text,
"Record" text,
"Tournament Champion" text,
"Tournament venue" text,
"Tournament city" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Tournament ven... | SELECT "Tournament venue" FROM table_34742 WHERE "Tournament Champion" = 'duke' AND "Record" = '15–1' |
### Instruction:
CREATE TABLE table_63914 (
"Year" text,
"Total Support and Revenue" text,
"Total Expenses" text,
"Increase in Net Assets" text,
"Net Assets at End of Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What net assets at end of yea... | SELECT "Net Assets at End of Year" FROM table_63914 WHERE "Increase in Net Assets" = '$6,310,964' |
### Instruction:
CREATE TABLE table_203_679 (
id number,
"part" text,
"number" text,
"first public release date (first edition)" number,
"latest public release date (edition)" number,
"latest amendment" text,
"title" text,
"description" text
)
-- Using valid SQLite, answer the followin... | SELECT COUNT("part") FROM table_203_679 WHERE "latest amendment" < 2010 |
### Instruction:
CREATE TABLE table_204_936 (
id number,
"week" number,
"opponent" text,
"result" text,
"game site" text,
"tv" text,
"time" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the most poin... | SELECT "opponent" FROM table_204_936 ORDER BY "result" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_40129 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Socialist ticket" text,
"Prohibition ticket" text,
"Progressive ticket" text,
"Independence League ticket" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Republican ticket" FROM table_40129 WHERE "Progressive ticket" = 'frank h. hiscock' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.