instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_28 (
"Member" text,
"Electorate" text,
"Province" text,
"MPs term" text,
"Election date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which province is grey and bell electorate in
### Response:
|
SELECT "Province" FROM table_28 WHERE "Electorate" = 'Grey and Bell'
|
### Instruction:
CREATE TABLE table_name_27 (
attendance INTEGER,
week VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest attendance for the game after week 1 on November 12, 1961?
### Response:
|
SELECT MAX(attendance) FROM table_name_27 WHERE week > 1 AND date = "november 12, 1961"
|
### Instruction:
CREATE TABLE table_5436 (
"Church name" text,
"Organized by" text,
"Date" text,
"Split off / Continuation of" text,
"Current status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who organized Alston Church?
### Response:
|
SELECT "Organized by" FROM table_5436 WHERE "Church name" = 'alston church'
|
### Instruction:
CREATE TABLE table_75004 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Medal had a Name of manuel felix diaz?
### Response:
|
SELECT "Medal" FROM table_75004 WHERE "Name" = 'manuel felix diaz'
|
### Instruction:
CREATE TABLE table_71314 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What language is the film Karnal in?
### Response:
|
SELECT "Language" FROM table_71314 WHERE "Original title" = 'karnal'
|
### Instruction:
CREATE TABLE table_2468961_4 (
title VARCHAR,
written_by VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title of the episode written by Julia Newton in series 48?
### Response:
|
SELECT title FROM table_2468961_4 WHERE written_by = "Julia Newton" AND no_in_series = 48
|
### Instruction:
CREATE TABLE table_24415627_2 (
state_served VARCHAR,
time_since_entry VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the states that have entry times of 49years, 29days
### Response:
|
SELECT state_served FROM table_24415627_2 WHERE time_since_entry = "49years, 29days"
|
### Instruction:
CREATE TABLE table_18183850_12 (
edition VARCHAR,
surface VARCHAR,
outcome VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the game edition when they played on the clay (i) surface and the outcome was a winner?
### Response:
|
SELECT edition FROM table_18183850_12 WHERE surface = "Clay (i)" AND outcome = "Winner"
|
### Instruction:
CREATE TABLE table_204_910 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what nationality was the woman who won first place ?
### Response:
|
SELECT "nationality" FROM table_204_910 WHERE id = 1
|
### Instruction:
CREATE TABLE table_26914076_4 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that had 0.57 million U.S. viewers?
### Response:
|
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57"
|
### Instruction:
CREATE TABLE table_204_871 (
id number,
"ano" text,
"title" text,
"role" text,
"channel" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many were released after 2004 ?
### Response:
|
SELECT COUNT(*) FROM table_204_871 WHERE "ano" > 2004
|
### Instruction:
CREATE TABLE table_16527640_2 (
vfl_club_s_ VARCHAR,
vfl_games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What vfl club(s) did players who played 23 cfl games play for?
### Response:
|
SELECT vfl_club_s_ FROM table_16527640_2 WHERE vfl_games = 23
|
### Instruction:
CREATE TABLE table_35836 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Michael Eric Bibat win bronze?
### Response:
|
SELECT "Location" FROM table_35836 WHERE "Bronze" = 'michael eric bibat'
|
### Instruction:
CREATE TABLE table_79852 (
"Rider" text,
"Date" text,
"Place" text,
"Race" text,
"Event" text,
"Machine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event was Rob Vine riding?
### Response:
|
SELECT "Event" FROM table_79852 WHERE "Rider" = 'rob vine'
|
### Instruction:
CREATE TABLE table_name_89 (
country VARCHAR,
player VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From what Country is player K. J. Choi with a Score of 68-71=139?
### Response:
|
SELECT country FROM table_name_89 WHERE score = 68 - 71 = 139 AND player = "k. j. choi"
|
### Instruction:
CREATE TABLE table_71599 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was there a finish of 3?
### Response:
|
SELECT "Year" FROM table_71599 WHERE "Finish" = '3'
|
### Instruction:
CREATE TABLE table_31272 (
"Pick #" real,
"MLS team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which MLS team picked player Jason Herrick?
### Response:
|
SELECT "MLS team" FROM table_31272 WHERE "Player" = 'Jason Herrick'
|
### Instruction:
CREATE TABLE table_204_912 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many athletes represented sweden ?
### Response:
|
SELECT COUNT("athlete") FROM table_204_912 WHERE "country" = 'sweden'
|
### Instruction:
CREATE TABLE publication (
publication_id number,
book_id number,
publisher text,
publication_date text,
price number
)
CREATE TABLE book (
book_id number,
title text,
issues number,
writer text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of distinct publication dates?
### Response:
|
SELECT COUNT(DISTINCT publication_date) FROM publication
|
### Instruction:
CREATE TABLE table_56822 (
"Chemical class" text,
"Group" text,
"Formula" text,
"Prefix" text,
"Suffix" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the prefix for the formula of Rsor'?
### Response:
|
SELECT "Prefix" FROM table_56822 WHERE "Formula" = 'rsor'
|
### Instruction:
CREATE TABLE table_19874169_3 (
power__kw_ VARCHAR,
branding VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the branding is Yes! FM 91.1 Boracay, what is the power?
### Response:
|
SELECT power__kw_ FROM table_19874169_3 WHERE branding = "YES! FM 91.1 Boracay"
|
### Instruction:
CREATE TABLE table_name_64 (
socket VARCHAR,
voltage VARCHAR,
model_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?
### Response:
|
SELECT socket FROM table_name_64 WHERE voltage = "2.0v" AND model_number = "pentium ii 333"
|
### Instruction:
CREATE TABLE table_name_25 (
bronze VARCHAR,
silver VARCHAR,
total VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was the total more than 1, the nation was east germany and silver was more than 1?
### Response:
|
SELECT COUNT(bronze) FROM table_name_25 WHERE total > 1 AND nation = "east germany" AND silver > 1
|
### Instruction:
CREATE TABLE table_204_35 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did sd ponferradina b compete in division 3a ?
### Response:
|
SELECT COUNT(*) FROM table_204_35 WHERE "division" = '3a'
|
### Instruction:
CREATE TABLE table_34600 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day in february was game 53?
### Response:
|
SELECT AVG("February") FROM table_34600 WHERE "Game" = '53'
|
### Instruction:
CREATE TABLE table_23680576_3 (
week_36 VARCHAR,
week_32 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the full amount of week 36 results when week 32 is 13.2%.
### Response:
|
SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = "13.2%"
|
### Instruction:
CREATE TABLE table_38572 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of game 81?
### Response:
|
SELECT "Date" FROM table_38572 WHERE "Game" = '81'
|
### Instruction:
CREATE TABLE table_name_6 (
total INTEGER,
bronze VARCHAR,
rank VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?
### Response:
|
SELECT SUM(total) FROM table_name_6 WHERE rank > 4 AND nation = "czech republic" AND bronze > 0
|
### Instruction:
CREATE TABLE table_71512 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team hosted at Tampa Stadium?
### Response:
|
SELECT "Host Team" FROM table_71512 WHERE "Stadium" = 'tampa stadium'
|
### Instruction:
CREATE TABLE table_53462 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the time/retired for grid of 17
### Response:
|
SELECT "Time/Retired" FROM table_53462 WHERE "Grid" = '17'
|
### Instruction:
CREATE TABLE table_14794 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the most points for Coloni Spa?
### Response:
|
SELECT MAX("Points") FROM table_14794 WHERE "Entrant" = 'coloni spa'
|
### Instruction:
CREATE TABLE table_20181270_3 (
landesliga_nord VARCHAR,
landesliga_mitte VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the landesliga nord for freier tus regensburg
### Response:
|
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "Freier TuS Regensburg"
|
### Instruction:
CREATE TABLE table_name_35 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Bronze of 0, and a Total of 1, and a Silver smaller than 1 what is the lowest gold?
### Response:
|
SELECT MIN(gold) FROM table_name_35 WHERE bronze = 0 AND total = 1 AND silver < 1
|
### Instruction:
CREATE TABLE table_11545282_6 (
player VARCHAR,
years_for_jazz VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players have played for Jazz during 2006-2007?
### Response:
|
SELECT COUNT(player) FROM table_11545282_6 WHERE years_for_jazz = "2006-2007"
|
### Instruction:
CREATE TABLE table_21696800_1 (
_number VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the number of the episode seen by 2.24 million people in the US?
### Response:
|
SELECT _number FROM table_21696800_1 WHERE us_viewers__million_ = "2.24"
|
### Instruction:
CREATE TABLE table_57550 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position has a School of green valley high school?
### Response:
|
SELECT "Position" FROM table_57550 WHERE "School" = 'green valley high school'
|
### Instruction:
CREATE TABLE table_39791 (
"Year" real,
"Award" text,
"Category" text,
"Nominated Work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For how many years has the Mercury Prize been awarded?
### Response:
|
SELECT COUNT("Year") FROM table_39791 WHERE "Award" = 'mercury prize'
|
### Instruction:
CREATE TABLE table_38034 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Catalog has a Format of 7' single (second cover)?
### Response:
|
SELECT "Catalog" FROM table_38034 WHERE "Format" = '7" single (second cover)'
|
### Instruction:
CREATE TABLE table_name_51 (
year VARCHAR,
role VARCHAR,
theatre VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of years for lady cecily waynflete and opera house, kennedy center
### Response:
|
SELECT COUNT(year) FROM table_name_51 WHERE role = "lady cecily waynflete" AND theatre = "opera house, kennedy center"
|
### Instruction:
CREATE TABLE table_59079 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the event in a year before 1989?
### Response:
|
SELECT "Event" FROM table_59079 WHERE "Year" < '1989'
|
### Instruction:
CREATE TABLE table_name_30 (
crowd INTEGER,
ground VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?
### Response:
|
SELECT MAX(crowd) FROM table_name_30 WHERE ground = "telstra dome" AND home_team = "western bulldogs"
|
### Instruction:
CREATE TABLE table_name_1 (
shot_pct INTEGER,
ends_won VARCHAR,
ends_lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest shot % with ends won larger than 29 and ends lost smaller than 26?
### Response:
|
SELECT MIN(shot_pct) FROM table_name_1 WHERE ends_won > 29 AND ends_lost < 26
|
### Instruction:
CREATE TABLE table_name_81 (
nominee VARCHAR,
category VARCHAR,
award VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nominee won the Drama Desk Award for outstanding choreography?
### Response:
|
SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography"
|
### Instruction:
CREATE TABLE table_67226 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality has a Name of igor koleda?
### Response:
|
SELECT "Nationality" FROM table_67226 WHERE "Name" = 'igor koleda'
|
### Instruction:
CREATE TABLE table_71074 (
"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 is the place for ireland?
### Response:
|
SELECT "Place" FROM table_71074 WHERE "Country" = 'ireland'
|
### Instruction:
CREATE TABLE table_60964 (
"Class" text,
"Team" text,
"Drivers" text,
"Laps" real,
"Qual Pos" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are Perkins Engineering's fewest laps?
### Response:
|
SELECT MIN("Laps") FROM table_60964 WHERE "Team" = 'perkins engineering'
|
### Instruction:
CREATE TABLE table_61279 (
"Location" text,
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the runner-up in 1999?
### Response:
|
SELECT "Runner-up" FROM table_61279 WHERE "Year" = '1999'
|
### Instruction:
CREATE TABLE table_201_39 (
id number,
"no" number,
"title" text,
"directed by" text,
"released" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many titles did bob balsar direct ?
### Response:
|
SELECT COUNT("title") FROM table_201_39 WHERE "directed by" = 'bob balsar'
|
### Instruction:
CREATE TABLE table_57599 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did Jacques Villeneuve have?
### Response:
|
SELECT "Laps" FROM table_57599 WHERE "Driver" = 'jacques villeneuve'
|
### Instruction:
CREATE TABLE branch (
membership_amount INTEGER,
open_year VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
### Response:
|
SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
|
### Instruction:
CREATE TABLE table_3241 (
"Name of Bowl" text,
"Record" text,
"Appearances" real,
"Last Appearance" text,
"Winning %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for cotton bowl classic
### Response:
|
SELECT "Record" FROM table_3241 WHERE "Name of Bowl" = 'Cotton Bowl Classic'
|
### Instruction:
CREATE TABLE table_204_498 (
id number,
"location" text,
"building" text,
"year" number,
"km" number,
"monument" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what other two locations have a rail bridge ?
### Response:
|
SELECT "location" FROM table_204_498 WHERE "building" = 'rail bridge'
|
### Instruction:
CREATE TABLE table_name_99 (
chorley INTEGER,
preston VARCHAR,
west_lancashire VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire?
### Response:
|
SELECT MIN(chorley) FROM table_name_99 WHERE preston = 6 AND west_lancashire < 4
|
### Instruction:
CREATE TABLE table_name_5 (
laps INTEGER,
time_retired VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of laps where time/retired is +2 laps and the grid number is bigger than 18?
### Response:
|
SELECT SUM(laps) FROM table_name_5 WHERE time_retired = "+2 laps" AND grid > 18
|
### Instruction:
CREATE TABLE table_204_718 (
id number,
"date" text,
"opponent" text,
"time" text,
"score" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what school is scheduled to play first ?
### Response:
|
SELECT "opponent" FROM table_204_718 ORDER BY "date" LIMIT 1
|
### Instruction:
CREATE TABLE table_2233872_1 (
COUNt VARCHAR,
gp VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many season did the team lost in round 1 with a GP of 64?
### Response:
|
SELECT COUNt AS season FROM table_2233872_1 WHERE gp = 64 AND result = "lost in round 1"
|
### Instruction:
CREATE TABLE table_78106 (
"Date" text,
"Winning Team" text,
"Losing Team" text,
"Score" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the score on june 29?
### Response:
|
SELECT "Score" FROM table_78106 WHERE "Date" = 'june 29'
|
### Instruction:
CREATE TABLE table_name_57 (
result VARCHAR,
rank__number VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game played when 22,555 were in attendance and the Buckeyes were ranked #1?
### Response:
|
SELECT result FROM table_name_57 WHERE rank__number = "1" AND attendance = "22,555"
|
### Instruction:
CREATE TABLE table_34595 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the winner of meridiana
### Response:
|
SELECT "Owner" FROM table_34595 WHERE "Winner" = 'meridiana'
|
### Instruction:
CREATE TABLE table_name_18 (
draws VARCHAR,
losses VARCHAR,
hampden_fl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?
### Response:
|
SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = "terang-mortlake"
|
### Instruction:
CREATE TABLE table_17001658_10 (
high_rebounds VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For High Assists of Raymond Felton (12), who were the High rebounds?
### Response:
|
SELECT high_rebounds FROM table_17001658_10 WHERE high_assists = "Raymond Felton (12)"
|
### Instruction:
CREATE TABLE table_20193855_2 (
year INTEGER,
author_s__or_editor_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which year were the authors or editors Delia Sherman?
### Response:
|
SELECT MAX(year) FROM table_20193855_2 WHERE author_s__or_editor_s_ = "Delia Sherman"
|
### Instruction:
CREATE TABLE table_201_21 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year did he play the roles of gary ellis and vincent boyd ?
### Response:
|
SELECT "year" FROM table_201_21 WHERE "role" = 'gary ellis'
|
### Instruction:
CREATE TABLE table_25246990_5 (
original_us_air_date VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original U.S. air date of the episode directed by Julian Petrillo?
### Response:
|
SELECT original_us_air_date FROM table_25246990_5 WHERE directed_by = "Julian Petrillo"
|
### Instruction:
CREATE TABLE table_22669044_10 (
team VARCHAR,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the game in which Hakim Warrick (14) did the most high points?
### Response:
|
SELECT team FROM table_22669044_10 WHERE high_points = "Hakim Warrick (14)"
|
### Instruction:
CREATE TABLE table_name_89 (
title VARCHAR,
series VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Title of the LT Series Filmography with a Release date of 1964-02-08?
### Response:
|
SELECT title FROM table_name_89 WHERE series = "lt" AND release_date = "1964-02-08"
|
### Instruction:
CREATE TABLE table_17490 (
"Subjects" text,
"First Year" text,
"Second Year" text,
"Third Year" text,
"Fourth Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the third year course in science?
### Response:
|
SELECT "Third Year" FROM table_17490 WHERE "Subjects" = 'Science'
|
### Instruction:
CREATE TABLE table_1566852_7 (
interview_subject VARCHAR,
cover_model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- IN THE ISSUE WITH KARA MONACO ON THE COVER, WHO WAS THE INTERVIEW SUBJECT?
### Response:
|
SELECT interview_subject FROM table_1566852_7 WHERE cover_model = "Kara Monaco"
|
### Instruction:
CREATE TABLE train_station (
station_id VARCHAR
)
CREATE TABLE station (
name VARCHAR,
station_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the station name and number of trains in each station.
### Response:
|
SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id
|
### Instruction:
CREATE TABLE table_name_52 (
to_par INTEGER,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Score of 78-74-71-75=298?
### Response:
|
SELECT AVG(to_par) FROM table_name_52 WHERE score = 78 - 74 - 71 - 75 = 298
|
### Instruction:
CREATE TABLE table_10015132_9 (
position VARCHAR,
years_in_toronto VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the total number of positions on the Toronto team in 2006-07?
### Response:
|
SELECT COUNT(position) FROM table_10015132_9 WHERE years_in_toronto = "2006-07"
|
### Instruction:
CREATE TABLE table_28072 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points does George M. Lawton have?
### Response:
|
SELECT MAX("Points") FROM table_28072 WHERE "Player" = 'George M. Lawton'
|
### Instruction:
CREATE TABLE table_59973 (
"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.
-- Who is the team that played away team watford?
### Response:
|
SELECT "Home team" FROM table_59973 WHERE "Away team" = 'watford'
|
### Instruction:
CREATE TABLE table_22078691_2 (
title VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title that has 14.59 u.s. viewers (millions)?
### Response:
|
SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = "14.59"
|
### Instruction:
CREATE TABLE table_55495 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of grid for laps of 52
### Response:
|
SELECT COUNT("Grid") FROM table_55495 WHERE "Laps" = '52'
|
### Instruction:
CREATE TABLE table_name_61 (
gold VARCHAR,
nation VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of golds having a total of 1, bronzes of 0, and from West Germany?
### Response:
|
SELECT COUNT(gold) FROM table_name_61 WHERE total = 1 AND bronze < 1 AND nation = "west germany"
|
### Instruction:
CREATE TABLE table_79361 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Born" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the weight of Serhiy Alfyorov?
### Response:
|
SELECT "Weight" FROM table_79361 WHERE "Name" = 'serhiy alfyorov'
|
### Instruction:
CREATE TABLE table_name_62 (
year_s__won VARCHAR,
country VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Year(s) Won that has the Country of united states, and the Total larger than 152?
### Response:
|
SELECT year_s__won FROM table_name_62 WHERE country = "united states" AND total > 152
|
### Instruction:
CREATE TABLE table_47947 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of Bronco Billy?
### Response:
|
SELECT AVG("Rank") FROM table_47947 WHERE "Title" = 'bronco billy'
|
### Instruction:
CREATE TABLE table_39120 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the second when Mikkel Krause is the third?
### Response:
|
SELECT "Second" FROM table_39120 WHERE "Third" = 'mikkel krause'
|
### Instruction:
CREATE TABLE table_name_99 (
april INTEGER,
record VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value in April with a record of 35 37 11 and more than 81 points?
### Response:
|
SELECT MAX(april) FROM table_name_99 WHERE record = "35–37–11" AND points > 81
|
### Instruction:
CREATE TABLE table_79592 (
"Location" text,
"Name of mill" text,
"Type" text,
"Built" real,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the Grondzeiler Mill?
### Response:
|
SELECT "Name of mill" FROM table_79592 WHERE "Type" = 'grondzeiler'
|
### Instruction:
CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which type of crime has the highest rate of 'Investigation complete'?
### Response:
|
SELECT type FROM greatermanchestercrime WHERE outcome LIKE "%Investigation complete%" GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_5200 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many pick numbers did Matt Marquess have?
### Response:
|
SELECT COUNT("Pick #") FROM table_5200 WHERE "Player" = 'matt marquess'
|
### Instruction:
CREATE TABLE table_2150068_1 (
decay VARCHAR,
nssdc_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the decay for the sattelite with an id that is 1990-081c?
### Response:
|
SELECT decay FROM table_2150068_1 WHERE nssdc_id = "1990-081C"
|
### Instruction:
CREATE TABLE table_41347 (
"RANK" real,
"NAME" text,
"TEAM" text,
"COUNTRY" text,
"POINTS" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country is in Rank 2?
### Response:
|
SELECT "COUNTRY" FROM table_41347 WHERE "RANK" = '2'
|
### Instruction:
CREATE TABLE table_48791 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What NFL team did the Tight End position belong to?
### Response:
|
SELECT "NFL Team" FROM table_48791 WHERE "Position" = 'tight end'
|
### Instruction:
CREATE TABLE table_15824796_3 (
title VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes aired on february 13, 1954?
### Response:
|
SELECT COUNT(title) FROM table_15824796_3 WHERE original_air_date = "February 13, 1954"
|
### Instruction:
CREATE TABLE table_46506 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the 10 against?
### Response:
|
SELECT "Status" FROM table_46506 WHERE "Against" = '10'
|
### Instruction:
CREATE TABLE table_31863 (
"Team" text,
"Driver" text,
"Chassis" text,
"Engine" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the team for toshihiro kaneishi
### Response:
|
SELECT "Team" FROM table_31863 WHERE "Driver" = 'toshihiro kaneishi'
|
### Instruction:
CREATE TABLE table_name_6 (
total_tenure_rank VARCHAR,
uninterrupted_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days?
### Response:
|
SELECT total_tenure_rank FROM table_name_6 WHERE uninterrupted_time = "49 years, 349 days"
|
### Instruction:
CREATE TABLE table_name_51 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest 2000 value that has a 2010 value of 82 and a 2005 value less than 74?
### Response:
|
SELECT MAX(2000) FROM table_name_51 WHERE 2010 = 82 AND 2005 < 74
|
### Instruction:
CREATE TABLE table_5411 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the competition that had a score of 4-0?
### Response:
|
SELECT "Result" FROM table_5411 WHERE "Score" = '4-0'
|
### Instruction:
CREATE TABLE table_name_13 (
transfer_fee___ VARCHAR,
player VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many transfer fees did Afonso Alves have after 2008?
### Response:
|
SELECT COUNT(transfer_fee___) AS €_million_ FROM table_name_13 WHERE player = "afonso alves" AND year > 2008
|
### Instruction:
CREATE TABLE table_10335_1 (
occupied_territory VARCHAR,
operational VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the occupied territory with operational period of may 1940 january 1945
### Response:
|
SELECT occupied_territory FROM table_10335_1 WHERE operational = "May 1940 – January 1945"
|
### Instruction:
CREATE TABLE table_name_61 (
year VARCHAR,
organization VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has an Organization of new york yankees, and a Team of johnson city yankees?
### Response:
|
SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees"
|
### Instruction:
CREATE TABLE table_18540104_1 (
theme_song_s_ VARCHAR,
romaji_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the theme song for Magarikado no Kanojo?
### Response:
|
SELECT theme_song_s_ FROM table_18540104_1 WHERE romaji_title = "Magarikado no Kanojo"
|
### Instruction:
CREATE TABLE table_45153 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was 13's finish?
### Response:
|
SELECT "Finish" FROM table_45153 WHERE "Start" = '13'
|
### Instruction:
CREATE TABLE table_38414 (
"Character" text,
"Actor" text,
"Years" text,
"Series" text,
"Episode Count" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Years have a Character of dr trevor stewart?
### Response:
|
SELECT "Years" FROM table_38414 WHERE "Character" = 'dr trevor stewart'
|
### Instruction:
CREATE TABLE table_name_70 (
result VARCHAR,
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of 2003 eaff championship preliminary on 2 march 2003?
### Response:
|
SELECT result FROM table_name_70 WHERE competition = "2003 eaff championship preliminary" AND date = "2 march 2003"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.