instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_203_830 (
id number,
"year" number,
"song" text,
"chart positions\nus country" number,
"chart positions\ncan country" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which years saw the release of three singles ?
### Response:
|
SELECT "year" FROM table_203_830 GROUP BY "year" HAVING COUNT("song") = 3
|
### Instruction:
CREATE TABLE table_204_294 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of dates ?
### Response:
|
SELECT COUNT("date") FROM table_204_294
|
### Instruction:
CREATE TABLE table_4470 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of picks for position of m of williams college
### Response:
|
SELECT COUNT("Pick #") FROM table_4470 WHERE "Position" = 'm' AND "Affiliation" = 'williams college'
|
### Instruction:
CREATE TABLE table_7438 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Attendance with a Date that is october 31, 1965?
### Response:
|
SELECT "Attendance" FROM table_7438 WHERE "Date" = 'october 31, 1965'
|
### Instruction:
CREATE TABLE table_48266 (
"Name" text,
"in \u00d7 in" text,
"mm \u00d7 mm" text,
"Ratio" real,
"Similar ISO A size" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Ratio has a Name of ansi e?
### Response:
|
SELECT MIN("Ratio") FROM table_48266 WHERE "Name" = 'ansi e'
|
### Instruction:
CREATE TABLE table_29009 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Reine Karlsson's nationality?
### Response:
|
SELECT "Nationality" FROM table_29009 WHERE "Player" = 'Reine Karlsson'
|
### Instruction:
CREATE TABLE table_60627 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week number for the date of September 14, 1980?
### Response:
|
SELECT MAX("Week") FROM table_60627 WHERE "Date" = 'september 14, 1980'
|
### Instruction:
CREATE TABLE table_40284 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Outfielder that was picked prior to Pick 42?
### Response:
|
SELECT "Player" FROM table_40284 WHERE "Position" = 'outfielder' AND "Pick" < '42'
|
### Instruction:
CREATE TABLE table_8132 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the game on November 24 with a Score of 6 2?
### Response:
|
SELECT "Record" FROM table_8132 WHERE "Score" = '6–2' AND "Date" = 'november 24'
|
### Instruction:
CREATE TABLE table_19092 (
"Season" real,
"Race Name" text,
"Winning Driver" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team does Al Unser drive for?
### Response:
|
SELECT "Team" FROM table_19092 WHERE "Winning Driver" = 'Al Unser'
|
### Instruction:
CREATE TABLE table_9847 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the artist that issued the single on 19 January?
### Response:
|
SELECT "Artist" FROM table_9847 WHERE "Issue Date(s)" = '19 january'
|
### Instruction:
CREATE TABLE table_43492 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position has a pick # of 238 and a round above 3?
### Response:
|
SELECT "Position" FROM table_43492 WHERE "Round" > '3' AND "Pick #" = '238'
|
### Instruction:
CREATE TABLE table_5827 (
"Year" real,
"Title" text,
"Role" text,
"Director" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Notes of bbc radio 3, and a Title of carnival involves which director?
### Response:
|
SELECT "Director" FROM table_5827 WHERE "Notes" = 'bbc radio 3' AND "Title" = 'carnival'
|
### Instruction:
CREATE TABLE table_16987 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which institutions joined in 1993
### Response:
|
SELECT "Institution" FROM table_16987 WHERE "Joined" = '1993'
|
### Instruction:
CREATE TABLE table_31814 (
"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 are the average laps driven in the GT class?
### Response:
|
SELECT AVG("Laps") FROM table_31814 WHERE "Class" = 'gt'
|
### Instruction:
CREATE TABLE table_name_14 (
to_par VARCHAR,
country VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par for the player from the United States with a 72-67-80-71=290 score?
### Response:
|
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 72 - 67 - 80 - 71 = 290
|
### Instruction:
CREATE TABLE table_204_396 (
id number,
"country" text,
"masters" number,
"u.s. open" number,
"the open" number,
"pga" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country has the most pga championships .
### Response:
|
SELECT "country" FROM table_204_396 ORDER BY "pga" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_847 (
id number,
"#" number,
"name" text,
"position" text,
"birthday" text,
"size" text,
"weight" text,
"last team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the shortest player on this team ?
### Response:
|
SELECT "name" FROM table_204_847 ORDER BY "size" LIMIT 1
|
### Instruction:
CREATE TABLE table_76785 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College has a Pick # larger than 30, and a Position of ol?
### Response:
|
SELECT "College" FROM table_76785 WHERE "Pick #" > '30' AND "Position" = 'ol'
|
### Instruction:
CREATE TABLE table_37693 (
"Rank" text,
"Urban sub-area" text,
"Population" text,
"Status" text,
"Council area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the council area for the Larkhall urban sub-area?
### Response:
|
SELECT "Council area" FROM table_37693 WHERE "Urban sub-area" = 'larkhall'
|
### Instruction:
CREATE TABLE table_69581 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the King team have fewer than 10 points?
### Response:
|
SELECT AVG("Year") FROM table_69581 WHERE "Team" = 'king' AND "Points" < '10'
|
### Instruction:
CREATE TABLE table_31500 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many areas have townland as kilgilky north?
### Response:
|
SELECT COUNT("Area( acres )") FROM table_31500 WHERE "Townland" = 'Kilgilky North'
|
### Instruction:
CREATE TABLE table_15528 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original title of the film from years after 1985 from the UK?
### Response:
|
SELECT "Original title" FROM table_15528 WHERE "Year" > '1985' AND "Country" = 'uk'
|
### Instruction:
CREATE TABLE table_204_668 (
id number,
"#" number,
"menteri besar" text,
"took office" text,
"left office" text,
"party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who spend the most amount of time in office ?
### Response:
|
SELECT "menteri besar" FROM table_204_668 ORDER BY "left office" - "took office" DESC LIMIT 1
|
### Instruction:
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of all the people who are older than at least one engineer? Order them by age.
### Response:
|
SELECT name FROM person WHERE age > (SELECT MIN(age) FROM person WHERE job = 'engineer') ORDER BY age
|
### Instruction:
CREATE TABLE table_67187 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the wins for 1963 bultaco
### Response:
|
SELECT "Wins" FROM table_67187 WHERE "Year" = '1963' AND "Team" = 'bultaco'
|
### Instruction:
CREATE TABLE table_name_9 (
result VARCHAR,
competition VARCHAR,
location VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?
### Response:
|
SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin"
|
### Instruction:
CREATE TABLE table_62758 (
"Team" text,
"Country" text,
"Home" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is second on the team with Euan Byers at lead?
### Response:
|
SELECT "Second" FROM table_62758 WHERE "Lead" = 'euan byers'
|
### Instruction:
CREATE TABLE table_68839 (
"Original title" text,
"Title in English" text,
"Genre" text,
"Role" text,
"Directed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Genre for Malina (ger.-aus.-fr.), an Original Title?
### Response:
|
SELECT "Genre" FROM table_68839 WHERE "Original title" = 'malina (ger.-aus.-fr.)'
|
### Instruction:
CREATE TABLE table_71953 (
"Date" text,
"Visiting team" text,
"Home team" text,
"Stadium" text,
"Regular season / Preseason" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the home team the Dallas Cowboys 34?
### Response:
|
SELECT "Date" FROM table_71953 WHERE "Home team" = 'dallas cowboys 34'
|
### Instruction:
CREATE TABLE table_54494 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Score was 6-2, which Opponent was played?
### Response:
|
SELECT "Opponent" FROM table_54494 WHERE "Score" = '6-2'
|
### Instruction:
CREATE TABLE table_28729 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent in the Ohio 5 district?
### Response:
|
SELECT "Incumbent" FROM table_28729 WHERE "District" = 'Ohio 5'
|
### Instruction:
CREATE TABLE table_204_140 (
id number,
"round" number,
"#" number,
"player" text,
"position" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many goalies were selected ?
### Response:
|
SELECT COUNT(*) FROM table_204_140 WHERE "position" = 'goalie'
|
### Instruction:
CREATE TABLE table_66166 (
"Rank:" real,
"Premier:" text,
"Party:" text,
"Assumed Office:" text,
"Left Office:" text,
"TOTAL Time in Office:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the premier when the rank is 30?
### Response:
|
SELECT "Premier:" FROM table_66166 WHERE "Rank:" = '30'
|
### Instruction:
CREATE TABLE table_27683516_3 (
manner_of_departure VARCHAR,
date_of_vacancy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the manner of departure when the date of vacancy is 28 september 2010?
### Response:
|
SELECT manner_of_departure FROM table_27683516_3 WHERE date_of_vacancy = "28 September 2010"
|
### Instruction:
CREATE TABLE table_61781 (
"Year" real,
"Award ceremony" text,
"Role" text,
"Production" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year saw the Production of Wicked at the Helpmann Awards Award ceremony?
### Response:
|
SELECT "Year" FROM table_61781 WHERE "Production" = 'wicked' AND "Award ceremony" = 'helpmann awards'
|
### Instruction:
CREATE TABLE table_53988 (
"Track #" real,
"Song" text,
"Singers" text,
"Picturization" text,
"Length" text,
"Lyricist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which song has a Picturization of Vijay?
### Response:
|
SELECT "Song" FROM table_53988 WHERE "Picturization" = 'vijay'
|
### Instruction:
CREATE TABLE table_29690363_3 (
race VARCHAR,
fastest_lap VARCHAR,
most_laps_led VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What race did josef newgarden have the fastest lap and lead the most laps?
### Response:
|
SELECT race FROM table_29690363_3 WHERE fastest_lap = "Josef Newgarden" AND most_laps_led = "Josef Newgarden"
|
### Instruction:
CREATE TABLE table_80064 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game attended by 50,200?
### Response:
|
SELECT "Score" FROM table_80064 WHERE "Attendance" = '50,200'
|
### Instruction:
CREATE TABLE table_7093 (
"Episode" real,
"Title" text,
"Story" text,
"Adapted by" text,
"Director" text,
"Airdate" text,
"Exists?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Exists when Ray Jenkins is the director?
### Response:
|
SELECT "Exists?" FROM table_7093 WHERE "Director" = 'ray jenkins'
|
### Instruction:
CREATE TABLE table_203_340 (
id number,
"rank" number,
"airport" text,
"passengers handled" number,
"% change 2011 / 12" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where is the most popular destination for passengers leaving london southend airport ?
### Response:
|
SELECT "airport" FROM table_203_340 ORDER BY "passengers handled" DESC LIMIT 1
|
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average age for a male in each job.
### Response:
|
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job
|
### Instruction:
CREATE TABLE table_26168 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did September 29 fall in?
### Response:
|
SELECT COUNT("Week") FROM table_26168 WHERE "Date" = 'September 29'
|
### Instruction:
CREATE TABLE table_65655 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date for the game that had a Location/Attendance of the spectrum?
### Response:
|
SELECT "Date" FROM table_65655 WHERE "Location/Attendance" = 'the spectrum'
|
### Instruction:
CREATE TABLE table_77173 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Date of november 19, 1961?
### Response:
|
SELECT MIN("Attendance") FROM table_77173 WHERE "Date" = 'november 19, 1961'
|
### Instruction:
CREATE TABLE table_1394 (
"Television Station" text,
"Frequency" text,
"Site" text,
"Transmitted" text,
"Network" text,
"Status" text,
"Country of Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the network(s) for tv1?
### Response:
|
SELECT "Network" FROM table_1394 WHERE "Television Station" = 'TV1'
|
### Instruction:
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum and mininum number of stars a rating can receive?
### Response:
|
SELECT MAX(stars), MIN(stars) FROM rating
|
### Instruction:
CREATE TABLE table_70652 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How high is the Attendance with a Record of 29-25?
### Response:
|
SELECT MAX("Attendance") FROM table_70652 WHERE "Record" = '29-25'
|
### Instruction:
CREATE TABLE table_203_405 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games during the season were attended by at least 50,000 people ?
### Response:
|
SELECT COUNT(*) FROM table_203_405 WHERE "attendance" >= 50000
|
### Instruction:
CREATE TABLE table_14557 (
"Opponent" text,
"OVERALL" text,
"HOME" text,
"AWAY" text,
"PLYFF" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Plyff team that plays the Billings Outlaws?
### Response:
|
SELECT "PLYFF" FROM table_14557 WHERE "Opponent" = 'billings outlaws'
|
### Instruction:
CREATE TABLE table_11148572_1 (
mls_cup_runner_up VARCHAR,
mls_cup_winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?
### Response:
|
SELECT mls_cup_runner_up FROM table_11148572_1 WHERE mls_cup_winner = "Real Salt Lake"
|
### Instruction:
CREATE TABLE table_40225 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tournament, when Margin is Victory of 6 Strokes?
### Response:
|
SELECT "Tournament" FROM table_40225 WHERE "Margin of victory" = '6 strokes'
|
### Instruction:
CREATE TABLE table_19099 (
"Call sign" text,
"Analog channel" text,
"Digital channel" text,
"Virtual channel" text,
"Network" text,
"Station Ownership" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is HSN's official virtual channel in Minneapolis-St. Paul?
### Response:
|
SELECT "Virtual channel" FROM table_19099 WHERE "Network" = 'HSN'
|
### Instruction:
CREATE TABLE table_64288 (
"Title" text,
"Series" text,
"Director" text,
"Release date" text,
"reissue?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From what series was Tokio Jokio, directed by Norm McCabe?
### Response:
|
SELECT "Series" FROM table_64288 WHERE "Director" = 'norm mccabe' AND "Title" = 'tokio jokio'
|
### Instruction:
CREATE TABLE table_18111 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the district for carolyn mccarthy
### Response:
|
SELECT "District" FROM table_18111 WHERE "Incumbent" = 'Carolyn McCarthy'
|
### Instruction:
CREATE TABLE table_67553 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Mark Brooks total score when he finished more than 2 above par?
### Response:
|
SELECT AVG("Total") FROM table_67553 WHERE "To par" > '2' AND "Player" = 'mark brooks'
|
### Instruction:
CREATE TABLE table_203_547 (
id number,
"ship" text,
"built" number,
"in service for cunard" text,
"type" text,
"tonnage" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- according to the chart what was the last ship built ?
### Response:
|
SELECT "ship" FROM table_203_547 ORDER BY "built" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_54202 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date is for Venue of jjb stadium, and a Result of w?
### Response:
|
SELECT "Date" FROM table_54202 WHERE "Venue" = 'jjb stadium' AND "Result" = 'w'
|
### Instruction:
CREATE TABLE table_203_172 (
id number,
"title" text,
"date of creation" text,
"surname" text,
"first titular" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is listed first , bragan a or vila ?
### Response:
|
SELECT "surname" FROM table_203_172 WHERE "surname" IN ('braganca', 'avila') ORDER BY id LIMIT 1
|
### Instruction:
CREATE TABLE table_name_48 (
against INTEGER,
played VARCHAR,
lost VARCHAR,
_percentage_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5?
### Response:
|
SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5
|
### Instruction:
CREATE TABLE table_14466 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine had a JBW chassis in 1960?
### Response:
|
SELECT "Engine" FROM table_14466 WHERE "Chassis" = 'jbw' AND "Year" = '1960'
|
### Instruction:
CREATE TABLE table_42423 (
"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 player came from the United States and went to Ohlone college?
### Response:
|
SELECT "Player" FROM table_42423 WHERE "Country of origin*" = 'united states' AND "College" = 'ohlone'
|
### Instruction:
CREATE TABLE table_6132 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text,
"Purse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the jockey when the owner was Richard Pegum?
### Response:
|
SELECT "Jockey" FROM table_6132 WHERE "Owner" = 'richard pegum'
|
### Instruction:
CREATE TABLE table_55715 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average laps did brm complete in grids larger than 12?
### Response:
|
SELECT AVG("Laps") FROM table_55715 WHERE "Constructor" = 'brm' AND "Grid" = '12'
|
### Instruction:
CREATE TABLE table_12114 (
"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 the median household income in Valley County?
### Response:
|
SELECT "Median household income" FROM table_12114 WHERE "County" = 'valley'
|
### Instruction:
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- find the ids of reviewers who did not give 4 star.
### Response:
|
SELECT rid FROM rating EXCEPT SELECT rid FROM rating WHERE stars = 4
|
### Instruction:
CREATE TABLE table_24298 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the hometown for barahona
### Response:
|
SELECT "Hometown" FROM table_24298 WHERE "Province, Community" = 'Barahona'
|
### Instruction:
CREATE TABLE table_name_85 (
points_classification VARCHAR,
trofeo_fast_team VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6?
### Response:
|
SELECT points_classification FROM table_name_85 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND stage = "6"
|
### Instruction:
CREATE TABLE table_18622 (
"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 are all the district with incumbent being sam hobbs
### Response:
|
SELECT "District" FROM table_18622 WHERE "Incumbent" = 'Sam Hobbs'
|
### Instruction:
CREATE TABLE table_9897 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Location, when Game is 42?
### Response:
|
SELECT "Location" FROM table_9897 WHERE "Game" = '42'
|
### Instruction:
CREATE TABLE table_203_473 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many victories did he have in april ?
### Response:
|
SELECT COUNT(*) FROM table_203_473 WHERE "date" = 4
|
### Instruction:
CREATE TABLE table_201_44 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which film is under the year of 1999 and has the role of mandy murphy ?
### Response:
|
SELECT "title" FROM table_201_44 WHERE "year" = 1999 AND "role" = 'mandy murphy'
|
### Instruction:
CREATE TABLE table_68976 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Date for the Label of Bertelsmann Music group and has a Region of Europe?
### Response:
|
SELECT "Date" FROM table_68976 WHERE "Label" = 'bertelsmann music group' AND "Region" = 'europe'
|
### Instruction:
CREATE TABLE table_name_48 (
record VARCHAR,
home VARCHAR,
visitor VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Record of Visitor of toronto st. pats with a Score of 5 4 and a Home of ottawa senators? Question 5
### Response:
|
SELECT record FROM table_name_48 WHERE visitor = "toronto st. pats" AND score = "5–4" AND home = "ottawa senators"
|
### Instruction:
CREATE TABLE table_51764 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the team with the 4-2 record?
### Response:
|
SELECT "Res." FROM table_51764 WHERE "Record" = '4-2'
|
### Instruction:
CREATE TABLE table_name_30 (
apps INTEGER,
goals VARCHAR,
club VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?
### Response:
|
SELECT SUM(apps) FROM table_name_30 WHERE club = "flamengo" AND season = "2009" AND goals > 0
|
### Instruction:
CREATE TABLE table_71934 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a score smaller than 71 along with a place of t6, what is the To par score?
### Response:
|
SELECT "To par" FROM table_71934 WHERE "Score" < '71' AND "Place" = 't6'
|
### Instruction:
CREATE TABLE table_name_74 (
fastest_laps INTEGER,
race_entries__starts_ VARCHAR,
podiums VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?
### Response:
|
SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = "32 (30)" AND podiums < 2
|
### Instruction:
CREATE TABLE table_name_72 (
race VARCHAR,
flap VARCHAR,
podium VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?
### Response:
|
SELECT COUNT(race) FROM table_name_72 WHERE podium > 1 AND season = "1982" AND flap < 1
|
### Instruction:
CREATE TABLE table_204_428 (
id number,
"season" text,
"east superleague" text,
"east premier league" text,
"east region south division" text,
"east region central division" text,
"east region north division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years are there in a season ?
### Response:
|
SELECT "season" - "season" FROM table_204_428
|
### Instruction:
CREATE TABLE table_25690 (
"Episode Number" text,
"Title" text,
"Villains" text,
"Director" text,
"Writer" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many villains were in episode 3 (13)?
### Response:
|
SELECT COUNT("Villains") FROM table_25690 WHERE "Episode Number" = '3 (13)'
|
### Instruction:
CREATE TABLE table_21984 (
"Season" text,
"Division North" text,
"Division South" text,
"Division East" text,
"Division West" text,
"Division Southwest" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the division east when division north was milano
### Response:
|
SELECT "Division East" FROM table_21984 WHERE "Division North" = 'Milano'
|
### Instruction:
CREATE TABLE table_11980 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed Aguri Suzuki's car?
### Response:
|
SELECT "Constructor" FROM table_11980 WHERE "Driver" = 'aguri suzuki'
|
### Instruction:
CREATE TABLE table_55552 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition has a Date of 16/4/01?
### Response:
|
SELECT "Competition" FROM table_55552 WHERE "Date" = '16/4/01'
|
### Instruction:
CREATE TABLE table_73411 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date successor seated for pennsylvania 17th
### Response:
|
SELECT "Date successor seated" FROM table_73411 WHERE "District" = 'Pennsylvania 17th'
|
### Instruction:
CREATE TABLE table_12979 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Week 2 has a Week 1 of crystal beddows?
### Response:
|
SELECT "Week 2" FROM table_12979 WHERE "Week 1" = 'crystal beddows'
|
### Instruction:
CREATE TABLE table_2130 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Zoe and Matt's rank?
### Response:
|
SELECT "Rank" FROM table_2130 WHERE "Couple" = 'Zoe and Matt'
|
### Instruction:
CREATE TABLE table_52630 (
"Week" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the week that has an attendance of 78,301
### Response:
|
SELECT "Week" FROM table_52630 WHERE "Attendance" = '78,301'
|
### Instruction:
CREATE TABLE table_204_712 (
id number,
"rank" number,
"athlete" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of japanese in the top 10 ?
### Response:
|
SELECT COUNT(*) FROM table_204_712 WHERE "nationality" = 'japan' AND id <= 10
|
### Instruction:
CREATE TABLE table_name_47 (
spectators INTEGER,
date VARCHAR,
time__cet_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Spectators have a Date of 17 june 2006, and a Time (CET) larger than 15?
### Response:
|
SELECT SUM(spectators) FROM table_name_47 WHERE date = "17 june 2006" AND time__cet_ > 15
|
### Instruction:
CREATE TABLE table_28494 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of song choices where the original artist was Bright Eyes?
### Response:
|
SELECT COUNT("Song choice") FROM table_28494 WHERE "Original artist" = 'Bright Eyes'
|
### Instruction:
CREATE TABLE table_70360 (
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
### Response:
|
SELECT MIN("Drawn") FROM table_70360 WHERE "Points" = '2' AND "Lost" < '6'
|
### Instruction:
CREATE TABLE table_train_190 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"diabetic" string,
"acute_diabetic_complications" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- age 60 or older
### Response:
|
SELECT * FROM table_train_190 WHERE age >= 60
|
### Instruction:
CREATE TABLE table_79090 (
"Year" real,
"Gold" text,
"Silver" text,
"Bronze" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?
### Response:
|
SELECT AVG("Year") FROM table_79090 WHERE "Bronze" = 'valentin novikov'
|
### Instruction:
CREATE TABLE table_27159 (
"Tie no" real,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the away team was norwich city?
### Response:
|
SELECT "Score 1" FROM table_27159 WHERE "Away team" = 'Norwich City'
|
### Instruction:
CREATE TABLE table_56956 (
"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 decision had a Record of 3 5 0?
### Response:
|
SELECT "Decision" FROM table_56956 WHERE "Record" = '3–5–0'
|
### Instruction:
CREATE TABLE table_58328 (
"Aircraft" text,
"Origin" text,
"Role" text,
"Registration" text,
"Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the role of the aircraft that has a registration of s5-hpg s5-hpc?
### Response:
|
SELECT "Role" FROM table_58328 WHERE "Registration" = 's5-hpg s5-hpc'
|
### Instruction:
CREATE TABLE table_56186 (
"Book title" text,
"Author" text,
"Edition/Publisher" text,
"Page count" text,
"Page size" text,
"Language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the edition/publisher for Xavier Herbert?
### Response:
|
SELECT "Edition/Publisher" FROM table_56186 WHERE "Author" = 'xavier herbert'
|
### Instruction:
CREATE TABLE table_57807 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent in the final of the Tournament of Blenheim?
### Response:
|
SELECT "Opponent in the final" FROM table_57807 WHERE "Tournament" = 'blenheim'
|
### Instruction:
CREATE TABLE table_2562572_26 (
cyrillic_name_other_names VARCHAR,
population__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the cyrillic and other names of the settlement whose population is 6591?
### Response:
|
SELECT cyrillic_name_other_names FROM table_2562572_26 WHERE population__2011_ = 6591
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.