instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_31865 (
"Year" real,
"Chinese Title" text,
"English Title" text,
"Role" text,
"Character" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the role for 2005
### Response:
|
SELECT "Role" FROM table_31865 WHERE "Year" = '2005'
|
### Instruction:
CREATE TABLE table_name_74 (
points VARCHAR,
grid VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the points with grid more than 8 and time/retired of +47.487 secs
### Response:
|
SELECT points FROM table_name_74 WHERE grid > 8 AND time_retired = "+47.487 secs"
|
### Instruction:
CREATE TABLE table_75740 (
"Name" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which builder completed after 1889?
### Response:
|
SELECT "Builder" FROM table_75740 WHERE "Completed" > '1889'
|
### Instruction:
CREATE TABLE table_65186 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the place for bryce molder?
### Response:
|
SELECT "Place" FROM table_65186 WHERE "Player" = 'bryce molder'
|
### Instruction:
CREATE TABLE table_16802 (
"House Name" text,
"Composition" text,
"Named after" text,
"Founded" real,
"Colours" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the green house made of?
### Response:
|
SELECT "Composition" FROM table_16802 WHERE "Colours" = 'Green'
|
### Instruction:
CREATE TABLE table_68898 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total score of Danny Edwards?
### Response:
|
SELECT SUM("Score") FROM table_68898 WHERE "Player" = 'danny edwards'
|
### Instruction:
CREATE TABLE table_name_70 (
event VARCHAR,
record VARCHAR,
round VARCHAR,
res VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event was in round 1, resulted in a win, and a record of 15-4?
### Response:
|
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4"
|
### Instruction:
CREATE TABLE table_36561 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game on week 4?
### Response:
|
SELECT "Result" FROM table_36561 WHERE "Week" = '4'
|
### Instruction:
CREATE TABLE table_49355 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was john huston's score?
### Response:
|
SELECT "Score" FROM table_49355 WHERE "Player" = 'john huston'
|
### Instruction:
CREATE TABLE table_name_66 (
date VARCHAR,
circuit VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit?
### Response:
|
SELECT date FROM table_name_66 WHERE circuit = "daytona international speedway" AND race = "paul revere 250"
|
### Instruction:
CREATE TABLE table_name_64 (
round INTEGER,
pick__number VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the round when the pick # is less than 236 and the position is offensive guard?
### Response:
|
SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard"
|
### Instruction:
CREATE TABLE table_name_75 (
silver INTEGER,
rank VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?
### Response:
|
SELECT MAX(silver) FROM table_name_75 WHERE rank = "19" AND gold < 2
|
### Instruction:
CREATE TABLE table_43883 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Player is 'Jack Nicklaus'?
### Response:
|
SELECT "Country" FROM table_43883 WHERE "Player" = 'jack nicklaus'
|
### Instruction:
CREATE TABLE table_name_37 (
match INTEGER,
ground VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What match number has a ground of H and the opponent Chelsea under 18s?
### Response:
|
SELECT AVG(match) FROM table_name_37 WHERE ground = "h" AND opponent = "chelsea under 18s"
|
### Instruction:
CREATE TABLE table_name_26 (
order VARCHAR,
family VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis?
### Response:
|
SELECT order FROM table_name_26 WHERE family = "vespertilionidae" AND name = "northern long-eared myotis"
|
### Instruction:
CREATE TABLE table_name_48 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1980 value with a 1r in 1984 and a 1r in 1981?
### Response:
|
SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "1r"
|
### Instruction:
CREATE TABLE table_17891 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player is number 6?
### Response:
|
SELECT "Player" FROM table_17891 WHERE "No" = '6'
|
### Instruction:
CREATE TABLE table_18626383_2 (
height__cm_ VARCHAR,
contestant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When valora roucek is the contestant how many heights in centimeters are there?
### Response:
|
SELECT COUNT(height__cm_) FROM table_18626383_2 WHERE contestant = "Valora Roucek"
|
### Instruction:
CREATE TABLE table_10953197_4 (
writer_s_ VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the writer for the episode with production code 2395096?
### Response:
|
SELECT writer_s_ FROM table_10953197_4 WHERE production_code = "2395096"
|
### Instruction:
CREATE TABLE table_name_84 (
award_description_s_ VARCHAR,
year VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award description has a year later than 1994 with a date of December 6?
### Response:
|
SELECT award_description_s_ FROM table_name_84 WHERE year > 1994 AND date = "december 6"
|
### Instruction:
CREATE TABLE table_name_86 (
laps INTEGER,
rider VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of laps for Marco Simoncelli on a grid higher than 11?
### Response:
|
SELECT MIN(laps) FROM table_name_86 WHERE rider = "marco simoncelli" AND grid > 11
|
### Instruction:
CREATE TABLE table_19523142_5 (
group_8 VARCHAR,
group_12 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played in group 8 when Persinab Nabire played in Group 12?
### Response:
|
SELECT group_8 FROM table_19523142_5 WHERE group_12 = "Persinab Nabire"
|
### Instruction:
CREATE TABLE table_name_36 (
county VARCHAR,
ihsaa_football_class VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What county has an IHSAA Football Class of A, and a Mascot of royals?
### Response:
|
SELECT county FROM table_name_36 WHERE ihsaa_football_class = "a" AND mascot = "royals"
|
### Instruction:
CREATE TABLE table_14009909_1 (
counties_represented VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the counties represented in District 12.1 12a?
### Response:
|
SELECT counties_represented FROM table_14009909_1 WHERE district = "12.1 12A"
|
### Instruction:
CREATE TABLE table_name_96 (
points INTEGER,
opponent VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have an Opponent of new york islanders, and a Game smaller than 65?
### Response:
|
SELECT SUM(points) FROM table_name_96 WHERE opponent = "new york islanders" AND game < 65
|
### Instruction:
CREATE TABLE table_4325 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the competition for half marathon
### Response:
|
SELECT "Competition" FROM table_4325 WHERE "Notes" = 'half marathon'
|
### Instruction:
CREATE TABLE table_23995075_2 (
qualifying_start_date VARCHAR,
confederation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many qualifying start dates for the Concacaf confederation?
### Response:
|
SELECT COUNT(qualifying_start_date) FROM table_23995075_2 WHERE confederation = "CONCACAF"
|
### Instruction:
CREATE TABLE table_16617011_1 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the directed by for 15.15 viewers
### Response:
|
SELECT directed_by FROM table_16617011_1 WHERE us_viewers__millions_ = "15.15"
|
### Instruction:
CREATE TABLE table_204_445 (
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 championships did he compete in ?
### Response:
|
SELECT COUNT("competition") FROM table_204_445
|
### Instruction:
CREATE TABLE table_204_932 (
id number,
"#" number,
"title" text,
"time" text,
"lead vocals" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many tracks were over five minutes ?
### Response:
|
SELECT COUNT(*) FROM table_204_932 WHERE "time" >= 5
|
### Instruction:
CREATE TABLE table_1425958_1 (
population_rank INTEGER,
_percentage_change VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the % change is 8.4, what is the population rank?
### Response:
|
SELECT MIN(population_rank) FROM table_1425958_1 WHERE _percentage_change = "8.4"
|
### Instruction:
CREATE TABLE table_15802 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the Commonwealth Games?
### Response:
|
SELECT SUM("Year") FROM table_15802 WHERE "Tournament" = 'commonwealth games'
|
### Instruction:
CREATE TABLE table_49989 (
"Exit Date" text,
"Pos." text,
"Player" text,
"To club" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was transferred to Reggina?
### Response:
|
SELECT "Player" FROM table_49989 WHERE "To club" = 'reggina'
|
### Instruction:
CREATE TABLE table_43181 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is phil mickelson from?
### Response:
|
SELECT "Country" FROM table_43181 WHERE "Player" = 'phil mickelson'
|
### Instruction:
CREATE TABLE table_64048 (
"Title" text,
"Author" text,
"First Issue" text,
"Last Issue" text,
"Completed?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last issue entry of Time and Again?
### Response:
|
SELECT "Last Issue" FROM table_64048 WHERE "Title" = 'time and again'
|
### Instruction:
CREATE TABLE table_name_30 (
car__number INTEGER,
points VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of car numbers with less than 126 points and 147 laps?
### Response:
|
SELECT SUM(car__number) FROM table_name_30 WHERE points < 126 AND laps = 147
|
### Instruction:
CREATE TABLE table_201_1 (
id number,
"from" number,
"to" number,
"name" text,
"party" text,
"position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which person had the position of a farmer ?
### Response:
|
SELECT "name" FROM table_201_1 WHERE "position" = 'farmer'
|
### Instruction:
CREATE TABLE table_28068063_3 (
match_points VARCHAR,
eliminated_from_competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams eliminated b ziers from competition?
### Response:
|
SELECT COUNT(match_points) FROM table_28068063_3 WHERE eliminated_from_competition = "Béziers"
|
### Instruction:
CREATE TABLE table_54077 (
"Year" real,
"Category" text,
"Character" text,
"For The Show" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the results after 2004?
### Response:
|
SELECT "Result" FROM table_54077 WHERE "Year" > '2004'
|
### Instruction:
CREATE TABLE table_45671 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What airport is in Muscat?
### Response:
|
SELECT "Airport" FROM table_45671 WHERE "City" = 'muscat'
|
### Instruction:
CREATE TABLE table_22993636_5 (
three_pointers INTEGER,
steals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of 3 pointers that occured in games with 52 steals?
### Response:
|
SELECT MIN(three_pointers) FROM table_22993636_5 WHERE steals = 52
|
### Instruction:
CREATE TABLE table_26826304_2 (
timeslot VARCHAR,
air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- A what time was the title aired in October 22, 2009
### Response:
|
SELECT timeslot FROM table_26826304_2 WHERE air_date = "October 22, 2009"
|
### Instruction:
CREATE TABLE table_79940 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date is in stereo lp format?
### Response:
|
SELECT "Date" FROM table_79940 WHERE "Format" = 'stereo lp'
|
### Instruction:
CREATE TABLE table_69065 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what lane was new zealand in?
### Response:
|
SELECT "Lane" FROM table_69065 WHERE "Nationality" = 'new zealand'
|
### Instruction:
CREATE TABLE table_23513241_5 (
title VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title when 1.121 million US people watched it?
### Response:
|
SELECT title FROM table_23513241_5 WHERE us_viewers__millions_ = "1.121"
|
### Instruction:
CREATE TABLE table_name_21 (
attendance INTEGER,
points VARCHAR,
arena VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest Attendance for the Staples Center Arena when the Points were over 14?
### Response:
|
SELECT MIN(attendance) FROM table_name_21 WHERE points > 14 AND arena = "staples center"
|
### Instruction:
CREATE TABLE table_name_72 (
years VARCHAR,
type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?
### Response:
|
SELECT years FROM table_name_72 WHERE type_code = "cubic centimetres (cuin) v8 ( m273 )"
|
### Instruction:
CREATE TABLE table_26387382_1 (
name VARCHAR,
capacity__mw_ VARCHAR,
status VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What farm has a capacity of 70 and is operational?
### Response:
|
SELECT name FROM table_26387382_1 WHERE capacity__mw_ = "70" AND status = "Operational"
|
### Instruction:
CREATE TABLE table_14889048_1 (
conceded INTEGER,
draws VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most conceded when draws is 5 and position is 1
### Response:
|
SELECT MAX(conceded) FROM table_14889048_1 WHERE draws = 5 AND position = 1
|
### Instruction:
CREATE TABLE table_name_42 (
draws INTEGER,
against VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Draws, when Against is '1547', and when Wins is greater than 3?
### Response:
|
SELECT MIN(draws) FROM table_name_42 WHERE against = 1547 AND wins > 3
|
### Instruction:
CREATE TABLE table_name_34 (
games_per_goal INTEGER,
a_league VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player from A-League 39 (110) has the highest games per goal?
### Response:
|
SELECT MAX(games_per_goal) FROM table_name_34 WHERE a_league = "39 (110)"
|
### Instruction:
CREATE TABLE table_12141496_1 (
apogee__km_ INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum apogee for samos f3-3?
### Response:
|
SELECT MAX(apogee__km_) FROM table_12141496_1 WHERE name = "SAMOS F3-3"
|
### Instruction:
CREATE TABLE table_15102 (
"Model" text,
"Seats" text,
"Period" text,
"Built" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what time period were 354 built?
### Response:
|
SELECT "Period" FROM table_15102 WHERE "Built" = '354'
|
### Instruction:
CREATE TABLE table_1962 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Events" real,
"Reset Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least events for japan
### Response:
|
SELECT MIN("Events") FROM table_1962 WHERE "Country" = 'Japan'
|
### Instruction:
CREATE TABLE table_38987 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year is 4:00 long
### Response:
|
SELECT COUNT("Year") FROM table_38987 WHERE "Length" = '4:00'
|
### Instruction:
CREATE TABLE table_79441 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was Chester the away team?
### Response:
|
SELECT "Date" FROM table_79441 WHERE "Away team" = 'chester'
|
### Instruction:
CREATE TABLE table_17718005_2 (
lost VARCHAR,
drawn VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 45 is the goals for and 10 is the drawn what is the lost?
### Response:
|
SELECT lost FROM table_17718005_2 WHERE drawn = 10 AND goals_for = 45
|
### Instruction:
CREATE TABLE table_name_59 (
result VARCHAR,
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What result was a date of 20/03/2008 with leeds as the opponent
### Response:
|
SELECT result FROM table_name_59 WHERE opponent = "leeds" AND date = "20/03/2008"
|
### Instruction:
CREATE TABLE table_31724 (
"Number" real,
"Origin" text,
"Final destination" text,
"Frequency" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency of number 161?
### Response:
|
SELECT "Frequency" FROM table_31724 WHERE "Number" = '161'
|
### Instruction:
CREATE TABLE table_name_37 (
opponent VARCHAR,
week VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the game played after Week 4 on October 15, 2000?
### Response:
|
SELECT opponent FROM table_name_37 WHERE week > 4 AND date = "october 15, 2000"
|
### Instruction:
CREATE TABLE table_76977 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Gold, when Total is 6?
### Response:
|
SELECT "Gold" FROM table_76977 WHERE "Total" = '6'
|
### Instruction:
CREATE TABLE table_name_79 (
name VARCHAR,
nationality VARCHAR,
rank VARCHAR,
heat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is from the united states, has a rank less than 9, and heat more than 5?
### Response:
|
SELECT name FROM table_name_79 WHERE rank < 9 AND heat > 5 AND nationality = "united states"
|
### Instruction:
CREATE TABLE table_name_87 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2010 when the 2009 is 1r, and a 2008 is 1r?
### Response:
|
SELECT 2010 FROM table_name_87 WHERE 2009 = "1r" AND 2008 = "1r"
|
### Instruction:
CREATE TABLE table_name_17 (
score VARCHAR,
opponent_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has an Opponent in the final of chris haggard robbie koenig?
### Response:
|
SELECT score FROM table_name_17 WHERE opponent_in_the_final = "chris haggard robbie koenig"
|
### Instruction:
CREATE TABLE table_1416612_1 (
highest_point VARCHAR,
lowest_point VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the highest point with lowest point being belle fourche river at south dakota border
### Response:
|
SELECT highest_point FROM table_1416612_1 WHERE lowest_point = "Belle Fourche River at South Dakota border"
|
### Instruction:
CREATE TABLE table_41702 (
"Album title" text,
"Format" text,
"Year" real,
"Original label" text,
"Chart positions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The album titled I had what chart positions?
### Response:
|
SELECT "Chart positions" FROM table_41702 WHERE "Album title" = 'i'
|
### Instruction:
CREATE TABLE table_67007 (
"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 director is from Poland?
### Response:
|
SELECT "Director" FROM table_67007 WHERE "Country" = 'poland'
|
### Instruction:
CREATE TABLE table_26139405_1 (
title VARCHAR,
viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode that had 8.51 million viewers?
### Response:
|
SELECT title FROM table_26139405_1 WHERE viewers__in_millions_ = "8.51"
|
### Instruction:
CREATE TABLE table_name_57 (
attendance VARCHAR,
channel VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which attendance has a Channel of espn, and a Date of september 5, 2002?
### Response:
|
SELECT attendance FROM table_name_57 WHERE channel = "espn" AND date = "september 5, 2002"
|
### Instruction:
CREATE TABLE table_204_152 (
id number,
"device" text,
"type" text,
"iops" text,
"interface" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many devices have no notes ?
### Response:
|
SELECT COUNT("device") FROM table_204_152 WHERE "notes" IS NULL
|
### Instruction:
CREATE TABLE table_name_53 (
ends VARCHAR,
name VARCHAR,
transfer_fee VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the ends for transfer fee of free and goals being 0 for roy carroll
### Response:
|
SELECT ends FROM table_name_53 WHERE transfer_fee = "free" AND goals = 0 AND name = "roy carroll"
|
### Instruction:
CREATE TABLE table_2351952_1 (
country VARCHAR,
order_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has the order number 711871-711880?
### Response:
|
SELECT country FROM table_2351952_1 WHERE order_number = "711871-711880"
|
### Instruction:
CREATE TABLE table_249512_2 (
population__2010_ INTEGER,
place_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum 2010 population of Edgewater?
### Response:
|
SELECT MIN(population__2010_) FROM table_249512_2 WHERE place_name = "Edgewater"
|
### Instruction:
CREATE TABLE table_68876 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the start for finish being 21st
### Response:
|
SELECT "Start" FROM table_68876 WHERE "Finish" = '21st'
|
### Instruction:
CREATE TABLE table_name_26 (
athlete VARCHAR,
semifinal VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the light heavyweight 81 kg event that did not advance to semifinal, who was the athlete?
### Response:
|
SELECT athlete FROM table_name_26 WHERE semifinal = "did not advance" AND event = "light heavyweight –81 kg"
|
### Instruction:
CREATE TABLE table_name_3 (
finalist VARCHAR,
semifinalists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which finalist has Semifinalists of andre agassi (1) lleyton hewitt (14)?
### Response:
|
SELECT finalist FROM table_name_3 WHERE semifinalists = "andre agassi (1) lleyton hewitt (14)"
|
### Instruction:
CREATE TABLE table_63451 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes for South Africa?
### Response:
|
SELECT "Notes" FROM table_63451 WHERE "Country" = 'south africa'
|
### Instruction:
CREATE TABLE table_name_63 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2006, when 2007 is '1R', and when 2002 is 'Q2'?
### Response:
|
SELECT 2006 FROM table_name_63 WHERE 2007 = "1r" AND 2002 = "q2"
|
### Instruction:
CREATE TABLE table_41410 (
"Name" text,
"Status" text,
"Authors" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where has a Name of zhongornis?
### Response:
|
SELECT "Location" FROM table_41410 WHERE "Name" = 'zhongornis'
|
### Instruction:
CREATE TABLE table_59068 (
"Name" text,
"Owner" text,
"Programming" text,
"Type" text,
"Encryption" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which owner had MRT 1 HD?
### Response:
|
SELECT "Owner" FROM table_59068 WHERE "Name" = 'mrt 1 hd'
|
### Instruction:
CREATE TABLE table_26041144_16 (
catches INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the player is Hashan Tillakaratne, what is the catches minimum?
### Response:
|
SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
|
### Instruction:
CREATE TABLE table_46134 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Attendance on Week 9?
### Response:
|
SELECT MAX("Attendance") FROM table_46134 WHERE "Week" = '9'
|
### Instruction:
CREATE TABLE table_name_31 (
change INTEGER,
centre VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46?
### Response:
|
SELECT AVG(change) FROM table_name_31 WHERE centre = "buenos aires" AND rank < 46
|
### Instruction:
CREATE TABLE table_287159_1 (
other_abbreviation VARCHAR,
brightest_star VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the other abbreviation of the constellation that has trianguli as its brightest star?
### Response:
|
SELECT other_abbreviation FROM table_287159_1 WHERE brightest_star = "β Trianguli"
|
### Instruction:
CREATE TABLE table_28848697_4 (
goals_scored VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals scored entries are listed when the year is verano 2001?
### Response:
|
SELECT COUNT(goals_scored) FROM table_28848697_4 WHERE year = "Verano 2001"
|
### Instruction:
CREATE TABLE table_80079 (
"Chapter" real,
"Chinese" text,
"Pinyin" text,
"Translation" text,
"Subject" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the subject of shiyan
### Response:
|
SELECT "Subject" FROM table_80079 WHERE "Pinyin" = 'shiyan'
|
### Instruction:
CREATE TABLE table_name_73 (
bask INTEGER,
indoor_track VARCHAR,
swimming VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bask has an Indoor track of 0, and a Swimming of 5?
### Response:
|
SELECT MIN(bask) FROM table_name_73 WHERE indoor_track = "0" AND swimming = "5"
|
### Instruction:
CREATE TABLE table_24518475_1 (
latitude VARCHAR,
time__utc_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latitude that had a UTC time of 18:19:36?
### Response:
|
SELECT latitude FROM table_24518475_1 WHERE time__utc_ = "18:19:36"
|
### Instruction:
CREATE TABLE table_59655 (
"Year recorded" text,
"Title" text,
"Genre" text,
"Label" text,
"Year inducted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What label is 'weather bird' under?
### Response:
|
SELECT "Label" FROM table_59655 WHERE "Title" = 'weather bird'
|
### Instruction:
CREATE TABLE table_1628607_5 (
foursomes_w_l_h VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the foursome's record in 2002?
### Response:
|
SELECT foursomes_w_l_h FROM table_1628607_5 WHERE year = "2002"
|
### Instruction:
CREATE TABLE table_name_59 (
gold VARCHAR,
bronze VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
### Response:
|
SELECT COUNT(gold) FROM table_name_59 WHERE bronze > 27 AND total < 305
|
### Instruction:
CREATE TABLE table_19495707_1 (
application VARCHAR,
mainly_used_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of application for modeling, computer aided design, animation
### Response:
|
SELECT COUNT(application) FROM table_19495707_1 WHERE mainly_used_for = "Modeling, Computer Aided Design, Animation"
|
### Instruction:
CREATE TABLE table_204_184 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many tracks are in the album ?
### Response:
|
SELECT COUNT("title") FROM table_204_184
|
### Instruction:
CREATE TABLE table_name_13 (
heat INTEGER,
nationality VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of every heat for the nationality of Macedonia with a rank less than 114?
### Response:
|
SELECT SUM(heat) FROM table_name_13 WHERE nationality = "macedonia" AND rank < 114
|
### Instruction:
CREATE TABLE table_13514348_7 (
umpires VARCHAR,
simpson_medal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the umpires when Paul Vines (S) won the Simpson Medal?
### Response:
|
SELECT umpires FROM table_13514348_7 WHERE simpson_medal = "Paul Vines (S)"
|
### Instruction:
CREATE TABLE table_name_48 (
last_10_meetings VARCHAR,
at_norman VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Last 10 Meetings when Norman is ou, 18-6?
### Response:
|
SELECT last_10_meetings FROM table_name_48 WHERE at_norman = "ou, 18-6"
|
### Instruction:
CREATE TABLE table_13079788_3 (
date VARCHAR,
gt3_winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the date for gt3 winner oliver bryant matt harris
### Response:
|
SELECT date FROM table_13079788_3 WHERE gt3_winner = "Oliver Bryant Matt Harris"
|
### Instruction:
CREATE TABLE table_11727 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where has an IATA of BVA?
### Response:
|
SELECT "City" FROM table_11727 WHERE "IATA" = 'bva'
|
### Instruction:
CREATE TABLE table_name_87 (
original_air_date VARCHAR,
written_by VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Boyd Hale's Julie gets Validated originally air?
### Response:
|
SELECT original_air_date FROM table_name_87 WHERE written_by = "boyd hale" AND title = "julie gets validated"
|
### Instruction:
CREATE TABLE table_6241 (
"Year" real,
"Manufacturer" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has a Year of 2000?
### Response:
|
SELECT "Team" FROM table_6241 WHERE "Year" = '2000'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.