instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_70910 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Player born in 1981?
### Response:
|
SELECT "Player" FROM table_70910 WHERE "Year born" = '1981'
|
### Instruction:
CREATE TABLE table_name_17 (
result VARCHAR,
award VARCHAR,
nominee VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of nominee, Patricia McGourty, for the drama desk award?
### Response:
|
SELECT result FROM table_name_17 WHERE award = "drama desk award" AND nominee = "patricia mcgourty"
|
### Instruction:
CREATE TABLE table_46494 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of a week larger than 16?
### Response:
|
SELECT "Date" FROM table_46494 WHERE "Week" > '16'
|
### Instruction:
CREATE TABLE table_name_20 (
background VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Background of the contestant with a Result of 07 fired in task 6 (2009-04-05)?
### Response:
|
SELECT background FROM table_name_20 WHERE result = "07 fired in task 6 (2009-04-05)"
|
### Instruction:
CREATE TABLE table_name_85 (
frequency VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Frequency, when Part Number(s) is AY80609004002AC?
### Response:
|
SELECT frequency FROM table_name_85 WHERE part_number_s_ = "ay80609004002ac"
|
### Instruction:
CREATE TABLE table_name_58 (
game INTEGER,
record VARCHAR,
october VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Game, when Record is '2-1-1', and when October is less than 21?
### Response:
|
SELECT SUM(game) FROM table_name_58 WHERE record = "2-1-1" AND october < 21
|
### Instruction:
CREATE TABLE table_name_3 (
comp INTEGER,
player VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
### Response:
|
SELECT AVG(comp) FROM table_name_3 WHERE player = "gino guidugli" AND rating > 92.2
|
### Instruction:
CREATE TABLE table_57713 (
"Class" text,
"Type" text,
"Quantity" real,
"Date" text,
"LNER Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What LNER Class has a Class of 6db?
### Response:
|
SELECT "LNER Class" FROM table_57713 WHERE "Class" = '6db'
|
### Instruction:
CREATE TABLE table_name_68 (
runners INTEGER,
jockey VARCHAR,
placing VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest runners when the jockey is frankie dettori and the placing is higher than 1?
### Response:
|
SELECT MAX(runners) FROM table_name_68 WHERE jockey = "frankie dettori" AND placing > 1
|
### 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 most prosecution cases?
### Response:
|
SELECT type FROM greatermanchestercrime WHERE outcome = "Awaiting court outcome" GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_14666 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What extra is from after 2009?
### Response:
|
SELECT "Extra" FROM table_14666 WHERE "Year" > '2009'
|
### Instruction:
CREATE TABLE table_68224 (
"Name" text,
"Entered office" text,
"Left office" text,
"Party" text,
"First Minister" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party of Richard Simpson?
### Response:
|
SELECT "Party" FROM table_68224 WHERE "Name" = 'richard simpson'
|
### Instruction:
CREATE TABLE table_name_74 (
draw INTEGER,
artist VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist?
### Response:
|
SELECT MIN(draw) FROM table_name_74 WHERE artist = "anastasia prikhodko" AND place > 1
|
### Instruction:
CREATE TABLE table_42244 (
"City" text,
"Province" text,
"Country" text,
"IATA" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which airport's IATA is pen?
### Response:
|
SELECT "Airport" FROM table_42244 WHERE "IATA" = 'pen'
|
### Instruction:
CREATE TABLE table_48895 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the bridge located in McClain listed?
### Response:
|
SELECT "Listed" FROM table_48895 WHERE "Location" = 'mcclain'
|
### Instruction:
CREATE TABLE table_11173827_1 (
english_title VARCHAR,
finale VARCHAR,
peak VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the english title that has finale as 33 and peak as 42?
### Response:
|
SELECT english_title FROM table_11173827_1 WHERE finale = 33 AND peak = 42
|
### Instruction:
CREATE TABLE table_206217_2 (
period__h_ VARCHAR,
eccentricity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value of period when eccentricity is 0.583085?
### Response:
|
SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085"
|
### Instruction:
CREATE TABLE table_50080 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place did bobby wadkins come in?
### Response:
|
SELECT "Place" FROM table_50080 WHERE "Player" = 'bobby wadkins'
|
### Instruction:
CREATE TABLE table_name_42 (
to_par VARCHAR,
country VARCHAR,
money___$__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much To par has a Country of united states, and a Money ($) of 90?
### Response:
|
SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90
|
### Instruction:
CREATE TABLE table_name_49 (
weeks_on_chart INTEGER,
peak_position VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most weeks on chart when the peak position is less than 5 and from Sweden?
### Response:
|
SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = "sweden"
|
### Instruction:
CREATE TABLE table_68509 (
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the winner for rest day race leader
### Response:
|
SELECT "Winner" FROM table_68509 WHERE "Race Leader" = 'rest day'
|
### Instruction:
CREATE TABLE table_37419 (
"Date" text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on April 22?
### Response:
|
SELECT "Score" FROM table_37419 WHERE "Date" = 'april 22'
|
### Instruction:
CREATE TABLE table_name_35 (
attendance INTEGER,
date VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Attendance after Week 4 on October 10, 1971?
### Response:
|
SELECT AVG(attendance) FROM table_name_35 WHERE date = "october 10, 1971" AND week > 4
|
### Instruction:
CREATE TABLE table_8392 (
"Country" text,
"Title" text,
"Network" text,
"Games" text,
"Date aired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the show titled Beat the Star?
### Response:
|
SELECT "Date aired" FROM table_8392 WHERE "Title" = 'beat the star'
|
### Instruction:
CREATE TABLE table_name_3 (
date VARCHAR,
runner_s__up VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Runner(s)-up of bernhard langer, and a Tournament of at&t championship?
### Response:
|
SELECT date FROM table_name_3 WHERE runner_s__up = "bernhard langer" AND tournament = "at&t championship"
|
### Instruction:
CREATE TABLE table_49602 (
"Building" text,
"Location" text,
"Height" text,
"Floors" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many floors are in little Italy?
### Response:
|
SELECT COUNT("Floors") FROM table_49602 WHERE "Location" = 'little italy'
|
### Instruction:
CREATE TABLE table_70453 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of points for 1992
### Response:
|
SELECT SUM("Points") FROM table_70453 WHERE "Year" = '1992'
|
### Instruction:
CREATE TABLE table_203_393 (
id number,
"year" number,
"film" text,
"director" text,
"cast" text,
"details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which film won the most awards ?
### Response:
|
SELECT "film" FROM table_203_393 ORDER BY "details" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_11822 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college did john sullivan attend?
### Response:
|
SELECT "College" FROM table_11822 WHERE "Player" = 'john sullivan'
|
### Instruction:
CREATE TABLE table_17766232_7 (
radio_commentator VARCHAR,
final_television_commentator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the radio commentator when the final television commentator was John Dunn?
### Response:
|
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"
|
### Instruction:
CREATE TABLE table_5991 (
"Player" text,
"Team" text,
"Date" text,
"Opponent" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player was on the Los Angeles Dodgers?
### Response:
|
SELECT "Player" FROM table_5991 WHERE "Team" = 'los angeles dodgers'
|
### Instruction:
CREATE TABLE table_38810 (
"Year" real,
"Album" text,
"Record label" text,
"Info" text,
"Music" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record label has an Album of tera roop?
### Response:
|
SELECT "Record label" FROM table_38810 WHERE "Album" = 'tera roop'
|
### Instruction:
CREATE TABLE table_76504 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps were in grid 4?
### Response:
|
SELECT "Laps" FROM table_76504 WHERE "Grid" = '4'
|
### Instruction:
CREATE TABLE table_name_20 (
extra_points INTEGER,
points VARCHAR,
field_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?
### Response:
|
SELECT MAX(extra_points) FROM table_name_20 WHERE points = 28 AND field_goals < 0
|
### Instruction:
CREATE TABLE table_name_7 (
silver VARCHAR,
nation VARCHAR,
bronze VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?
### Response:
|
SELECT silver FROM table_name_7 WHERE bronze > 0 AND total < 54 AND nation = "spain"
|
### Instruction:
CREATE TABLE table_55672 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the constructor when the driver is jenson button?
### Response:
|
SELECT "Constructor" FROM table_55672 WHERE "Driver" = 'jenson button'
|
### Instruction:
CREATE TABLE table_9133 (
"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 away team against the home team Ashington?
### Response:
|
SELECT "Away team" FROM table_9133 WHERE "Home team" = 'ashington'
|
### Instruction:
CREATE TABLE table_1029 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maximum number of points?
### Response:
|
SELECT MAX("Points") FROM table_1029
|
### Instruction:
CREATE TABLE table_25391981_3 (
rank_by_average INTEGER,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank by average for the team who averaged 22.8?
### Response:
|
SELECT MIN(rank_by_average) FROM table_25391981_3 WHERE average = "22.8"
|
### Instruction:
CREATE TABLE table_68217 (
"Year" real,
"Manufacturer" text,
"Start" real,
"Finish" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most finish for 2006
### Response:
|
SELECT MAX("Finish") FROM table_68217 WHERE "Year" = '2006'
|
### Instruction:
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the first names of all the students in room 107.
### Response:
|
SELECT DISTINCT firstname FROM list WHERE classroom = 107
|
### Instruction:
CREATE TABLE table_2562572_20 (
largest_ethnic_group__2002_ VARCHAR,
settlement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the largest ethnic group for kosan i
### Response:
|
SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE settlement = "Kosančić"
|
### Instruction:
CREATE TABLE table_34369 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rangers' record on Game 14?
### Response:
|
SELECT "Record" FROM table_34369 WHERE "Game" = '14'
|
### Instruction:
CREATE TABLE table_69883 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score of Game 1?
### Response:
|
SELECT "Score" FROM table_69883 WHERE "Game" = '1'
|
### Instruction:
CREATE TABLE table_name_71 (
first_season INTEGER,
wins VARCHAR,
seasons VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of First Season games with 1537 Wins and a Season greater than 109?
### Response:
|
SELECT SUM(first_season) FROM table_name_71 WHERE wins = 1537 AND seasons > 109
|
### Instruction:
CREATE TABLE table_200_14 (
id number,
"act" text,
"year signed" number,
"# albums released under bad boy" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many albums did french montana release under bad boy ?
### Response:
|
SELECT "# albums released under bad boy" FROM table_200_14 WHERE "act" = 'french montana'
|
### Instruction:
CREATE TABLE table_203_299 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total years did golding compete ?
### Response:
|
SELECT COUNT(DISTINCT "year") FROM table_203_299
|
### Instruction:
CREATE TABLE table_8221 (
"Office" text,
"Type" text,
"Location" text,
"Took Office" text,
"Left Office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of office left office in 1810?
### Response:
|
SELECT "Office" FROM table_8221 WHERE "Left Office" = '1810'
|
### Instruction:
CREATE TABLE table_62061 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Player of bernhard langer?
### Response:
|
SELECT "To par" FROM table_62061 WHERE "Player" = 'bernhard langer'
|
### Instruction:
CREATE TABLE table_name_59 (
record VARCHAR,
game VARCHAR,
visitor VARCHAR,
decision VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team?
### Response:
|
SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND game > 32
|
### Instruction:
CREATE TABLE table_53120 (
"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 college did pick 33 attend?
### Response:
|
SELECT "College" FROM table_53120 WHERE "Pick" = '33'
|
### Instruction:
CREATE TABLE table_60782 (
"Region" text,
"Year" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region had the year May 1974?
### Response:
|
SELECT "Region" FROM table_60782 WHERE "Year" = 'may 1974'
|
### Instruction:
CREATE TABLE table_name_94 (
loss INTEGER,
gain VARCHAR,
avg_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Loss number when the Gain is less than 61 and the Avg/G is 6?
### Response:
|
SELECT MIN(loss) FROM table_name_94 WHERE gain < 61 AND avg_g = 6
|
### Instruction:
CREATE TABLE table_204_546 (
id number,
"year" number,
"film" text,
"song" text,
"language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what language was used in only one film ?
### Response:
|
SELECT "language" FROM table_204_546 GROUP BY "language" HAVING COUNT("film") = 1
|
### Instruction:
CREATE TABLE table_44215 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance when the result was a bye?
### Response:
|
SELECT "Attendance" FROM table_44215 WHERE "Result" = 'bye'
|
### Instruction:
CREATE TABLE table_name_3 (
year INTEGER,
result VARCHAR,
extra VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
### Response:
|
SELECT MIN(year) FROM table_name_3 WHERE result = "1st" AND extra = "4 x 400 m relay"
|
### Instruction:
CREATE TABLE table_20967430_2 (
prod_code VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the production code for november 08, 1985
### Response:
|
SELECT prod_code FROM table_20967430_2 WHERE original_air_date = "November 08, 1985"
|
### Instruction:
CREATE TABLE table_name_12 (
de_laet__1633_ VARCHAR,
munsee_delaware VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the De Laet term for a Munsee Delaware term of n a?
### Response:
|
SELECT de_laet__1633_ FROM table_name_12 WHERE munsee_delaware = "ní·ša"
|
### Instruction:
CREATE TABLE table_6482 (
"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 name of the visitor on January 24?
### Response:
|
SELECT "Visitor" FROM table_6482 WHERE "Date" = 'january 24'
|
### Instruction:
CREATE TABLE table_name_11 (
places INTEGER,
nation VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest number of places for a skater from Norway with fewer than 1524.9 points?
### Response:
|
SELECT MIN(places) FROM table_name_11 WHERE nation = "norway" AND points < 1524.9
|
### Instruction:
CREATE TABLE table_57872 (
"Track" real,
"Title" text,
"Translation" text,
"Composer" text,
"Recorded" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the composer on the tracks less than 4?
### Response:
|
SELECT "Composer" FROM table_57872 WHERE "Track" < '4'
|
### Instruction:
CREATE TABLE table_38123 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location is previous to 1994?
### Response:
|
SELECT "Location" FROM table_38123 WHERE "Year" < '1994'
|
### Instruction:
CREATE TABLE table_38415 (
"Character" text,
"Actor" text,
"Years" text,
"Series" text,
"Episode Count" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Series has an Actor of tom ward?
### Response:
|
SELECT "Series" FROM table_38415 WHERE "Actor" = 'tom ward'
|
### Instruction:
CREATE TABLE table_27614571_1 (
week__number VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which week # was the original artist of Barreto's song choice was Leila Pinheiro?
### Response:
|
SELECT week__number FROM table_27614571_1 WHERE original_artist = "Leila Pinheiro"
|
### Instruction:
CREATE TABLE table_53657 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which member has Cook as the electorate?
### Response:
|
SELECT "Member" FROM table_53657 WHERE "Electorate" = 'cook'
|
### Instruction:
CREATE TABLE table_203_862 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what song earned the most points ?
### Response:
|
SELECT "song" FROM table_203_862 ORDER BY "points" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_25716397_1 (
no_in_season VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes were written by Tom Scharpling and Daniel Dratch?
### Response:
|
SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = "Tom Scharpling and Daniel Dratch"
|
### Instruction:
CREATE TABLE table_27374004_2 (
team_captain VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the team captain when the club is k.f.c. germinal beerschot?
### Response:
|
SELECT team_captain FROM table_27374004_2 WHERE club = "K.F.C. Germinal Beerschot"
|
### Instruction:
CREATE TABLE table_name_79 (
episode_number INTEGER,
air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest of Episode Number that has a Air Date on 20 july 2007?
### Response:
|
SELECT MIN(episode_number) FROM table_name_79 WHERE air_date = "20 july 2007"
|
### Instruction:
CREATE TABLE table_name_20 (
code__iata_icao_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average in 2010 of the team with a code of (IATA/ICAO) or cra/lrcv?
### Response:
|
SELECT 2010 FROM table_name_20 WHERE code__iata_icao_ = "cra/lrcv"
|
### Instruction:
CREATE TABLE table_28884858_1 (
home_games VARCHAR,
average_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many home games are listed when the average attendance is 79475?
### Response:
|
SELECT COUNT(home_games) FROM table_28884858_1 WHERE average_attendance = 79475
|
### Instruction:
CREATE TABLE table_1558077_8 (
mission_name VARCHAR,
lunar_blastoff_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the mission name for 21 november 1969
### Response:
|
SELECT mission_name FROM table_1558077_8 WHERE lunar_blastoff_date = "21 November 1969"
|
### Instruction:
CREATE TABLE table_64909 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest rank of Lane 3?
### Response:
|
SELECT MIN("Rank") FROM table_64909 WHERE "Lane" = '3'
|
### Instruction:
CREATE TABLE table_name_43 (
per_capita_income VARCHAR,
median_household_income VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much is per capita income when median household income is $42,845?
### Response:
|
SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845"
|
### Instruction:
CREATE TABLE table_name_14 (
goals VARCHAR,
ends VARCHAR,
since VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Goals have Ends of 30 june 2010, and Since larger than 2007?
### Response:
|
SELECT goals FROM table_name_14 WHERE ends = "30 june 2010" AND since > 2007
|
### Instruction:
CREATE TABLE table_62315 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest pick for SS position?
### Response:
|
SELECT MAX("Pick") FROM table_62315 WHERE "Position" = 'ss'
|
### Instruction:
CREATE TABLE table_name_25 (
configuration VARCHAR,
wheels VARCHAR,
country VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the configuration for the country France, with accounting as the type, and wheels greater than 6?
### Response:
|
SELECT configuration FROM table_name_25 WHERE country = "france" AND type = "accounting" AND wheels > 6
|
### Instruction:
CREATE TABLE table_18821196_1 (
weekly_schedule VARCHAR,
tv_network_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every weekly schedule of TV network Viasat 4?
### Response:
|
SELECT weekly_schedule FROM table_18821196_1 WHERE tv_network_s_ = "Viasat 4"
|
### Instruction:
CREATE TABLE table_57806 (
"Season" real,
"Level" text,
"Division" text,
"Administration" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest season for the 7th position?
### Response:
|
SELECT MAX("Season") FROM table_57806 WHERE "Position" = '7th'
|
### Instruction:
CREATE TABLE table_39811 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the CFL Team with Will Grant?
### Response:
|
SELECT "CFL Team" FROM table_39811 WHERE "Player" = 'will grant'
|
### Instruction:
CREATE TABLE table_64867 (
"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 is the genre for Portal 2?
### Response:
|
SELECT "Genre" FROM table_64867 WHERE "Game" = 'portal 2'
|
### Instruction:
CREATE TABLE table_75137 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Third has a Nation of scotland?
### Response:
|
SELECT "Third" FROM table_75137 WHERE "Nation" = 'scotland'
|
### Instruction:
CREATE TABLE table_1939367_1 (
arabs_2001 INTEGER,
province VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the province is Manitoba, what is the Arabs 2001 number?
### Response:
|
SELECT MAX(arabs_2001) FROM table_1939367_1 WHERE province = "Manitoba"
|
### Instruction:
CREATE TABLE table_name_7 (
competition_ VARCHAR,
_federation_ VARCHAR,
_or_league VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition, federation, or league are the Tennessee Titans a member of?
### Response:
|
SELECT competition_, _federation_, _or_league FROM table_name_7 WHERE team = "tennessee titans"
|
### Instruction:
CREATE TABLE table_name_32 (
best_10_year_period VARCHAR,
best_2_year_period VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which best 10-year period has a best 2-year period of petrosian?
### Response:
|
SELECT best_10_year_period FROM table_name_32 WHERE best_2_year_period = "petrosian"
|
### Instruction:
CREATE TABLE table_80354 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which item resulted in a score of 4-1?
### Response:
|
SELECT "Score" FROM table_80354 WHERE "Result" = '4-1'
|
### Instruction:
CREATE TABLE table_name_81 (
joined INTEGER,
city VARCHAR,
conference_championships VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest year joined in the city of College Park at the Conference championships smaller than 0?
### Response:
|
SELECT MIN(joined) FROM table_name_81 WHERE city = "college park" AND conference_championships < 0
|
### Instruction:
CREATE TABLE table_name_46 (
ttkl INTEGER,
year VARCHAR,
pass_def VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many TTkl have 2004 as the year, and a pass def greater than 5?
### Response:
|
SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5
|
### Instruction:
CREATE TABLE table_name_67 (
partially_deleted VARCHAR,
cerclis_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the site partially deleted when the cerclis id is az7570028582?
### Response:
|
SELECT partially_deleted FROM table_name_67 WHERE cerclis_id = "az7570028582"
|
### Instruction:
CREATE TABLE table_name_81 (
uci_rating VARCHAR,
location VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
### Response:
|
SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
|
### Instruction:
CREATE TABLE table_name_27 (
econ VARCHAR,
s_rate VARCHAR,
runs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many econs have 13.76 as the S/Rate, with runs less than 325?
### Response:
|
SELECT COUNT(econ) FROM table_name_27 WHERE s_rate = 13.76 AND runs < 325
|
### Instruction:
CREATE TABLE table_name_92 (
result VARCHAR,
venue VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the AFG Arena, St. Gallen Competition with a Score of 1 0?
### Response:
|
SELECT result FROM table_name_92 WHERE venue = "afg arena, st. gallen" AND score = "1–0"
|
### Instruction:
CREATE TABLE table_79378 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the ranks for india?
### Response:
|
SELECT SUM("Rank") FROM table_79378 WHERE "Country" = 'india'
|
### Instruction:
CREATE TABLE table_name_43 (
fa_cup INTEGER,
total VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value for FA cups, that has a total of 0 4, with less than 4 championships?
### Response:
|
SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 4
|
### Instruction:
CREATE TABLE table_name_59 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for 2010 when the value for 2006 is A and the value for 2009 is 1R?
### Response:
|
SELECT 2010 FROM table_name_59 WHERE 2006 = "a" AND 2009 = "1r"
|
### Instruction:
CREATE TABLE table_40959 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date was the game played on Week 13?
### Response:
|
SELECT "Date" FROM table_40959 WHERE "Week" = '13'
|
### Instruction:
CREATE TABLE table_34337 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the college is Trinity, what position is listed?
### Response:
|
SELECT "Position" FROM table_34337 WHERE "College" = 'trinity'
|
### Instruction:
CREATE TABLE table_60221 (
"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 country placed 3?
### Response:
|
SELECT "Country" FROM table_60221 WHERE "Place" = '3'
|
### Instruction:
CREATE TABLE table_name_64 (
competition VARCHAR,
assist_pass VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the competition for stephanie cox on 2011-07-02
### Response:
|
SELECT competition FROM table_name_64 WHERE assist_pass = "stephanie cox" AND date = "2011-07-02"
|
### Instruction:
CREATE TABLE table_55043 (
"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 losing score on September 1?
### Response:
|
SELECT "Loss" FROM table_55043 WHERE "Date" = 'september 1'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.