instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_204_157 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name one team below rank 2
### Response:
|
SELECT "opponent#" FROM table_204_157 WHERE "rank#" > 2
|
### Instruction:
CREATE TABLE table_1242447_1 (
strongs_transliteration VARCHAR,
english_spelling VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many strongs transliteration of the english spelling of the work jehojakin?
### Response:
|
SELECT COUNT(strongs_transliteration) FROM table_1242447_1 WHERE english_spelling = "Jehojakin"
|
### Instruction:
CREATE TABLE table_63520 (
"Year" real,
"Home Team" text,
"Away Team" text,
"Winner" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score when the away team is rivercity rage?
### Response:
|
SELECT "Score" FROM table_63520 WHERE "Away Team" = 'rivercity rage'
|
### Instruction:
CREATE TABLE table_29747178_3 (
directed_by VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that was watched by 2.67 million U.S. viewers?
### Response:
|
SELECT directed_by FROM table_29747178_3 WHERE us_viewers__million_ = "2.67"
|
### Instruction:
CREATE TABLE table_48128 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the match against carlisle united?
### Response:
|
SELECT "Date" FROM table_48128 WHERE "Away team" = 'carlisle united'
|
### Instruction:
CREATE TABLE table_59165 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away team has a Tie no of 14?
### Response:
|
SELECT "Away team" FROM table_59165 WHERE "Tie no" = '14'
|
### Instruction:
CREATE TABLE table_204_684 (
id number,
"wrestler:" text,
"times:" number,
"date:" text,
"location:" text,
"notes:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the number of matches that happened in japan ?
### Response:
|
SELECT COUNT(*) FROM table_204_684 WHERE "location:" = 'japan'
|
### Instruction:
CREATE TABLE table_22560 (
"Date" real,
"Single" text,
"Backed with" text,
"Record label" text,
"Format" text,
"Other details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was 'moped girls' released?
### Response:
|
SELECT "Date" FROM table_22560 WHERE "Single" = 'Moped Girls'
|
### Instruction:
CREATE TABLE table_13323 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the debut year of Mark Eaves?
### Response:
|
SELECT MIN("Debut year") FROM table_13323 WHERE "Player" = 'mark eaves'
|
### Instruction:
CREATE TABLE table_66062 (
"Year" text,
"Champions" text,
"Score" text,
"Runners-up" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What the score of the 1992 game?
### Response:
|
SELECT "Score" FROM table_66062 WHERE "Year" = '1992'
|
### Instruction:
CREATE TABLE table_6344 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is vanderbilt cup in?
### Response:
|
SELECT "Date" FROM table_6344 WHERE "Name" = 'vanderbilt cup'
|
### Instruction:
CREATE TABLE table_19517621_3 (
series__number INTEGER,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the series number for the episode written by Kristen Dunphy and David Ogilvy?
### Response:
|
SELECT MAX(series__number) FROM table_19517621_3 WHERE written_by = "Kristen Dunphy and David Ogilvy"
|
### Instruction:
CREATE TABLE table_1686313_1 (
population__2007_ INTEGER,
barangay VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least population 2007 for barangay is poblacion ii
### Response:
|
SELECT MIN(population__2007_) FROM table_1686313_1 WHERE barangay = "Poblacion II"
|
### Instruction:
CREATE TABLE table_40856 (
"Season" text,
"Round" text,
"Country" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country had an opponent of Sampdoria?
### Response:
|
SELECT "Country" FROM table_40856 WHERE "Opponent" = 'sampdoria'
|
### Instruction:
CREATE TABLE table_40015 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the result Eng by 1 wkt?
### Response:
|
SELECT "Date" FROM table_40015 WHERE "Result" = 'eng by 1 wkt'
|
### Instruction:
CREATE TABLE table_12732 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which place is Andy Bean from the United States?
### Response:
|
SELECT "Place" FROM table_12732 WHERE "Country" = 'united states' AND "Player" = 'andy bean'
|
### Instruction:
CREATE TABLE table_69301 (
"Year" real,
"Artist" text,
"Album / Song" text,
"Award" text,
"Result / Category" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which result is older than 2007?
### Response:
|
SELECT "Result / Category" FROM table_69301 WHERE "Year" < '2007'
|
### Instruction:
CREATE TABLE table_204_423 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many sites were listed as historical before 1980 ?
### Response:
|
SELECT COUNT("name") FROM table_204_423 WHERE "listing date" < 1980
|
### Instruction:
CREATE TABLE table_204_686 (
id number,
"date" text,
"pos." text,
"name" text,
"from" text,
"fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- there are only how many participants from crystal place ?
### Response:
|
SELECT COUNT(*) FROM table_204_686 WHERE "from" = 'crystal palace'
|
### Instruction:
CREATE TABLE table_43666 (
"Player" text,
"Position" text,
"Round" real,
"Pick" real,
"NFL Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick of the NFL club buffalo bills?
### Response:
|
SELECT "Pick" FROM table_43666 WHERE "NFL Club" = 'buffalo bills'
|
### Instruction:
CREATE TABLE table_11942 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was nominated for outstanding director of a musical?
### Response:
|
SELECT "Nominee" FROM table_11942 WHERE "Category" = 'outstanding director of a musical'
|
### Instruction:
CREATE TABLE table_name_60 (
score VARCHAR,
home VARCHAR,
leading_scorer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?
### Response:
|
SELECT score FROM table_name_60 WHERE home = "cavaliers" AND leading_scorer = "lebron james (46)"
|
### Instruction:
CREATE TABLE table_79995 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place did the player from England come in?
### Response:
|
SELECT "Place" FROM table_79995 WHERE "Country" = 'england'
|
### Instruction:
CREATE TABLE table_name_29 (
total_votes VARCHAR,
election VARCHAR,
share_of_votes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the vote total for elections after 2001 with 44.5% participation?
### Response:
|
SELECT total_votes FROM table_name_29 WHERE election > 2001 AND share_of_votes = "44.5%"
|
### Instruction:
CREATE TABLE table_181892_4 (
laps_led INTEGER,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest laps led with the lotus-ford 34/3 chassis?
### Response:
|
SELECT MAX(laps_led) FROM table_181892_4 WHERE chassis = "Lotus-Ford 34/3"
|
### Instruction:
CREATE TABLE table_22347090_6 (
no_in_series INTEGER,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode number in the series had a production code of 3x7554?
### Response:
|
SELECT MIN(no_in_series) FROM table_22347090_6 WHERE production_code = "3X7554"
|
### Instruction:
CREATE TABLE table_name_4 (
tournament VARCHAR,
wins VARCHAR,
top_5 VARCHAR,
top_25 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3
### Response:
|
SELECT tournament FROM table_name_4 WHERE top_5 > 1 AND top_25 = 13 AND wins = 3
|
### Instruction:
CREATE TABLE table_name_67 (
laps VARCHAR,
time_retired VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps does jean-christophe boullion have with a time/retired of +1 lap?
### Response:
|
SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion"
|
### Instruction:
CREATE TABLE table_name_7 (
entrant VARCHAR,
chassis VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974?
### Response:
|
SELECT entrant FROM table_name_7 WHERE chassis = "march 742" AND year > 1974
|
### Instruction:
CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many titles did melbourne house publish
### Response:
|
SELECT COUNT("title") FROM table_204_398 WHERE "publisher" = 'melbourne house'
|
### Instruction:
CREATE TABLE table_name_26 (
reg_gp INTEGER,
player VARCHAR,
pl_gp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has?
### Response:
|
SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0
|
### Instruction:
CREATE TABLE table_name_58 (
secondary_military_speciality VARCHAR,
primary_military_speciality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a Primary military speciality of astral assault tactics, what is the Secondary military speciality?
### Response:
|
SELECT secondary_military_speciality FROM table_name_58 WHERE primary_military_speciality = "astral assault tactics"
|
### Instruction:
CREATE TABLE table_57823 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer window for bel?
### Response:
|
SELECT "Transfer window" FROM table_57823 WHERE "Country" = 'bel'
|
### Instruction:
CREATE TABLE table_11901 (
"Week" real,
"Date" text,
"Opponent" text,
"Home/Away" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date against the Tampa bay Storm?
### Response:
|
SELECT "Date" FROM table_11901 WHERE "Opponent" = 'tampa bay storm'
|
### Instruction:
CREATE TABLE table_name_88 (
capacity INTEGER,
home_city VARCHAR,
manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the capacity when the home city is zagreb and the manager is zlatko kranj ar?
### Response:
|
SELECT AVG(capacity) FROM table_name_88 WHERE home_city = "zagreb" AND manager = "zlatko kranjčar"
|
### Instruction:
CREATE TABLE table_77414 (
"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 player has +2 to par?
### Response:
|
SELECT "Player" FROM table_77414 WHERE "To par" = '+2'
|
### Instruction:
CREATE TABLE table_50150 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In Tie #18, who was the away team?
### Response:
|
SELECT "Away team" FROM table_50150 WHERE "Tie no" = '18'
|
### Instruction:
CREATE TABLE table_5559 (
"Election" text,
"Date" text,
"Mayor" text,
"Ward seats" text,
"Votes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date were there 50,324 votes?
### Response:
|
SELECT "Date" FROM table_5559 WHERE "Votes" = '50,324'
|
### Instruction:
CREATE TABLE table_5078 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date when the game had a save by Aguilera (5)?
### Response:
|
SELECT "Date" FROM table_5078 WHERE "Save" = 'aguilera (5)'
|
### Instruction:
CREATE TABLE table_27614707_1 (
song_choice VARCHAR,
week__number VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Marisa Monte song choice was song during top 5?
### Response:
|
SELECT song_choice FROM table_27614707_1 WHERE week__number = "Top 5" AND original_artist = "Marisa Monte"
|
### Instruction:
CREATE TABLE table_name_35 (
rider VARCHAR,
grid VARCHAR,
laps VARCHAR,
manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider's manufacturer is Honda and has 28 laps and a grid of 1?
### Response:
|
SELECT rider FROM table_name_35 WHERE laps = "28" AND manufacturer = "honda" AND grid = "1"
|
### Instruction:
CREATE TABLE table_6580 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did the celebrity who finished 4th enter?
### Response:
|
SELECT "Entered" FROM table_6580 WHERE "Finished" = '4th'
|
### Instruction:
CREATE TABLE table_11708 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number of Jesse Alexander?
### Response:
|
SELECT MIN("Pick #") FROM table_11708 WHERE "Player" = 'jesse alexander'
|
### Instruction:
CREATE TABLE table_46062 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average game number that was on october 19?
### Response:
|
SELECT AVG("Game") FROM table_46062 WHERE "October" = '19'
|
### Instruction:
CREATE TABLE table_64869 (
"Event" text,
"Time" text,
"Date" text,
"Meet" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event had the 1500m freestyle?
### Response:
|
SELECT "Meet" FROM table_64869 WHERE "Event" = '1500m freestyle'
|
### Instruction:
CREATE TABLE table_47574 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO when the IATA is tgg?
### Response:
|
SELECT "ICAO" FROM table_47574 WHERE "IATA" = 'tgg'
|
### Instruction:
CREATE TABLE table_name_72 (
season VARCHAR,
head_coach VARCHAR,
europe VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?
### Response:
|
SELECT season FROM table_name_72 WHERE head_coach = "jonas kazlauskas" AND europe = "champions cup group stage"
|
### Instruction:
CREATE TABLE table_22669044_9 (
high_rebounds VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of high rebounds for united center 19,335
### Response:
|
SELECT COUNT(high_rebounds) FROM table_22669044_9 WHERE location_attendance = "United Center 19,335"
|
### Instruction:
CREATE TABLE table_28498999_5 (
player VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the player listed when the score is 68-70-68-69=275
### Response:
|
SELECT player FROM table_28498999_5 WHERE score = 68 - 70 - 68 - 69 = 275
|
### Instruction:
CREATE TABLE table_13296 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the opponent on 31 jul?
### Response:
|
SELECT "Opponent" FROM table_13296 WHERE "Date" = '31 jul'
|
### Instruction:
CREATE TABLE table_43767 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Record of 9 8?
### Response:
|
SELECT "Score" FROM table_43767 WHERE "Record" = '9–8'
|
### Instruction:
CREATE TABLE table_name_50 (
exit_date VARCHAR,
transfer_fee VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released?
### Response:
|
SELECT exit_date FROM table_name_50 WHERE transfer_fee = "released" AND player = "kiatprawut saiwaeo"
|
### Instruction:
CREATE TABLE table_603 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Robert Skibniewski born?
### Response:
|
SELECT "Year born" FROM table_603 WHERE "Player" = 'Robert Skibniewski'
|
### Instruction:
CREATE TABLE table_204_3 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did the last place swimmer take to swim the 100 meter butterfly ?
### Response:
|
SELECT "time" FROM table_204_3 ORDER BY "rank" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_75682 (
"Name" text,
"State" text,
"Status" text,
"Title" text,
"Appointment" text,
"Credentials Presented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day were credentials presented for vermont?
### Response:
|
SELECT "Credentials Presented" FROM table_75682 WHERE "State" = 'vermont'
|
### Instruction:
CREATE TABLE table_204_894 (
id number,
"season" number,
"winner" text,
"score" text,
"runners-up" text,
"venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was w connection the winner ?
### Response:
|
SELECT COUNT(*) FROM table_204_894 WHERE "winner" = 'w connection'
|
### Instruction:
CREATE TABLE table_1046170_5 (
division VARCHAR,
us_open_cup VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many division did not qualify for u.s. open cup in 2003
### Response:
|
SELECT division FROM table_1046170_5 WHERE us_open_cup = "Did Not Qualify" AND year = 2003
|
### Instruction:
CREATE TABLE table_32627 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state is Tanya Plibersek from?
### Response:
|
SELECT "State" FROM table_32627 WHERE "Member" = 'tanya plibersek'
|
### Instruction:
CREATE TABLE table_70391 (
"Overall place" text,
"Yacht name" text,
"Skipper" text,
"Points" text,
"Combined elapsed time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which skipper has 78 points?
### Response:
|
SELECT "Skipper" FROM table_70391 WHERE "Points" = '78'
|
### Instruction:
CREATE TABLE table_204_737 (
id number,
"year" number,
"order" text,
"quantity" number,
"ger nos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was g42 , 1898 or 1894 ?
### Response:
|
SELECT "year" FROM table_204_737 WHERE "order" = 'g42'
|
### Instruction:
CREATE TABLE table_69446 (
"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 race with the vicenza to marostica course?
### Response:
|
SELECT "Type" FROM table_69446 WHERE "Course" = 'vicenza to marostica'
|
### Instruction:
CREATE TABLE table_name_69 (
pressure_in_hpa__mbar_ VARCHAR,
vacuum_range VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Pressure in hPa (mbar), when Vacuum Range is 'medium vacuum'?
### Response:
|
SELECT pressure_in_hpa__mbar_ FROM table_name_69 WHERE vacuum_range = "medium vacuum"
|
### Instruction:
CREATE TABLE table_name_73 (
to_par VARCHAR,
player VARCHAR,
total VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Lee Trevino of the United States with a total greater than 294 had what To par?
### Response:
|
SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino"
|
### Instruction:
CREATE TABLE ARTIST (
Name VARCHAR,
ArtistId VARCHAR
)
CREATE TABLE ALBUM (
ArtistId VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist has the most albums?
### Response:
|
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE Documents_Mailed (
document_id VARCHAR
)
CREATE TABLE Addresses (
document_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What address was the document with id 4 mailed to?
### Response:
|
SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4
|
### Instruction:
CREATE TABLE table_61858 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Status has a Opposing Teams of wales?
### Response:
|
SELECT "Status" FROM table_61858 WHERE "Opposing Teams" = 'wales'
|
### Instruction:
CREATE TABLE table_name_56 (
number_of_broadband_subscribers VARCHAR,
number_of_users VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many broadband subscribers are there where there are ~47,372 users?
### Response:
|
SELECT number_of_broadband_subscribers FROM table_name_56 WHERE number_of_users = "~47,372"
|
### Instruction:
CREATE TABLE table_16398 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times were players named brett ralph were selected?
### Response:
|
SELECT COUNT("Pick #") FROM table_16398 WHERE "Player" = 'Brett Ralph'
|
### Instruction:
CREATE TABLE table_name_27 (
term_in_office VARCHAR,
member VARCHAR,
party VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the term in office for liberal and state of sa for ian mclachlan
### Response:
|
SELECT term_in_office FROM table_name_27 WHERE party = "liberal" AND state = "sa" AND member = "ian mclachlan"
|
### Instruction:
CREATE TABLE table_14410 (
"Year" real,
"Team" text,
"Wins" real,
"Points" real,
"Championship Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of wins after 1999?
### Response:
|
SELECT SUM("Wins") FROM table_14410 WHERE "Year" > '1999'
|
### Instruction:
CREATE TABLE table_12744399_1 (
genre VARCHAR,
english_title_translation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the genre of Fever Ranma : Hot Springs Athletic Chapter?
### Response:
|
SELECT genre FROM table_12744399_1 WHERE english_title_translation = "Fever Ranma ½: Hot Springs Athletic Chapter"
|
### Instruction:
CREATE TABLE table_17323042_11 (
high_assists VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the High Assist when the High Rebounds was andre iguodala (8)?
### Response:
|
SELECT high_assists FROM table_17323042_11 WHERE high_rebounds = "Andre Iguodala (8)"
|
### Instruction:
CREATE TABLE table_204_552 (
id number,
"rank" number,
"cyclist" text,
"team" text,
"laps\ndown" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last cyclist listed ?
### Response:
|
SELECT "cyclist" FROM table_204_552 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_22 (
fcsl_team VARCHAR,
mlb_team VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the FCSL Team when the MLB Team is Toronto Blue Jays, in the 4th round?
### Response:
|
SELECT fcsl_team FROM table_name_22 WHERE mlb_team = "toronto blue jays" AND round = "4th"
|
### Instruction:
CREATE TABLE table_50272 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IATA for Gatwick airport?
### Response:
|
SELECT "IATA" FROM table_50272 WHERE "Airport" = 'gatwick airport'
|
### Instruction:
CREATE TABLE table_49159 (
"Skip" text,
"Third/Vice skip" text,
"Second" text,
"Lead" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which City has a Lead of tyler forrest?
### Response:
|
SELECT "City" FROM table_49159 WHERE "Lead" = 'tyler forrest'
|
### Instruction:
CREATE TABLE table_22825679_1 (
sec_wins VARCHAR,
percentage VARCHAR,
home_record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sec wins for .357 percentage and 4-3 home record
### Response:
|
SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"
|
### Instruction:
CREATE TABLE table_5059 (
"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.
-- When is Northern Ireland the opponent?
### Response:
|
SELECT "Date" FROM table_5059 WHERE "Opponent" = 'northern ireland'
|
### Instruction:
CREATE TABLE table_27592654_2 (
province VARCHAR,
election_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?
### Response:
|
SELECT province FROM table_27592654_2 WHERE election_date = "5 Cannot handle non-empty timestamp argument! 1861"
|
### Instruction:
CREATE TABLE table_19480 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NFL team of the player whose college is Minnesota?
### Response:
|
SELECT "NFL Team" FROM table_19480 WHERE "College" = 'Minnesota'
|
### Instruction:
CREATE TABLE table_8637 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Lee Trevino's score?
### Response:
|
SELECT "Score" FROM table_8637 WHERE "Player" = 'lee trevino'
|
### Instruction:
CREATE TABLE table_7985 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owns the fm 101.3 frequency?
### Response:
|
SELECT "Owner" FROM table_7985 WHERE "Frequency" = 'fm 101.3'
|
### Instruction:
CREATE TABLE table_32380 (
"Stage" text,
"Date" text,
"Route" text,
"Terrain" text,
"Length" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which route has a Date of 2 july?
### Response:
|
SELECT "Route" FROM table_32380 WHERE "Date" = '2 july'
|
### Instruction:
CREATE TABLE table_204_336 (
id number,
"operators" text,
"named trains" text,
"destination" text,
"year begun" text,
"year discontinued" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what destination is at the top of the list ?
### Response:
|
SELECT "destination" FROM table_204_336 WHERE id = 1
|
### Instruction:
CREATE TABLE table_28081876_6 (
written_by VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the authors of the episode first broadcast on August 10, 2012?
### Response:
|
SELECT written_by FROM table_28081876_6 WHERE original_air_date = "August 10, 2012"
|
### Instruction:
CREATE TABLE table_38102 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Year is the length of the Song 7:42?
### Response:
|
SELECT AVG("Year") FROM table_38102 WHERE "Length" = '7:42'
|
### Instruction:
CREATE TABLE table_name_29 (
no5 VARCHAR,
no1 VARCHAR,
no2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?
### Response:
|
SELECT no5 FROM table_name_29 WHERE no1 = "lena claudisabel" AND no2 = "lena sylvie"
|
### Instruction:
CREATE TABLE table_2508633_11 (
college VARCHAR,
nfl_team VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which colleges is the NFL Team New York Giants and with the position defensive back?
### Response:
|
SELECT college FROM table_2508633_11 WHERE nfl_team = "New York Giants" AND position = "Defensive back"
|
### Instruction:
CREATE TABLE table_60139 (
"Club" text,
"Nickname" text,
"Location" text,
"GFL Premierships" text,
"Years in GFL" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location did the Tigers have?
### Response:
|
SELECT "Location" FROM table_60139 WHERE "Nickname" = 'tigers'
|
### Instruction:
CREATE TABLE table_69821 (
"Cyclist" text,
"Nation" text,
"Team" text,
"Time" text,
"UCI Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nation of the person who was from the CSC team?
### Response:
|
SELECT "Nation" FROM table_69821 WHERE "Team" = 'csc'
|
### Instruction:
CREATE TABLE table_41769 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the PBA team with a Pick that is 4?
### Response:
|
SELECT "PBA team" FROM table_41769 WHERE "Pick" = '4'
|
### Instruction:
CREATE TABLE table_203_695 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name one song that did not earn 60 points .
### Response:
|
SELECT "song" FROM table_203_695 WHERE "points" < 60
|
### Instruction:
CREATE TABLE table_name_52 (
track_number INTEGER,
time VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average track number 3:25 long and a title of Great Getting up Mornin'?
### Response:
|
SELECT AVG(track_number) FROM table_name_52 WHERE time = "3:25" AND title = "great getting up mornin'"
|
### Instruction:
CREATE TABLE table_19189856_1 (
last_performance VARCHAR,
first_performance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the last performance of the first performance on 11/15/1909
### Response:
|
SELECT last_performance FROM table_19189856_1 WHERE first_performance = "11/15/1909"
|
### Instruction:
CREATE TABLE table_78762 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has 1 as the place?
### Response:
|
SELECT "Player" FROM table_78762 WHERE "Finish" = '1'
|
### Instruction:
CREATE TABLE table_52708 (
"Rank" real,
"Mountain Peak" text,
"State" text,
"Mountain Range" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank Mount Elbert has?
### Response:
|
SELECT MAX("Rank") FROM table_52708 WHERE "Mountain Peak" = 'mount elbert'
|
### Instruction:
CREATE TABLE table_14925084_1 (
area_1891__statute_acres_ VARCHAR,
administrative_county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the area for administrative county being flintshire
### Response:
|
SELECT area_1891__statute_acres_ FROM table_14925084_1 WHERE administrative_county = "Flintshire"
|
### Instruction:
CREATE TABLE table_203_692 (
id number,
"name" text,
"pos." text,
"caps" number,
"goals" number,
"club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many team players have less that 1 goal ?
### Response:
|
SELECT COUNT("name") FROM table_203_692 WHERE "goals" < 1
|
### Instruction:
CREATE TABLE table_19963 (
"Year (Ceremony)" real,
"Original title" text,
"English title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of Pecado Mortal
### Response:
|
SELECT "Director" FROM table_19963 WHERE "Original title" = 'Pecado Mortal'
|
### Instruction:
CREATE TABLE table_name_18 (
year_startup VARCHAR,
operator VARCHAR,
project_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the startup year for the Jackpine Mine (ph 2) project with an albian sands operator?
### Response:
|
SELECT year_startup FROM table_name_18 WHERE operator = "albian sands" AND project_name = "jackpine mine (ph 2)"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.