instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_50365 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What CFL team does Jeff brown play for?
### Response:
|
SELECT "CFL Team" FROM table_50365 WHERE "Player" = 'jeff brown'
|
### Instruction:
CREATE TABLE table_38122 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For how many years was the location at Beijing?
### Response:
|
SELECT SUM("Year") FROM table_38122 WHERE "Location" = 'beijing'
|
### Instruction:
CREATE TABLE table_54627 (
"Number & name" text,
"Description" text,
"Current status" text,
"Livery" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which livery is from 1919?
### Response:
|
SELECT "Livery" FROM table_54627 WHERE "Date" = '1919'
|
### Instruction:
CREATE TABLE table_name_97 (
total INTEGER,
bronze VARCHAR,
silver VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Andorra's total with less than 10 silver and more than 5 bronze?
### Response:
|
SELECT SUM(total) FROM table_name_97 WHERE silver < 10 AND nation = "andorra" AND bronze > 5
|
### Instruction:
CREATE TABLE table_21550870_1 (
original_air_date VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original air date for 9.16 viewers
### Response:
|
SELECT original_air_date FROM table_21550870_1 WHERE us_viewers__million_ = "9.16"
|
### Instruction:
CREATE TABLE table_75105 (
"Conference" text,
"Division" text,
"Team" text,
"City" text,
"Home Arena" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which division do the Toronto Raptors belong in?
### Response:
|
SELECT "Division" FROM table_75105 WHERE "Team" = 'toronto raptors'
|
### Instruction:
CREATE TABLE table_39414 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is John Crawford's Nationality?
### Response:
|
SELECT "Nationality" FROM table_39414 WHERE "Player" = 'john crawford'
|
### Instruction:
CREATE TABLE table_name_95 (
laps INTEGER,
rider VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Laps that have gregorio lavilla as the rider, with a grid greater than 13?
### Response:
|
SELECT AVG(laps) FROM table_name_95 WHERE rider = "gregorio lavilla" AND grid > 13
|
### Instruction:
CREATE TABLE table_name_60 (
avg_g INTEGER,
name VARCHAR,
gain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Avg/G has a Name of david allen, and a Gain larger than 371?
### Response:
|
SELECT AVG(avg_g) FROM table_name_60 WHERE name = "david allen" AND gain > 371
|
### Instruction:
CREATE TABLE table_26173058_2 (
× VARCHAR,
jeel VARCHAR,
ramtha VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what the team where the record is 1-1 and the player is 1-1
### Response:
|
SELECT × FROM table_26173058_2 WHERE jeel = "1-1" AND ramtha = "1-1"
|
### Instruction:
CREATE TABLE table_3230 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was drafted by the Baltimore Colts?
### Response:
|
SELECT "Player" FROM table_3230 WHERE "NFL Team" = 'Baltimore Colts'
|
### Instruction:
CREATE TABLE table_name_85 (
attendance INTEGER,
result VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game with a result of w 16-13 and a week earlier than 12?
### Response:
|
SELECT MAX(attendance) FROM table_name_85 WHERE result = "w 16-13" AND week < 12
|
### Instruction:
CREATE TABLE table_79931 (
"Film" text,
"Director(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What award did the film Ozone win?
### Response:
|
SELECT "Award" FROM table_79931 WHERE "Film" = 'ozone'
|
### Instruction:
CREATE TABLE table_name_13 (
draw INTEGER,
points VARCHAR,
goals_conceded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?
### Response:
|
SELECT MAX(draw) FROM table_name_13 WHERE points = "22" AND goals_conceded < 26
|
### Instruction:
CREATE TABLE table_44755 (
"Language" text,
"Number" text,
"percentage (%)" text,
"males" text,
"females" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of the belarusian language?
### Response:
|
SELECT "Number" FROM table_44755 WHERE "Language" = 'belarusian'
|
### Instruction:
CREATE TABLE table_11558 (
"Year" real,
"Theme" text,
"Mintage" real,
"Issue Price" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many cowboy coins were minted?
### Response:
|
SELECT "Mintage" FROM table_11558 WHERE "Theme" = 'cowboy'
|
### Instruction:
CREATE TABLE table_204_536 (
id number,
"event" text,
"bowling center" text,
"city" text,
"dates" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last event on the chart
### Response:
|
SELECT "event" FROM table_204_536 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_8782 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most recent year with a position of 3rd?
### Response:
|
SELECT MAX("Year") FROM table_8782 WHERE "Position" = '3rd'
|
### Instruction:
CREATE TABLE table_43487 (
"Venue" text,
"Location" text,
"Environment" text,
"Closed" text,
"Reason" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Why did the Belk Gymnasium close?
### Response:
|
SELECT "Reason" FROM table_43487 WHERE "Venue" = 'belk gymnasium'
|
### Instruction:
CREATE TABLE table_74623 (
"Rank" real,
"Name" text,
"Club" text,
"Season" text,
"Length" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name is associated with a longer length than 903?
### Response:
|
SELECT "Name" FROM table_74623 WHERE "Length" > '903'
|
### Instruction:
CREATE TABLE table_name_57 (
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue has a Date of 20,21,22,23,24 november 1998?
### Response:
|
SELECT venue FROM table_name_57 WHERE date = "20,21,22,23,24 november 1998"
|
### Instruction:
CREATE TABLE table_name_73 (
wins INTEGER,
goals_against VARCHAR,
ties VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For teams with more than 0 ties and goals against of 37, how many wins were tallied?
### Response:
|
SELECT MAX(wins) FROM table_name_73 WHERE goals_against = 37 AND ties > 0
|
### Instruction:
CREATE TABLE table_4610 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chassis doe Ross Davis use?
### Response:
|
SELECT "Chassis" FROM table_4610 WHERE "Drivers" = 'ross davis'
|
### Instruction:
CREATE TABLE table_29135051_3 (
broadcast_date VARCHAR,
guest_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the episode guest starring michael mcintyre and alex james broadcasted
### Response:
|
SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = "Michael McIntyre and Alex James"
|
### Instruction:
CREATE TABLE table_name_88 (
japanese_title VARCHAR,
romaji_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?
### Response:
|
SELECT japanese_title FROM table_name_88 WHERE romaji_title = "ashita wa ashita no kaze ga fuku"
|
### Instruction:
CREATE TABLE table_name_46 (
name VARCHAR,
license VARCHAR,
actual_version VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name has a License of gpl, and an Actual version of 0.8.29wip4?
### Response:
|
SELECT name FROM table_name_46 WHERE license = "gpl" AND actual_version = "0.8.29wip4"
|
### Instruction:
CREATE TABLE table_79384 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game was in 2011?
### Response:
|
SELECT "Game" FROM table_79384 WHERE "Year" = '2011'
|
### Instruction:
CREATE TABLE table_203_24 (
id number,
"date" text,
"home team" text,
"score" text,
"away team" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on which date did the home team member not score ?
### Response:
|
SELECT "date" FROM table_203_24 WHERE "score" = 0
|
### Instruction:
CREATE TABLE table_203_509 (
id number,
"year" number,
"laetare medalist" text,
"position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times does philanthropist appear in the position column on this chart ?
### Response:
|
SELECT COUNT(*) FROM table_203_509 WHERE "position" = 'philanthropist'
|
### Instruction:
CREATE TABLE table_78126 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is from Tampa, Florida?
### Response:
|
SELECT "Player" FROM table_78126 WHERE "Hometown" = 'tampa, florida'
|
### Instruction:
CREATE TABLE table_44382 (
"Number" text,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Builder, when Date is 1925?
### Response:
|
SELECT "Builder" FROM table_44382 WHERE "Date" = '1925'
|
### Instruction:
CREATE TABLE table_name_36 (
rank INTEGER,
notes VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30?
### Response:
|
SELECT SUM(rank) FROM table_name_36 WHERE notes = "fb" AND time = "6:47.30"
|
### Instruction:
CREATE TABLE table_27599 (
"#" real,
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"Last School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most height
### Response:
|
SELECT MAX("Weight") FROM table_27599
|
### Instruction:
CREATE TABLE table_1785117_1 (
viewers__in_millions_ VARCHAR,
run_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many million viewers watched the episode that runs 25:55 minutes?
### Response:
|
SELECT viewers__in_millions_ FROM table_1785117_1 WHERE run_time = "25:55"
|
### Instruction:
CREATE TABLE table_name_78 (
money___£__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much money does the player with a 68-71-68-72=279 score have?
### Response:
|
SELECT money___£__ FROM table_name_78 WHERE score = 68 - 71 - 68 - 72 = 279
|
### Instruction:
CREATE TABLE table_name_54 (
perpetrator VARCHAR,
killed VARCHAR,
country VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the perpetrator in Uganda who killed 12 in Kampala?
### Response:
|
SELECT perpetrator FROM table_name_54 WHERE country = "uganda" AND location = "kampala" AND killed = "12"
|
### Instruction:
CREATE TABLE table_name_10 (
top_10 INTEGER,
cuts_made VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least top-10 for cuts made less than 11 and wins more than 0
### Response:
|
SELECT MIN(top_10) FROM table_name_10 WHERE cuts_made < 11 AND wins > 0
|
### Instruction:
CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the release dates are no earlier than what year ?
### Response:
|
SELECT MIN("release date") FROM table_203_607
|
### Instruction:
CREATE TABLE table_name_81 (
gold INTEGER,
total VARCHAR,
bronze VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
### Response:
|
SELECT SUM(gold) FROM table_name_81 WHERE bronze = 1 AND rank < 6 AND total < 3
|
### Instruction:
CREATE TABLE table_name_87 (
tyre VARCHAR,
entrant VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli?
### Response:
|
SELECT tyre FROM table_name_87 WHERE entrant = "sa alfa romeo" AND driver = "luigi fagioli"
|
### Instruction:
CREATE TABLE table_37250 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Length has a Year of 2000?
### Response:
|
SELECT "Length" FROM table_37250 WHERE "Year" = '2000'
|
### Instruction:
CREATE TABLE table_204_647 (
id number,
"year" number,
"film" text,
"role" text,
"language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the actor 's only movie in 2006 ?
### Response:
|
SELECT "film" FROM table_204_647 WHERE "year" = 2006
|
### Instruction:
CREATE TABLE table_2508633_9 (
player VARCHAR,
nfl_team VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players were the running back draft pick for the New England Patriots?
### Response:
|
SELECT COUNT(player) FROM table_2508633_9 WHERE nfl_team = "New England Patriots" AND position = "Running back"
|
### Instruction:
CREATE TABLE table_7380 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Catalog of vcrt 106?
### Response:
|
SELECT "Date" FROM table_7380 WHERE "Catalog" = 'vcrt 106'
|
### Instruction:
CREATE TABLE table_1108394_6 (
staten_island VARCHAR,
the_bronx VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the amount in Staten Island when The Bronx was 1,281?
### Response:
|
SELECT staten_island FROM table_1108394_6 WHERE the_bronx = "1,281"
|
### Instruction:
CREATE TABLE table_2159506_3 (
state__class_ VARCHAR,
reason_for_change VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the state class for resigned november 3, 1964
### Response:
|
SELECT state__class_ FROM table_2159506_3 WHERE reason_for_change = "Resigned November 3, 1964"
|
### Instruction:
CREATE TABLE table_71041 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which record has a Date of april 25?
### Response:
|
SELECT "Record" FROM table_71041 WHERE "Date" = 'april 25'
|
### Instruction:
CREATE TABLE table_204_536 (
id number,
"event" text,
"bowling center" text,
"city" text,
"dates" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what event is at the top of the chart ?
### Response:
|
SELECT "event" FROM table_204_536 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_95 (
country VARCHAR,
label VARCHAR,
catalog VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403?
### Response:
|
SELECT country FROM table_name_95 WHERE label = "toshiba-emi" AND catalog = "vjcp-68403"
|
### Instruction:
CREATE TABLE table_31939 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent for week 10?
### Response:
|
SELECT "Opponent" FROM table_31939 WHERE "Week" = '10'
|
### Instruction:
CREATE TABLE table_name_60 (
wins VARCHAR,
percentage_wins VARCHAR,
flags VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the number of wins when the flags were less than 8 and 52.11% of wins?
### Response:
|
SELECT COUNT(wins) FROM table_name_60 WHERE percentage_wins = "52.11%" AND flags < 8
|
### Instruction:
CREATE TABLE table_name_77 (
total INTEGER,
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
### Response:
|
SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = "corey pavin"
|
### Instruction:
CREATE TABLE table_name_86 (
name VARCHAR,
experience VARCHAR,
alma_mater VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience?
### Response:
|
SELECT name FROM table_name_86 WHERE experience > 19 AND alma_mater = "eastern nazarene ('74)"
|
### Instruction:
CREATE TABLE table_15626 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when the score is 8-1?
### Response:
|
SELECT "Result" FROM table_15626 WHERE "Score" = '8-1'
|
### Instruction:
CREATE TABLE table_name_19 (
rank INTEGER,
worldwide_gross VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the Film with a Worldwide Gross of $183,031,272?
### Response:
|
SELECT SUM(rank) FROM table_name_19 WHERE worldwide_gross = "$183,031,272"
|
### Instruction:
CREATE TABLE table_name_77 (
game VARCHAR,
road_team VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Game, when Road Team is 'Syracuse', and when Result is '109-82'?
### Response:
|
SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82"
|
### Instruction:
CREATE TABLE table_44773 (
"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 had the home team as brentford?
### Response:
|
SELECT "Date" FROM table_44773 WHERE "Home team" = 'brentford'
|
### Instruction:
CREATE TABLE table_57657 (
"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 time/retired for grid 5?
### Response:
|
SELECT "Time/Retired" FROM table_57657 WHERE "Grid" = '5'
|
### Instruction:
CREATE TABLE table_48870 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average pick number for Washington State?
### Response:
|
SELECT AVG("Pick") FROM table_48870 WHERE "School" = 'washington state'
|
### Instruction:
CREATE TABLE table_name_22 (
color_commentator_s_ VARCHAR,
sideline_reporter_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the color commentator for Andrea Kremer and Tiki Barber?
### Response:
|
SELECT color_commentator_s_ FROM table_name_22 WHERE sideline_reporter_s_ = "andrea kremer and tiki barber"
|
### Instruction:
CREATE TABLE table_58817 (
"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 is the away team playing at Everton?
### Response:
|
SELECT "Away team" FROM table_58817 WHERE "Home team" = 'everton'
|
### Instruction:
CREATE TABLE table_27378582_1 (
current_womens_lacrosse_conference VARCHAR,
nickname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the current womens lacrosse conference for bison
### Response:
|
SELECT current_womens_lacrosse_conference FROM table_27378582_1 WHERE nickname = "Bison"
|
### Instruction:
CREATE TABLE table_name_23 (
tournament VARCHAR,
date VARCHAR,
partner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tournament on October 24, 1982 had Alycia Moulton as the Partner?
### Response:
|
SELECT tournament FROM table_name_23 WHERE date = "october 24, 1982" AND partner = "alycia moulton"
|
### Instruction:
CREATE TABLE table_20799905_1 (
obama_percentage VARCHAR,
mccain_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage did Obama get when McCain got 52.8%?
### Response:
|
SELECT obama_percentage FROM table_20799905_1 WHERE mccain_percentage = "52.8%"
|
### 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.
-- who has the most goals ?
### Response:
|
SELECT "name" FROM table_203_692 ORDER BY "goals" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_67661 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who took the loss on the April 6 game?
### Response:
|
SELECT "Loss" FROM table_67661 WHERE "Date" = 'april 6'
|
### Instruction:
CREATE TABLE table_2147588_4 (
date_successor_seated VARCHAR,
vacator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When james brooks (d) is the vacator what is the date the successor was seated?
### Response:
|
SELECT date_successor_seated FROM table_2147588_4 WHERE vacator = "James Brooks (D)"
|
### Instruction:
CREATE TABLE table_29803475_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 have 0.25 million u.s viewers
### Response:
|
SELECT directed_by FROM table_29803475_3 WHERE us_viewers__million_ = "0.25"
|
### Instruction:
CREATE TABLE table_name_57 (
attendance INTEGER,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Attendance at Venue A on 16 October 2004?
### Response:
|
SELECT AVG(attendance) FROM table_name_57 WHERE venue = "a" AND date = "16 october 2004"
|
### Instruction:
CREATE TABLE table_74843 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format has a Label of toy's factory records?
### Response:
|
SELECT "Format" FROM table_74843 WHERE "Label" = 'toy''s factory records'
|
### Instruction:
CREATE TABLE table_45527 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manufacturer has 8 laps?
### Response:
|
SELECT "Manufacturer" FROM table_45527 WHERE "Laps" = '8'
|
### Instruction:
CREATE TABLE table_name_58 (
team VARCHAR,
qual_2 VARCHAR,
best VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has a qualifying 2 time under 59.612 and a best of 59.14?
### Response:
|
SELECT team FROM table_name_58 WHERE qual_2 < 59.612 AND best = 59.14
|
### Instruction:
CREATE TABLE table_66769 (
"Team" text,
"City" text,
"State" text,
"Home venue" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the state of the team who plays in Mumbai?
### Response:
|
SELECT "State" FROM table_66769 WHERE "Team" = 'mumbai'
|
### Instruction:
CREATE TABLE table_1402270_1 (
team_defense_rank INTEGER,
nfl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what the highest number for the opposite of offense for the green bay packers
### Response:
|
SELECT MAX(team_defense_rank) FROM table_1402270_1 WHERE nfl_team = "Green Bay Packers"
|
### Instruction:
CREATE TABLE table_33532 (
"Network" text,
"Origin of Programming" text,
"Language" text,
"Genre" text,
"Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which service does the network of atn urdu offer?
### Response:
|
SELECT "Service" FROM table_33532 WHERE "Network" = 'atn urdu'
|
### Instruction:
CREATE TABLE table_name_31 (
lane INTEGER,
notes VARCHAR,
time___sec__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lane for notes Q, SB and time less than 11.22?
### Response:
|
SELECT SUM(lane) FROM table_name_31 WHERE notes = "q, sb" AND time___sec__ < 11.22
|
### Instruction:
CREATE TABLE table_name_5 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the 2008 when 2007 is A, 2011 is A and tournament is san jose?
### Response:
|
SELECT 2008 FROM table_name_5 WHERE 2007 = "a" AND 2011 = "a" AND tournament = "san jose"
|
### Instruction:
CREATE TABLE table_69439 (
"Engine" text,
"Displacement" text,
"Power" text,
"Torque" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How powerful is the model before 1999?
### Response:
|
SELECT "Power" FROM table_69439 WHERE "Year" < '1999'
|
### Instruction:
CREATE TABLE table_57080 (
"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.
-- Which player is a shooting guard?
### Response:
|
SELECT "Player" FROM table_57080 WHERE "Position" = 'shooting guard'
|
### Instruction:
CREATE TABLE table_12707313_2 (
constr VARCHAR,
first_win VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of constr with the first win at the 1978 brazilian grand prix
### Response:
|
SELECT COUNT(constr) FROM table_12707313_2 WHERE first_win = "1978 Brazilian Grand Prix"
|
### Instruction:
CREATE TABLE table_name_42 (
points INTEGER,
opponent VARCHAR,
november VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have an Opponent of vancouver canucks, and a November smaller than 11?
### Response:
|
SELECT AVG(points) FROM table_name_42 WHERE opponent = "vancouver canucks" AND november < 11
|
### Instruction:
CREATE TABLE table_7193 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years were they nominated for outstanding musical?
### Response:
|
SELECT COUNT("Year") FROM table_7193 WHERE "Nominee" = 'outstanding musical'
|
### Instruction:
CREATE TABLE table_name_36 (
county VARCHAR,
listed VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the county name for the republican river bridge listed on 1992-06-29?
### Response:
|
SELECT county FROM table_name_36 WHERE listed = "1992-06-29" AND name = "republican river bridge"
|
### Instruction:
CREATE TABLE table_47001 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when the visitor was Atlanta Hawks?
### Response:
|
SELECT "Record" FROM table_47001 WHERE "Visitor" = 'atlanta hawks'
|
### Instruction:
CREATE TABLE table_71571 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game on June 1?
### Response:
|
SELECT "Score" FROM table_71571 WHERE "Date" = 'june 1'
|
### Instruction:
CREATE TABLE table_24257833_4 (
operating_system VARCHAR,
webkit_version VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all OS's with a webkit version of 525.29.1.
### Response:
|
SELECT operating_system FROM table_24257833_4 WHERE webkit_version = "525.29.1"
|
### Instruction:
CREATE TABLE table_22347090_5 (
us_viewers__million_ VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the viewers for production code being 3x6706
### Response:
|
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6706"
|
### Instruction:
CREATE TABLE table_21422977_2 (
ministries VARCHAR,
duration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ministries number when duration is 4 years, 4 days (1,465 days)?
### Response:
|
SELECT ministries FROM table_21422977_2 WHERE duration = "4 years, 4 days (1,465 days)"
|
### Instruction:
CREATE TABLE table_204_680 (
id number,
"released" text,
"title" text,
"artist" text,
"format" text,
"language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of songs was released in may ?
### Response:
|
SELECT COUNT(*) FROM table_204_680 WHERE "released" = 5
|
### Instruction:
CREATE TABLE table_204_793 (
id number,
"call-sign" text,
"location" text,
"rf" number,
"psip" number,
"programming" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many stations played in canton ?
### Response:
|
SELECT COUNT(*) FROM table_204_793 WHERE "location" = 'canton'
|
### Instruction:
CREATE TABLE table_33551 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the smallest overall under 22?
### Response:
|
SELECT "Player" FROM table_33551 WHERE "Overall" < '22'
|
### Instruction:
CREATE TABLE table_178389_1 (
sub_parish__sogn_ VARCHAR,
church_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of churches named H yanger Kyrkje?
### Response:
|
SELECT COUNT(sub_parish__sogn_) FROM table_178389_1 WHERE church_name = "Høyanger kyrkje"
|
### Instruction:
CREATE TABLE table_name_24 (
host_city VARCHAR,
venue VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?
### Response:
|
SELECT host_city FROM table_name_24 WHERE venue = "singapore indoor stadium" AND theme = "valentine's day"
|
### Instruction:
CREATE TABLE table_66865 (
"Player" text,
"Years" text,
"Goals" real,
"Assists" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals does Mike Eruzione have in total?
### Response:
|
SELECT "Goals" FROM table_66865 WHERE "Player" = 'mike eruzione'
|
### Instruction:
CREATE TABLE table_78450 (
"Building" text,
"City" text,
"Height" text,
"Stories" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stories is the torre reforma building?
### Response:
|
SELECT COUNT("Stories") FROM table_78450 WHERE "Building" = 'torre reforma'
|
### Instruction:
CREATE TABLE table_2562572_33 (
type VARCHAR,
cyrillic_name_other_names VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of settlement is (hungarian: orom)?
### Response:
|
SELECT type FROM table_2562572_33 WHERE cyrillic_name_other_names = "Ором (Hungarian: Orom)"
|
### Instruction:
CREATE TABLE table_51970 (
"Component" text,
"Integrated" text,
"Allied-Related" text,
"Allied-Unrelated" text,
"Holding" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What component has an integrated of one?
### Response:
|
SELECT "Component" FROM table_51970 WHERE "Integrated" = 'one'
|
### Instruction:
CREATE TABLE table_45201 (
"Name" text,
"Category" text,
"Eliminated" text,
"Date" text,
"Special Guest" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was eliminated on Banana Night?
### Response:
|
SELECT "Name" FROM table_45201 WHERE "Eliminated" = 'banana night'
|
### Instruction:
CREATE TABLE table_74557 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the extra for tournament of olympic games
### Response:
|
SELECT "Extra" FROM table_74557 WHERE "Tournament" = 'olympic games'
|
### Instruction:
CREATE TABLE table_19149550_9 (
bangladeshi_population INTEGER,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Bangladeshi citizens are there in the borough ranked at number 7?
### Response:
|
SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.