instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_40716 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Draw, when the Song is 'The Innocent Days'?
### Response:
| SELECT MIN("Draw") FROM table_40716 WHERE "Song" = 'the innocent days' |
### Instruction:
CREATE TABLE table_43494 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many grids had a Time/Retired of +4 laps?
### Response:
| SELECT COUNT("Grid") FROM table_43494 WHERE "Time/Retired" = '+4 laps' |
### Instruction:
CREATE TABLE table_name_81 (
yards INTEGER,
player VARCHAR,
games VARCHAR,
reception VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2?
##... | SELECT AVG(yards) FROM table_name_81 WHERE games > 15 AND reception > 2 AND player = "jimmie giles" |
### Instruction:
CREATE TABLE table_name_6 (
attendance INTEGER,
visitor VARCHAR,
leading_scorer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?
#... | SELECT SUM(attendance) FROM table_name_6 WHERE visitor = "cleveland" AND leading_scorer = "larry hughes(33)" |
### Instruction:
CREATE TABLE table_203_352 (
id number,
"position" number,
"swara" text,
"short name" text,
"notation" text,
"mnemonic" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the swara that holds the first position ?... | SELECT "swara" FROM table_203_352 WHERE "position" = 1 |
### Instruction:
CREATE TABLE table_55753 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of laps when Gerhard Berger is the driver?
### Respon... | SELECT AVG("Laps") FROM table_55753 WHERE "Driver" = 'gerhard berger' |
### Instruction:
CREATE TABLE table_61507 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Site of rice stadium houston, tx?
### Response:
| SELECT "Result" FROM table_61507 WHERE "Site" = 'rice stadium • houston, tx' |
### Instruction:
CREATE TABLE table_50727 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manufacturer has a time of +10.142?
### Response:
| SELECT "Manufacturer" FROM table_50727 WHERE "Time" = '+10.142' |
### Instruction:
CREATE TABLE table_name_89 (
games INTEGER,
years_at_club VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Games have Years at club of 1974 1975, and Goals of 4?
### Response:
| SELECT AVG(games) FROM table_name_89 WHERE years_at_club = "1974–1975" AND goals = 4 |
### Instruction:
CREATE TABLE table_train_39 (
"id" int,
"active_infection" bool,
"sepsis" bool,
"organ_failure" bool,
"septic_shock" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- suspected infection
### Respon... | SELECT * FROM table_train_39 WHERE active_infection = 1 |
### Instruction:
CREATE TABLE table_60149 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks had an Attendance of 43,272?
### Response:
| SELECT COUNT("Week") FROM table_60149 WHERE "Attendance" = '43,272' |
### Instruction:
CREATE TABLE table_79089 (
"Year" real,
"Gold" text,
"Silver" text,
"Bronze" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SILVER WITH A YEAR OF 1962?
### Response:
| SELECT "Silver" FROM table_79089 WHERE "Year" = '1962' |
### Instruction:
CREATE TABLE table_17470 (
"#" real,
"Episode" text,
"Director" text,
"Writer" text,
"Original airdate" text,
"Viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the writer for episode 'episode 7
### Response:
| SELECT "Writer" FROM table_17470 WHERE "Episode" = 'Episode 7' |
### Instruction:
CREATE TABLE table_40112 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week had the highest attendance with 58,701?
### Response:
| SELECT MAX("Week") FROM table_40112 WHERE "Attendance" = '58,701' |
### Instruction:
CREATE TABLE table_15132 (
"Hindi" text,
"Romani" text,
"Domari" text,
"Lomavren" text,
"Persian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Romani word has the same meaning as the Persian word dah?
### Response:
| SELECT "Romani" FROM table_15132 WHERE "Persian" = 'dah' |
### Instruction:
CREATE TABLE table_80038 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original name" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the director Dariush Mehrjui from?
### Resp... | SELECT "Country" FROM table_80038 WHERE "Director" = 'dariush mehrjui' |
### Instruction:
CREATE TABLE table_203_447 (
id number,
"constituency" number,
"region" text,
"name" text,
"party" text,
"last elected" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which party did jaime quintana belong to ?
### Response:
| SELECT "party" FROM table_203_447 WHERE "name" = 'jaime quintana' |
### Instruction:
CREATE TABLE race (
name VARCHAR,
date VARCHAR,
track_id VARCHAR
)
CREATE TABLE track (
name VARCHAR,
track_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name and date for each race and its track name.
### Respons... | SELECT T1.name, T1.date, T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id |
### Instruction:
CREATE TABLE table_name_88 (
width VARCHAR,
number_of_vehicles VARCHAR,
type_designation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?
### Response:... | SELECT width FROM table_name_88 WHERE number_of_vehicles > 15 AND type_designation = "k5000" |
### Instruction:
CREATE TABLE table_22889 (
"Start of conflict" real,
"End of conflict" text,
"Conflict" text,
"Continent" text,
"Location" text,
"Branches involved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every conflict in Iraq?
... | SELECT "Conflict" FROM table_22889 WHERE "Location" = 'Iraq' |
### Instruction:
CREATE TABLE table_14444 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Gender has the area of swannanoa?
### Response:
| SELECT "Gender" FROM table_14444 WHERE "Area" = 'swannanoa' |
### Instruction:
CREATE TABLE table_1601792_4 (
television_station VARCHAR,
transmitted VARCHAR,
frequency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the station that is transmitted at 20 kw and has a frequency of 48 uhf?
### Response:
| SELECT television_station FROM table_1601792_4 WHERE transmitted = "20 kW" AND frequency = "48 UHF" |
### Instruction:
CREATE TABLE table_28075 (
"No." real,
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed episode number 2?
### ... | SELECT "Director" FROM table_28075 WHERE "No." = '2' |
### Instruction:
CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total times in new jersey represented in this chart ?
### Re... | SELECT COUNT(*) FROM table_204_190 WHERE "state" = 'new jersey' |
### Instruction:
CREATE TABLE table_22170495_6 (
title VARCHAR,
original_airing_on_e4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the original airing on e4 May 2, 2010?
### Response:
| SELECT title FROM table_22170495_6 WHERE original_airing_on_e4 = "May 2, 2010" |
### Instruction:
CREATE TABLE table_73755 (
"Season" real,
"Winner" text,
"Runner-Up" text,
"Third Place" text,
"Contestants" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what season was the winner Dado Dolabella?
### Response:
| SELECT MAX("Season") FROM table_73755 WHERE "Winner" = 'Dado Dolabella' |
### Instruction:
CREATE TABLE table_26834 (
"Series" real,
"Season" text,
"Original air date" text,
"Production code" text,
"Episode title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the episode with code 110 originally air?
### ... | SELECT "Original air date" FROM table_26834 WHERE "Production code" = '110' |
### Instruction:
CREATE TABLE table_77288 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of rounds where freddie mitchell was picked?
### Response:
| SELECT SUM("Round") FROM table_77288 WHERE "Player" = 'freddie mitchell' |
### Instruction:
CREATE TABLE table_name_75 (
division_north VARCHAR,
division_southwest VARCHAR,
division_west VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Division North when Division Southwest was won by Novaci and Division West by Vrap i te... | SELECT division_north FROM table_name_75 WHERE division_southwest = "novaci" AND division_west = "vrapčište" |
### Instruction:
CREATE TABLE table_59796 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the home for season 1949-50?
### Response:
| SELECT "Home" FROM table_59796 WHERE "Season" = '1949-50' |
### Instruction:
CREATE TABLE table_13690 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance when the opponent was the Houston Oilers?
### Response:
| SELECT "Attendance" FROM table_13690 WHERE "Opponent" = 'houston oilers' |
### Instruction:
CREATE TABLE table_35063 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text,
"Sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the sponsor of motorola
### Response:
| SELECT "Team" FROM table_35063 WHERE "Sponsor" = 'motorola' |
### Instruction:
CREATE TABLE table_name_26 (
year_s__of_manufacture VARCHAR,
type VARCHAR,
quantity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year(s) of manufacture has a Type of 1b n2, and a Quantity of 10?
### Response:
| SELECT year_s__of_manufacture FROM table_name_26 WHERE type = "1b n2" AND quantity = 10 |
### Instruction:
CREATE TABLE table_46752 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Scott Hoch with a Score of 66 Country?
### Response:
| SELECT "Country" FROM table_46752 WHERE "Score" = '66' AND "Player" = 'scott hoch' |
### Instruction:
CREATE TABLE table_38770 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won a medal at the 2008 Beijing Olympics?
### Response:
| SELECT "Name" FROM table_38770 WHERE "Games" = '2008 beijing' |
### Instruction:
CREATE TABLE table_50965 (
"Title" text,
"Parent magazine" text,
"Magazine type" text,
"Frequency" text,
"Magazine run" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the parent magazine for Dengeki 5pb.?
### Response:
| SELECT "Parent magazine" FROM table_50965 WHERE "Title" = 'dengeki 5pb.' |
### Instruction:
CREATE TABLE table_79531 (
"Region" text,
"Date" text,
"Label" text,
"Format(s)" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region is associated with the catalog value of 512335?
### Response:
| SELECT "Region" FROM table_79531 WHERE "Catalog" = '512335' |
### Instruction:
CREATE TABLE table_19805 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode that David Tucker directed?
#... | SELECT COUNT("Writer") FROM table_19805 WHERE "Director" = 'David Tucker' |
### Instruction:
CREATE TABLE table_77274 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the away team that had a tie of 2?
### Response:
| SELECT "Away team" FROM table_77274 WHERE "Tie no" = '2' |
### Instruction:
CREATE TABLE table_72573 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are week 4 results?
### Response:
| SELECT "Result" FROM table_72573 WHERE "Week" = '4' |
### Instruction:
CREATE TABLE table_11095 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the visiting team on october 23?
### Response:
| SELECT "Visiting Team" FROM table_11095 WHERE "Date" = 'october 23' |
### Instruction:
CREATE TABLE table_1482 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many titles does Episode 2 have
### Respo... | SELECT COUNT("Title") FROM table_1482 WHERE "Episode #" = '2' |
### Instruction:
CREATE TABLE table_65788 (
"Rank" real,
"Summit" text,
"Country" text,
"Island" text,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the island with a summit of Haleakal ?
### Response:
| SELECT "Island" FROM table_65788 WHERE "Summit" = 'haleakalā' |
### Instruction:
CREATE TABLE table_9132 (
"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 Hartlepools United?
### Response:
| SELECT "Away team" FROM table_9132 WHERE "Home team" = 'hartlepools united' |
### Instruction:
CREATE TABLE table_name_70 (
date_of_vacancy VARCHAR,
manner_of_departure VARCHAR,
replaced_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date was the manager fired and replaced by Albert Cartier?
### Response:
| SELECT date_of_vacancy FROM table_name_70 WHERE manner_of_departure = "fired" AND replaced_by = "albert cartier" |
### Instruction:
CREATE TABLE table_13983 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is Croatian spoken?
### Response:... | SELECT "Place" FROM table_13983 WHERE "Language" = 'croatian' |
### Instruction:
CREATE TABLE table_name_37 (
shot_diameter__cm_ VARCHAR,
shot_volume__cm_3__ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the shot volume (cm3) less than 172.76?
### Response:
| SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76 |
### Instruction:
CREATE TABLE table_name_83 (
seats_in_hamburgische_bürgerschaft VARCHAR,
ideology VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SEATS IN Hamburgische B rgerschaft THAT HAS GREEN POLITICS?
### Response:
| SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = "green politics" |
### Instruction:
CREATE TABLE table_2651755_1 (
independent_regional_force VARCHAR,
alliance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the independent regional force when alliance is (r) iv n norambuena ( udi )?
### Response:
| SELECT independent_regional_force FROM table_2651755_1 WHERE alliance = "(R) Iván Norambuena ( UDI )" |
### Instruction:
CREATE TABLE table_45687 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Venue for Hawke's bay?
### Response:
| SELECT "Venue" FROM table_45687 WHERE "Opposing Team" = 'hawke''s bay' |
### Instruction:
CREATE TABLE table_29556461_8 (
game INTEGER,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When allen/moore/wyatt 4 have the highest amount of assists what is the highest game?
### Response:
| SELECT MAX(game) FROM table_29556461_8 WHERE high_assists = "Allen/Moore/Wyatt – 4" |
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT groupname, groupyear FROM torrents |
### Instruction:
CREATE TABLE table_76699 (
"Club" text,
"City" text,
"Sport" text,
"League" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sport had the club of the Montgomery Biscuits?
### Response:
| SELECT "Sport" FROM table_76699 WHERE "Club" = 'montgomery biscuits' |
### Instruction:
CREATE TABLE table_9200 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position when the round is less than 2?
###... | SELECT "Position" FROM table_9200 WHERE "Round" < '2' |
### Instruction:
CREATE TABLE table_37710 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game on May 26?
### Response:
| SELECT "Score" FROM table_37710 WHERE "Date" = 'may 26' |
### Instruction:
CREATE TABLE table_43738 (
"Year" real,
"Number" real,
"Team" text,
"Co-driver" text,
"Position" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Position, when Laps is 156?
### Response:
| SELECT "Position" FROM table_43738 WHERE "Laps" = '156' |
### Instruction:
CREATE TABLE table_name_55 (
enrollment INTEGER,
team_nickname VARCHAR,
founded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average enrollment when the team nickname is wolverines and founded is after 1817?
### Response:... | SELECT AVG(enrollment) FROM table_name_55 WHERE team_nickname = "wolverines" AND founded > 1817 |
### Instruction:
CREATE TABLE table_204_62 (
id number,
"year" number,
"winner" text,
"second" text,
"third" text,
"starters" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of starters in 1995 ?
### Response:
| SELECT "starters" FROM table_204_62 WHERE "year" = 1995 |
### Instruction:
CREATE TABLE table_name_30 (
appearances INTEGER,
season_s_ VARCHAR,
winning_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 2009, what Appearances had a Winning Percentage of less than 0?
### Response:
| SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = "2009" AND winning_percentage < 0 |
### Instruction:
CREATE TABLE table_26036389_1 (
mdr_no INTEGER,
name_of_road VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the MDR number of Rait Charhi Dharamshala?
### Response:
| SELECT MIN(mdr_no) FROM table_26036389_1 WHERE name_of_road = "Rait Charhi Dharamshala" |
### Instruction:
CREATE TABLE table_23285849_11 (
location_attendance VARCHAR,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When carmelo anthony (39) has the highest amount of points where is the location and what is the attendance?
### Respo... | SELECT location_attendance FROM table_23285849_11 WHERE high_points = "Carmelo Anthony (39)" |
### Instruction:
CREATE TABLE table_11951237_2 (
musical_guest_and_song VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many musical guests and songs were in episodes with a production code k0519?
### Response:
| SELECT COUNT(musical_guest_and_song) FROM table_11951237_2 WHERE production_code = "K0519" |
### Instruction:
CREATE TABLE table_56057 (
"Year" real,
"Song Title" text,
"Movie" text,
"Music Director" text,
"Co-Singers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average year that Thuppakki movies came out?
### Response:
| SELECT AVG("Year") FROM table_56057 WHERE "Movie" = 'thuppakki' |
### Instruction:
CREATE TABLE table_15183 (
"Year" real,
"\u00c1lbum" text,
"Charts" text,
"Sales" real,
"Certification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the number of sales before 1991?
### Response:
| SELECT "Sales" FROM table_15183 WHERE "Year" < '1991' |
### Instruction:
CREATE TABLE table_name_64 (
years VARCHAR,
engine_code VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?
### Response:
| SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)" |
### Instruction:
CREATE TABLE table_70828 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of David Toms?
### Response:
| SELECT SUM("Total") FROM table_70828 WHERE "Player" = 'david toms' |
### Instruction:
CREATE TABLE table_59004 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total of Set 2 of 24:22?
### Response:
| SELECT "Total" FROM table_59004 WHERE "Set 2" = '24:22' |
### Instruction:
CREATE TABLE table_52824 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Nationality is the Iowa State team?
### Response:
| SELECT "Nationality" FROM table_52824 WHERE "School/Club Team" = 'iowa state' |
### Instruction:
CREATE TABLE table_53465 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Say the field with a result of w 12-11
### Response:
| SELECT "Field" FROM table_53465 WHERE "Result" = 'w 12-11' |
### Instruction:
CREATE TABLE table_name_80 (
date VARCHAR,
score VARCHAR,
home VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date were Romania at Home at the Bucharest Venue with a Score of 13-19?
### Response:
| SELECT date FROM table_name_80 WHERE home = "romania" AND venue = "bucharest" AND score = "13-19" |
### Instruction:
CREATE TABLE table_20321 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the CFL teams where the pick number is 36?
### Response:
| SELECT "CFL Team" FROM table_20321 WHERE "Pick #" = '36' |
### Instruction:
CREATE TABLE table_69650 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the competition for 13 december 2012
### Response:
| SELECT "Competition" FROM table_69650 WHERE "Date" = '13 december 2012' |
### Instruction:
CREATE TABLE table_4617 (
"Line" text,
"Color" text,
"Terminus" text,
"Length" text,
"Stations" text,
"Daily Ridership" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The color sapphire is assigned to which Terminus?
### Respo... | SELECT "Terminus" FROM table_4617 WHERE "Color" = 'sapphire' |
### Instruction:
CREATE TABLE table_26733129_1 (
three_darts_challenge VARCHAR,
air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was in the three darts challenge that aired on 10 may 2010?
### Response:
| SELECT three_darts_challenge FROM table_26733129_1 WHERE air_date = "10 May 2010" |
### Instruction:
CREATE TABLE table_6196 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most total with to par more than 16
### Response:
| SELECT MAX("Total") FROM table_6196 WHERE "To par" > '16' |
### Instruction:
CREATE TABLE table_15526 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has more than 70 score with +1 to par?
### Response:
| SELECT "Player" FROM table_15526 WHERE "Score" > '70' AND "To par" = '+1' |
### Instruction:
CREATE TABLE table_27756474_6 (
high_assists VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of high assists for fedexforum 11,283
### Response:
| SELECT COUNT(high_assists) FROM table_27756474_6 WHERE location_attendance = "FedExForum 11,283" |
### Instruction:
CREATE TABLE table_name_89 (
high_school VARCHAR,
utah_mr_basketball VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?
### Response:
| SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = "tyler haws" AND year = 2009 |
### Instruction:
CREATE TABLE table_43940 (
"Rank" text,
"Event" text,
"Place" text,
"Name" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Prize, when Name is 'Valdemar Kwaysser'?
### Response:
| SELECT "Prize" FROM table_43940 WHERE "Name" = 'valdemar kwaysser' |
### Instruction:
CREATE TABLE table_8588 (
"Train No." text,
"Train Name" text,
"From" text,
"Arrival" text,
"Runs On" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is Train No. 16031 arriving from?
### Response:
| SELECT "From" FROM table_8588 WHERE "Train No." = '16031' |
### Instruction:
CREATE TABLE table_62425 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest first elected for Pennsylvania 10?
### Response:
| SELECT MAX("First elected") FROM table_62425 WHERE "District" = 'pennsylvania 10' |
### Instruction:
CREATE TABLE table_50635 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has the score of 67-72=139?
### Response:
| SELECT "Player" FROM table_50635 WHERE "Score" = '67-72=139' |
### Instruction:
CREATE TABLE table_name_95 (
venue VARCHAR,
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue held the 1966 fifa world cup qualification on may 7, 1965?
### Response:
| SELECT venue FROM table_name_95 WHERE competition = "1966 fifa world cup qualification" AND date = "may 7, 1965" |
### Instruction:
CREATE TABLE table_63765 (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the company from Greece with author Aeschylus?
### Response:
| SELECT "company" FROM table_63765 WHERE "country" = 'greece' AND "author" = 'aeschylus' |
### Instruction:
CREATE TABLE table_30863 (
"Episode #" real,
"Series #" real,
"Episode Title" text,
"Original air date" text,
"Production Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original airdate of episode #31?
### Respon... | SELECT "Original air date" FROM table_30863 WHERE "Episode #" = '31' |
### Instruction:
CREATE TABLE table_32008 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning drivers" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the race on 9 July?
### Respo... | SELECT "Name" FROM table_32008 WHERE "Date" = '9 july' |
### Instruction:
CREATE TABLE table_8202 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the head coach for the team, arminia bielefeld?
### Response:
| SELECT "Head coach" FROM table_8202 WHERE "Team" = 'arminia bielefeld' |
### Instruction:
CREATE TABLE table_13631 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Total has a Player of matt ruth?
### Response:
| SELECT "Total" FROM table_13631 WHERE "Player" = 'matt ruth' |
### Instruction:
CREATE TABLE table_38249 (
"Election" text,
"D\u00e1il" text,
"Share of votes" text,
"Seats" real,
"Government" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Government has 57 seats?
### Response:
| SELECT "Government" FROM table_38249 WHERE "Seats" = '57' |
### Instruction:
CREATE TABLE table_43939 (
"Rank" text,
"Event" text,
"Place" text,
"Name" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Rank, when Event is 'LAPT4 S o Paulo'?
### Response:
| SELECT "Rank" FROM table_43939 WHERE "Event" = 'lapt4 são paulo' |
### Instruction:
CREATE TABLE table_27733 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams drafted players from the University of Maryland?
### Response:
| SELECT COUNT("MLS Team") FROM table_27733 WHERE "Affiliation" = 'University of Maryland' |
### Instruction:
CREATE TABLE table_name_67 (
trofeo_fast_team VARCHAR,
points_classification VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Trofeo Fast Team with a point classification of Silvio Martinello and stage 6?
### R... | SELECT trofeo_fast_team FROM table_name_67 WHERE points_classification = "silvio martinello" AND stage = "6" |
### Instruction:
CREATE TABLE table_9000 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the manufacturer of the car driven by Bradley Smith?
### Response:
| SELECT "Manufacturer" FROM table_9000 WHERE "Rider" = 'bradley smith' |
### Instruction:
CREATE TABLE table_name_90 (
tries_for INTEGER,
points_for VARCHAR,
tries_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average tries for less than 117 points and less than 48 tries against?
### Response:
| SELECT AVG(tries_for) FROM table_name_90 WHERE points_for < 117 AND tries_against < 48 |
### Instruction:
CREATE TABLE table_8772 (
"Song" text,
"Original Name" text,
"Country" text,
"Language" text,
"Singer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original name for the song performed by Brad Kavanagh?
### Respo... | SELECT "Original Name" FROM table_8772 WHERE "Singer(s)" = 'brad kavanagh' |
### Instruction:
CREATE TABLE table_46747 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From what Country is T6 Place Player Robert Karlsson?
### Response:
| SELECT "Country" FROM table_46747 WHERE "Place" = 't6' AND "Player" = 'robert karlsson' |
### Instruction:
CREATE TABLE table_3403 (
"County" text,
"Town/City" text,
"Milepost" text,
"Station" text,
"Connections" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many counties are at milepost 69.5?
### Response:
| SELECT COUNT("County") FROM table_3403 WHERE "Milepost" = '69.5' |
### Instruction:
CREATE TABLE table_203_394 (
id number,
"title" text,
"author" text,
"date" number,
"length\n(first edition)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many bulldog drummond books did gerard fairlie write ?
### Response:
| SELECT COUNT("title") FROM table_203_394 WHERE "author" = 'gerard fairlie' |
### Instruction:
CREATE TABLE table_41233 (
"Location" text,
"Aircraft" text,
"Tail number" text,
"Aircraft damage" text,
"Fatalities" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the tail number with 3/3 fatalities?
### Response:
| SELECT "Tail number" FROM table_41233 WHERE "Fatalities" = '3/3' |
### Instruction:
CREATE TABLE table_1435 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NFL team for the player who's college was Norfolk State?
### Response:
| SELECT "NFL Team" FROM table_1435 WHERE "College" = 'Norfolk State' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.