instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_204_557 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of first visitor on this ... | SELECT "visitor" FROM table_204_557 WHERE id = 1 |
### Instruction:
CREATE TABLE table_42293 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest week for December 26, 1999
### Response:
| SELECT MIN("Week") FROM table_42293 WHERE "Date" = 'december 26, 1999' |
### Instruction:
CREATE TABLE table_74133 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every record for game 13?
#... | SELECT "Record" FROM table_74133 WHERE "Game" = '13' |
### Instruction:
CREATE TABLE table_203_730 (
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.
-- which week had the least amount of people in atten... | SELECT "week" FROM table_203_730 ORDER BY "attendance" LIMIT 1 |
### Instruction:
CREATE TABLE table_1590 (
"Character" text,
"Indianapolis Concerts" text,
"Sarasota" text,
"Broadway" text,
"Brighton Cast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the indianapolis concerts for les minski
### Response:... | SELECT "Indianapolis Concerts" FROM table_1590 WHERE "Sarasota" = 'Les Minski' |
### Instruction:
CREATE TABLE table_25246990_5 (
us_viewers__millions_ VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?
### Response:
| SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn" |
### Instruction:
CREATE TABLE table_43646 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number that is the lowest overall for the College of Baylor... | SELECT MIN("Overall") FROM table_43646 WHERE "College" = 'baylor' |
### Instruction:
CREATE TABLE table_18690 (
"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.
-- To which party does Riley Joseph Wilson belong?
### R... | SELECT "Party" FROM table_18690 WHERE "Incumbent" = 'Riley Joseph Wilson' |
### Instruction:
CREATE TABLE table_80445 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold are a rank 1 and larger than 16?
### Response:
| SELECT COUNT("Gold") FROM table_80445 WHERE "Rank" = '1' AND "Total" > '16' |
### Instruction:
CREATE TABLE table_18462 (
"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.
-- Name the candidates for south carolina 3
### Response... | SELECT "Candidates" FROM table_18462 WHERE "District" = 'South Carolina 3' |
### Instruction:
CREATE TABLE table_17350255_1 (
year__ceremony_ VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Old Mo's Second Spring was the film title used in nomination in what year?
### Response:
| SELECT year__ceremony_ FROM table_17350255_1 WHERE film_title_used_in_nomination = "Old Mo's Second Spring" |
### Instruction:
CREATE TABLE table_60353 (
"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 team is Team 1 with a Team 2 being Sporting CP?
### Response:
| SELECT "Team 1" FROM table_60353 WHERE "Team 2" = 'sporting cp' |
### Instruction:
CREATE TABLE table_36215 (
"Rank" real,
"Player" text,
"Country" text,
"Events" real,
"Prize money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of prize money when there are 21 events?
### Respons... | SELECT MIN("Prize money ( $ )") FROM table_36215 WHERE "Events" = '21' |
### Instruction:
CREATE TABLE table_54515 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what grid did Richard Robarts make 36 laps?
### Response:
| SELECT SUM("Grid") FROM table_54515 WHERE "Driver" = 'richard robarts' AND "Laps" < '36' |
### Instruction:
CREATE TABLE table_204_435 (
id number,
"sport" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of gold medals won in the rowing category ?
###... | SELECT "gold" FROM table_204_435 WHERE "sport" = 'rowing' |
### Instruction:
CREATE TABLE table_name_98 (
name VARCHAR,
nat VARCHAR,
app_l_c_e_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)?
### Response:
| SELECT name FROM table_name_98 WHERE nat = "gre" AND app_l_c_e_ = "49 (40/8/1)" |
### Instruction:
CREATE TABLE table_27765443_2 (
model___computer_name VARCHAR,
cpu_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of model for amd opteron dual-core 2.6ghz
### Response:
| SELECT COUNT(model___computer_name) FROM table_27765443_2 WHERE cpu_type = "AMD Opteron dual-core 2.6GHz" |
### Instruction:
CREATE TABLE table_70018 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which catalogue has a formate of 'CD Remastered with 3 bonus tracks'?
### Response:
| SELECT "Catalogue" FROM table_70018 WHERE "Format" = 'cd remastered with 3 bonus tracks' |
### Instruction:
CREATE TABLE table_name_93 (
males_rank INTEGER,
females___percentage_ VARCHAR,
females_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smalle... | SELECT MAX(males_rank) FROM table_name_93 WHERE females___percentage_ < 40 AND females_rank < 22 |
### Instruction:
CREATE TABLE table_78040 (
"Full Name" text,
"Nickname" text,
"Gender" text,
"Weight at birth" text,
"Meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much did the baby who name means God knows my journey weigh at birth?
... | SELECT "Weight at birth" FROM table_78040 WHERE "Meaning" = 'god knows my journey' |
### Instruction:
CREATE TABLE table_11464 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Drivers" text,
"Races" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What driver had a 15-20 record?
### Response:
| SELECT "Drivers" FROM table_11464 WHERE "Races" = '15-20' |
### Instruction:
CREATE TABLE table_39913 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the smallest March when the record is 22-12-6?
### Response:
| SELECT MIN("March") FROM table_39913 WHERE "Record" = '22-12-6' |
### Instruction:
CREATE TABLE table_39311 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who averaged 201.3 yards passing per game?
### Response:
| SELECT "Name" FROM table_39311 WHERE "Avg/G" = '201.3' |
### Instruction:
CREATE TABLE table_51219 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals were scored on November 22, 1994?
### Response:
| SELECT SUM("Goal") FROM table_51219 WHERE "Date" = 'november 22, 1994' |
### Instruction:
CREATE TABLE table_1338 (
"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.
-- What is the original airdate when the season n... | SELECT "Original air date" FROM table_1338 WHERE "Season #" = '4' |
### Instruction:
CREATE TABLE table_name_22 (
Highest INTEGER,
album_title VARCHAR,
sales VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest high position for 10 years of hits, and over 870,000 sales?
### Response:
| SELECT MIN(Highest) AS position FROM table_name_22 WHERE album_title = "10 years of hits" AND sales > 870 OFFSET 000 |
### Instruction:
CREATE TABLE table_9810 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of 2009?
### Response:
| SELECT "Class" FROM table_9810 WHERE "Year" = '2009' |
### Instruction:
CREATE TABLE table_69649 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for 2015 afc asian cup qualification
### Response:
| SELECT "Score" FROM table_69649 WHERE "Competition" = '2015 afc asian cup qualification' |
### Instruction:
CREATE TABLE table_204_524 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what the tier before 2006/7 ?
### Response:
| SELECT "tier" FROM table_204_524 WHERE "season" < '2006/07' ORDER BY "season" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_18425 (
"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 party did Hale Boggs belong to?
### Response:
| SELECT "Party" FROM table_18425 WHERE "Incumbent" = 'Hale Boggs' |
### Instruction:
CREATE TABLE table_1310 (
"Team" text,
"Titles" real,
"Runner-up" real,
"Third place" real,
"Fourth place" real,
"Years participated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did notre dame participate?
##... | SELECT MAX("Years participated") FROM table_1310 WHERE "Team" = 'Notre Dame' |
### Instruction:
CREATE TABLE table_13779832_1 (
local_title VARCHAR,
seasons_and_winners VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the local title with seasons and winners being series 1, 2006: lucy benjamin
### Response:
| SELECT local_title FROM table_13779832_1 WHERE seasons_and_winners = "Series 1, 2006: Lucy Benjamin" |
### Instruction:
CREATE TABLE table_1480455_1 (
area__km_2__ VARCHAR,
population_density___km_2__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area (km 2) where the population density (/mk2) is 84.3?
### Response:
| SELECT area__km_2__ FROM table_1480455_1 WHERE population_density___km_2__ = "84.3" |
### Instruction:
CREATE TABLE table_76541 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface for finalist Justine Henin?
### Res... | SELECT "Surface" FROM table_76541 WHERE "Finalist" = 'justine henin' |
### Instruction:
CREATE TABLE table_49575 (
"Date" text,
"Place" text,
"Race winners" text,
"GP winner" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date for a source of result and a place of iffendic?
### Response:
| SELECT "Date" FROM table_49575 WHERE "Source" = 'result' AND "Place" = 'iffendic' |
### Instruction:
CREATE TABLE table_name_22 (
entrant VARCHAR,
points VARCHAR,
year VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which entrant after 1987 had 12 points and a benetton b188 chassis?
### Response:
| SELECT entrant FROM table_name_22 WHERE year > 1987 AND chassis = "benetton b188" AND points = 12 |
### Instruction:
CREATE TABLE table_27455867_1 (
callback_venue VARCHAR,
episode_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the callback venue for the audition city in the episode aired on January 20, 2011?
### Response:
| SELECT callback_venue FROM table_27455867_1 WHERE episode_air_date = "January 20, 2011" |
### Instruction:
CREATE TABLE table_name_56 (
jersey__number VARCHAR,
position VARCHAR,
birthdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?
##... | SELECT COUNT(jersey__number) FROM table_name_56 WHERE position = "w" AND birthdate = "17 october 1932" |
### Instruction:
CREATE TABLE table_33798 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game is named tsegay kebede category:articles with hcards?
### Response:
| SELECT "Games" FROM table_33798 WHERE "Name" = 'tsegay kebede category:articles with hcards' |
### Instruction:
CREATE TABLE table_204_185 (
id number,
"location" text,
"town" text,
"output (mw ac)" number,
"modules" number,
"number of arrays" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only town with two project locatio... | SELECT "town" FROM table_204_185 GROUP BY "town" HAVING COUNT("location") = 2 |
### Instruction:
CREATE TABLE table_11206916_2 (
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What manner of departure is listed with an appointment date of 13 march 2008
### Response:
| SELECT manner_of_departure FROM table_11206916_2 WHERE date_of_appointment = "13 March 2008" |
### Instruction:
CREATE TABLE table_name_96 (
nation VARCHAR,
silver VARCHAR,
total VARCHAR,
bronze VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nation when bronze is less than 7, gold is larger than 0, total is larger... | SELECT nation FROM table_name_96 WHERE bronze < 7 AND gold > 0 AND total > 7 AND silver < 3 |
### Instruction:
CREATE TABLE table_204_260 (
id number,
"date" text,
"venue" text,
"opponent" text,
"result" text,
"tournament" text,
"scored" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games were played at craven park ?
##... | SELECT COUNT(*) FROM table_204_260 WHERE "venue" = 'craven park' |
### Instruction:
CREATE TABLE table_74318 (
"Nationality" text,
"Celebrity" text,
"Occupation" text,
"Charity" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the charity for the celebrity with an occupation title of actor and ... | SELECT "Charity" FROM table_74318 WHERE "Occupation" = 'Actor and Singer' |
### Instruction:
CREATE TABLE table_name_98 (
code INTEGER,
region VARCHAR,
type VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylv re?
... | SELECT MIN(code) FROM table_name_98 WHERE type = "m" AND name = "saint-sylvère" AND region < 17 |
### Instruction:
CREATE TABLE table_59022 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Population" FROM table_59022 WHERE "County" = 'sargent' |
### Instruction:
CREATE TABLE table_11964047_5 (
record VARCHAR,
streak VARCHAR,
leading_scorer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of record where streak is l2 and leading scorer is roy : 23
### Response:
| SELECT COUNT(record) FROM table_11964047_5 WHERE streak = "L2" AND leading_scorer = "Roy : 23" |
### Instruction:
CREATE TABLE table_75295 (
"Position" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Exhibition*" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wjat game 3 has ian french as a game of 2?
### Response:
| SELECT "Game 3" FROM table_75295 WHERE "Game 2" = 'ian french' |
### Instruction:
CREATE TABLE table_19614 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most 1 credit for three of a kind
### Response:... | SELECT MAX("1 credit") FROM table_19614 WHERE "Hand" = 'Three of a Kind' |
### Instruction:
CREATE TABLE table_25619 (
"Player" text,
"Class Year" real,
"Position" text,
"Teams" text,
"Career" text,
"Highlight(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What class year was Vencie Glenn from?
### Response:
| SELECT MIN("Class Year") FROM table_25619 WHERE "Player" = 'Vencie Glenn' |
### Instruction:
CREATE TABLE table_35975 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Loss of peavy (4 3) is what score?
### Response:
| SELECT "Score" FROM table_35975 WHERE "Loss" = 'peavy (4–3)' |
### Instruction:
CREATE TABLE table_204_638 (
id number,
"year" number,
"tournament" text,
"surface" text,
"round" text,
"winner" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of carpet surfaces used ?... | SELECT COUNT(*) FROM table_204_638 WHERE "surface" = 'carpet' |
### Instruction:
CREATE TABLE table_54727 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What company constructed the car with more than 0 laps and shows 5 for grid?
###... | SELECT "Constructor" FROM table_54727 WHERE "Laps" > '0' AND "Grid" = '5' |
### Instruction:
CREATE TABLE table_2552 (
"Season" text,
"Player" text,
"Nationality" text,
"Team" text,
"Points" real,
"Average" text,
"Played" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had an average of 20.4?
### Respons... | SELECT "Team" FROM table_2552 WHERE "Average" = '20.4' |
### Instruction:
CREATE TABLE table_63949 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time with fewer than 5 lanes for the United States?
### Response:
| SELECT SUM("Time") FROM table_63949 WHERE "Lane" < '5' AND "Nationality" = 'united states' |
### Instruction:
CREATE TABLE table_name_29 (
short_term_capital_gain_rate VARCHAR,
long_term_gain_on_collectibles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is short-term capital gain rate with long-term gain on collectibles at 15%?
### Response:... | SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%" |
### Instruction:
CREATE TABLE table_204_103 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player competed in women 's singles and won a silver medal ?
### Response:
| SELECT "name" FROM table_204_103 WHERE "event" = "women's singles" AND "medal" = 'silver' |
### Instruction:
CREATE TABLE table_33513 (
"Date" text,
"Result" text,
"Score" text,
"Stadium" text,
"City" text,
"Crowd" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the match that had a score of 58-6?
### Response:
| SELECT "Result" FROM table_33513 WHERE "Score" = '58-6' |
### Instruction:
CREATE TABLE table_150 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The stenhousemuir team had how many highest attendances?
### Respon... | SELECT COUNT("Highest") FROM table_150 WHERE "Team" = 'Stenhousemuir' |
### Instruction:
CREATE TABLE table_204_652 (
id number,
"title" text,
"year" number,
"director" text,
"country" text,
"genre" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many directors are in the england films ?
### R... | SELECT COUNT("director") FROM table_204_652 WHERE "country" = 'england' |
### Instruction:
CREATE TABLE table_204_822 (
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.
-- the top ranked nation for total medals won
###... | SELECT "nation" FROM table_204_822 ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_377 (
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.
-- the team with the most gold medals
### Respons... | SELECT "nation" FROM table_203_377 ORDER BY "gold" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_23292 (
"Draw" real,
"Artist" text,
"Song" text,
"Jury votes" text,
"Televotes" real,
"Total votes" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What song has 24 votes?
### Response:
| SELECT "Song" FROM table_23292 WHERE "Total votes" = '24' |
### Instruction:
CREATE TABLE table_27383390_4 (
manner_of_departure VARCHAR,
incoming_head_coach VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the manner of departure when the incoming head coach is mohammad khakpour?
### Response:
| SELECT manner_of_departure FROM table_27383390_4 WHERE incoming_head_coach = "Mohammad Khakpour" |
### Instruction:
CREATE TABLE table_19149550_7 (
black_caribbean_population INTEGER,
other_black_population VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the black caribbean population when the other black population is 2243?
### Response:
| SELECT MAX(black_caribbean_population) FROM table_19149550_7 WHERE other_black_population = 2243 |
### Instruction:
CREATE TABLE table_80340 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the catalog of the release from January 23, 2002?
### Response:
| SELECT "Catalog" FROM table_80340 WHERE "Date" = 'january 23, 2002' |
### Instruction:
CREATE TABLE table_name_8 (
squad_no INTEGER,
name VARCHAR,
league_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?
### Response:
| SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17 |
### Instruction:
CREATE TABLE table_10863 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the Competition of euro 2000 qualifier?
### Response:
| SELECT "Result" FROM table_10863 WHERE "Competition" = 'euro 2000 qualifier' |
### Instruction:
CREATE TABLE table_61126 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has a score of 69-68-68=205?
### Response:
| SELECT "Player" FROM table_61126 WHERE "Score" = '69-68-68=205' |
### Instruction:
CREATE TABLE table_68420 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the game that had an attendance of 41,087?
### Response:
| SELECT "Score" FROM table_68420 WHERE "Attendance" = '41,087' |
### Instruction:
CREATE TABLE table_67353 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Winner, when the Prize is 880,000?
### Response:
| SELECT "Winner" FROM table_67353 WHERE "Prize" = '€880,000' |
### Instruction:
CREATE TABLE table_37778 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city held that game with a 5:2 result?
### Response:
| SELECT "City" FROM table_37778 WHERE "Results\u00b9" = '5:2' |
### Instruction:
CREATE TABLE table_22271 (
"Departure" text,
"Going to" text,
"Calling at" text,
"Arrival" text,
"Operator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the train going to when departing at 20.35?
### Response:
| SELECT "Going to" FROM table_22271 WHERE "Departure" = '20.35' |
### Instruction:
CREATE TABLE table_65846 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What artist has more than 6 draws, and in a place higher than 14?
### Response:
| SELECT "Artist" FROM table_65846 WHERE "Draw" > '6' AND "Place" > '14' |
### Instruction:
CREATE TABLE table_37682 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the parish that has a former local authority of S... | SELECT "Name" FROM table_37682 WHERE "Former local authority" = 'st neots urban district' |
### Instruction:
CREATE TABLE table_53252 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Score on March 15?
### Response:
| SELECT "Score" FROM table_53252 WHERE "Date" = 'march 15' |
### Instruction:
CREATE TABLE table_18666752_3 (
total_team_penalties VARCHAR,
cross_country_penalties VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total team penalties are there when cross country penalties is 30.40?
### Response:
| SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40" |
### Instruction:
CREATE TABLE table_1307842_7 (
gdp__billion_us$_ VARCHAR,
gdp_per_capita__us$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the gdp where gdp per capita 20200
### Response:
| SELECT gdp__billion_us$_ FROM table_1307842_7 WHERE gdp_per_capita__us$_ = 20200 |
### Instruction:
CREATE TABLE table_name_70 (
urban_sub_area VARCHAR,
council_area VARCHAR,
population VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?
### Re... | SELECT urban_sub_area FROM table_name_70 WHERE council_area = "east dunbartonshire" AND population = "19,020" |
### Instruction:
CREATE TABLE table_203_576 (
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.
-- which country won the least number of medals ?
... | SELECT "nation" FROM table_203_576 ORDER BY "total" LIMIT 1 |
### Instruction:
CREATE TABLE table_39968 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 10 November 2007, what was the venue?
### Response:
| SELECT "Venue" FROM table_39968 WHERE "Date" = '10 november 2007' |
### Instruction:
CREATE TABLE table_32395 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date did Ger Loughnane from Team Clare have a match?
### Response:
| SELECT "Date" FROM table_32395 WHERE "Team" = 'clare' AND "Player" = 'ger loughnane' |
### Instruction:
CREATE TABLE table_59108 (
"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 that has a place of T6 that Eduardo Romero plays for?
### Response:
| SELECT "Country" FROM table_59108 WHERE "Place" = 't6' AND "Player" = 'eduardo romero' |
### Instruction:
CREATE TABLE table_name_75 (
tickets_available_since VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tickets were available at Halle Tony Garnier on June 15, 2009?
### Response:
| SELECT tickets_available_since FROM table_name_75 WHERE venue = "halle tony garnier" AND date = "june 15, 2009" |
### Instruction:
CREATE TABLE table_18155 (
"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 elections have resulted in retired democratic... | SELECT COUNT("Party") FROM table_18155 WHERE "Results" = 'Retired Democratic hold' |
### Instruction:
CREATE TABLE table_42223 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capital of the province with in Hanja... | SELECT "Capital" FROM table_42223 WHERE "Hanja" = '漢州' |
### Instruction:
CREATE TABLE table_12473 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state is Ding and has a royal house of Ji?
### Response:
| SELECT "State" FROM table_12473 WHERE "Royal house" = 'ji' AND "Name" = 'ding' |
### Instruction:
CREATE TABLE table_name_20 (
rank INTEGER,
network VARCHAR,
number_of_viewers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2
### Response:
| SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million" |
### Instruction:
CREATE TABLE table_name_62 (
year__ceremony_ VARCHAR,
result VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has a not nominated result and a nomination title of 'the color of fame'?
### ... | SELECT year__ceremony_ FROM table_name_62 WHERE result = "not nominated" AND film_title_used_in_nomination = "the color of fame" |
### Instruction:
CREATE TABLE table_19219 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the run times with 8.2 million viewers?
### Res... | SELECT "Run time" FROM table_19219 WHERE "Viewers (in millions)" = '8.2' |
### Instruction:
CREATE TABLE table_name_2 (
mutated_from VARCHAR,
habit VARCHAR,
pattern VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?
### Response:
| SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 2" |
### Instruction:
CREATE TABLE table_56539 (
"Club" text,
"Wins" text,
"Last win" text,
"Runners-up" text,
"Last final lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins did the club have with the last win in 2000?
### Response:
| SELECT "Wins" FROM table_56539 WHERE "Last win" = '2000' |
### Instruction:
CREATE TABLE table_60656 (
"Season" text,
"League" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Pct." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins when the pct, is .848?
### Response:
| SELECT "Wins" FROM table_60656 WHERE "Pct." = '.848' |
### Instruction:
CREATE TABLE table_name_30 (
draws INTEGER,
central_murray VARCHAR,
byes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of draws of the central murray of leitchville gunbower, which has less than 0 byes?
### ... | SELECT AVG(draws) FROM table_name_30 WHERE central_murray = "leitchville gunbower" AND byes < 0 |
### Instruction:
CREATE TABLE table_203_267 (
id number,
"no." number,
"song" text,
"singers" text,
"length (m:ss)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than the first track , what track was less than 2 minutes in length ?
### Resp... | SELECT "song" FROM table_203_267 WHERE id <> 1 AND "length (m:ss)" < 2 |
### Instruction:
CREATE TABLE table_71177 (
"Player" text,
"Country" text,
"Caps" real,
"Goals" text,
"Years Active" text,
"Years at Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest number of caps for Bruce Djite?
### ... | SELECT MAX("Caps") FROM table_71177 WHERE "Player" = 'bruce djite' |
### Instruction:
CREATE TABLE table_13054 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status is on 21/08/1999?
### Response:
| SELECT "Status" FROM table_13054 WHERE "Date" = '21/08/1999' |
### Instruction:
CREATE TABLE table_name_47 (
left_office VARCHAR,
took_office VARCHAR,
minister VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Left Office, when Took Office is '11 June 2001', and when Minister is 'Mirko Tremaglia'?
### Respons... | SELECT left_office FROM table_name_47 WHERE took_office = "11 june 2001" AND minister = "mirko tremaglia" |
### Instruction:
CREATE TABLE table_name_60 (
time VARCHAR,
athlete VARCHAR,
year VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?
###... | SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = "riochy sekiya" |
### Instruction:
CREATE TABLE table_name_92 (
goals_against INTEGER,
wins VARCHAR,
draws VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
###... | SELECT AVG(goals_against) FROM table_name_92 WHERE draws = 8 AND losses < 12 AND wins > 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.