instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_59421 (
"Geelong FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average against of Leopold with more than 11 wins?
### Re... | SELECT AVG("Against") FROM table_59421 WHERE "Geelong FL" = 'leopold' AND "Wins" > '11' |
### Instruction:
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- U... | SELECT COUNT(*) FROM has_allergy WHERE allergy = "Cat" |
### Instruction:
CREATE TABLE table_18873 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Score") FROM table_18873 WHERE "Date" = 'January 3' |
### Instruction:
CREATE TABLE table_3116 (
"Venue" text,
"Hosted" real,
"Average" real,
"Highest" real,
"Lowest" real,
"Total" real,
"Last Year" text,
"Up/Down" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum average a... | SELECT MAX("Average") FROM table_3116 WHERE "Total" = '221902' |
### Instruction:
CREATE TABLE table_203_17 (
id number,
"name" text,
"date of death" text,
"ceremony" text,
"year" text,
"academy award" text,
"film" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- beauty and the beast won ... | SELECT COUNT(DISTINCT "academy award") FROM table_203_17 WHERE "film" = 'beauty and the beast' |
### Instruction:
CREATE TABLE table_16824 (
"Model name" text,
"Power (ps)" real,
"Torque (Nm@rpm)" text,
"Displacement (cm\u00b3)" real,
"Engine code" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the model name with eng... | SELECT "Model name" FROM table_16824 WHERE "Engine code" = 'B5254 T4' |
### Instruction:
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Count the number of stude... | SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA" |
### Instruction:
CREATE TABLE table_203_323 (
id number,
"city" text,
"country" text,
"airport" text,
"begin" number,
"end" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which destination city became available the same year as edinburgh , uk ... | SELECT "city" FROM table_203_323 WHERE "city" <> 'edinburgh' AND "begin" = (SELECT "begin" FROM table_203_323 WHERE "city" = 'edinburgh') |
### Instruction:
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
-- Using valid SQLite, answer the following q... | SELECT Name, Age FROM editor ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_13506 (
"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 the Heat of the 34 Rank swimmer with a Time of 49.49 or less?
###... | SELECT AVG("Heat") FROM table_13506 WHERE "Rank" = '34' AND "Time" < '49.49' |
### Instruction:
CREATE TABLE table_69293 (
"Island" text,
"Group" text,
"Area ( ha )" text,
"Population" text,
"Height (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What group on the island of Faray has a Height (m) of 32 and a Population of ... | SELECT "Group" FROM table_69293 WHERE "Height (m)" = '32' AND "Population" = '0' AND "Island" = 'faray' |
### Instruction:
CREATE TABLE table_14103 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was picked before 13, in a P position, and is from Georgia Tech?
##... | SELECT "Player" FROM table_14103 WHERE "Pick" < '13' AND "Position" = 'p' AND "Hometown/School" = 'georgia tech' |
### Instruction:
CREATE TABLE table_203_823 (
id number,
"model name" text,
"date" text,
"type" text,
"thrust (kg) / power (eshp)" text,
"fitted to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what model is listed next after tr-2 ?
### Resp... | SELECT "model name" FROM table_203_823 WHERE id = (SELECT id FROM table_203_823 WHERE "model name" = 'tr-2') + 1 |
### Instruction:
CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what lord of the rings game was previously released before lego ... | SELECT "title" FROM table_204_398 WHERE id = (SELECT id FROM table_204_398 WHERE "title" = 'lego the lord of the rings') - 1 |
### Instruction:
CREATE TABLE table_36131 (
"Year" real,
"Electors" real,
"Votes" text,
"Share of votes" text,
"Candidate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the share of votes when there were more than 56 electors and the year ... | SELECT "Share of votes" FROM table_36131 WHERE "Electors" > '56' AND "Year" > '1950' |
### Instruction:
CREATE TABLE table_10857 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Race" FROM table_10857 WHERE "Date" = '15 june' |
### Instruction:
CREATE TABLE table_41444 (
"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 "Score" FROM table_41444 WHERE "Date" = 'march 12' |
### Instruction:
CREATE TABLE table_40165 (
"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 "Score" FROM table_40165 WHERE "Date" = 'april 8' |
### Instruction:
CREATE TABLE table_56655 (
"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 score for the home... | SELECT "Home team score" FROM table_56655 WHERE "Venue" = 'brunswick street oval' |
### Instruction:
CREATE TABLE table_46676 (
"Rank" real,
"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 gold medals the netherlands got when they had... | SELECT AVG("Gold") FROM table_46676 WHERE "Nation" = 'netherlands' AND "Bronze" > '4' |
### Instruction:
CREATE TABLE table_49082 (
"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.
-- Which Visitor has a Decision of osgood, and a Dat... | SELECT "Visitor" FROM table_49082 WHERE "Decision" = 'osgood' AND "Date" = 'february 15' |
### Instruction:
CREATE TABLE table_62380 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"NHL team" text,
"Team from" text,
"League from" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Pick # smalle... | SELECT "Position" FROM table_62380 WHERE "Pick #" < '26' AND "Player" = 'jack campbell' |
### Instruction:
CREATE TABLE table_2890 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Directed by" FROM table_2890 WHERE "Production code" = '414' |
### Instruction:
CREATE TABLE table_14555 (
"Opponent" text,
"OVERALL" text,
"HOME" text,
"AWAY" text,
"PLYFF" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away team has a playoff record of (0-0) and played against Sioux City Bandits?
### ... | SELECT "AWAY" FROM table_14555 WHERE "PLYFF" = '(0-0)' AND "Opponent" = 'sioux city bandits' |
### Instruction:
CREATE TABLE table_3891 (
"Model - Computer name" text,
"CPU type" text,
"No. of processors" text,
"Period of operation" text,
"Maximum peak performance ( Teraflops )" text,
"Use" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- N... | SELECT "No. of processors" FROM table_3891 WHERE "CPU type" = 'NEC SX-4 vector processor' |
### Instruction:
CREATE TABLE table_40590 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Date" text,
"Round" real,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Round, when ... | SELECT MAX("Round") FROM table_40590 WHERE "Opponent" = 'junior pitbull' |
### Instruction:
CREATE TABLE table_204_117 (
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.
-- they placed third in 2003 . when did they pl... | SELECT "season" FROM table_204_117 WHERE "position" = 3 AND "season" < 2003 ORDER BY "season" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_56455 (
"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.
-- Which away team scored 18.11 (1... | SELECT "Away team" FROM table_56455 WHERE "Away team score" = '18.11 (119)' |
### Instruction:
CREATE TABLE table_5465 (
"Season" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which the Fastest Lap has a Season of 2009 and Poles smaller than 0?... | SELECT MAX("Fastest Laps") FROM table_5465 WHERE "Season" = '2009' AND "Poles" < '0' |
### Instruction:
CREATE TABLE table_2342 (
"English title" text,
"Russian title" text,
"Published in Russian" text,
"Published in English" text,
"Type of work" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when type of work is novel and published i... | SELECT "Published in Russian" FROM table_2342 WHERE "Type of work" = 'novel' AND "Published in English" = '1977' |
### Instruction:
CREATE TABLE table_66931 (
"Stage" text,
"Time (EEST)" 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.
-- What is the Stage, when... | SELECT "Stage" FROM table_66931 WHERE "Rally leader" = 'c. atkinson' |
### Instruction:
CREATE TABLE table_65777 (
"Rank" real,
"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 Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4?
### ... | SELECT COUNT("Silver") FROM table_65777 WHERE "Bronze" > '1' AND "Gold" = '0' AND "Rank" < '4' |
### Instruction:
CREATE TABLE table_77067 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week was the attendance smaller than 22,204 on December 8, 1962?
### Response:
| SELECT SUM("Week") FROM table_77067 WHERE "Attendance" < '22,204' AND "Date" = 'december 8, 1962' |
### Instruction:
CREATE TABLE table_22247 (
"Name" text,
"Notability" text,
"Reason for Seeking Refuge" text,
"Country" text,
"City" text,
"Missions Country" text,
"Start Date" text,
"End Date" text,
"Resolution" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "City" FROM table_22247 WHERE "Missions Country" = 'Australia' |
### Instruction:
CREATE TABLE table_74832 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has United States as Nationality, forward a... | SELECT "Player" FROM table_74832 WHERE "Nationality" = 'united states' AND "Position" = 'forward' AND "Round" > '5' |
### Instruction:
CREATE TABLE table_58051 (
"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 score when th... | SELECT "Away team score" FROM table_58051 WHERE "Venue" = 'brunswick street oval' |
### Instruction:
CREATE TABLE table_54431 (
"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 1 February 1982 birthday and more than 16 caps?
... | SELECT "Player" FROM table_54431 WHERE "Caps" > '16' AND "Date of Birth (Age)" = '1 february 1982' |
### Instruction:
CREATE TABLE table_24353141_1 (
original_3rd_us_tour_cast VARCHAR,
original_1st_us_tour_cast VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was in the original 3rd us tour cast while scott j. campbell was in the original 1st us tour cast... | SELECT original_3rd_us_tour_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Scott J. Campbell" |
### Instruction:
CREATE TABLE table_2984 (
"Member State" text,
"Population in thousands" text,
"Population % of EU" text,
"Area km 2" real,
"Area % of EU" text,
"Pop. density People/km 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ... | SELECT COUNT("Pop. density People/km 2") FROM table_2984 WHERE "Member State" = 'Czech Republic' |
### Instruction:
CREATE TABLE table_1346118_5 (
party VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic
### Re... | SELECT COUNT(party) FROM table_1346118_5 WHERE candidates = "Henry E. Barbour (R) 52.1% Henry Hawson (D) 47.9%" |
### Instruction:
CREATE TABLE table_28441 (
"Name" text,
"Original Club" text,
"Stadium" text,
"City" text,
"Country" text,
"Sport" text,
"Founded" real,
"Reason for foundation with source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT COUNT("Founded") FROM table_28441 WHERE "Stadium" = 'Westfalenstadion' |
### Instruction:
CREATE TABLE table_name_76 (
trans_2 VARCHAR,
swim__15km_ VARCHAR,
run__10km_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2?
### Response:
| SELECT trans_2 FROM table_name_76 WHERE swim__15km_ = "18:55" AND run__10km_ = "32:37" |
### Instruction:
CREATE TABLE table_25819 (
"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 "Score" FROM table_25819 WHERE "Game" > '29.0' |
### Instruction:
CREATE TABLE table_63602 (
"Medal count" real,
"Date" text,
"Athlete" text,
"Nation" text,
"Sport" text,
"Record medal event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nation has paavo nurmi as the athlete, with a meda... | SELECT "Nation" FROM table_63602 WHERE "Athlete" = 'paavo nurmi' AND "Medal count" < '12' |
### Instruction:
CREATE TABLE table_35718 (
"Rocket" text,
"Country" text,
"Family" text,
"Launches" real,
"Successes" real,
"Failures" real,
"Partial failures" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of launches with ... | SELECT SUM("Launches") FROM table_35718 WHERE "Rocket" = 'long march 3' AND "Failures" > '0' |
### Instruction:
CREATE TABLE table_46729 (
"Model" text,
"Memory ( RAM )" text,
"Storage ( flash )" text,
"Operating system version" text,
"Memory card" text,
"Weight, dimensions" text,
"Retail availability" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Memory ( RAM )" FROM table_46729 WHERE "Operating system version" = 'maemo 5' |
### Instruction:
CREATE TABLE table_203_412 (
id number,
"school" text,
"conference" text,
"record (conference)" text,
"head coach" text,
"cws appearances" text,
"cws best finish" text,
"cws record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "cws appearances" FROM table_203_412 WHERE "school" = 'oklahoma state' |
### Instruction:
CREATE TABLE table_72850 (
"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_72850 WHERE "Date" = 'January 6' |
### Instruction:
CREATE TABLE table_49733 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College/Junior/Club Team (league) does Matthew Bar... | SELECT "College/Junior/Club Team (League)" FROM table_49733 WHERE "Player" = 'matthew bartkowski' |
### Instruction:
CREATE TABLE table_35480 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency MHz has an ERP W larger than 4, and a Call sign of w2... | SELECT "Frequency MHz" FROM table_35480 WHERE "ERP W" > '4' AND "Call sign" = 'w218ap' |
### Instruction:
CREATE TABLE table_44374 (
"Solvent" text,
"Chemical Formula" text,
"Boiling point" text,
"Dielectric constant" text,
"Density" text,
"Dipole moment ( D )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What solvent has a boilin... | SELECT "Solvent" FROM table_44374 WHERE "Boiling point" = '100–103 °c' |
### Instruction:
CREATE TABLE table_61437 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest draft after round 2, is from the United States and has picked less t... | SELECT MAX("Draft") FROM table_61437 WHERE "Round" > '2' AND "Nationality" = 'united states' AND "Pick" < '113' |
### Instruction:
CREATE TABLE table_7519 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest heat for Ihor Bodrov when the mark is 6.76 and the lane is less than 1?
###... | SELECT MAX("Heat") FROM table_7519 WHERE "Mark" = '6.76' AND "Name" = 'ihor bodrov' AND "Lane" < '1' |
### Instruction:
CREATE TABLE table_name_68 (
date VARCHAR,
result VARCHAR,
location VARCHAR,
year VARCHAR,
loser VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants St... | SELECT date FROM table_name_68 WHERE year < 1988 AND loser = "philadelphia eagles" AND location = "giants stadium" AND result = "21-0" |
### Instruction:
CREATE TABLE table_41779 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Set 3 is 17-25?
###... | SELECT "Score" FROM table_41779 WHERE "Set 3" = '17-25' |
### Instruction:
CREATE TABLE table_name_98 (
white_hat VARCHAR,
ullrich VARCHAR,
dakota_mission VARCHAR,
deloria_ VARCHAR,
_boas VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Dakota Mission of t, and a Deloria & Boas of t , and a Ullrich of t h... | SELECT white_hat FROM table_name_98 WHERE dakota_mission = "t" AND deloria_ & _boas = "tʽ" AND ullrich = "tȟ" |
### Instruction:
CREATE TABLE table_358 (
"Launch Vehicle" text,
"Launch date" text,
"Mission" text,
"Institutional authority" text,
"Launch site" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Test Mission: War Heads a... | SELECT "Launch site" FROM table_358 WHERE "Mission" = 'Test Mission: war heads and Missile payload' AND "Results" = 'Partial Failure' |
### Instruction:
CREATE TABLE table_20805 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was ... | SELECT "Original air date" FROM table_20805 WHERE "Title" = 'Beaver''s Pigeons' |
### Instruction:
CREATE TABLE table_name_28 (
venue VARCHAR,
competition VARCHAR,
position VARCHAR,
year VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue did the African Championships have after 2006 with a position of 2n... | SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = "3000 m s'chase" AND position = "2nd" AND competition = "african championships" |
### Instruction:
CREATE TABLE table_13286 (
"Vessel:" text,
"Type:" text,
"Built:" real,
"Owned since:" real,
"Responsible:" text,
"Status:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which one was built in 2006 on the vessel named mf rland?... | SELECT "Responsible:" FROM table_13286 WHERE "Built:" = '2006' AND "Vessel:" = 'mf ørland' |
### Instruction:
CREATE TABLE table_38052 (
"Week" text,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"NFL Recap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Kickoff had a Game Si... | SELECT "Kickoff" FROM table_38052 WHERE "Game Site" = 'fawcett stadium' |
### Instruction:
CREATE TABLE table_73319 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the opponents that led to an outc... | SELECT "Opponents" FROM table_73319 WHERE "Outcome" = 'Winner' AND "Surface" = 'Grass' |
### Instruction:
CREATE TABLE table_35427 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the athlete who was picked before round 9, had an overall draft pick after numb... | SELECT "Player" FROM table_35427 WHERE "Round" < '9' AND "Overall" > '143' AND "Position" = 'db' |
### Instruction:
CREATE TABLE table_58885 (
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Winner, when City / State is 'Mallala , South Australia', and when Team is 'El... | SELECT "Winner" FROM table_58885 WHERE "City / State" = 'mallala , south australia' AND "Team" = 'elfin sports cars' |
### Instruction:
CREATE TABLE table_32468 (
"Date" text,
"Result" text,
"Score" text,
"Stadium" text,
"City" text,
"Crowd" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city had a crowd larger than 11,346 and score of 24-16?
### Response... | SELECT "City" FROM table_32468 WHERE "Crowd" > '11,346' AND "Score" = '24-16' |
### Instruction:
CREATE TABLE table_203_835 (
id number,
"season" text,
"club" text,
"country" text,
"competition" text,
"apps." number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for 1 fc saabrucken how often did he have less ... | SELECT COUNT(*) FROM table_203_835 WHERE "club" = '1. fc saarbrucken' AND "apps." < 20 |
### Instruction:
CREATE TABLE table_44362 (
"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 is the player ho had a To par of +1 and a score of 69-70-72=211 from?
### R... | SELECT "Country" FROM table_44362 WHERE "To par" = '+1' AND "Score" = '69-70-72=211' |
### Instruction:
CREATE TABLE table_46683 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opponents, when Partner is Mervana J... | SELECT "Opponents" FROM table_46683 WHERE "Partner" = 'mervana jugić-salkić' |
### Instruction:
CREATE TABLE table_54940 (
"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 the away team score 1... | SELECT "Venue" FROM table_54940 WHERE "Away team score" = '11.15 (81)' |
### Instruction:
CREATE TABLE table_41455 (
"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 nation has a bronze of 2 with a total less than 5 and rank of 6?
###... | SELECT "Nation" FROM table_41455 WHERE "Bronze" = '2' AND "Total" < '5' AND "Rank" = '6' |
### Instruction:
CREATE TABLE table_25740 (
"Season" text,
"Oberbayern A" text,
"Oberbayern B" text,
"Niederbayern" text,
"Schwaben" text,
"Oberpfalz" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When fc oberau is the oberbayern a what is the ... | SELECT "Oberpfalz" FROM table_25740 WHERE "Oberbayern A" = 'FC Oberau' |
### Instruction:
CREATE TABLE table_22895 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Production code" FROM table_22895 WHERE "Title" = 'Secret Weapons' |
### Instruction:
CREATE TABLE table_27397 (
"Season" text,
"Games" real,
"Won" real,
"Lost" real,
"Tied" real,
"Points" real,
"Goals for" real,
"Goals against" real,
"Standing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ... | SELECT COUNT("Games") FROM table_27397 WHERE "Lost" = '41' |
### Instruction:
CREATE TABLE table_name_62 (
wins INTEGER,
byes VARCHAR,
golden_rivers VARCHAR,
against VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number of wins that had an against greater than 1136 but lo... | SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 2 |
### Instruction:
CREATE TABLE table_40440 (
"Year" real,
"Series" text,
"Winning team" text,
"Losing team" text,
"Score" text,
"Site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest year that the Atlanta Braves won and the St.... | SELECT MAX("Year") FROM table_40440 WHERE "Winning team" = 'atlanta braves' AND "Losing team" = 'st. louis cardinals' |
### Instruction:
CREATE TABLE table_train_170 (
"id" int,
"alt" float,
"hemoglobin_a1c_hba1c" float,
"ast" float,
"allergy_to_peanuts" bool,
"a1c" float,
"bilirubin" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- allergy ... | SELECT * FROM table_train_170 WHERE allergy_to_peanuts = 1 |
### Instruction:
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
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
-- U... | SELECT allergy, COUNT(*) FROM has_allergy GROUP BY allergy |
### Instruction:
CREATE TABLE table_69118 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest roll number of the school in Te pun... | SELECT MAX("Roll") FROM table_69118 WHERE "Decile" > '2' AND "Area" = 'te puna' |
### Instruction:
CREATE TABLE table_207 (
"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 "Pole Position" FROM table_207 WHERE "Race" = 'Belgian Grand Prix' |
### Instruction:
CREATE TABLE table_8735 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Points is 1... | SELECT "Date" FROM table_8735 WHERE "Points" = '13' AND "Location" = 'rbc center' |
### Instruction:
CREATE TABLE table_28721 (
"Monarch" text,
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir; reason" text,
"Ceased to be heir; reason" text,
"Next in succession" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT("Relationship to Monarch") FROM table_28721 WHERE "Monarch" = 'Singu' |
### Instruction:
CREATE TABLE table_28996 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Original air date" FROM table_28996 WHERE "No. in season" = '7' |
### Instruction:
CREATE TABLE table_49802 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the score was 71-71-70-70=282 what was the To par recorded?
... | SELECT "To par" FROM table_49802 WHERE "Score" = '71-71-70-70=282' |
### Instruction:
CREATE TABLE table_77967 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Constructor" FROM table_77967 WHERE "Race" = 'united states grand prix' |
### Instruction:
CREATE TABLE table_68543 (
"2001" text,
"2004" text,
"2009" text,
"2013" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year 2013 with a total of 5, and 5th in 2009?
### Response:
| SELECT "2013" FROM table_68543 WHERE "Total" = '5' AND "2009" = '5th' |
### Instruction:
CREATE TABLE table_58148 (
"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 score of the away ... | SELECT "Away team score" FROM table_58148 WHERE "Venue" = 'glenferrie oval' |
### Instruction:
CREATE TABLE table_name_45 (
result VARCHAR,
man_of_the_match VARCHAR,
competition VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the league/cup competition with the swindon wildcats as the opp... | SELECT result FROM table_name_45 WHERE competition = "league/cup" AND opponent = "swindon wildcats" AND man_of_the_match = "neil liddiard" |
### Instruction:
CREATE TABLE table_3860 (
"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 "Location Attendance" FROM table_3860 WHERE "Record" = '39–7' |
### Instruction:
CREATE TABLE table_56960 (
"Number" real,
"Game" real,
"Date" text,
"Pitcher" text,
"Team" text,
"Inning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which inning were the Minnesota Twins in on 06-07-1961?
### Response:
| SELECT "Inning" FROM table_56960 WHERE "Team" = 'minnesota twins' AND "Date" = '06-07-1961' |
### Instruction:
CREATE TABLE table_33414 (
"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.
-- Who was the home team when the ... | SELECT "Home team score" FROM table_33414 WHERE "Away team score" = '5.9 (39)' |
### 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.
-- how many game... | SELECT COUNT(*) FROM table_204_936 WHERE "attendance" > 70000 |
### Instruction:
CREATE TABLE table_30108346_1 (
troops_per_one_million_population VARCHAR,
troops_per_$1_billion___usd___gdp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of troops per one million being 2.76
### Response:
| SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.76" |
### Instruction:
CREATE TABLE table_name_52 (
to_par VARCHAR,
money___£__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par of the golfer with winnings of 40,850 and a score of 72-74-70-70=286?
### Response:
| SELECT to_par FROM table_name_52 WHERE money___£__ = "40,850" AND score = 72 - 74 - 70 - 70 = 286 |
### Instruction:
CREATE TABLE table_204_945 (
id number,
"episode" number,
"name" text,
"synopsis" text,
"sent home" text,
"highest seller" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was sent home before patrick ?
### Response:
| SELECT "sent home" FROM table_204_945 WHERE "episode" = (SELECT "episode" FROM table_204_945 WHERE "sent home" = 'patrick') - 1 |
### Instruction:
CREATE TABLE table_204_975 (
id number,
"year" number,
"competition" text,
"location" text,
"event" text,
"final-rank" text,
"final-score" number,
"qualifying rank" number,
"qualifying score" number
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT COUNT("event") FROM table_204_975 WHERE "location" = 'beijing' |
### Instruction:
CREATE TABLE table_67743 (
"Season" real,
"Season Premiere Date" text,
"Season Finale Date" text,
"Winner" text,
"1st Runner Up" text,
"2nd Runner Up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won when mahesh manjrekar ... | SELECT "Winner" FROM table_67743 WHERE "2nd Runner Up" = 'mahesh manjrekar' |
### Instruction:
CREATE TABLE table_64051 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of an athlete from Belgium with react greater ... | SELECT MAX("Rank") FROM table_64051 WHERE "Nationality" = 'belgium' AND "React" > '0.162' |
### Instruction:
CREATE TABLE table_26942 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many names correspond to the value 101 ... | SELECT COUNT("Name") FROM table_26942 WHERE "Appearances\u00b9" = '101' |
### Instruction:
CREATE TABLE table_77471 (
"Team" text,
"Athletes" text,
"Run 1" text,
"Run 2" text,
"Run 3" text,
"Run 4" text,
"Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Run 4 has a Run 1 of 1:25.82?
### Response:
| SELECT "Run 4" FROM table_77471 WHERE "Run 1" = '1:25.82' |
### Instruction:
CREATE TABLE table_45457 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player in tight end position in a round below 12 that has a pick grea... | SELECT "Player" FROM table_45457 WHERE "Pick" > '17' AND "Round" < '12' AND "Position" = 'tight end' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.