instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_67250 (
"Institution" text,
"Location" text,
"Nickname" text,
"Current Conference" text,
"Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is NCAA division ii Franklin Pierce University located at?
### Response:
|
SELECT "Location" FROM table_67250 WHERE "Classification" = 'ncaa division ii' AND "Institution" = 'franklin pierce university'
|
### Instruction:
CREATE TABLE table_26170 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on September 20?
### Response:
|
SELECT "Final Score" FROM table_26170 WHERE "Date" = 'September 20'
|
### Instruction:
CREATE TABLE table_name_97 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37?
### Response:
|
SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = "2" AND silver < 37
|
### Instruction:
CREATE TABLE table_35728 (
"Year" real,
"Record" text,
"Seed" text,
"Region" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Results has a Seed #12 and a Year that's smaller than 1996
### Response:
|
SELECT "Results" FROM table_35728 WHERE "Seed" = '#12' AND "Year" < '1996'
|
### Instruction:
CREATE TABLE table_18945 (
"Asset Acquired" text,
"Acquired From" text,
"Date Announced" text,
"Date Completed" text,
"Reported Cost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the reported cost of the asset acquired from Standard & Poor's?
### Response:
|
SELECT "Reported Cost" FROM table_18945 WHERE "Acquired From" = 'Standard & Poor''s'
|
### Instruction:
CREATE TABLE table_26231 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For all players playing at the center, list the height in feet.
### Response:
|
SELECT "Height (f)" FROM table_26231 WHERE "Position" = 'Center'
|
### Instruction:
CREATE TABLE table_204_843 (
id number,
"volume" number,
"year" text,
"names" text,
"articles" number,
"pages" number,
"images" number,
"maps" number,
"number of copies" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for how many years was the encyclopedia printed ?
### Response:
|
SELECT COUNT("year") FROM table_204_843
|
### Instruction:
CREATE TABLE table_19279 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Was there a starter when 3 touchdowns were scored?
### Response:
|
SELECT "Starter" FROM table_19279 WHERE "Touchdowns" = '3'
|
### Instruction:
CREATE TABLE table_204_808 (
id number,
"team" text,
"no" number,
"driver" text,
"class" text,
"chassis" text,
"engine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which engine was used the most by teams this season ?
### Response:
|
SELECT "engine" FROM table_204_808 GROUP BY "engine" ORDER BY COUNT("team") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_23914 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Accreditation" text,
"Founded" real,
"Enrollment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of school is Stratford University?
### Response:
|
SELECT "Type" FROM table_23914 WHERE "School" = 'Stratford University'
|
### Instruction:
CREATE TABLE table_56259 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the grid for Jack Brabham with more than 65 laps?
### Response:
|
SELECT SUM("Grid") FROM table_56259 WHERE "Driver" = 'jack brabham' AND "Laps" > '65'
|
### Instruction:
CREATE TABLE table_7954 (
"Rank" 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 Silver with rank 30 and a Bronze greater than 0
### Response:
|
SELECT AVG("Silver") FROM table_7954 WHERE "Rank" = '30' AND "Bronze" > '0'
|
### Instruction:
CREATE TABLE table_64074 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year Joined" text,
"Previous Conference" text,
"Year Left" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the school when the location is rochester?
### Response:
|
SELECT "School" FROM table_64074 WHERE "Location" = 'rochester'
|
### Instruction:
CREATE TABLE table_31966 (
"Calls" text,
"Frequency" text,
"Branding" text,
"Format" text,
"Timeslot" text,
"Group owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the branding for frequency of 680 khz
### Response:
|
SELECT "Branding" FROM table_31966 WHERE "Frequency" = '680 khz'
|
### Instruction:
CREATE TABLE table_12584173_1 (
population__stanthorpe_ INTEGER,
population__rosenthal_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?
### Response:
|
SELECT MAX(population__stanthorpe_) FROM table_12584173_1 WHERE population__rosenthal_ = 1548
|
### Instruction:
CREATE TABLE table_38579 (
"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.
-- Which constellation has hd 75732 as a destignation HD?
### Response:
|
SELECT "Constellation" FROM table_38579 WHERE "Designation HD" = 'hd 75732'
|
### Instruction:
CREATE TABLE table_47097 (
"Asomtavruli" text,
"Nuskhuri" text,
"Mkhedruli" text,
"Letter name" text,
"Phoneme" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Phoneme symbol for the letter name z n?
### Response:
|
SELECT "Phoneme" FROM table_47097 WHERE "Letter name" = 'zɛn'
|
### Instruction:
CREATE TABLE table_42667 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score with a Hoe that is etobicoke kangaroos?
### Response:
|
SELECT "Score" FROM table_42667 WHERE "Home" = 'etobicoke kangaroos'
|
### Instruction:
CREATE TABLE table_5735 (
"Date" text,
"Course" text,
"Distance" text,
"Race" text,
"Class" text,
"Position" text,
"Jockey" text,
"Odds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what player scored 9/1
### Response:
|
SELECT "Jockey" FROM table_5735 WHERE "Odds" = '9/1'
|
### Instruction:
CREATE TABLE table_204_215 (
id number,
"airline" text,
"destination(s)" text,
"aircraft scheduled" text,
"service date(s)" text,
"comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many destinations does air florida have at this airport ?
### Response:
|
SELECT "destination(s)" FROM table_204_215 WHERE "airline" = 'air florida'
|
### Instruction:
CREATE TABLE table_65104 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer fee for Helguera?
### Response:
|
SELECT "Transfer fee" FROM table_65104 WHERE "Name" = 'helguera'
|
### 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.
-- how many silver medals did venezuela win ?
### Response:
|
SELECT "silver" FROM table_204_800 WHERE "nation" = 'venezuela'
|
### Instruction:
CREATE TABLE table_30556 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team drafted Joakim Persson?
### Response:
|
SELECT "NHL team" FROM table_30556 WHERE "Player" = 'Joakim Persson'
|
### Instruction:
CREATE TABLE table_name_36 (
stolen_ends_against VARCHAR,
blank_ends_f_a VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the stolen ends against for a bank ends f/a of 4/7, and a country of china?
### Response:
|
SELECT stolen_ends_against FROM table_name_36 WHERE blank_ends_f_a = "4/7" AND country = "china"
|
### Instruction:
CREATE TABLE table_33055 (
"Season" real,
"Division" real,
"Tms." real,
"Pos." real,
"FA Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the division in the season with 13 tms and pos smaller than 8?
### Response:
|
SELECT COUNT("Division") FROM table_33055 WHERE "Tms." = '13' AND "Pos." < '8'
|
### Instruction:
CREATE TABLE table_49712 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Mult, when Model Number is Pentium II 450?
### Response:
|
SELECT "Mult." FROM table_49712 WHERE "Model number" = 'pentium ii 450'
|
### Instruction:
CREATE TABLE table_42352 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest number of assists for the second rank when there were less than 2 games?
### Response:
|
SELECT MAX("Assists") FROM table_42352 WHERE "Rank" = '2' AND "Games" < '2'
|
### Instruction:
CREATE TABLE table_39070 (
"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.
-- On what date was the game at Lincoln Financial Field?
### Response:
|
SELECT "Date" FROM table_39070 WHERE "Game site" = 'lincoln financial field'
|
### Instruction:
CREATE TABLE table_10125 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance at the game when the record was 35-46?
### Response:
|
SELECT "Attendance" FROM table_10125 WHERE "Record" = '35-46'
|
### Instruction:
CREATE TABLE table_42585 (
"Ship size" text,
"Cargo" text,
"2004" text,
"2005" text,
"2006" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the cargo value in 2005 for all product carriers?
### Response:
|
SELECT "2005" FROM table_42585 WHERE "Cargo" = 'all product carriers'
|
### Instruction:
CREATE TABLE table_204_662 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the difference in points in week ones match up ?
### Response:
|
SELECT ABS("result" - "result") FROM table_204_662 WHERE "week" = 1
|
### Instruction:
CREATE TABLE table_203_676 (
id number,
"pick #" number,
"cfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team that drafted players in round four had the longest name ?
### Response:
|
SELECT "cfl team" FROM table_203_676 ORDER BY LENGTH("cfl team") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_26903 (
"Team" text,
"Slogan" text,
"Match1" real,
"Match2" real,
"Match3" real,
"Match4" real,
"Match5" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest score of all games for match 2?
### Response:
|
SELECT MIN("Match2") FROM table_26903
|
### Instruction:
CREATE TABLE table_51794 (
"Year" text,
"Team" text,
"Comp" text,
"Long" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has a long of 67?
### Response:
|
SELECT "Team" FROM table_51794 WHERE "Long" = '67'
|
### Instruction:
CREATE TABLE table_name_80 (
winner VARCHAR,
stage VARCHAR,
team_classification VARCHAR,
general_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?
### Response:
|
SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20"
|
### Instruction:
CREATE TABLE table_41351 (
"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.
-- Who is the leading scorer of the Villa De Los Barrios visitor?
### Response:
|
SELECT "Leading scorer" FROM table_41351 WHERE "Visitor" = 'villa de los barrios'
|
### Instruction:
CREATE TABLE table_name_32 (
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During the championship where the winning score was 9 (66-69-73-71=279)?, who was the runner-up?
### Response:
|
SELECT runner_s__up FROM table_name_32 WHERE winning_score = −9(66 - 69 - 73 - 71 = 279)
|
### Instruction:
CREATE TABLE table_16352 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number in series of 'say uncle'?
### Response:
|
SELECT "No. in series" FROM table_16352 WHERE "Title" = 'Say Uncle'
|
### Instruction:
CREATE TABLE table_27007 (
"Artist/Band" text,
"Song" text,
"Disney affiliated" text,
"Released" real,
"US exclusive" text,
"EU exclusive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most released for right here, right now
### Response:
|
SELECT MAX("Released") FROM table_27007 WHERE "Song" = 'Right Here, Right Now'
|
### Instruction:
CREATE TABLE table_17971449_2 (
military_expenditures__2011 VARCHAR,
_us$_millions_ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the military expenditures for 2011 for romania
### Response:
|
SELECT military_expenditures__2011, _us$_millions_ FROM table_17971449_2 WHERE country = "Romania"
|
### Instruction:
CREATE TABLE table_16512 (
"Character" text,
"Position" text,
"Actor" text,
"First Episode" text,
"Final Episode" text,
"Duration" text,
"Final Episode Count" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final episode for Dea Agent?
### Response:
|
SELECT "Final Episode" FROM table_16512 WHERE "Position" = 'DEA Agent'
|
### Instruction:
CREATE TABLE table_203_564 (
id number,
"hand" text,
"1 credit" number,
"2 credits" number,
"3 credits" number,
"4 credits" number,
"5 credits" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which hand is the top hand in the card game super aces ?
### Response:
|
SELECT "hand" FROM table_203_564 WHERE id = 1
|
### 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 names were dated after 1960 ?
### Response:
|
SELECT "model name" FROM table_203_823 WHERE "date" > 1960
|
### Instruction:
CREATE TABLE table_name_80 (
points INTEGER,
chassis VARCHAR,
entrant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati
### Response:
|
SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati"
|
### Instruction:
CREATE TABLE table_5252 (
"Name" text,
"Nationality" text,
"Position" text,
"Tenure Began" real,
"Term Ending" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Position of member, and a Nationality of india is what sum of term ending?
### Response:
|
SELECT SUM("Term Ending") FROM table_5252 WHERE "Position" = 'member' AND "Nationality" = 'india'
|
### Instruction:
CREATE TABLE table_48772 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Score is less than 69, and when Country is 'United States'?
### Response:
|
SELECT "Player" FROM table_48772 WHERE "Score" < '69' AND "Country" = 'united states'
|
### Instruction:
CREATE TABLE table_11545282_12 (
player VARCHAR,
years_for_jazz VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is from Marshall and played 1974-75?
### Response:
|
SELECT player FROM table_11545282_12 WHERE years_for_jazz = "1974-75" AND school_club_team = "Marshall"
|
### Instruction:
CREATE TABLE table_204_179 (
id number,
"season" number,
"division" number,
"tms." number,
"pos." number,
"fa cup" text,
"afc cl" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was the round for season 2010
### Response:
|
SELECT "fa cup" FROM table_204_179 WHERE "season" = 2010
|
### Instruction:
CREATE TABLE table_75995 (
"Season" text,
"Coach" text,
"Overall" text,
"Conference" text,
"Big Ten" text,
"National" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Coach with a Big Ten that is 2nd (79)?
### Response:
|
SELECT "Coach" FROM table_75995 WHERE "Big Ten" = '2nd (79)'
|
### Instruction:
CREATE TABLE table_53172 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game where St Kilda is the home team?
### Response:
|
SELECT "Date" FROM table_53172 WHERE "Home team" = 'st kilda'
|
### Instruction:
CREATE TABLE table_17811 (
"#" real,
"Name" text,
"Tenure" text,
"Courtesy title" text,
"Court Rank" text,
"Revenues" text,
"Lineage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of the name for number 4?
### Response:
|
SELECT COUNT("Name") FROM table_17811 WHERE "#" = '4'
|
### Instruction:
CREATE TABLE table_19889 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of segment c for pressure cookers
### Response:
|
SELECT COUNT("Segment C") FROM table_19889 WHERE "Segment A" = 'Pressure Cookers'
|
### Instruction:
CREATE TABLE table_72273 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mens singles of 2008?
### Response:
|
SELECT "Mens singles" FROM table_72273 WHERE "Year" = '2008'
|
### Instruction:
CREATE TABLE table_203_298 (
id number,
"rank" number,
"name" text,
"nation(s)" text,
"born" text,
"ascended" text,
"years reigned" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many reigned more than 50 years ?
### Response:
|
SELECT COUNT(*) FROM table_203_298 WHERE "years reigned" >= 50
|
### Instruction:
CREATE TABLE table_68465 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the Blue Jays were 55-39?
### Response:
|
SELECT "Score" FROM table_68465 WHERE "Record" = '55-39'
|
### Instruction:
CREATE TABLE table_42193 (
"Name" text,
"Start of Reign" real,
"End of Reign" text,
"Birth Name" text,
"Title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of birth of the person who started their reign in 1986?
### Response:
|
SELECT "Birth Name" FROM table_42193 WHERE "Start of Reign" = '1986'
|
### Instruction:
CREATE TABLE table_18704 (
"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 for district mississippi 4
### Response:
|
SELECT "Incumbent" FROM table_18704 WHERE "District" = 'Mississippi 4'
|
### Instruction:
CREATE TABLE table_11061 (
"Year" real,
"Competition" text,
"Date" text,
"Surface" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest year located in zagreb, croatia?
### Response:
|
SELECT MAX("Year") FROM table_11061 WHERE "Location" = 'zagreb, croatia'
|
### Instruction:
CREATE TABLE table_31965 (
"Calls" text,
"Frequency" text,
"Branding" text,
"Format" text,
"Timeslot" text,
"Group owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the calls for frequency of 1290 khz
### Response:
|
SELECT "Calls" FROM table_31965 WHERE "Frequency" = '1290 khz'
|
### Instruction:
CREATE TABLE table_36156 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the alternate of the nation with Erkki Lill as the skip?
### Response:
|
SELECT "Alternate" FROM table_36156 WHERE "Skip" = 'erkki lill'
|
### Instruction:
CREATE TABLE table_15041 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average points for Hopkins before 1956?
### Response:
|
SELECT AVG("Points") FROM table_15041 WHERE "Entrant" = 'hopkins' AND "Year" < '1956'
|
### Instruction:
CREATE TABLE table_53015 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which first election for the labor party is James Sharpe a part of?
### Response:
|
SELECT "First elected" FROM table_53015 WHERE "Party" = 'labor' AND "Member" = 'james sharpe'
|
### Instruction:
CREATE TABLE table_204_302 (
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.
-- what is the total number of nations that did not win gold ?
### Response:
|
SELECT COUNT("nation") FROM table_204_302 WHERE "gold" = 0
|
### Instruction:
CREATE TABLE table_49314 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Opponent on August 31, 1997?
### Response:
|
SELECT "Opponent" FROM table_49314 WHERE "Date" = 'august 31, 1997'
|
### Instruction:
CREATE TABLE table_25569 (
"R" real,
"Player" text,
"Position" text,
"League" real,
"Champions League" real,
"Copa del Rey" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the player is Marcelo, what is the position?
### Response:
|
SELECT "Position" FROM table_25569 WHERE "Player" = 'Marcelo'
|
### Instruction:
CREATE TABLE table_7866 (
"Year" real,
"Country" text,
"Champion" text,
"Total score" text,
"To Par [a ]" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the champion was Gay Brewer Category:Articles with hCards what was the total score?
### Response:
|
SELECT "Total score" FROM table_7866 WHERE "Champion" = 'gay brewer category:articles with hcards'
|
### Instruction:
CREATE TABLE table_29448 (
"Club" text,
"Chairman" text,
"Current manager" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team captain when the shirt sponser is quick?
### Response:
|
SELECT "Team captain" FROM table_29448 WHERE "Shirt sponsor" = 'Quick'
|
### Instruction:
CREATE TABLE table_16350 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the directors of the film with the original title o.k.?
### Response:
|
SELECT "Director" FROM table_16350 WHERE "Original title" = 'o.k.'
|
### Instruction:
CREATE TABLE table_7845 (
"Species" text,
"Species common name" text,
"NCBI Accession Number (mRNA/Protein)" text,
"Length (bp/aa)" text,
"Protein Identity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Species has the Species common name listed as human?
### Response:
|
SELECT "Species" FROM table_7845 WHERE "Species common name" = 'human'
|
### Instruction:
CREATE TABLE table_9321 (
"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.
-- Which Articulatory class has and Aspirated stop of ?
### Response:
|
SELECT "Articulatory class" FROM table_9321 WHERE "Aspirated stop" = 'ㅍ'
|
### Instruction:
CREATE TABLE table_26853172_1 (
hand_number VARCHAR,
player_1 VARCHAR,
prevailing_wind VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hand number of the hand where player 1 is south and the east wind is prevailing?
### Response:
|
SELECT COUNT(hand_number) FROM table_26853172_1 WHERE player_1 = "South" AND prevailing_wind = "East"
|
### Instruction:
CREATE TABLE table_28866 (
"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.
-- who were the 'candidate' of South Carolina 6?
### Response:
|
SELECT "Candidates" FROM table_28866 WHERE "District" = 'South Carolina 6'
|
### Instruction:
CREATE TABLE table_30624 (
"Position" text,
"Player" text,
"Period" text,
"Teams" text,
"Consecutive starts" real,
"Playoffs" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What period(s) featured a left inside linebacker?
### Response:
|
SELECT "Period" FROM table_30624 WHERE "Position" = 'Left inside linebacker'
|
### Instruction:
CREATE TABLE table_1161 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the competition when there was no competition for mens doubles?
### Response:
|
SELECT "Womens doubles" FROM table_1161 WHERE "Mens doubles" = 'No competition'
|
### Instruction:
CREATE TABLE table_203_494 (
id number,
"party" text,
"votes" number,
"%" number,
"swing" number,
"seats" number,
"change" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many votes were not attributed to the australian labor party ?
### Response:
|
SELECT SUM("votes") FROM table_203_494 WHERE "party" <> 'australian labor party'
|
### Instruction:
CREATE TABLE table_62103 (
"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 city of Braga?
### Response:
|
SELECT "Stadium" FROM table_62103 WHERE "City" = 'braga'
|
### Instruction:
CREATE TABLE table_44129 (
"Continent" text,
"Structure" text,
"Height" text,
"Year" real,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Listed with a continent of Africa and before 2009 this structure is called what?
### Response:
|
SELECT "Structure" FROM table_44129 WHERE "Year" < '2009' AND "Continent" = 'africa'
|
### Instruction:
CREATE TABLE table_54308 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Set 2 with a Total with 45 12?
### Response:
|
SELECT "Set 2" FROM table_54308 WHERE "Total" = '45–12'
|
### Instruction:
CREATE TABLE table_42159 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 1st leg has a Team #1 of ummc ekaterinburg?
### Response:
|
SELECT "1st leg" FROM table_42159 WHERE "Team #1" = 'ummc ekaterinburg'
|
### Instruction:
CREATE TABLE table_29626583_3 (
pick__number INTEGER,
mls_team VARCHAR,
affiliation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number for the team toronto fc and affiliation is ldu quito?
### Response:
|
SELECT MAX(pick__number) FROM table_29626583_3 WHERE mls_team = "Toronto FC" AND affiliation = "LDU Quito"
|
### Instruction:
CREATE TABLE table_29314 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Asian rider classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which mountains classification is listed under stage 3?
### Response:
|
SELECT "Mountains classification" FROM table_29314 WHERE "Stage" = '3'
|
### Instruction:
CREATE TABLE table_15366768_1 (
element VARCHAR,
isotopic_mass___u__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the element with isotopic mass of 158.925 34(2)?
### Response:
|
SELECT element FROM table_15366768_1 WHERE isotopic_mass___u__ = "158.925 34(2)"
|
### Instruction:
CREATE TABLE table_47083 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Score that has the Date of 11/17/1979?
### Response:
|
SELECT "Score" FROM table_47083 WHERE "Date" = '11/17/1979'
|
### Instruction:
CREATE TABLE table_72408 (
"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 is the result for w. arthur winstead?
### Response:
|
SELECT "Result" FROM table_72408 WHERE "Incumbent" = 'W. Arthur Winstead'
|
### Instruction:
CREATE TABLE table_70762 (
"Class" text,
"Type" text,
"Names" text,
"Quantity made" text,
"Manufacturer" text,
"Date made" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of the locomotive with a 0-4-0st type?
### Response:
|
SELECT "Class" FROM table_70762 WHERE "Type" = '0-4-0st'
|
### Instruction:
CREATE TABLE Circulation_History (
employee_name VARCHAR
)
CREATE TABLE Employees (
employee_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the employees who have not showed up in any circulation history of documents. List the employee's name.
### Response:
|
SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id
|
### Instruction:
CREATE TABLE table_35468 (
"Stage" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the general classification with riccardo ricc as the young rider classification?
### Response:
|
SELECT "General classification" FROM table_35468 WHERE "Young rider classification" = 'riccardo riccò'
|
### Instruction:
CREATE TABLE table_780 (
"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 the candidates with incumbent being james o'connor
### Response:
|
SELECT "Candidates" FROM table_780 WHERE "Incumbent" = 'James O''Connor'
|
### Instruction:
CREATE TABLE table_30325 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the mens doubles for dimitrij ovtcharov
### Response:
|
SELECT "Mens Doubles" FROM table_30325 WHERE "Mens Singles" = 'Dimitrij Ovtcharov'
|
### Instruction:
CREATE TABLE table_48611 (
"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 Pick, when Position is OL, and when Round is less than 6?
### Response:
|
SELECT "Pick" FROM table_48611 WHERE "Position" = 'ol' AND "Round" < '6'
|
### Instruction:
CREATE TABLE table_12834315_8 (
barrel_length VARCHAR,
rear_sight VARCHAR,
barrel_profile VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?
### Response:
|
SELECT barrel_length FROM table_12834315_8 WHERE rear_sight = "Weaver" AND barrel_profile = "A2"
|
### Instruction:
CREATE TABLE table_26967904_2 (
p_max___bar__ INTEGER,
f_bolt___kgf__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the p max ( bar ) for the 6876 f bolt ( kgf )?
### Response:
|
SELECT MIN(p_max___bar__) FROM table_26967904_2 WHERE f_bolt___kgf__ = 6876
|
### Instruction:
CREATE TABLE table_7887 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home team has an n/a attendance?
### Response:
|
SELECT "Home" FROM table_7887 WHERE "Attendance" = 'n/a'
|
### Instruction:
CREATE TABLE table_32091 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year(s) did Hakeem Olajuwon play Center for Toronto?
### Response:
|
SELECT "Years in Toronto" FROM table_32091 WHERE "Player" = 'hakeem olajuwon'
|
### Instruction:
CREATE TABLE table_24847 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"NBC Airdate" text,
"Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote, 'The Last Dance'?
### Response:
|
SELECT "Writer(s)" FROM table_24847 WHERE "Title" = 'The Last Dance'
|
### Instruction:
CREATE TABLE table_203_788 (
id number,
"year" number,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the number of kurt maschler awards helen oxenbury has won ?
### Response:
|
SELECT COUNT(*) FROM table_203_788 WHERE "illustrator" = 'helen oxenbury'
|
### Instruction:
CREATE TABLE table_75700 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Against has Byes smaller than 2?
### Response:
|
SELECT AVG("Against") FROM table_75700 WHERE "Byes" < '2'
|
### Instruction:
CREATE TABLE table_name_47 (
series VARCHAR,
released_by VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT SERIES WAS RELEASED BY ITV STUDIOS AND A RELEASE DATE OF AUGUST 15, 2012?
### Response:
|
SELECT series FROM table_name_47 WHERE released_by = "itv studios" AND release_date = "august 15, 2012"
|
### Instruction:
CREATE TABLE table_59029 (
"Stage" text,
"Winner" text,
"General Classification" text,
"Mountains Classification" text,
"Points Classification" text,
"Sprints classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Kim Kirchen's team classification?
### Response:
|
SELECT "Team Classification" FROM table_59029 WHERE "General Classification" = 'kim kirchen'
|
### Instruction:
CREATE TABLE table_18717 (
"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 won in the race in the section georgia 5
### Response:
|
SELECT "Incumbent" FROM table_18717 WHERE "District" = 'Georgia 5'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.