instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_64062 (
"School" text,
"City" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which City has a School of indianapolis brebeuf?
### Response... | SELECT "City" FROM table_64062 WHERE "School" = 'indianapolis brebeuf' |
### Instruction:
CREATE TABLE table_203_498 (
id number,
"first issued" text,
"design" text,
"slogan" text,
"serial format" text,
"serials issued" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year was the last design ... | SELECT MAX("first issued") FROM table_203_498 |
### Instruction:
CREATE TABLE table_19252 (
"Year (Ceremony)" text,
"Video game" text,
"Publisher(s)" text,
"Platform(s) [A ]" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of publishers for flushed away
### R... | SELECT COUNT("Publisher(s)") FROM table_19252 WHERE "Video game" = 'Flushed Away' |
### Instruction:
CREATE TABLE table_3015 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Sport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the school that is cougars
... | SELECT "Institution" FROM table_3015 WHERE "Nickname" = 'Cougars' |
### Instruction:
CREATE TABLE table_44175 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the country when the score is 72-68-67=207?
### Response:
| SELECT "Country" FROM table_44175 WHERE "Score" = '72-68-67=207' |
### Instruction:
CREATE TABLE table_40339 (
"Venue" text,
"Location" text,
"Capacity" text,
"Owner" text,
"Environment" text,
"Year Built" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was John m. Belk Arena built?
### Response:
| SELECT "Year Built" FROM table_40339 WHERE "Venue" = 'john m. belk arena' |
### Instruction:
CREATE TABLE table_6816 (
"Sport" text,
"Record" text,
"Nation \u2013 athlete(s)" text,
"Date" text,
"Time (seconds)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the record for a time in seconds smaller than 5.22.
### R... | SELECT "Record" FROM table_6816 WHERE "Time (seconds)" < '5.22' |
### Instruction:
CREATE TABLE table_name_10 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what week was the game on August 24, 1956 played in front of 40,175 fans?
### Response:
| SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175 |
### Instruction:
CREATE TABLE table_61859 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHICH Date has a Venue of lancaster park , christchurch?
### Response:
| SELECT "Date" FROM table_61859 WHERE "Venue" = 'lancaster park , christchurch' |
### Instruction:
CREATE TABLE table_38580 (
"Designation HD" text,
"Constellation" text,
"Date sent" text,
"Arrival date" text,
"Message" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What message has hd 186408 as a designation HD?
### Response:
| SELECT "Message" FROM table_38580 WHERE "Designation HD" = 'hd 186408' |
### Instruction:
CREATE TABLE table_8373 (
"Scorer" text,
"Club" text,
"League goals" text,
"FA Cup goals" real,
"League Cup goals" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many FA Cup goals does George Yardley have?
##... | SELECT "FA Cup goals" FROM table_8373 WHERE "Scorer" = 'george yardley' |
### Instruction:
CREATE TABLE table_70279 (
"Start Date/Time" text,
"Duration" text,
"End Time" text,
"Spacecraft" text,
"Crew" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the duration of the Expedition 20 ISS Zvezda?
### Response:
| SELECT "Duration" FROM table_70279 WHERE "Spacecraft" = 'expedition 20 iss zvezda' |
### Instruction:
CREATE TABLE table_51470 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended when the record was broken with 47 63?
###... | SELECT "Attendance" FROM table_51470 WHERE "Record" = '47–63' |
### Instruction:
CREATE TABLE table_75300 (
"Year" real,
"Pick" real,
"Player name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick was mario williams before 2006?
### Response:
| SELECT SUM("Pick") FROM table_75300 WHERE "Player name" = 'mario williams' AND "Year" < '2006' |
### Instruction:
CREATE TABLE table_61343 (
"Name" text,
"Number" real,
"Position" text,
"Height" text,
"Year" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Guard Kerri Shields Hometown?
### Response:
| SELECT "Hometown" FROM table_61343 WHERE "Position" = 'guard' AND "Name" = 'kerri shields' |
### Instruction:
CREATE TABLE table_32157 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition held the 1st position in 2009?
### Response:
| SELECT "Competition" FROM table_32157 WHERE "Position" = '1st' AND "Year" = '2009' |
### Instruction:
CREATE TABLE table_61040 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Canada's highest round before 1973?
### Response:
| SELECT MAX("Round") FROM table_61040 WHERE "Nationality" = 'canada' AND "Draft" < '1973' |
### Instruction:
CREATE TABLE table_38139 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Decision has a Date of april 25?
### Resp... | SELECT "Decision" FROM table_38139 WHERE "Date" = 'april 25' |
### Instruction:
CREATE TABLE table_203_14 (
id number,
"#" 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 is the total number of wins fo... | SELECT COUNT(*) FROM table_203_14 WHERE "result" = 'win' |
### Instruction:
CREATE TABLE table_10177 (
"Role" text,
"Original Broadway production" text,
"First US National Tour" text,
"Second US National Tour" text,
"Original Italian production" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Original ... | SELECT "Original Broadway production" FROM table_10177 WHERE "First US National Tour" = 'roger bart' |
### Instruction:
CREATE TABLE table_9814 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Place is 'T5', and when Player is 'George Archer'?
### Response:
| SELECT "Score" FROM table_9814 WHERE "Place" = 't5' AND "Player" = 'george archer' |
### Instruction:
CREATE TABLE table_55722 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winning drive of iv grand prix de caen?
##... | SELECT "Winning driver" FROM table_55722 WHERE "Race Name" = 'iv grand prix de caen' |
### Instruction:
CREATE TABLE table_202_276 (
id number,
"year 1958" text,
"title {the rebel" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which role did victor buono play in surfside 6 ?
### Response:
| SELECT "role" FROM table_202_276 WHERE "title {the rebel" = 'surfside 6' |
### Instruction:
CREATE TABLE table_15463188_17 (
school_club_team VARCHAR,
season VARCHAR,
acquisition_via VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the school/club team whose season was in 2012 and were acquired via trade?
### Response:... | SELECT school_club_team FROM table_15463188_17 WHERE season = "2012" AND acquisition_via = "Trade" |
### Instruction:
CREATE TABLE table_203_244 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total riders rode a yamaha bike ?
### Response:
| SELECT COUNT("rider") FROM table_203_244 WHERE "manufacturer" = 'yamaha' |
### Instruction:
CREATE TABLE table_67806 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Attendance that has the Date of april 12?
### R... | SELECT "Attendance" FROM table_67806 WHERE "Date" = 'april 12' |
### Instruction:
CREATE TABLE table_66111 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode has average ratings of 7.4%?
### Response:
| SELECT AVG("Episodes") FROM table_66111 WHERE "Average Ratings" = '7.4%' |
### Instruction:
CREATE TABLE table_1213511_7 (
nhl_team VARCHAR,
college_junior_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nhl team has a college/junior/club team named university of notre dame (ncaa)
### Response:
| SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)" |
### Instruction:
CREATE TABLE table_48612 (
"Round" real,
"Pick" text,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is School/Club Team, when Pick is 9 (via Hamilton)?
### Response:
| SELECT "School/Club Team" FROM table_48612 WHERE "Pick" = '9 (via hamilton)' |
### Instruction:
CREATE TABLE table_name_33 (
province_of_silla VARCHAR,
modern_equivalent VARCHAR,
administrative_district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrati... | SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = "south jeolla" AND administrative_district = "seungju" |
### Instruction:
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following question... | SELECT AVG(enr) FROM college |
### Instruction:
CREATE TABLE table_6394 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest pick from the Furman School that is a round smaller than 8?
### Respon... | SELECT MIN("Pick") FROM table_6394 WHERE "School" = 'furman' AND "Round" < '8' |
### Instruction:
CREATE TABLE table_724 (
"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.
-- who is the incumbent where the district is florida 9?
#... | SELECT "Incumbent" FROM table_724 WHERE "District" = 'Florida 9' |
### Instruction:
CREATE TABLE table_73751 (
"Character" text,
"English version" text,
"Laserdisc edition" text,
"Buena Vista edition" text,
"Special edition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the character where the special editi... | SELECT "Character" FROM table_73751 WHERE "Special edition" = 'Koichi Sakaguchi' |
### Instruction:
CREATE TABLE table_7439 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Attendance with a Date that is november 25, 1965?
### Response:
| SELECT "Attendance" FROM table_7439 WHERE "Date" = 'november 25, 1965' |
### Instruction:
CREATE TABLE table_69934 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on December 17, 1995?
### Response:
| SELECT "Opponent" FROM table_69934 WHERE "Date" = 'december 17, 1995' |
### Instruction:
CREATE TABLE table_45626 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the game where the Cavaliers have a Record of 15-27?
### Response:
| SELECT "Date" FROM table_45626 WHERE "Record" = '15-27' |
### Instruction:
CREATE TABLE table_204_981 (
id number,
"ep#" number,
"title" text,
"broadcast date" text,
"written by" text,
"directed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- total number of episodes written or co written by bill di... | SELECT COUNT("ep#") FROM table_204_981 WHERE "written by" = 'bill dial' |
### Instruction:
CREATE TABLE table_31995 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the date for warsaw 1929
### Response:
| SELECT "Date" FROM table_31995 WHERE "Location" = 'warsaw' AND "Year" = '1929' |
### Instruction:
CREATE TABLE table_72403 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party won in the election in voting district Kent... | SELECT "Party" FROM table_72403 WHERE "District" = 'Kentucky 5' |
### Instruction:
CREATE TABLE table_203_153 (
id number,
"stamp issue date" text,
"stamp set" text,
"#cards" text,
"card set ref" text,
"qty. issued" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which stamp set had the greatest quantity issu... | SELECT "stamp set" FROM table_203_153 ORDER BY "qty. issued" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_23575917_6 (
first_broadcast VARCHAR,
davids_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast?
### Response:
| SELECT first_broadcast FROM table_23575917_6 WHERE davids_team = "David O'Doherty and Katherine Parkinson" |
### Instruction:
CREATE TABLE table_name_25 (
area__km²_ INTEGER,
capital VARCHAR,
population___percentage_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average area that has a Capital of camag ey, with a Population (%) larger than 7.02?
... | SELECT AVG(area__km²_) FROM table_name_25 WHERE capital = "camagüey" AND population___percentage_ > 7.02 |
### Instruction:
CREATE TABLE table_name_29 (
rank INTEGER,
silver VARCHAR,
gold VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of the medal total less than 15, more than 2 bronzes, 0 gold a... | SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 1 |
### Instruction:
CREATE TABLE table_72683 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school did Dwight Howard play for
### R... | SELECT "School/Club Team" FROM table_72683 WHERE "Player" = 'Dwight Howard' |
### Instruction:
CREATE TABLE table_name_2 (
date_of_polling VARCHAR,
liberal VARCHAR,
polling_firm VARCHAR,
green VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date of polling was the Polling Firm forum research with 7 green and less than 3... | SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30 |
### Instruction:
CREATE TABLE table_58387 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launched date of the destroyer completed 1 July 1936?
### Res... | SELECT "Launched" FROM table_58387 WHERE "Completed" = '1 july 1936' |
### Instruction:
CREATE TABLE table_name_77 (
name VARCHAR,
reserved_for___sc___st__none_ VARCHAR,
constituency_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name when the reserved is (sc / st /none) of st, with a constituency number ... | SELECT name FROM table_name_77 WHERE reserved_for___sc___st__none_ = "st" AND constituency_number = "196" |
### Instruction:
CREATE TABLE table_name_48 (
wins INTEGER,
byes VARCHAR,
losses VARCHAR,
mininera_dfl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins for the Caramut team with fewer than 11 losses and fewer than 2 byes?
### Response:
| SELECT MAX(wins) FROM table_name_48 WHERE losses < 11 AND mininera_dfl = "caramut" AND byes < 2 |
### Instruction:
CREATE TABLE table_name_67 (
length__ft_ VARCHAR,
order_year VARCHAR,
manufacturer VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Length (ft.) for a 2008 nfi d40lf?
### Response:
| SELECT length__ft_ FROM table_name_67 WHERE manufacturer = "nfi" AND model = "d40lf" AND order_year = "2008" |
### Instruction:
CREATE TABLE table_name_92 (
date VARCHAR,
city VARCHAR,
type_of_game VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has friendly as the type of game, france as an opponent, and paris, france as the city?
... | SELECT date FROM table_name_92 WHERE type_of_game = "friendly" AND opponent = "france" AND city = "paris, france" |
### Instruction:
CREATE TABLE table_75273 (
"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 score from the winner Keith Clearwater (1)?
... | SELECT "Score" FROM table_75273 WHERE "Winner" = 'keith clearwater (1)' |
### Instruction:
CREATE TABLE table_39331 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is k275av call sign's highest erp w?
### Response:
| SELECT MAX("ERP W") FROM table_39331 WHERE "Call sign" = 'k275av' |
### Instruction:
CREATE TABLE table_61266 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Total, when Finish is 'T47'?
### Response:
| SELECT AVG("Total") FROM table_61266 WHERE "Finish" = 't47' |
### Instruction:
CREATE TABLE table_name_6 (
game INTEGER,
december VARCHAR,
points VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 3... | SELECT AVG(game) FROM table_name_6 WHERE points = 53 AND opponent = "@ minnesota north stars" AND december > 30 |
### Instruction:
CREATE TABLE table_55423 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance of april 17?
### Respon... | SELECT SUM("Attendance") FROM table_55423 WHERE "Date" = 'april 17' |
### Instruction:
CREATE TABLE table_66352 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?
### Response:
| SELECT "Time" FROM table_66352 WHERE "Notes" = 'fa' AND "Rank" < '2' |
### Instruction:
CREATE TABLE table_40000 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Overall for the wide receiver in a round less than 2?
### Respons... | SELECT MIN("Overall") FROM table_40000 WHERE "Position" = 'wide receiver' AND "Round" < '2' |
### Instruction:
CREATE TABLE table_name_69 (
pick VARCHAR,
round VARCHAR,
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's ... | SELECT COUNT(pick) FROM table_name_69 WHERE position = "tackle" AND player = "woody adams" AND round > 22 |
### Instruction:
CREATE TABLE table_60590 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Report has a Winning driver of mario razzauti?
... | SELECT "Report" FROM table_60590 WHERE "Winning driver" = 'mario razzauti' |
### Instruction:
CREATE TABLE table_22826 (
"DMA" real,
"Market" text,
"Station" text,
"Frequency" text,
"Branding" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dma when the format is rhythmic contemporary?
### Res... | SELECT MIN("DMA") FROM table_22826 WHERE "Format" = 'Rhythmic Contemporary' |
### Instruction:
CREATE TABLE table_15739 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built james hunt's car that went 79 laps?
### Response:
| SELECT "Constructor" FROM table_15739 WHERE "Laps" = '79' AND "Driver" = 'james hunt' |
### Instruction:
CREATE TABLE table_64890 (
"Rank" real,
"Name" text,
"Height" text,
"Highest floor" real,
"City" text,
"Primary use" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the building that has a Highest floor larger... | SELECT "Rank" FROM table_64890 WHERE "Highest floor" > '50' |
### Instruction:
CREATE TABLE table_71143 (
"Team" text,
"Manager 1" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the manager with the Hewlett-Packard shirt sponsor?
### Respo... | SELECT "Manager 1" FROM table_71143 WHERE "Shirt sponsor" = 'hewlett-packard' |
### Instruction:
CREATE TABLE table_47826 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest To Par, when Score is '72-73=145'?
### Response:
| SELECT MAX("To par") FROM table_47826 WHERE "Score" = '72-73=145' |
### Instruction:
CREATE TABLE table_name_72 (
season INTEGER,
apps VARCHAR,
country VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which season did Fc Pakhtakor Tashkent represent the country of Uzbekistan with more than 6 apps?
##... | SELECT MAX(season) FROM table_name_72 WHERE country = "uzbekistan" AND team = "fc pakhtakor tashkent" AND apps > 6 |
### Instruction:
CREATE TABLE table_name_26 (
loss INTEGER,
gain VARCHAR,
long VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?
... | SELECT AVG(loss) FROM table_name_26 WHERE long > 12 AND name = "opponents" AND gain > 1751 |
### Instruction:
CREATE TABLE table_203_547 (
id number,
"ship" text,
"built" number,
"in service for cunard" text,
"type" text,
"tonnage" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the year the last intermediate ship was b... | SELECT MAX("built") FROM table_203_547 WHERE "type" = 'intermediate' |
### Instruction:
CREATE TABLE table_204_297 (
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.
-- how many countries had at least 2 total medals ?... | SELECT COUNT("nation") FROM table_204_297 WHERE "total" >= 2 |
### Instruction:
CREATE TABLE table_64170 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Event has a Medal of gold and a Name of barney henricus?
### Response:
| SELECT "Event" FROM table_64170 WHERE "Medal" = 'gold' AND "Name" = 'barney henricus' |
### Instruction:
CREATE TABLE table_name_92 (
extra_points INTEGER,
points VARCHAR,
touchdowns VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller... | SELECT SUM(extra_points) FROM table_name_92 WHERE touchdowns = 1 AND player = "ross kidston" AND points < 5 |
### Instruction:
CREATE TABLE table_18181 (
"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.
-- List all results in elections with Richard Baker as the... | SELECT "Result" FROM table_18181 WHERE "Incumbent" = 'Richard Baker' |
### Instruction:
CREATE TABLE table_21139 (
"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.
-- Where was game 62 played?
#... | SELECT "Location" FROM table_21139 WHERE "Game" = '62' |
### Instruction:
CREATE TABLE customer_address_history (
customer_name VARCHAR,
customer_phone VARCHAR,
customer_id VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_phone VARCHAR,
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history) |
### Instruction:
CREATE TABLE table_38088 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Record of 5 4?
### Respon... | SELECT "Result" FROM table_38088 WHERE "Record" = '5–4' |
### Instruction:
CREATE TABLE table_16439764_1 (
gun VARCHAR,
time_to_ft__m__at_55°__seconds_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What gun has a time to feet ratio of 18.8 at 55 degrees?
### Response:
| SELECT gun FROM table_16439764_1 WHERE time_to_ft__m__at_55°__seconds_ = "18.8" |
### Instruction:
CREATE TABLE table_6307 (
"Res." text,
"Record" text,
"Opponent" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round number of the match with Michael Buell as the opponent... | SELECT "Round" FROM table_6307 WHERE "Opponent" = 'michael buell' |
### Instruction:
CREATE TABLE table_14788 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lineup for washington dc
### Re... | SELECT "Lineup" FROM table_14788 WHERE "Location" = 'washington dc' |
### Instruction:
CREATE TABLE table_name_88 (
week VARCHAR,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks had a game on November 26, 1978, and an attendance higher than 26,248?
### Response:
| SELECT COUNT(week) FROM table_name_88 WHERE date = "november 26, 1978" AND attendance > 26 OFFSET 248 |
### Instruction:
CREATE TABLE table_9535 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue of the game that was played on 23 October 1966?
### Response:
| SELECT "Venue" FROM table_9535 WHERE "Date" = '23 october 1966' |
### Instruction:
CREATE TABLE table_9325 (
"Articulatory class" text,
"Non- stop" text,
"Plain stop" text,
"Aspirated stop" text,
"\"Muddy\" voice" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the Plain stop is , what is the Non- stop?
### Re... | SELECT "Non- stop" FROM table_9325 WHERE "Plain stop" = 'ㄷ' |
### Instruction:
CREATE TABLE table_31364 (
"Position" text,
"Singer" text,
"2nd Evening" text,
"3rd Evening" text,
"4th Evening" text,
"5th Evening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position was serena abrami in?
### Respon... | SELECT "Position" FROM table_31364 WHERE "Singer" = 'Serena Abrami' |
### Instruction:
CREATE TABLE wedding (
church_id VARCHAR,
year VARCHAR
)
CREATE TABLE church (
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all church names except for those that had a wedding in year 2015.
### Response:
| SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 |
### Instruction:
CREATE TABLE table_25304 (
"Country" text,
"Type of Protection" text,
"Maximum Term" text,
"PCT route available" text,
"Conversion from Patent Application" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In Tonga, what is the convers... | SELECT "Conversion from Patent Application" FROM table_25304 WHERE "Country" = 'Tonga' |
### Instruction:
CREATE TABLE table_name_80 (
finals VARCHAR,
total VARCHAR,
conference_finals VARCHAR,
semifinals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Finals that has the Conference Finals smaller than 12, and the Semif... | SELECT finals FROM table_name_80 WHERE conference_finals < 12 AND semifinals = 0 AND total = 3 |
### Instruction:
CREATE TABLE table_2116 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did the Lions join?
### R... | SELECT MIN("Joined") FROM table_2116 WHERE "Nickname" = 'Lions' |
### Instruction:
CREATE TABLE table_41632 (
"Rank" real,
"Location" text,
"Total Passengers" real,
"Annual change" text,
"Capacity in use" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the airport located that has a 98.9% in use capacity?
... | SELECT "Location" FROM table_41632 WHERE "Capacity in use" = '98.9%' |
### Instruction:
CREATE TABLE table_18958648_1 (
overweight__incl_obese__adults VARCHAR,
obesity_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all percentages of overweight or obese adults for obesity rank of 21?
### Response:
| SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obesity_rank = 21 |
### Instruction:
CREATE TABLE table_203_565 (
id number,
"wrestlers" text,
"times" number,
"date" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the date of the only match to occur in sapporo , japan ?
#... | SELECT "date" FROM table_203_565 WHERE "location" = 'sapporo, japan' |
### Instruction:
CREATE TABLE table_12977 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Week 2 has a Week 4 of piret aava?
### Response:
| SELECT "Week 2" FROM table_12977 WHERE "Week 4" = 'piret aava' |
### Instruction:
CREATE TABLE table_60320 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wht did Mark O'Meara place when the to par was +2?
### Response:
| SELECT "Place" FROM table_60320 WHERE "To par" = '+2' AND "Player" = 'mark o''meara' |
### Instruction:
CREATE TABLE table_name_82 (
placings INTEGER,
name VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest placing for marie mcneil / robert mccall, with less than 168.58?
### Response:
| SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58 |
### Instruction:
CREATE TABLE table_34860 (
"Year" real,
"Pick" text,
"Player" text,
"Position" text,
"Country" text,
"Previous team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position was picked for Canada on Pick 8?
### Re... | SELECT "Position" FROM table_34860 WHERE "Country" = 'canada' AND "Pick" = '8' |
### Instruction:
CREATE TABLE table_204_791 (
id number,
"event" text,
"winner" text,
"second" text,
"third" text,
"fourth" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at which event did taylor jensen first win ?
### Response:
| SELECT "event" FROM table_204_791 WHERE "winner" = 'taylor jensen' ORDER BY "event" LIMIT 1 |
### Instruction:
CREATE TABLE table_18301 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome of the election in Pennsylvania 6 ... | SELECT "Result" FROM table_18301 WHERE "District" = 'Pennsylvania 6' |
### Instruction:
CREATE TABLE table_204_71 (
id number,
"rank" number,
"heat" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number of competitors from nigeria .
###... | SELECT COUNT("name") FROM table_204_71 WHERE "nationality" = 'nigeria' |
### Instruction:
CREATE TABLE table_37079 (
"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 is the margin of victory for Nick Price as a runner-up?
... | SELECT "Margin of victory" FROM table_37079 WHERE "Runner(s) up" = 'nick price' |
### Instruction:
CREATE TABLE table_56464 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On February 26, who was the leading scorer?
### Response:
| SELECT "Leading scorer" FROM table_56464 WHERE "Date" = 'february 26' |
### Instruction:
CREATE TABLE table_69230 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title of the race at Oran Park Raceway?
### Resp... | SELECT "Race Title" FROM table_69230 WHERE "Circuit" = 'oran park raceway' |
### Instruction:
CREATE TABLE table_19348 (
"Model" text,
"Year model" text,
"Engine" text,
"Cylinder volume" text,
"Power" text,
"Torque" text,
"Fuel system" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year model for 1.3
### R... | SELECT "Year model" FROM table_19348 WHERE "Model" = '1.3' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.