instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_34520 (
"Year" real,
"Performance" text,
"World Ranking" real,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The venue of Rome has which date?
### Response:
|
SELECT "Date" FROM table_34520 WHERE "Venue" = 'rome'
|
### Instruction:
CREATE TABLE table_name_97 (
rank INTEGER,
team VARCHAR,
bb_so VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank for team cle when the BB/SO is 10.89?
### Response:
|
SELECT AVG(rank) FROM table_name_97 WHERE team = "cle" AND bb_so = 10.89
|
### Instruction:
CREATE TABLE table_name_70 (
billboard_200_peak INTEGER,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?
### Response:
|
SELECT SUM(billboard_200_peak) FROM table_name_70 WHERE title = "bread"
|
### Instruction:
CREATE TABLE table_41178 (
"Team" text,
"Match" text,
"Points" text,
"Draw" text,
"Lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Lost when the points were dissolved?
### Response:
|
SELECT "Lost" FROM table_41178 WHERE "Points" = 'dissolved'
|
### Instruction:
CREATE TABLE table_name_89 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2006 when the 2013 is 1r, and the 2012 is 1r?
### Response:
|
SELECT 2006 FROM table_name_89 WHERE 2013 = "1r" AND 2012 = "1r"
|
### Instruction:
CREATE TABLE table_69817 (
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which aggregate has ajax as the club?
### Response:
|
SELECT "Aggregate" FROM table_69817 WHERE "Club" = 'ajax'
|
### Instruction:
CREATE TABLE table_76009 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Games for Terence Morris?
### Response:
|
SELECT "Games" FROM table_76009 WHERE "Name" = 'terence morris'
|
### Instruction:
CREATE TABLE table_2985664_8 (
strike_rate VARCHAR,
catches_stumpings VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every strike rate when cathces/stumpings is 13/1?
### Response:
|
SELECT strike_rate FROM table_2985664_8 WHERE catches_stumpings = "13/1"
|
### Instruction:
CREATE TABLE table_53355 (
"Track" real,
"Title" text,
"Author(s)" text,
"Recorded" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title is 3:43 long?
### Response:
|
SELECT "Title" FROM table_53355 WHERE "Length" = '3:43'
|
### Instruction:
CREATE TABLE table_25383715_1 (
slno VARCHAR,
contact_person VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the SlNo no of contact person SDE (P), Thiruppattur?
### Response:
|
SELECT slno FROM table_25383715_1 WHERE contact_person = "SDE (P), Thiruppattur"
|
### Instruction:
CREATE TABLE table_53359 (
"City" text,
"Country" text,
"Airport" text,
"IATA" text,
"ICAO" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the IATA for jeddah
### Response:
|
SELECT "IATA" FROM table_53359 WHERE "City" = 'jeddah'
|
### Instruction:
CREATE TABLE table_name_61 (
captain VARCHAR,
year VARCHAR,
runner_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Runner-up was Angaston, and the Year was less than 1927, who was the Captain?
### Response:
|
SELECT captain FROM table_name_61 WHERE year < 1927 AND runner_up = "angaston"
|
### Instruction:
CREATE TABLE table_204_838 (
id number,
"year" number,
"award" text,
"category" text,
"nominated work" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years are listed ?
### Response:
|
SELECT COUNT(DISTINCT "year") FROM table_204_838
|
### Instruction:
CREATE TABLE table_10015132_7 (
nationality VARCHAR,
years_in_toronto VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what nationality is the player who played from 1997-98
### Response:
|
SELECT nationality FROM table_10015132_7 WHERE years_in_toronto = "1997-98"
|
### Instruction:
CREATE TABLE table_name_65 (
mark VARCHAR,
country VARCHAR,
react VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Mark, when Country is 'Russia', and when React is less than 0.165?
### Response:
|
SELECT COUNT(mark) FROM table_name_65 WHERE country = "russia" AND react < 0.165
|
### Instruction:
CREATE TABLE table_name_17 (
score VARCHAR,
away_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much did the away team b3 score on August 12, 2014?
### Response:
|
SELECT score FROM table_name_17 WHERE away_team = "b3" AND date = "august 12, 2014"
|
### Instruction:
CREATE TABLE table_name_21 (
year_s__won VARCHAR,
country VARCHAR,
to_par VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Year(s) won from the United States as country with a To Par of +4?
### Response:
|
SELECT year_s__won FROM table_name_21 WHERE country = "united states" AND to_par = "+4"
|
### Instruction:
CREATE TABLE table_27700375_6 (
game VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In how many games were the high rebounds made by Derrick Favors (8)?
### Response:
|
SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = "Derrick Favors (8)"
|
### Instruction:
CREATE TABLE table_name_59 (
record VARCHAR,
game_site VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record at Memorial Stadium on September 19, 1965?
### Response:
|
SELECT record FROM table_name_59 WHERE game_site = "memorial stadium" AND date = "september 19, 1965"
|
### Instruction:
CREATE TABLE table_189893_1 (
percentage__2006_ VARCHAR,
mother_tongue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for percentage(2006) with a Polish mother tongue?
### Response:
|
SELECT percentage__2006_ FROM table_189893_1 WHERE mother_tongue = "Polish"
|
### Instruction:
CREATE TABLE table_name_57 (
engine VARCHAR,
year VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the engine for years before 1990 and chassis of eurobrun er189
### Response:
|
SELECT engine FROM table_name_57 WHERE year < 1990 AND chassis = "eurobrun er189"
|
### Instruction:
CREATE TABLE table_1594772_2 (
team__b_ VARCHAR,
margin VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of team for 35 runs margin and india winner
### Response:
|
SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India"
|
### Instruction:
CREATE TABLE table_name_63 (
launches INTEGER,
rocket VARCHAR,
partial_failures VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the average launches for Ariane 5 and 0 partial failures?
### Response:
|
SELECT AVG(launches) FROM table_name_63 WHERE rocket = "ariane 5" AND partial_failures < 0
|
### Instruction:
CREATE TABLE table_name_19 (
record VARCHAR,
location VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Gassaway's record at the fight in mississippi, united states against anthony macias?
### Response:
|
SELECT record FROM table_name_19 WHERE location = "mississippi, united states" AND opponent = "anthony macias"
|
### Instruction:
CREATE TABLE table_204_266 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number of summer olympics on the list .
### Response:
|
SELECT COUNT(*) FROM table_204_266 WHERE "season" = 'summer'
|
### Instruction:
CREATE TABLE table_15393 (
"Operator" text,
"Shipyard" text,
"Project" text,
"Commissioned" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the commissioned for Vietnam?
### Response:
|
SELECT "Commissioned" FROM table_15393 WHERE "Operator" = 'vietnam'
|
### Instruction:
CREATE TABLE table_2226817_4 (
production_code VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the production code for november 27, 1988
### Response:
|
SELECT production_code FROM table_2226817_4 WHERE original_air_date = "November 27, 1988"
|
### Instruction:
CREATE TABLE table_46502 (
"Name" text,
"Club" text,
"Position" text,
"Years" text,
"Current status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Years was the Player in MF Position?
### Response:
|
SELECT "Years" FROM table_46502 WHERE "Position" = 'mf'
|
### Instruction:
CREATE TABLE table_71650 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the to par for colin montgomerie
### Response:
|
SELECT "To par" FROM table_71650 WHERE "Player" = 'colin montgomerie'
|
### Instruction:
CREATE TABLE table_12094609_1 (
evening_gown VARCHAR,
preliminaries VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the evening gown where preliminaries is 8.977
### Response:
|
SELECT evening_gown FROM table_12094609_1 WHERE preliminaries = "8.977"
|
### Instruction:
CREATE TABLE table_15647838_3 (
attendance VARCHAR,
bowl_game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many values for attendance correspond to the 1986 Peach Bowl?
### Response:
|
SELECT COUNT(attendance) FROM table_15647838_3 WHERE bowl_game = "1986 Peach Bowl"
|
### Instruction:
CREATE TABLE table_43313 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does Denard Walker play?
### Response:
|
SELECT "Position" FROM table_43313 WHERE "Player" = 'denard walker'
|
### Instruction:
CREATE TABLE table_201_14 (
id number,
"crossing" text,
"carries" text,
"location" text,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many crossings are in maryland ?
### Response:
|
SELECT COUNT("crossing") FROM table_201_14 WHERE "location" = 'maryland'
|
### Instruction:
CREATE TABLE table_name_97 (
surface VARCHAR,
tournament VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of surface was used for the carthage tournament on august 14, 1994?
### Response:
|
SELECT surface FROM table_name_97 WHERE tournament = "carthage" AND date = "august 14, 1994"
|
### Instruction:
CREATE TABLE table_name_87 (
fleet_size INTEGER,
type VARCHAR,
introduced VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest fleet size with a type of shunter introduced in 1953?
### Response:
|
SELECT MIN(fleet_size) FROM table_name_87 WHERE type = "shunter" AND introduced = "1953"
|
### Instruction:
CREATE TABLE table_66099 (
"Continent" text,
"Location" text,
"City" text,
"Date" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the expansion in the city of San Juan?
### Response:
|
SELECT COUNT("Year") FROM table_66099 WHERE "City" = 'san juan'
|
### Instruction:
CREATE TABLE table_17355820_1 (
original_air_date VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which dates did the episodes directed by TR Babu Subramaniam air?
### Response:
|
SELECT original_air_date FROM table_17355820_1 WHERE directed_by = "TR Babu Subramaniam"
|
### Instruction:
CREATE TABLE table_60181 (
"Week" text,
"Theme" text,
"Song Sung" text,
"Artist" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Status does Freddie Jackson have?
### Response:
|
SELECT "Status" FROM table_60181 WHERE "Artist" = 'freddie jackson'
|
### Instruction:
CREATE TABLE table_54704 (
"Catches" text,
"Player" text,
"Versus" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did af giles play?
### Response:
|
SELECT "Date" FROM table_54704 WHERE "Player" = 'af giles'
|
### Instruction:
CREATE TABLE table_17505751_5 (
Champions VARCHAR,
league VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when the position is forward and the league is 5 what number is the Champion league
### Response:
|
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE league = 5 AND position = "Forward"
|
### Instruction:
CREATE TABLE table_name_92 (
kicker VARCHAR,
yards VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Yards of 45, and a Date of november 8, 1971 is what kicker?
### Response:
|
SELECT kicker FROM table_name_92 WHERE yards = 45 AND date = "november 8, 1971"
|
### Instruction:
CREATE TABLE table_name_82 (
seasons_in_league INTEGER,
best_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sum of Seasons in league has a Best Position of 5th (2007)?
### Response:
|
SELECT SUM(seasons_in_league) FROM table_name_82 WHERE best_position = "5th (2007)"
|
### Instruction:
CREATE TABLE book (
book_id number,
title text,
issues number,
writer text
)
CREATE TABLE publication (
publication_id number,
book_id number,
publisher text,
publication_date text,
price number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the title and issues of the books?
### Response:
|
SELECT title, issues FROM book
|
### Instruction:
CREATE TABLE table_78613 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result later than week 13?
### Response:
|
SELECT "Result" FROM table_78613 WHERE "Week" > '13'
|
### Instruction:
CREATE TABLE table_name_31 (
score VARCHAR,
date VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score on 23 November 1983 with exeter city as the away team?
### Response:
|
SELECT score FROM table_name_31 WHERE date = "23 november 1983" AND away_team = "exeter city"
|
### Instruction:
CREATE TABLE table_68983 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for august 31
### Response:
|
SELECT "Record" FROM table_68983 WHERE "Date" = 'august 31'
|
### Instruction:
CREATE TABLE table_178389_1 (
church_name VARCHAR,
location_of_the_church VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the church name for the church located in Kyrkjeb ?
### Response:
|
SELECT church_name FROM table_178389_1 WHERE location_of_the_church = "Kyrkjebø"
|
### Instruction:
CREATE TABLE table_26588 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Reset points" real,
"Events" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least events for number 7
### Response:
|
SELECT MIN("Events") FROM table_26588 WHERE "#" = '7'
|
### Instruction:
CREATE TABLE table_39063 (
"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 had a version called Wolf Mix?
### Response:
|
SELECT AVG("Year") FROM table_39063 WHERE "Version" = 'wolf mix'
|
### Instruction:
CREATE TABLE table_name_51 (
us_state_district VARCHAR,
charter_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state or district has a charter date of april 17, 2011?
### Response:
|
SELECT us_state_district FROM table_name_51 WHERE charter_date = "april 17, 2011"
|
### Instruction:
CREATE TABLE table_203_694 (
id number,
"#" number,
"name" text,
"took office" text,
"left office" text,
"party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at least how many parties have won ?
### Response:
|
SELECT COUNT(DISTINCT "party") FROM table_203_694
|
### Instruction:
CREATE TABLE table_name_94 (
series INTEGER,
premiere VARCHAR,
episodes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season premiered on 29 October 1990 and had more than 6 episodes?
### Response:
|
SELECT MAX(series) FROM table_name_94 WHERE premiere = "29 october 1990" AND episodes > 6
|
### Instruction:
CREATE TABLE table_51241 (
"Year" text,
"Name" text,
"Film" text,
"Role" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What actor made a film in 1957?
### Response:
|
SELECT "Name" FROM table_51241 WHERE "Year" = '1957'
|
### Instruction:
CREATE TABLE table_23722304_2 (
compression_ratio VARCHAR,
torque__n_m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the compression ratio whre the torque is 208?
### Response:
|
SELECT compression_ratio FROM table_23722304_2 WHERE torque__n_m_ = 208
|
### Instruction:
CREATE TABLE table_71120 (
"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 is Argentina's language?
### Response:
|
SELECT "Language" FROM table_71120 WHERE "Country" = 'argentina'
|
### Instruction:
CREATE TABLE table_23170118_2 (
title VARCHAR,
villains VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title of the episode where reg lacey (aka mr. b) played the villain?
### Response:
|
SELECT title FROM table_23170118_2 WHERE villains = "Reg Lacey (AKA Mr. B)"
|
### Instruction:
CREATE TABLE table_name_33 (
date VARCHAR,
competition VARCHAR,
runners_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the Fai Cup with Derry City F.C. as runners-up take place?
### Response:
|
SELECT date FROM table_name_33 WHERE competition = "fai cup" AND runners_up = "derry city f.c."
|
### Instruction:
CREATE TABLE table_name_38 (
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2006 sum with a rank 1 and more than 6758845 in 1996?
### Response:
|
SELECT SUM(2006) FROM table_name_38 WHERE rank = 1 AND 1996 > 6758845
|
### Instruction:
CREATE TABLE table_17641206_8 (
episode VARCHAR,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes aired on 22january2009
### Response:
|
SELECT COUNT(episode) FROM table_17641206_8 WHERE original_airdate = "22January2009"
|
### Instruction:
CREATE TABLE table_name_78 (
rider VARCHAR,
speed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph?
### Response:
|
SELECT rider FROM table_name_78 WHERE speed = "86.15mph"
|
### Instruction:
CREATE TABLE table_15242 (
"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 to par for Gene Littler?
### Response:
|
SELECT "To par" FROM table_15242 WHERE "Player" = 'gene littler'
|
### Instruction:
CREATE TABLE table_7564 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a total of 152?
### Response:
|
SELECT "Player" FROM table_7564 WHERE "Total" = '152'
|
### Instruction:
CREATE TABLE table_name_98 (
rank INTEGER,
games VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least rank when games are more than 34 and the season is 2009-10
### Response:
|
SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-10"
|
### Instruction:
CREATE TABLE table_name_63 (
subject VARCHAR,
election VARCHAR,
office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?
### Response:
|
SELECT subject FROM table_name_63 WHERE election = "general" AND office = "queen anne's county state's attorney"
|
### Instruction:
CREATE TABLE table_28210383_1 (
directed_by VARCHAR,
_number__season__number_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed # (season #) is 1 ( 2 )?
### Response:
|
SELECT directed_by FROM table_28210383_1 WHERE _number__season__number_ = "1 ( 2 )"
|
### Instruction:
CREATE TABLE table_42717 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state has the king title?
### Response:
|
SELECT "State" FROM table_42717 WHERE "Title" = 'king'
|
### Instruction:
CREATE TABLE table_15780718_6 (
high_rebounds VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name for the high rebounds when score is w 105 91 (ot)
### Response:
|
SELECT high_rebounds FROM table_15780718_6 WHERE score = "W 105–91 (OT)"
|
### Instruction:
CREATE TABLE table_name_92 (
elector VARCHAR,
nationality VARCHAR,
elevated VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the French Elector Elevated on 1288, May 16?
### Response:
|
SELECT elector FROM table_name_92 WHERE nationality = "french" AND elevated = "1288, may 16"
|
### Instruction:
CREATE TABLE table_24910737_1 (
title VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the episode title that had a US viewership of 8.16?
### Response:
|
SELECT title FROM table_24910737_1 WHERE us_viewers__millions_ = "8.16"
|
### Instruction:
CREATE TABLE table_57293 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time for tony myres?
### Response:
|
SELECT "Time" FROM table_57293 WHERE "Rider" = 'tony myres'
|
### Instruction:
CREATE TABLE table_name_24 (
date VARCHAR,
margin_of_victory VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
### Response:
|
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
|
### Instruction:
CREATE TABLE table_37745 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Alex Figge's Best?
### Response:
|
SELECT "Best" FROM table_37745 WHERE "Name" = 'alex figge'
|
### Instruction:
CREATE TABLE table_52230 (
"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 date for the game in week 7?
### Response:
|
SELECT "Date" FROM table_52230 WHERE "Week" = '7'
|
### Instruction:
CREATE TABLE table_58038 (
"Number" real,
"Chapter" text,
"Installation Date" text,
"Location" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chapter is located in Normal, Illinois?
### Response:
|
SELECT "Chapter" FROM table_58038 WHERE "Location" = 'normal, illinois'
|
### Instruction:
CREATE TABLE table_1341472_15 (
result VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the result for first elected in 1948 , 1964
### Response:
|
SELECT result FROM table_1341472_15 WHERE first_elected = "1948 , 1964"
|
### Instruction:
CREATE TABLE table_name_99 (
player VARCHAR,
money___£__ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has money of ( ) 159,500, and france is the country?
### Response:
|
SELECT player FROM table_name_99 WHERE money___£__ = "159,500" AND country = "france"
|
### Instruction:
CREATE TABLE table_72763 (
"Track Name" text,
"Location" text,
"Length" text,
"Sanction" text,
"Program" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What programs were held at highland speedway?
### Response:
|
SELECT "Program" FROM table_72763 WHERE "Track Name" = 'Highland Speedway'
|
### Instruction:
CREATE TABLE table_49128 (
"Team" text,
"City" text,
"State/Province" text,
"League" text,
"Est." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team is located in brooklyn?
### Response:
|
SELECT "Team" FROM table_49128 WHERE "City" = 'brooklyn'
|
### Instruction:
CREATE TABLE table_25762852_1 (
top_elevation__feet_ VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the name is Steamboat, what is the top elevation?
### Response:
|
SELECT top_elevation__feet_ FROM table_25762852_1 WHERE name = "Steamboat"
|
### Instruction:
CREATE TABLE table_38360 (
"Season" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Nationality has the Player of Marcus Walker?
### Response:
|
SELECT "Nationality" FROM table_38360 WHERE "Player" = 'marcus walker'
|
### Instruction:
CREATE TABLE table_name_51 (
race VARCHAR,
fastest_lap VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During what race did Mike Hawthorn have the Fastest Lap and Peter Collins win?
### Response:
|
SELECT race FROM table_name_51 WHERE fastest_lap = "mike hawthorn" AND winning_driver = "peter collins"
|
### Instruction:
CREATE TABLE table_49138 (
"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 the to par for Tino Schuster?
### Response:
|
SELECT "To par" FROM table_49138 WHERE "Player" = 'tino schuster'
|
### Instruction:
CREATE TABLE table_name_21 (
location VARCHAR,
year VARCHAR,
international_captain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the location when the year is less than 1998 and the international captain is david graham?
### Response:
|
SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham"
|
### Instruction:
CREATE TABLE table_203_345 (
id number,
"name" text,
"party" text,
"took office" number,
"left office" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when did the first provincial representative for gilbert plains take office ?
### Response:
|
SELECT MIN("took office") FROM table_203_345
|
### Instruction:
CREATE TABLE table_15637071_1 (
fleet_size INTEGER,
callsign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fleet size of the airline which has a callsign of cool red?
### Response:
|
SELECT MIN(fleet_size) FROM table_15637071_1 WHERE callsign = "COOL RED"
|
### Instruction:
CREATE TABLE table_127511_1 (
pacbio VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 454 gs flx when pacbio is 100-500 mb?
### Response:
|
SELECT 454 AS _gs_flx FROM table_127511_1 WHERE pacbio = "100-500 Mb"
|
### Instruction:
CREATE TABLE table_43276 (
"element" text,
"group" real,
"period" real,
"reaction" text,
"potential" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which highest period's element is platinum?
### Response:
|
SELECT MAX("period") FROM table_43276 WHERE "element" = 'platinum'
|
### Instruction:
CREATE TABLE table_19753079_12 (
candidates VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different pairs of candidates were there for the district first elected in 1988?
### Response:
|
SELECT COUNT(candidates) FROM table_19753079_12 WHERE first_elected = 1988
|
### Instruction:
CREATE TABLE table_41062 (
"Date" text,
"Title" text,
"Director" text,
"Production Cost" text,
"Singapore Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed Tequila?
### Response:
|
SELECT "Director" FROM table_41062 WHERE "Title" = 'tequila'
|
### Instruction:
CREATE TABLE table_13464416_6 (
game VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the participation at omni coliseum 7,194?
### Response:
|
SELECT game FROM table_13464416_6 WHERE location_attendance = "Omni Coliseum 7,194"
|
### Instruction:
CREATE TABLE table_21378160_2 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many opponents did they play on 17/05/2009?
### Response:
|
SELECT COUNT(opponent) FROM table_21378160_2 WHERE date = "17/05/2009"
|
### Instruction:
CREATE TABLE table_25655781_17 (
sprint_classification VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sprint classifications are there where marco frapporti is the winner?
### Response:
|
SELECT COUNT(sprint_classification) FROM table_25655781_17 WHERE winner = "Marco Frapporti"
|
### Instruction:
CREATE TABLE table_2850912_5 (
college_junior_club_team VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many college/junior/club teams are from Sweden?
### Response:
|
SELECT COUNT(college_junior_club_team) FROM table_2850912_5 WHERE nationality = "Sweden"
|
### Instruction:
CREATE TABLE table_name_59 (
draw VARCHAR,
artist VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the total number of Draw that has the Artist of de spelbrekers, and the Points smaller than 0?
### Response:
|
SELECT COUNT(draw) FROM table_name_59 WHERE artist = "de spelbrekers" AND points < 0
|
### Instruction:
CREATE TABLE table_name_91 (
draw INTEGER,
jury VARCHAR,
televote VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What sum of draw had more than 22 in Jury and a Televote of 130?
### Response:
|
SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130
|
### Instruction:
CREATE TABLE table_name_84 (
goals_for INTEGER,
goals_against VARCHAR,
drawn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest goals entry with drawn larger than 6 and goals against 85?
### Response:
|
SELECT MAX(goals_for) FROM table_name_84 WHERE goals_against = 85 AND drawn > 6
|
### Instruction:
CREATE TABLE table_56460 (
"Sign" text,
"Name" text,
"Date" text,
"Content" text,
"City" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the content for sign of g e
### Response:
|
SELECT "Content" FROM table_56460 WHERE "Sign" = 'g e'
|
### Instruction:
CREATE TABLE table_name_39 (
round VARCHAR,
competition VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round is the UEFA Cup Compeition and the Kolkheti-1913 Poti Cub?
### Response:
|
SELECT round FROM table_name_39 WHERE competition = "uefa cup" AND club = "kolkheti-1913 poti"
|
### Instruction:
CREATE TABLE table_204_20 (
id number,
"represent" text,
"contestant" text,
"age" number,
"height" text,
"hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of delegates ?
### Response:
|
SELECT COUNT("contestant") FROM table_204_20
|
### Instruction:
CREATE TABLE movie (
budget_million INTEGER,
YEAR INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average, maximum, and minimum budget for all movies before 2000.
### Response:
|
SELECT AVG(budget_million), MAX(budget_million), MIN(budget_million) FROM movie WHERE YEAR < 2000
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.