instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_68986 (
"Class" text,
"Type" text,
"Fleet numbers" text,
"Quantity made" real,
"Manufacturer" text,
"Date made" text,
"Date withdrawn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Class has a Quantity made of 5?
### Response:
|
SELECT "Class" FROM table_68986 WHERE "Quantity made" = '5'
|
### Instruction:
CREATE TABLE table_2617 (
"Office" text,
"Type" text,
"Location" text,
"Elected" text,
"Term began" text,
"Term ended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the term end that began January 3, 2007?
### Response:
|
SELECT "Term ended" FROM table_2617 WHERE "Term began" = 'January 3, 2007'
|
### Instruction:
CREATE TABLE table_204_870 (
id number,
"product" text,
"main functionality" text,
"input format" text,
"output format" text,
"platform" text,
"license and cost" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last product represented in the chart ?
### Response:
|
SELECT "product" FROM table_204_870 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_40696 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is east region venue University Hall (University of Virginia) in?
### Response:
|
SELECT "City" FROM table_40696 WHERE "Region" = 'east' AND "Venue" = 'university hall (university of virginia)'
|
### Instruction:
CREATE TABLE table_50110 (
"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 H/A/N, when Score is 104-109?
### Response:
|
SELECT "H/A/N" FROM table_50110 WHERE "Score" = '104-109'
|
### Instruction:
CREATE TABLE table_13823 (
"Brand" text,
"Model" text,
"Type" text,
"Modem" text,
"Storage" text,
"CPU speed" text,
"CPU chip" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the CPU speed(s) of the New Plus type hardware?
### Response:
|
SELECT "CPU speed" FROM table_13823 WHERE "Type" = 'new plus'
|
### Instruction:
CREATE TABLE table_name_59 (
release_date VARCHAR,
developer_s_ VARCHAR,
required_os VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Release date has a Required OS of windows, a Type of 2d, and a Developer(s) of zeonix?
### Response:
|
SELECT release_date FROM table_name_59 WHERE required_os = "windows" AND type = "2d" AND developer_s_ = "zeonix"
|
### Instruction:
CREATE TABLE table_48482 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st round with a team 2 paris sg (d1)?
### Response:
|
SELECT "1st round" FROM table_48482 WHERE "Team 2" = 'paris sg (d1)'
|
### Instruction:
CREATE TABLE table_37916 (
"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.
-- Which Set 1 has a Set 2 of 26 24?
### Response:
|
SELECT "Set 1" FROM table_37916 WHERE "Set 2" = '26–24'
|
### Instruction:
CREATE TABLE table_77800 (
"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 total for ralf schumacher racing over 53 laps?
### Response:
|
SELECT SUM("Grid") FROM table_77800 WHERE "Driver" = 'ralf schumacher' AND "Laps" > '53'
|
### Instruction:
CREATE TABLE table_59854 (
"Year" real,
"Song" text,
"Artist" text,
"Place" text,
"Points" text,
"Composer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year shows 248 (sf: 217) points?
### Response:
|
SELECT COUNT("Year") FROM table_59854 WHERE "Points" = '248 (sf: 217)'
|
### Instruction:
CREATE TABLE table_204_802 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of games played on 22 november 1988 ?
### Response:
|
SELECT COUNT(*) FROM table_204_802 WHERE "date" = '22 november 1988'
|
### Instruction:
CREATE TABLE table_37345 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the game that has the phoenix suns as the opponent played against?
### Response:
|
SELECT "Result" FROM table_37345 WHERE "Opponent" = 'phoenix suns'
|
### Instruction:
CREATE TABLE table_32066 (
"Place" real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total losses for 4 place and ties less than 0
### Response:
|
SELECT COUNT("Losses") FROM table_32066 WHERE "Place" = '4' AND "Ties" < '0'
|
### Instruction:
CREATE TABLE table_20859 (
"Series #" real,
"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.
-- How many directors were there in total for the episode with series #62?
### Response:
|
SELECT COUNT("Directed by") FROM table_20859 WHERE "Series #" = '62'
|
### Instruction:
CREATE TABLE table_203_497 (
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 was the number of silver medals won by pakistan ?
### Response:
|
SELECT "silver" FROM table_203_497 WHERE "nation" = 'pakistan'
|
### Instruction:
CREATE TABLE table_54169 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type is the sorrento to sapri course with a distance of km (mi)?
### Response:
|
SELECT "Type" FROM table_54169 WHERE "Distance" = 'km (mi)' AND "Course" = 'sorrento to sapri'
|
### Instruction:
CREATE TABLE table_52031 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the center position of Years for Jazz, Greg Ostertag?
### Response:
|
SELECT "Years for Jazz" FROM table_52031 WHERE "Position" = 'center' AND "Player" = 'greg ostertag'
|
### Instruction:
CREATE TABLE table_46916 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner after 1989 when Stronach Stable was the owner?
### Response:
|
SELECT "Winner" FROM table_46916 WHERE "Year" > '1989' AND "Owner" = 'stronach stable'
|
### Instruction:
CREATE TABLE table_27170 (
"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 in the Rome championship?
### Response:
|
SELECT "Opponents" FROM table_27170 WHERE "Championship" = 'Rome'
|
### Instruction:
CREATE TABLE table_name_60 (
points INTEGER,
engine VARCHAR,
year VARCHAR,
entrant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?
### Response:
|
SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12"
|
### Instruction:
CREATE TABLE table_31644 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the affiliation for pick number less than 59 and position of gk
### Response:
|
SELECT "Affiliation" FROM table_31644 WHERE "Pick #" < '59' AND "Position" = 'gk'
|
### Instruction:
CREATE TABLE table_5404 (
"Score" real,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which City has a Score smaller than 30, and a Venue of aigburth?
### Response:
|
SELECT "City" FROM table_5404 WHERE "Score" < '30' AND "Venue" = 'aigburth'
|
### Instruction:
CREATE TABLE table_203_285 (
id number,
"year" number,
"location" text,
"gold" text,
"silver" text,
"bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long is the time between the times the championship was held in moscow ?
### Response:
|
SELECT MAX("year") - MIN("year") FROM table_203_285 WHERE "location" = 'moscow'
|
### Instruction:
CREATE TABLE table_21478 (
"Downstream" text,
"Upstream" text,
"Bandwidth" text,
"Price TL" text,
"Every 1 GB" text,
"MAX" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the upstream speed that you get for 89 tl?
### Response:
|
SELECT "Upstream" FROM table_21478 WHERE "Price TL" = '89 TL'
|
### Instruction:
CREATE TABLE table_52998 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Competition had a Result of 3-0 and VEnue of Suwon?
### Response:
|
SELECT "Competition" FROM table_52998 WHERE "Result" = '3-0' AND "Venue" = 'suwon'
|
### Instruction:
CREATE TABLE table_74873 (
"Name" text,
"Hanzi" text,
"Origin" text,
"Launch" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Hanzi of Phoenix Television Chinese that launched in 1996?
### Response:
|
SELECT "Hanzi" FROM table_74873 WHERE "Launch" = '1996' AND "Name" = 'phoenix television chinese'
|
### Instruction:
CREATE TABLE table_19046 (
"Grand Cru" text,
"Region" text,
"Village" text,
"Wine style" text,
"Vineyard surface (2010)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the wine style with grand cru being roman e-conti
### Response:
|
SELECT "Wine style" FROM table_19046 WHERE "Grand Cru" = 'Romanée-Conti'
|
### Instruction:
CREATE TABLE table_71580 (
"Elector" text,
"Order" text,
"Title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?
### Response:
|
SELECT "Elector" FROM table_71580 WHERE "Title" = 'deacon of s. maria in domnica'
|
### Instruction:
CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the total number of medals won by australia was how many ?
### Response:
|
SELECT "total" FROM table_203_707 WHERE "npc" = 'australia'
|
### Instruction:
CREATE TABLE table_name_63 (
position INTEGER,
wins VARCHAR,
goals_against VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?
### Response:
|
SELECT MIN(position) FROM table_name_63 WHERE goals_against < 78 AND points = "42-2" AND wins > 15
|
### Instruction:
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which classes have more than two captains?
### Response:
|
SELECT class FROM captain GROUP BY class HAVING COUNT(*) > 2
|
### Instruction:
CREATE TABLE table_60784 (
"Year" real,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first party for Lord John Hay earlier than 1857?
### Response:
|
SELECT "First party" FROM table_60784 WHERE "Year" < '1857' AND "First member" = 'lord john hay'
|
### Instruction:
CREATE TABLE table_67982 (
"Competition" text,
"Venue" text,
"Year" real,
"Category" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the categories of events that occurred after 2007 that were World Championships?
### Response:
|
SELECT "Category" FROM table_67982 WHERE "Year" > '2007' AND "Competition" = 'world championships'
|
### Instruction:
CREATE TABLE table_11727969_1 (
peru_vs_world__percent_ INTEGER,
species_in_the_world VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the maximum peru vs. world (percent) with 9672 species in the world
### Response:
|
SELECT MAX(peru_vs_world__percent_) FROM table_11727969_1 WHERE species_in_the_world = 9672
|
### Instruction:
CREATE TABLE table_29996 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college team did Ryan Golden come from?
### Response:
|
SELECT "College/junior/club team" FROM table_29996 WHERE "Player" = 'Ryan Golden'
|
### Instruction:
CREATE TABLE table_49387 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of rounds at 5:36?
### Response:
|
SELECT COUNT("Round") FROM table_49387 WHERE "Time" = '5:36'
|
### Instruction:
CREATE TABLE table_19790 (
"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.
-- How many mixed doubles were won in 1996?
### Response:
|
SELECT COUNT("Mixed doubles") FROM table_19790 WHERE "Year" = '1996'
|
### Instruction:
CREATE TABLE table_77575 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score of the Australian Open?
### Response:
|
SELECT "Score in the final" FROM table_77575 WHERE "Championship" = 'australian open'
|
### Instruction:
CREATE TABLE table_name_36 (
voice_actor__english_1998___pioneer_ VARCHAR,
voice_actor__english_1997___saban_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what character did dave ward play
### Response:
|
SELECT voice_actor__english_1998___pioneer_ FROM table_name_36 WHERE voice_actor__english_1997___saban_ = "dave ward"
|
### Instruction:
CREATE TABLE table_10110 (
"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 team played Essendon?
### Response:
|
SELECT "Home team" FROM table_10110 WHERE "Away team" = 'essendon'
|
### Instruction:
CREATE TABLE table_32664 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school(s) had a wide receiver drafted in round 4?
### Response:
|
SELECT "School/Club Team" FROM table_32664 WHERE "Round" > '4' AND "Position" = 'wide receiver'
|
### Instruction:
CREATE TABLE table_50344 (
"Callsign" text,
"Area served" text,
"Band" text,
"Freq currently" text,
"Purpose" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Community Band with a 4BCB Callsign?
### Response:
|
SELECT "Band" FROM table_50344 WHERE "Purpose" = 'community' AND "Callsign" = '4bcb'
|
### Instruction:
CREATE TABLE table_62613 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home record for the Auxerre club?
### Response:
|
SELECT "Home" FROM table_62613 WHERE "Club" = 'auxerre'
|
### Instruction:
CREATE TABLE table_48181 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Channel" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of weeks that the Giants played against the Dallas Cowboys?
### Response:
|
SELECT COUNT("Week") FROM table_48181 WHERE "Opponent" = 'dallas cowboys'
|
### Instruction:
CREATE TABLE table_203_230 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only other besides david duval in the t2 category ?
### Response:
|
SELECT "player" FROM table_203_230 WHERE "player" <> 'david duval' AND "place" = 't2'
|
### Instruction:
CREATE TABLE table_49682 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Event, when Position is 6th, and when Year is after 2006?
### Response:
|
SELECT "Event" FROM table_49682 WHERE "Position" = '6th' AND "Year" > '2006'
|
### Instruction:
CREATE TABLE table_204_371 (
id number,
"team" text,
"competition" text,
"category" text,
"appearances\nstart" number,
"appearances\nsub" number,
"goals" number,
"team record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total goals were scored ?
### Response:
|
SELECT SUM("goals") FROM table_204_371
|
### Instruction:
CREATE TABLE table_10906 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did fitzroy play at home?
### Response:
|
SELECT "Date" FROM table_10906 WHERE "Home team" = 'fitzroy'
|
### Instruction:
CREATE TABLE table_68145 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Witch opponent has a loss of Glynn (0-2)?
### Response:
|
SELECT "Opponent" FROM table_68145 WHERE "Loss" = 'glynn (0-2)'
|
### Instruction:
CREATE TABLE table_79747 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1970, what entrant had a cosworth v8 engine?
### Response:
|
SELECT "Entrant" FROM table_79747 WHERE "Engine" = 'cosworth v8' AND "Year" = '1970'
|
### Instruction:
CREATE TABLE table_35040 (
"Name" text,
"Year" real,
"Propulsion" text,
"launched by" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the propulsion for the RB 04 earlier than 1962?
### Response:
|
SELECT "Propulsion" FROM table_35040 WHERE "Year" < '1962' AND "Name" = 'rb 04'
|
### Instruction:
CREATE TABLE table_51989 (
"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 total medals of the team with 2 gold and less than 1 silver?
### Response:
|
SELECT AVG("Total") FROM table_51989 WHERE "Gold" = '2' AND "Silver" < '1'
|
### Instruction:
CREATE TABLE table_204_574 (
id number,
"year" number,
"title" text,
"peak chart positions\nswe" number,
"peak chart positions\nswi" number,
"peak chart positions\nuk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which single did she first release ?
### Response:
|
SELECT "title" FROM table_204_574 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_47 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much To par has a Place of t1, and a Score of 70-70-71-71=282?
### Response:
|
SELECT COUNT(to_par) FROM table_name_47 WHERE place = "t1" AND score = 70 - 70 - 71 - 71 = 282
|
### Instruction:
CREATE TABLE table_26073 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rounds had 32 clubs involved?
### Response:
|
SELECT "Round" FROM table_26073 WHERE "Clubs involved" = '32'
|
### Instruction:
CREATE TABLE table_68605 (
"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 is the score of the game that was a loss to Dotson (2-3)?
### Response:
|
SELECT "Score" FROM table_68605 WHERE "Loss" = 'dotson (2-3)'
|
### Instruction:
CREATE TABLE table_name_8 (
wins INTEGER,
losses VARCHAR,
pct VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has?
### Response:
|
SELECT MIN(wins) FROM table_name_8 WHERE pct > 0.526 AND rank < 37 AND losses = 947
|
### Instruction:
CREATE TABLE table_16412 (
"Romaji title" text,
"Japanese title" text,
"Release date" text,
"Reference" text,
"Oricon" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the title in japanese where the reference is kids-430?
### Response:
|
SELECT "Japanese title" FROM table_16412 WHERE "Reference" = 'KIDS-430'
|
### Instruction:
CREATE TABLE table_name_1 (
Double VARCHAR,
non_suited_match VARCHAR,
house_edge VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?
### Response:
|
SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = "4:1" AND house_edge = "3.63%"
|
### Instruction:
CREATE TABLE table_22746 (
"Player" text,
"Original Season" text,
"Gender" text,
"Eliminated" text,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the female contestant on the Original season of Fresh Meat?
### Response:
|
SELECT "Player" FROM table_22746 WHERE "Original Season" = 'Fresh Meat' AND "Gender" = 'Female'
|
### Instruction:
CREATE TABLE table_73947 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many judges were there for the eliminated couple?
### Response:
|
SELECT "Judges" FROM table_73947 WHERE "Result" = 'Eliminated'
|
### Instruction:
CREATE TABLE table_38330 (
"School" text,
"Mascot" text,
"Conference" text,
"National Titles" real,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of national titles for the team with doane tigers as the mascot?
### Response:
|
SELECT COUNT("National Titles") FROM table_38330 WHERE "Mascot" = 'doane tigers'
|
### Instruction:
CREATE TABLE table_60464 (
"Golden Rivers" 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 losses did the Golden rivers of hay have?
### Response:
|
SELECT AVG("Losses") FROM table_60464 WHERE "Golden Rivers" = 'hay'
|
### Instruction:
CREATE TABLE table_64631 (
"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's the location of the team Peter Stuyvesant International Racing?
### Response:
|
SELECT "City / State" FROM table_64631 WHERE "Team" = 'peter stuyvesant international racing'
|
### Instruction:
CREATE TABLE table_39643 (
"Date" text,
"2nd Bundesliga 16th" text,
"3rd Liga 3rd" text,
"Game 1" text,
"Game 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has Liga 3rd of Dynamo Dresden?
### Response:
|
SELECT "Date" FROM table_39643 WHERE "3rd Liga 3rd" = 'dynamo dresden'
|
### Instruction:
CREATE TABLE table_11348 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on 1990-11-04?
### Response:
|
SELECT "Result" FROM table_11348 WHERE "Date" = '1990-11-04'
|
### Instruction:
CREATE TABLE table_4935 (
"Position" text,
"Race Number" real,
"Driver" text,
"Country" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of laps when the country was NL and the race number was smaller than 8?
### Response:
|
SELECT AVG("Laps") FROM table_4935 WHERE "Race Number" < '8' AND "Country" = 'nl'
|
### Instruction:
CREATE TABLE table_23706 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many couples have an average of 25.3?
### Response:
|
SELECT COUNT("Couple") FROM table_23706 WHERE "Average" = '25.3'
|
### Instruction:
CREATE TABLE table_76440 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Year(s) Won is 1955?
### Response:
|
SELECT "Player" FROM table_76440 WHERE "Year(s) won" = '1955'
|
### Instruction:
CREATE TABLE table_20218 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the cover model in the 7-86 issue?
### Response:
|
SELECT "Cover model" FROM table_20218 WHERE "Date" = '7-86'
|
### Instruction:
CREATE TABLE table_47798 (
"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 Place of the Player with a Score of 73-68-71=212?
### Response:
|
SELECT "Place" FROM table_47798 WHERE "Score" = '73-68-71=212'
|
### Instruction:
CREATE TABLE table_18158 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many incumbents were first elected in 1984?
### Response:
|
SELECT COUNT("Incumbent") FROM table_18158 WHERE "First elected" = '1984'
|
### Instruction:
CREATE TABLE table_name_35 (
score_in_the_final VARCHAR,
date VARCHAR,
opponent_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978?
### Response:
|
SELECT score_in_the_final FROM table_name_35 WHERE date < 1978 AND opponent_in_the_final = "manuel orantes"
|
### Instruction:
CREATE TABLE table_78310 (
"Team" text,
"Outgoing manager" text,
"Date of departure" text,
"Replaced by" text,
"Date of Appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the appointment date for the manager replaced by Lucien Favre?
### Response:
|
SELECT "Date of Appointment" FROM table_78310 WHERE "Replaced by" = 'lucien favre'
|
### Instruction:
CREATE TABLE table_32123 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver drove a Ferrari in the 2007 European Grand Prix with a grid less than 3?
### Response:
|
SELECT "Driver" FROM table_32123 WHERE "Constructor" = 'ferrari' AND "Grid" < '3'
|
### Instruction:
CREATE TABLE table_78885 (
"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 is the week 1 with candice hunnicutt in week 3?
### Response:
|
SELECT "Week 1" FROM table_78885 WHERE "Week 3" = 'candice hunnicutt'
|
### Instruction:
CREATE TABLE table_8257 (
"Channel" real,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Programming" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Channel has an Aspect of 4:3 and a Programming of me-tv?
### Response:
|
SELECT "Channel" FROM table_8257 WHERE "Aspect" = '4:3' AND "Programming" = 'me-tv'
|
### Instruction:
CREATE TABLE table_59499 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the attendance when the opponents are cambridge united?
### Response:
|
SELECT "Attendance" FROM table_59499 WHERE "Opponents" = 'cambridge united'
|
### Instruction:
CREATE TABLE table_31283 (
"Film Festival" text,
"Date of ceremony" text,
"Category" text,
"Participants/Recipients" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which films participated in the 61st Berlin international film festival?
### Response:
|
SELECT "Participants/Recipients" FROM table_31283 WHERE "Film Festival" = '61st Berlin International Film Festival'
|
### Instruction:
CREATE TABLE table_13779832_1 (
country_region VARCHAR,
seasons_and_winners VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the country/region with seasons and winners being season 1, 2012: demetra malalan
### Response:
|
SELECT country_region FROM table_13779832_1 WHERE seasons_and_winners = "Season 1, 2012: Demetra Malalan"
|
### Instruction:
CREATE TABLE table_11397 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean evening gown number when the average is 8.686?
### Response:
|
SELECT AVG("Evening Gown") FROM table_11397 WHERE "Average" = '8.686'
|
### Instruction:
CREATE TABLE table_52588 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what circuit is there a class gts-2 race that takes place on May 27?
### Response:
|
SELECT "Circuit" FROM table_52588 WHERE "Date" = 'may 27' AND "Class" = 'gts-2'
|
### Instruction:
CREATE TABLE table_70100 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tournament of beijing
### Response:
|
SELECT "2011" FROM table_70100 WHERE "Tournament" = 'beijing'
|
### Instruction:
CREATE TABLE table_name_12 (
pat_robertson VARCHAR,
bob_dole VARCHAR,
george_hw_bush VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?
### Response:
|
SELECT pat_robertson FROM table_name_12 WHERE bob_dole = "26%" AND george_hw_bush = "47%"
|
### Instruction:
CREATE TABLE table_13145 (
"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.
-- Which To par has a Year(s) won of 1964?
### Response:
|
SELECT "To par" FROM table_13145 WHERE "Year(s) won" = '1964'
|
### Instruction:
CREATE TABLE table_33306 (
"Year" real,
"Gold" text,
"Silver" text,
"Bronze" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was 2010 tournament where the United States received the silver?
### Response:
|
SELECT "Venue" FROM table_33306 WHERE "Silver" = 'united states' AND "Year" = '2010'
|
### Instruction:
CREATE TABLE table_31239 (
"Programme" text,
"Date(s) of original removal" text,
"Original channel(s)" text,
"Date of return" text,
"New channel(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of return for the program for the program 'Big Brother'?
### Response:
|
SELECT "Date of return" FROM table_31239 WHERE "Programme" = 'Big Brother'
|
### Instruction:
CREATE TABLE table_10027 (
"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 Date, when Opponent is 'Philadelphia 76ers'?
### Response:
|
SELECT "Date" FROM table_10027 WHERE "Opponent" = 'philadelphia 76ers'
|
### Instruction:
CREATE TABLE table_name_95 (
fall_08 INTEGER,
fall_09 VARCHAR,
fall_05 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest value for Fall 08 when Fall 09 is 792 and Fall 05 is less than 791?
### Response:
|
SELECT MAX(fall_08) FROM table_name_95 WHERE fall_09 = 792 AND fall_05 < 791
|
### Instruction:
CREATE TABLE table_62097 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hight in ft and m of the building with less than 11 floors?
### Response:
|
SELECT "Height ft (m)" FROM table_62097 WHERE "Floors" < '11'
|
### Instruction:
CREATE TABLE table_46266 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average laps completed by riders with times of +2:11.524?
### Response:
|
SELECT AVG("Laps") FROM table_46266 WHERE "Time" = '+2:11.524'
|
### Instruction:
CREATE TABLE table_67181 (
"Season" text,
"Series" text,
"Team" text,
"Races" text,
"wins" text,
"Fast laps" text,
"Points" text,
"Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has the points category of test driver?
### Response:
|
SELECT "Team" FROM table_67181 WHERE "Points" = 'test driver'
|
### Instruction:
CREATE TABLE table_48660 (
"President" text,
"Vice" real,
"Romanized (Hangul)" text,
"Took office" text,
"Left office" text,
"Political party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the vice president with a vice over 6 take office?
### Response:
|
SELECT "Took office" FROM table_48660 WHERE "Vice" > '6'
|
### Instruction:
CREATE TABLE table_72903 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which athlete competed in the flyweight division?
### Response:
|
SELECT "Athlete" FROM table_72903 WHERE "Event" = 'Flyweight'
|
### Instruction:
CREATE TABLE table_42962 (
"Year" real,
"Result" real,
"World Rank" text,
"Location" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year has a Result smaller than 20.26, and a Location of eugene?
### Response:
|
SELECT SUM("Year") FROM table_42962 WHERE "Result" < '20.26' AND "Location" = 'eugene'
|
### Instruction:
CREATE TABLE table_75394 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Record of 45 21 4?
### Response:
|
SELECT "Opponent" FROM table_75394 WHERE "Record" = '45–21–4'
|
### Instruction:
CREATE TABLE table_13870 (
"Date" text,
"Season" text,
"Playing for" text,
"Opponent" text,
"Final score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the final score when the date is 2009-02-26?
### Response:
|
SELECT "Final score" FROM table_13870 WHERE "Date" = '2009-02-26'
|
### Instruction:
CREATE TABLE table_50144 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Result, when Opponent is Cincinnati Bengals?
### Response:
|
SELECT "Result" FROM table_50144 WHERE "Opponent" = 'cincinnati bengals'
|
### Instruction:
CREATE TABLE table_21576644_2 (
ladies_1st_xi VARCHAR,
mens_2nd_xi VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 10th, south west district 1 is the mens 2nd xi what is the ladies 1st xi?
### Response:
|
SELECT ladies_1st_xi FROM table_21576644_2 WHERE mens_2nd_xi = "10th, South West District 1"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.