instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_29021 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team drafted Esa Tikkanen?
### Response:
|
SELECT "NHL team" FROM table_29021 WHERE "Player" = 'Esa Tikkanen'
|
### Instruction:
CREATE TABLE table_64468 (
"Season" real,
"Level" text,
"Division" text,
"Administration" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Position has a Season larger than 2000 with a Level of Tier 3?
### Response:
|
SELECT "Position" FROM table_64468 WHERE "Season" > '2000' AND "Level" = 'tier 3'
|
### Instruction:
CREATE TABLE table_39980 (
"Species" text,
"Indole" text,
"Methyl Red" text,
"Voges-Proskauer" text,
"Citrate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the methyl red reading for proteus mirabilis?
### Response:
|
SELECT "Methyl Red" FROM table_39980 WHERE "Species" = 'proteus mirabilis'
|
### 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.
-- name the representative who took office for 7 years and is in the liberal party .
### Response:
|
SELECT "name" FROM table_203_345 WHERE "left office" - "took office" = 7 AND "party" = 'liberal'
|
### Instruction:
CREATE TABLE table_80135 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year was there no competition for women?
### Response:
|
SELECT "Year" FROM table_80135 WHERE "Women's singles" = 'no competition'
|
### Instruction:
CREATE TABLE table_28774 (
"Portuguese name" text,
"English name" text,
"Subdivides in" text,
"Equivalence in Varas" text,
"Metrical equivalence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the subdivides in equivalence for varas 1/5
### Response:
|
SELECT "Subdivides in" FROM table_28774 WHERE "Equivalence in Varas" = '1/5'
|
### Instruction:
CREATE TABLE table_64153 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date had a CD format, under Columbia/Legacy from the UK?
### Response:
|
SELECT "Date" FROM table_64153 WHERE "Format" = 'cd' AND "Label" = 'columbia/legacy' AND "Country" = 'uk'
|
### Instruction:
CREATE TABLE table_18365 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did the incumbent from the Illinois 12 district belong to?
### Response:
|
SELECT "Party" FROM table_18365 WHERE "District" = 'Illinois 12'
|
### Instruction:
CREATE TABLE table_29690363_3 (
fastest_lap VARCHAR,
most_laps_led VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the fastest lap(s) when josef newgarden led the most laps at edmonton?
### Response:
|
SELECT fastest_lap FROM table_29690363_3 WHERE most_laps_led = "Josef Newgarden" AND race = "Edmonton"
|
### Instruction:
CREATE TABLE table_68207 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In heat 4, what is Byun Hye-young's Nationality?
### Response:
|
SELECT "Nationality" FROM table_68207 WHERE "Heat" = '4' AND "Name" = 'byun hye-young'
|
### Instruction:
CREATE TABLE table_27445 (
"Prefecture" text,
"City/Town" text,
"High School Name" text,
"Year of Previous Participation" text,
"Total Number of Participation" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what prefecture is Daito located?
### Response:
|
SELECT "Prefecture" FROM table_27445 WHERE "City/Town" = 'Daito'
|
### Instruction:
CREATE TABLE table_14231 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Try diff has Tries for of 12?
### Response:
|
SELECT "Try diff" FROM table_14231 WHERE "Tries for" = '12'
|
### Instruction:
CREATE TABLE table_4742 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Melbourne play as the away team?
### Response:
|
SELECT "Venue" FROM table_4742 WHERE "Away team" = 'melbourne'
|
### Instruction:
CREATE TABLE table_name_50 (
team VARCHAR,
position_in_table VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the team with the position in table of 24th and the date of appointment 15 september 2008?
### Response:
|
SELECT team FROM table_name_50 WHERE position_in_table = "24th" AND date_of_appointment = "15 september 2008"
|
### Instruction:
CREATE TABLE table_train_79 (
"id" int,
"fasting_triglycerides" int,
"fasting_total_cholesterol" int,
"fasting_glucose" int,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- age 50 _ 89 years old
### Response:
|
SELECT * FROM table_train_79 WHERE age >= 50 AND age <= 89
|
### Instruction:
CREATE TABLE table_61383 (
"Couple" text,
"Style" text,
"Music" text,
"Choreographer" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Style of the dance Choreographed by Nacho Pop with result of safe?
### Response:
|
SELECT "Style" FROM table_61383 WHERE "Results" = 'safe' AND "Choreographer" = 'nacho pop'
|
### Instruction:
CREATE TABLE table_76623 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when the fight was against keith rockel?
### Response:
|
SELECT "Record" FROM table_76623 WHERE "Opponent" = 'keith rockel'
|
### Instruction:
CREATE TABLE table_69505 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of laps with a 128.260 qual?
### Response:
|
SELECT COUNT("Laps") FROM table_69505 WHERE "Qual" = '128.260'
|
### Instruction:
CREATE TABLE table_58319 (
"Date" text,
"Pilot" text,
"Weapon Systems Officer" text,
"Aircraft" text,
"Tail Code" text,
"Call Sign" text,
"Kill" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Call Sign that has Tail Code ed?
### Response:
|
SELECT "Call Sign" FROM table_58319 WHERE "Tail Code" = 'ed'
|
### Instruction:
CREATE TABLE table_8960 (
"Tournament" text,
"Country" text,
"Location" text,
"Began" real,
"Court surface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the location when began is before 1990 and the country is france?
### Response:
|
SELECT "Location" FROM table_8960 WHERE "Began" < '1990' AND "Country" = 'france'
|
### Instruction:
CREATE TABLE table_14161 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Method of the match with a Time of 4:07?
### Response:
|
SELECT "Method" FROM table_14161 WHERE "Time" = '4:07'
|
### Instruction:
CREATE TABLE table_8803 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which fielding team had 1st wicket?
### Response:
|
SELECT "Fielding team" FROM table_8803 WHERE "Wicket" = '1st'
|
### Instruction:
CREATE TABLE table_62640 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st round with fc nantes (d1) as team 1?
### Response:
|
SELECT "1st round" FROM table_62640 WHERE "Team 1" = 'fc nantes (d1)'
|
### Instruction:
CREATE TABLE table_14753 (
"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.
-- Who directed the film originally named Bye Bye Brazil in Portuguese?
### Response:
|
SELECT "Director" FROM table_14753 WHERE "Language" = 'portuguese' AND "Original name" = 'bye bye brazil'
|
### Instruction:
CREATE TABLE table_17548 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode titled 'the wedding anniversary'?
### Response:
|
SELECT "Written by" FROM table_17548 WHERE "Title" = 'The Wedding Anniversary'
|
### Instruction:
CREATE TABLE table_50521 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What instrumental has chven-s as the adverbial?
### Response:
|
SELECT "Instrumental" FROM table_50521 WHERE "Adverbial" = 'chven-s'
|
### Instruction:
CREATE TABLE table_64758 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location/attendance for the w 95-93 score?
### Response:
|
SELECT "Location Attendance" FROM table_64758 WHERE "Score" = 'w 95-93'
|
### Instruction:
CREATE TABLE table_46158 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Against has a Date of 28 january 1950?
### Response:
|
SELECT AVG("Against") FROM table_46158 WHERE "Date" = '28 january 1950'
|
### Instruction:
CREATE TABLE table_33360 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date does the Home team of Richmond have?
### Response:
|
SELECT "Date" FROM table_33360 WHERE "Home team" = 'richmond'
|
### Instruction:
CREATE TABLE table_3468 (
"Player" text,
"Number Of Selections" real,
"First Team" real,
"Second Team" real,
"Season MVP" real,
"Final Four MVP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is first team when dimitris diamantidis play.
### Response:
|
SELECT COUNT("First Team") FROM table_3468 WHERE "Player" = 'Dimitris Diamantidis'
|
### Instruction:
CREATE TABLE table_60561 (
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text,
"City" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the champion when atl tico wanderers was the runner-up?
### Response:
|
SELECT "Champion" FROM table_60561 WHERE "Runner-up" = 'atlético wanderers'
|
### Instruction:
CREATE TABLE table_63186 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the RECNet when the power is 199 watts?
### Response:
|
SELECT "RECNet" FROM table_63186 WHERE "Power" = '199 watts'
|
### Instruction:
CREATE TABLE table_name_85 (
points INTEGER,
faults VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud?
### Response:
|
SELECT SUM(points) FROM table_name_85 WHERE faults = "refusal" AND rider = "h.r.h. prince abdullah al-soud"
|
### Instruction:
CREATE TABLE table_35341 (
"Designation" text,
"Bore" text,
"Weight" text,
"Service Charge" text,
"Range (yards)" text,
"Number Made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the service charge of the boat howitzers with 456 made?
### Response:
|
SELECT "Service Charge" FROM table_35341 WHERE "Number Made" = '456'
|
### Instruction:
CREATE TABLE table_1601 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many areas of 375.06 km 2 have a census ranking?
### Response:
|
SELECT COUNT("Census Ranking") FROM table_1601 WHERE "Area km 2" = '375.06'
|
### Instruction:
CREATE TABLE table_name_23 (
player VARCHAR,
college_junior_club_team__league_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when College/Junior/Club Team (League) is 'Val d'Or Foreurs ( QMJHL )'?
### Response:
|
SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"
|
### Instruction:
CREATE TABLE table_name_20 (
opponent VARCHAR,
location VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent when the location was groves stadium winston-salem, nc, with a result of t 17-17?
### Response:
|
SELECT opponent FROM table_name_20 WHERE location = "groves stadium • winston-salem, nc" AND result = "t 17-17"
|
### Instruction:
CREATE TABLE table_36823 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year did the World indoor championships gave a position of 3rd?
### Response:
|
SELECT SUM("Year") FROM table_36823 WHERE "Competition" = 'world indoor championships' AND "Position" = '3rd'
|
### Instruction:
CREATE TABLE table_name_44 (
match_report VARCHAR,
score VARCHAR,
competition VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?
### Response:
|
SELECT match_report FROM table_name_44 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND score = "1-2"
|
### Instruction:
CREATE TABLE table_203_341 (
id number,
"season" text,
"champion" text,
"runner-up" text,
"score" text,
"third place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who has a larger amount of championships as a plk medalist ?
### Response:
|
SELECT "champion" FROM table_203_341 GROUP BY "champion" ORDER BY COUNT("champion") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_7266 (
"Position" text,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"Previous Club/Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Name of john taft?
### Response:
|
SELECT "Position" FROM table_7266 WHERE "Name" = 'john taft'
|
### Instruction:
CREATE TABLE table_64804 (
"Date" text,
"Venue" text,
"Opponents" text,
"Competition" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the match report from the game played on 28 february 2009?
### Response:
|
SELECT "Match Report" FROM table_64804 WHERE "Date" = '28 february 2009'
|
### Instruction:
CREATE TABLE table_32917 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when Raphael was 4-0?
### Response:
|
SELECT "Opponent" FROM table_32917 WHERE "Record" = '4-0'
|
### Instruction:
CREATE TABLE table_2141 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what type is the institute that enrolled 2102
### Response:
|
SELECT "Type" FROM table_2141 WHERE "Enrollment" = '2102'
|
### Instruction:
CREATE TABLE table_name_38 (
melbourne VARCHAR,
sydney VARCHAR,
auckland VARCHAR,
perth VARCHAR,
adelaide VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the melbourne with perth, adelaide and auckland of no with sydney of yes
### Response:
|
SELECT melbourne FROM table_name_38 WHERE perth = "no" AND adelaide = "no" AND auckland = "no" AND sydney = "yes"
|
### Instruction:
CREATE TABLE table_51167 (
"Episode" real,
"Original airdate" text,
"Timeslot (approx.)" text,
"Viewers (millions)" real,
"Nightly rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Rank for viewers larger than 1.244?
### Response:
|
SELECT "Nightly rank" FROM table_51167 WHERE "Viewers (millions)" > '1.244'
|
### Instruction:
CREATE TABLE table_61147 (
"Golden Rivers" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Draws, when Byes is less than 2?
### Response:
|
SELECT MIN("Draws") FROM table_61147 WHERE "Byes" < '2'
|
### Instruction:
CREATE TABLE table_name_90 (
taijiquan INTEGER,
taijijian VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Taijiquan of the athlete who has a Taijijian of 9.7 and a total more than 19.34?
### Response:
|
SELECT MIN(taijiquan) FROM table_name_90 WHERE taijijian = 9.7 AND total > 19.34
|
### Instruction:
CREATE TABLE table_71480 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most laps with a qualification of 106.185?
### Response:
|
SELECT MAX("Laps") FROM table_71480 WHERE "Qual" = '106.185'
|
### Instruction:
CREATE TABLE table_11557 (
"Year" real,
"Theme" text,
"Mintage" real,
"Issue Price" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the issue price of a voyageur before 2006?
### Response:
|
SELECT "Issue Price" FROM table_11557 WHERE "Year" < '2006' AND "Theme" = 'voyageur'
|
### Instruction:
CREATE TABLE table_51693 (
"Locomotive" text,
"Type" text,
"Builder" text,
"Builder's No." text,
"Built" real,
"Entered service" real,
"Withdrawn" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Builder of Locomotive 2?
### Response:
|
SELECT "Builder" FROM table_51693 WHERE "Locomotive" = '2'
|
### Instruction:
CREATE TABLE table_name_38 (
kerry_number INTEGER,
others_number VARCHAR,
bush_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Kerry#, when Others# is '106', and when Bush# is less than 3,188?
### Response:
|
SELECT MIN(kerry_number) FROM table_name_38 WHERE others_number = 106 AND bush_number < 3 OFFSET 188
|
### Instruction:
CREATE TABLE table_22424 (
"No. in series" text,
"Title" text,
"Directed By" text,
"Written By" text,
"air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When arthur heinemann is the writer who is the director?
### Response:
|
SELECT "Directed By" FROM table_22424 WHERE "Written By" = 'Arthur Heinemann'
|
### Instruction:
CREATE TABLE table_12601 (
"Date" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest attendance for a game played @ Nashville Predators?
### Response:
|
SELECT MIN("Attendance") FROM table_12601 WHERE "Opponent" = '@ nashville predators'
|
### Instruction:
CREATE TABLE table_43994 (
"Rank" text,
"Time" text,
"Athlete" text,
"Nation" text,
"Date" text,
"Race" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of kenya, which is ranked 2?
### Response:
|
SELECT "Time" FROM table_43994 WHERE "Nation" = 'kenya' AND "Rank" = '2'
|
### Instruction:
CREATE TABLE table_16977 (
"Total No." real,
"Celebrity" text,
"Director" text,
"Original air date" text,
"Viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The original air date of 29November2007 has what total no.?
### Response:
|
SELECT "Total No." FROM table_16977 WHERE "Original air date" = '29November2007'
|
### Instruction:
CREATE TABLE table_38464 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score that led to an 11-16 record?
### Response:
|
SELECT "Score" FROM table_38464 WHERE "Record" = '11-16'
|
### Instruction:
CREATE TABLE table_50219 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank when the opponent was Wisconsin (played at Wisconsin)?
### Response:
|
SELECT "Rank #" FROM table_50219 WHERE "Opponent#" = 'at wisconsin'
|
### Instruction:
CREATE TABLE table_66413 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the finish position in the year prior to 2009?
### Response:
|
SELECT "Finish position" FROM table_66413 WHERE "Year" < '2009'
|
### Instruction:
CREATE TABLE table_name_90 (
year VARCHAR,
engine VARCHAR,
points VARCHAR,
entrant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine?
### Response:
|
SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = "escuderia bandeirantes" AND engine = "maserati straight-4"
|
### Instruction:
CREATE TABLE table_61276 (
"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 name of the player with an overall score of 70-69-69=208?
### Response:
|
SELECT "Player" FROM table_61276 WHERE "Score" = '70-69-69=208'
|
### Instruction:
CREATE TABLE table_204_365 (
id number,
"year" number,
"single" text,
"chart positions\nusa billboard hot dance club play" number,
"chart positions\npolish charts" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what single was released after 2011 ?
### Response:
|
SELECT "single" FROM table_204_365 WHERE "year" > 2011
|
### Instruction:
CREATE TABLE table_26552 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 'body damage' is the title how many air dates are there?
### Response:
|
SELECT COUNT("Original air date") FROM table_26552 WHERE "Title" = 'Body Damage'
|
### Instruction:
CREATE TABLE table_35780 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the visiting Hartford Whalers game from April 11?
### Response:
|
SELECT "Score" FROM table_35780 WHERE "Visitor" = 'hartford whalers' AND "Date" = 'april 11'
|
### Instruction:
CREATE TABLE table_36055 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent has a game less than 6, and april 17 as the date?
### Response:
|
SELECT "Opponent" FROM table_36055 WHERE "Game" < '6' AND "Date" = 'april 17'
|
### Instruction:
CREATE TABLE table_7868 (
"Year" real,
"Country" text,
"Champion" text,
"Total score" text,
"To Par [a ]" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the United States had a total score of 274 what was the average year?
### Response:
|
SELECT AVG("Year") FROM table_7868 WHERE "Total score" = '274' AND "Country" = 'united states'
|
### Instruction:
CREATE TABLE table_62088 (
"Device" text,
"Carrier" text,
"Package Version" text,
"Applications" text,
"Software Platform" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?
### Response:
|
SELECT "Carrier" FROM table_62088 WHERE "Package Version" = '4.7.0.208'
|
### Instruction:
CREATE TABLE table_name_37 (
episode INTEGER,
performer_4 VARCHAR,
performer_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?
### Response:
|
SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = "chip esten" AND performer_2 = "christopher smith"
|
### Instruction:
CREATE TABLE table_203_384 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was finland the opponent ?
### Response:
|
SELECT COUNT(*) FROM table_203_384 WHERE "opponent" = 'finland'
|
### Instruction:
CREATE TABLE table_47158 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record for the Superbrawl 21?
### Response:
|
SELECT "Record" FROM table_47158 WHERE "Event" = 'superbrawl 21'
|
### Instruction:
CREATE TABLE table_21943 (
"Actor in original production" text,
"Actor required" text,
"GamePlan" text,
"FlatSpin" text,
"RolePlay" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What actor played the 'female, older' role in the original production?
### Response:
|
SELECT "Actor in original production" FROM table_21943 WHERE "Actor required" = 'Female, older'
|
### Instruction:
CREATE TABLE table_69345 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game when the record was 71-78?
### Response:
|
SELECT "Opponent" FROM table_69345 WHERE "Record" = '71-78'
|
### Instruction:
CREATE TABLE table_54843 (
"Team" text,
"Nation" text,
"From" text,
"Matches" real,
"Drawn" real,
"Lost" real,
"Win %" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of win % for drawn being larger than 35
### Response:
|
SELECT SUM("Win %") FROM table_54843 WHERE "Drawn" > '35'
|
### Instruction:
CREATE TABLE table_47702 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the visitor the Boston Bruins, and the record was 4 0 1?
### Response:
|
SELECT "Date" FROM table_47702 WHERE "Visitor" = 'boston bruins' AND "Record" = '4–0–1'
|
### Instruction:
CREATE TABLE table_name_86 (
date VARCHAR,
time VARCHAR,
meet VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Meet is 'World Championships', when Nationality is 'United States', and when Time is '1:46.68'?
### Response:
|
SELECT date FROM table_name_86 WHERE meet = "world championships" AND nationality = "united states" AND time = "1:46.68"
|
### Instruction:
CREATE TABLE table_62719 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place of birth for the elector Laborante de Panormo?
### Response:
|
SELECT "Place of birth" FROM table_62719 WHERE "Elector" = 'laborante de panormo'
|
### Instruction:
CREATE TABLE table_39648 (
"Date" real,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Attendance in the game with a Result of won 5-2?
### Response:
|
SELECT "Attendance" FROM table_39648 WHERE "Result" = 'won 5-2'
|
### Instruction:
CREATE TABLE table_69609 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the Toronto Maple Leafs home game on February 1?
### Response:
|
SELECT "Score" FROM table_69609 WHERE "Home" = 'toronto maple leafs' AND "Date" = 'february 1'
|
### Instruction:
CREATE TABLE table_7567 (
"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 won in 1987 and ended with a score of +9?
### Response:
|
SELECT "Total" FROM table_7567 WHERE "To par" = '+9' AND "Year(s) won" = '1987'
|
### Instruction:
CREATE TABLE table_name_43 (
rider VARCHAR,
time VARCHAR,
bike VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
### Response:
|
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps"
|
### Instruction:
CREATE TABLE table_52945 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game with Pacers as the Visitor?
### Response:
|
SELECT "Score" FROM table_52945 WHERE "Visitor" = 'pacers'
|
### Instruction:
CREATE TABLE table_55367 (
"Title" text,
"Original story author" text,
"Director" text,
"Original U.S. air-date" text,
"Original Canadian air-date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the author of ' jerry was a man '?
### Response:
|
SELECT "Original story author" FROM table_55367 WHERE "Title" = ' jerry was a man '
|
### Instruction:
CREATE TABLE table_10461 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text,
"Boxscore" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Score of 2 5?
### Response:
|
SELECT "Opponent" FROM table_10461 WHERE "Score" = '2–5'
|
### Instruction:
CREATE TABLE table_33770 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was there a game against the Indianapolis colts?
### Response:
|
SELECT "Date" FROM table_33770 WHERE "Opponent" = 'indianapolis colts'
|
### Instruction:
CREATE TABLE table_name_87 (
college_junior_club_team__league_ VARCHAR,
round VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?
### Response:
|
SELECT college_junior_club_team__league_ FROM table_name_87 WHERE round > 3 AND player = "julien cayer"
|
### Instruction:
CREATE TABLE table_204_294 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many sites are there ?
### Response:
|
SELECT COUNT(DISTINCT "site") FROM table_204_294
|
### Instruction:
CREATE TABLE table_27534 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the winning driver for 20 april
### Response:
|
SELECT "Winning driver" FROM table_27534 WHERE "Date" = '20 April'
|
### Instruction:
CREATE TABLE table_69740 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score that has a Home of montreal canadiens on april 11?
### Response:
|
SELECT "Score" FROM table_69740 WHERE "Home" = 'montreal canadiens' AND "Date" = 'april 11'
|
### Instruction:
CREATE TABLE table_16838 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player played for years 2000-02
### Response:
|
SELECT "Player" FROM table_16838 WHERE "Years for Jazz" = '2000-02'
|
### Instruction:
CREATE TABLE table_14893 (
"Rank" real,
"Mountain Peak" text,
"State" text,
"Mountain Range" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where does Mount Chamberlin, located in Alaska, rank on the chart?
### Response:
|
SELECT SUM("Rank") FROM table_14893 WHERE "State" = 'alaska' AND "Mountain Peak" = 'mount chamberlin'
|
### Instruction:
CREATE TABLE table_63280 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of silver when gold is 1 and bronze larger than 0?
### Response:
|
SELECT MAX("Silver") FROM table_63280 WHERE "Gold" = '1' AND "Bronze" > '0'
|
### Instruction:
CREATE TABLE table_77804 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the race where Stirling Moss was the winning driver?
### Response:
|
SELECT "Race Name" FROM table_77804 WHERE "Winning driver" = 'stirling moss'
|
### Instruction:
CREATE TABLE table_51909 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a 33-30-8 record at home?
### Response:
|
SELECT "Home" FROM table_51909 WHERE "Record" = '33-30-8'
|
### Instruction:
CREATE TABLE table_46775 (
"Year" real,
"Award" text,
"Category" text,
"Title" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year in which Requiem for a Dream was in the running for Best Director?
### Response:
|
SELECT MIN("Year") FROM table_46775 WHERE "Title" = 'requiem for a dream' AND "Category" = 'best director'
|
### Instruction:
CREATE TABLE table_203_710 (
id number,
"genre" text,
"year" number,
"title" text,
"episode" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year what his busiest year with the most roles ?
### Response:
|
SELECT "year" FROM table_203_710 GROUP BY "year" ORDER BY COUNT("role") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_13058 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has a league of bundesliga, and an away of 3-2?
### Response:
|
SELECT "Teams" FROM table_13058 WHERE "League" = 'bundesliga' AND "Away" = '3-2'
|
### Instruction:
CREATE TABLE table_29566686_1 (
clubs_remaining INTEGER,
leagues_entering_at_this_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of clubs remaining when the league entering at this round was allsvenskan?
### Response:
|
SELECT MIN(clubs_remaining) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan"
|
### Instruction:
CREATE TABLE table_204_416 (
id number,
"chip" text,
"flash size" text,
"eeprom" number,
"sram" number,
"frequency\n[mhz]" number,
"package" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which chip has the least sram ?
### Response:
|
SELECT "chip" FROM table_204_416 ORDER BY "sram" LIMIT 1
|
### Instruction:
CREATE TABLE table_75030 (
"Call sign" text,
"Analog channel" text,
"Digital channel" text,
"Virtual channel" text,
"Network" text,
"Station Ownership" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Call sign of k43hb-ld is what virtual channel?
### Response:
|
SELECT "Virtual channel" FROM table_75030 WHERE "Call sign" = 'k43hb-ld'
|
### Instruction:
CREATE TABLE table_78772 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was the game against Watford?
### Response:
|
SELECT "Round" FROM table_78772 WHERE "Opponent" = 'watford'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.