instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_2944 (
"No. in Series" real,
"No. in Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Original air date" FROM table_2944 WHERE "Title" = 'Something New' |
### Instruction:
CREATE TABLE table_55973 (
"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 was the game played when ... | SELECT "Venue" FROM table_55973 WHERE "Away team score" = '8.14 (62)' |
### Instruction:
CREATE TABLE table_33521 (
"Name" text,
"Area" real,
"Inhabitants" real,
"People per km\u00b2" real,
"Main places" text,
"Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the main places for the streymoy region w... | SELECT "Main places" FROM table_33521 WHERE "Regions" = 'streymoy' AND "Area" > '6.1' |
### Instruction:
CREATE TABLE table_name_50 (
touchdowns__5_points_ VARCHAR,
extra_points_1_point VARCHAR,
field_goals__5_points_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Touchdowns (5 points) have an Extra points 1 point of 0, and a Field... | SELECT COUNT(touchdowns__5_points_) FROM table_name_50 WHERE extra_points_1_point = 0 AND field_goals__5_points_ > 0 |
### Instruction:
CREATE TABLE table_30920 (
"No. overall" real,
"No. for series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"UK viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who d... | SELECT "Directed by" FROM table_30920 WHERE "UK viewers (million)" = '6.09' |
### Instruction:
CREATE TABLE table_70420 (
"Name" text,
"Born" text,
"Age at first step" text,
"Mission" text,
"Lunar EVA dates" text,
"Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Apollo astronaut who was 38y 9m 7d when first st... | SELECT "Born" FROM table_70420 WHERE "Age at first step" = '38y 9m 7d' |
### Instruction:
CREATE TABLE table_203_824 (
id number,
"pick #" number,
"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.
-- was pick # 137 's nation... | SELECT "nationality" FROM table_203_824 WHERE "pick #" = 137 |
### Instruction:
CREATE TABLE table_42015 (
"Name" text,
"Total" text,
"League" text,
"Canadian Championship" text,
"CONCACAF Champions League" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name has a CONCACAF Champions League of 2 (0) and als... | SELECT "Name" FROM table_42015 WHERE "CONCACAF Champions League" = '2 (0)' AND "Canadian Championship" = '8 (0)' |
### Instruction:
CREATE TABLE table_5247 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number playe... | SELECT MIN("Played") FROM table_5247 WHERE "Lost" = '2' AND "Points" > '13' |
### Instruction:
CREATE TABLE table_10613 (
"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.
-- Who was the home team at the ga... | SELECT "Home team score" FROM table_10613 WHERE "Crowd" > '32,576' |
### Instruction:
CREATE TABLE inst (
instid VARCHAR,
name VARCHAR
)
CREATE TABLE authorship (
paperid VARCHAR,
instid VARCHAR
)
CREATE TABLE papers (
title VARCHAR,
paperid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the papers ... | SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" |
### Instruction:
CREATE TABLE table_33188 (
"Team" text,
"Game" real,
"Draw" real,
"Loss" real,
"Goal Gain" real,
"Goal Loss" real,
"Goal Diff" real,
"Point" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Happy Valley... | SELECT COUNT("Point") FROM table_33188 WHERE "Team" = 'happy valley' AND "Game" < '14' |
### Instruction:
CREATE TABLE wedding (
name VARCHAR,
age VARCHAR,
is_male VARCHAR,
people_id VARCHAR,
male_id VARCHAR
)
CREATE TABLE people (
name VARCHAR,
age VARCHAR,
is_male VARCHAR,
people_id VARCHAR,
male_id VARCHAR
)
-- Using valid SQLite, answer the following questions... | SELECT name, age FROM people WHERE is_male = 'T' AND NOT people_id IN (SELECT male_id FROM wedding) |
### Instruction:
CREATE TABLE table_13211 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
... | SELECT AVG("Gold") FROM table_13211 WHERE "Nation" = 'south korea (kor)' AND "Bronze" < '65' |
### Instruction:
CREATE TABLE table_57642 (
"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 was the date that featured... | SELECT "Date" FROM table_57642 WHERE "Away team score" = '8.8 (56)' |
### Instruction:
CREATE TABLE table_46622 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the years when the grizzlies had a point guard who... | SELECT "Years for Grizzlies" FROM table_46622 WHERE "Position" = 'point guard' AND "School/Club Team" = 'florida' |
### Instruction:
CREATE TABLE table_22654 (
"Date Released" text,
"Polling institute" text,
"Social Democratic" text,
"Socialist" text,
"Green-Communist" text,
"Democratic and Social Centre" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT COUNT("Socialist") FROM table_22654 WHERE "Lead" = '12.6%' |
### Instruction:
CREATE TABLE table_11910 (
"Model" text,
"Released" text,
"Form factor" text,
"Chipset" text,
"Memory Type" text,
"Max. Memory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the memory type with a form factor of 15.4', ... | SELECT "Memory Type" FROM table_11910 WHERE "Form factor" = '15.4' AND "Model" = 'precision m65' |
### Instruction:
CREATE TABLE table_52293 (
"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.
-- Which team scored 14.14 (98) at... | SELECT "Away team" FROM table_52293 WHERE "Away team score" = '14.14 (98)' |
### Instruction:
CREATE TABLE table_31972 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest week for metropolitan stadium for attendance more... | SELECT MAX("Week") FROM table_31972 WHERE "Venue" = 'metropolitan stadium' AND "Attendance" > '47,644' |
### Instruction:
CREATE TABLE table_50154 (
"Season" text,
"Player" text,
"School" text,
"Position" text,
"Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Position, when Class is Sophomore, and when Player is Shaquille O'Neal Category:... | SELECT "Position" FROM table_50154 WHERE "Class" = 'sophomore' AND "Player" = 'shaquille o''neal category:articles with hcards' |
### Instruction:
CREATE TABLE table_name_87 (
model VARCHAR,
resolution VARCHAR,
sensor_size VARCHAR,
active_pixels VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution?... | SELECT model FROM table_name_87 WHERE sensor_size = "48x36 mm" AND active_pixels = "6726 x 5040" AND resolution = "33 mp" |
### Instruction:
CREATE TABLE table_57014 (
"Year" real,
"Author" text,
"English title" text,
"Original title" text,
"Representing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original title for years before 1977 and author of lagercrant... | SELECT "Original title" FROM table_57014 WHERE "Year" < '1977' AND "Author" = 'lagercrantz olof lagercrantz' |
### Instruction:
CREATE TABLE table_3826 (
"Season" text,
"Competition" text,
"Stage" text,
"Result" text,
"Opponent" text,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game where the opponent is Innsbrucker... | SELECT "Result" FROM table_3826 WHERE "Opponent" = 'Innsbrucker Kilmarnock CSK VVS Samara' |
### Instruction:
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following ques... | SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE class = 'Third-rate ship of the line' |
### Instruction:
CREATE TABLE table_32477 (
"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.
-- At what venue did the home team... | SELECT "Venue" FROM table_32477 WHERE "Home team score" = '12.10 (82)' |
### Instruction:
CREATE TABLE table_27015 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponents for 6 2, 3 6, 6 3
###... | SELECT "Opponents" FROM table_27015 WHERE "Score" = '6–2, 3–6, 6–3' |
### Instruction:
CREATE TABLE table_73527 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("High rebounds") FROM table_73527 WHERE "Game" = '26' |
### Instruction:
CREATE TABLE table_47385 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Brian Schweitzer" text,
"Republican: Roy Brown" text,
"Libertarian: Stan Jones" text,
"Lead Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Republican: Roy Brown" FROM table_47385 WHERE "Lead Margin" = '26' |
### Instruction:
CREATE TABLE table_name_89 (
earnings_per_share__p_ INTEGER,
year_ended VARCHAR,
revenue__£million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per s... | SELECT SUM(earnings_per_share__p_) FROM table_name_89 WHERE year_ended = "2008" AND revenue__£million_ < 4 OFFSET 177 |
### Instruction:
CREATE TABLE table_26024 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the director name is ... | SELECT "Directed by" FROM table_26024 WHERE "U.S. viewers (in millions)" = '2.22' |
### Instruction:
CREATE TABLE table_53351 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the purse total for the roya... | SELECT SUM("Purse( $ )") FROM table_53351 WHERE "Tournament" = 'royal caribbean golf classic' |
### Instruction:
CREATE TABLE table_name_6 (
velodrome VARCHAR,
distance VARCHAR,
pacing VARCHAR,
year VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What velodrome took place earlier than 1950 with a winner from France in tandem... | SELECT velodrome FROM table_name_6 WHERE year < 1950 AND country = "france" AND pacing = "tandem paced" AND distance = "951.750 km" |
### Instruction:
CREATE TABLE table_203_815 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- dwight scheyer was the player drafter previous to who ?
### Res... | SELECT "player" FROM table_203_815 WHERE "pick #" = (SELECT "pick #" FROM table_203_815 WHERE "player" = 'dwight scheyer') + 1 |
### Instruction:
CREATE TABLE table_16674 (
"Rd." real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT COUNT("Fastest Lap") FROM table_16674 WHERE "Location" = 'Silverstone' |
### Instruction:
CREATE TABLE table_73555 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title when 2... | SELECT "Title" FROM table_73555 WHERE "U.S. viewers (in millions)" = '2.50' |
### Instruction:
CREATE TABLE table_name_81 (
long INTEGER,
name VARCHAR,
avg_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004?
### Response:
| SELECT MIN(long) FROM table_name_81 WHERE name = "kass, rob" AND avg_g < -0.30000000000000004 |
### Instruction:
CREATE TABLE table_78813 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the party of 2nd member arthur divett hayter when the 1st party is... | SELECT "2nd Party" FROM table_78813 WHERE "1st Party" = 'conservative' AND "2nd Member" = 'arthur divett hayter' |
### Instruction:
CREATE TABLE table_41933 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Points in ... | SELECT MAX("Points") FROM table_41933 WHERE "Position" = '2' AND "Drawn" > '3' |
### Instruction:
CREATE TABLE table_203_131 (
id number,
"pos." number,
"car #" number,
"driver" text,
"make" text,
"team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did scott wimmer place before or after carl edwards ?
### Response:
| SELECT (SELECT "pos." FROM table_203_131 WHERE "driver" = 'scott wimmer') < (SELECT "pos." FROM table_203_131 WHERE "driver" = 'carl edwards') |
### Instruction:
CREATE TABLE table_30361 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Race Time" FROM table_30361 WHERE "Date" = 'May 11' |
### Instruction:
CREATE TABLE table_33757 (
"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 is the average crowd size ... | SELECT AVG("Crowd") FROM table_33757 WHERE "Home team score" = '8.9 (57)' |
### Instruction:
CREATE TABLE table_204_520 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many consecutive champ... | SELECT COUNT("championship") FROM table_204_520 WHERE "championship" = 'baltimore, u.s' |
### Instruction:
CREATE TABLE table_58433 (
"Season" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the ranking of the season ... | SELECT "Ranking" FROM table_58433 WHERE "Season finale" = 'may 15, 2011' |
### Instruction:
CREATE TABLE table_50815 (
"Number" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" real,
"Years Exp" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Postion, when Weight is greater than ... | SELECT "Position" FROM table_50815 WHERE "Weight" > '220' AND "Player" = 'travis knight' |
### Instruction:
CREATE TABLE table_23078 (
"Rank" text,
"Name" text,
"Lifespan" text,
"Country" text,
"Wins" real,
"Majors" real,
"Winning span" text,
"Span (years)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the winning spa... | SELECT "Winning span" FROM table_23078 WHERE "Name" = 'Bernard Gallacher' |
### Instruction:
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following question... | SELECT DISTINCT state FROM college WHERE enr < (SELECT MAX(enr) FROM college) |
### Instruction:
CREATE TABLE table_31395 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Original air date" FROM table_31395 WHERE "Written by" = 'Liz Feldman' |
### Instruction:
CREATE TABLE table_16953 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the minimal amount ($) of t... | SELECT MIN("1st Prize( $ )") FROM table_16953 WHERE "Location" = 'New Mexico' |
### Instruction:
CREATE TABLE table_15078 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" real,
"Investing Dragon(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what in... | SELECT "Investing Dragon(s)" FROM table_15078 WHERE "Episode" = 'episode 10' |
### Instruction:
CREATE TABLE table_14123 (
"Elector" text,
"Nationality" text,
"Cardinalatial order and title" text,
"Elevated" text,
"Elevator" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes of Cardinal-Deacon ... | SELECT "Notes" FROM table_14123 WHERE "Cardinalatial order and title" = 'cardinal-deacon of s. maria in portico' |
### Instruction:
CREATE TABLE table_39355 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the part... | SELECT "Partner" FROM table_39355 WHERE "Surface" = 'hard' AND "Championship" = 'us open' |
### Instruction:
CREATE TABLE table_name_53 (
variant__with_niqqud__ VARCHAR,
phonemic_value VARCHAR,
without_niqqud VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When a variant without niqqud is as middle letter: with a phonemic value of /v/, what is t... | SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = "/v/" AND without_niqqud = "as middle letter: וו" |
### Instruction:
CREATE TABLE table_31431 (
"Rank" real,
"Country/Territory" text,
"Manhunt International" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following ... | SELECT MIN("Total") FROM table_31431 |
### Instruction:
CREATE TABLE table_name_52 (
average INTEGER,
swimsuit VARCHAR,
evening_gown VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean average score when the evening gown score is more than 9.35, the state is Sou... | SELECT AVG(average) FROM table_name_52 WHERE evening_gown > 9.35 AND state = "south carolina" AND swimsuit > 9.4 |
### Instruction:
CREATE TABLE table_204_623 (
id number,
"opponent" text,
"goals" text,
"wins" number,
"draws" number,
"losses" number,
"+- goals" number,
"matches" number,
"qualified" number,
"eliminated" number
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "wins" FROM table_204_623 WHERE agg = 1 |
### Instruction:
CREATE TABLE table_47089 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ... | SELECT "Laps" FROM table_47089 WHERE "Grid" = '10' |
### Instruction:
CREATE TABLE table_20056 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT MIN("For") FROM table_20056 WHERE "Points" = '19' |
### Instruction:
CREATE TABLE table_204_985 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in the amo... | SELECT ABS("home" - "home") FROM table_204_985 WHERE "club" = 'werder bremen' |
### Instruction:
CREATE TABLE table_203_449 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who lived longer evelyn irons or arturo islas ?
### Response:
| SELECT "name" FROM table_203_449 WHERE "name" IN ('evelyn irons', 'arturo islas') ORDER BY "lifetime" - "lifetime" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_44951 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Ground, when Home Team... | SELECT "Ground" FROM table_44951 WHERE "Home team score" = '12.14 (86)' |
### Instruction:
CREATE TABLE table_7518 (
"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 lowest week on December 3, 1972 with more than 54,533 in attendance?
### R... | SELECT MIN("Week") FROM table_7518 WHERE "Attendance" > '54,533' AND "Date" = 'december 3, 1972' |
### Instruction:
CREATE TABLE table_28085 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Directed by" FROM table_28085 WHERE "Title" = 'The Outsiders' |
### Instruction:
CREATE TABLE table_6114 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Queen" text,
"Ceased to be Queen" text,
"Death" text,
"Spouse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was born on 10 May 1788 that cea... | SELECT "Ceased to be Queen" FROM table_6114 WHERE "Birth" = '10 may 1788' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE table_70916 (
"Year" real,
"Total Region" real,
"Belyando" real,
"Broadsound" real,
"Nebo" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- After 2001, what is the sum of Belyando that have a Nebo greater than 2,522?
##... | SELECT SUM("Belyando") FROM table_70916 WHERE "Nebo" > '2,522' AND "Year" > '2001' |
### Instruction:
CREATE TABLE table_33792 (
"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 was the venue when the awa... | SELECT "Venue" FROM table_33792 WHERE "Away team score" = '9.17 (71)' |
### Instruction:
CREATE TABLE table_21396 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nominated film title of (shyamol c... | SELECT "Film title used in nomination" FROM table_21396 WHERE "Original title" = 'শ্যামল ছায়া (Shyamol Chhaya)' |
### Instruction:
CREATE TABLE table_75650 (
"Borough or Census Area" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Borough or Census Area" FROM table_75650 WHERE "Median household income" = '$59,596' |
### Instruction:
CREATE TABLE table_204_209 (
id number,
"released" text,
"title" text,
"label" text,
"number" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- avalon was released in the same month as which other record ?
### Respo... | SELECT "title" FROM table_204_209 WHERE "title" <> 'avalon' AND "released" = (SELECT "released" FROM table_204_209 WHERE "title" = 'avalon') |
### Instruction:
CREATE TABLE table_58255 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Team" FROM table_58255 WHERE "High rebounds" = 'smith (10)' |
### Instruction:
CREATE TABLE table_60796 (
"Battle" text,
"Date" text,
"Bulgarian Commander" text,
"Byzantine Commander" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Bulgarian Commander in Autumn 1040 at the Battle of T... | SELECT "Bulgarian Commander" FROM table_60796 WHERE "Battle" = 'battle of thessalonica' AND "Date" = 'autumn 1040' |
### Instruction:
CREATE TABLE table_55313 (
"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.
-- Which Venue has a Home team sco... | SELECT "Venue" FROM table_55313 WHERE "Home team score" = '13.11 (89)' |
### Instruction:
CREATE TABLE table_49382 (
"Result" text,
"Race" text,
"Distance" text,
"Weight" real,
"Winner or 2nd" text,
"Pos'n" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the race with a 10f distance and mollison as the winner ... | SELECT "Race" FROM table_49382 WHERE "Distance" = '10f' AND "Winner or 2nd" = 'mollison' |
### Instruction:
CREATE TABLE table_2328 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (fall 2010)" real,
"Founded" real,
"Accreditation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the school... | SELECT MAX("Founded") FROM table_2328 WHERE "Enrollment (fall 2010)" = '898' |
### Instruction:
CREATE TABLE table_77354 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Dauphine" text,
"Ceased to be Dauphine" text,
"Death" text,
"Husband" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a birth of 16 august... | SELECT "Name" FROM table_77354 WHERE "Birth" = '16 august 1401' |
### Instruction:
CREATE TABLE table_17010 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Left" FROM table_17010 WHERE "Founded" = '1880' |
### Instruction:
CREATE TABLE table_34935 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was th... | SELECT MAX("Crowd") FROM table_34935 WHERE "Home team" = 'geelong' |
### Instruction:
CREATE TABLE table_73911 (
"Institution" text,
"Location (all in Ohio)" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" text,
"Joined" real,
"Left" real,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "Type" FROM table_73911 WHERE "Location (all in Ohio)" = 'Kent' |
### Instruction:
CREATE TABLE table_19792 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the womens doubles with me... | SELECT "Womens doubles" FROM table_19792 WHERE "Mens doubles" = 'Leopold Bauer Alfred Kohlhauser' |
### Instruction:
CREATE TABLE table_73011 (
"Year" real,
"Illinois" text,
"Indiana" text,
"Kentucky" text,
"Michigan" text,
"Ohio" text,
"Wisconsin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the little league team from Kentucky... | SELECT "Kentucky" FROM table_73011 WHERE "Illinois" = 'Rock Falls LL Rock Falls' |
### Instruction:
CREATE TABLE table_204_985 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of losses this... | SELECT "aggregate" FROM table_204_985 WHERE "season" = '2006/07' |
### Instruction:
CREATE TABLE table_203_591 (
id number,
"high school" text,
"join\nyear" text,
"from" text,
"left" text,
"league left to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many schools left the genesee county b league before ai... | SELECT COUNT("high school") FROM table_203_591 WHERE "left" < (SELECT "left" FROM table_203_591 WHERE "high school" = 'ainsworth') |
### Instruction:
CREATE TABLE table_31761 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine was used by the teams that used a Lola b02/00 chassis and ranke... | SELECT "Engine" FROM table_31761 WHERE "Chassis" = 'lola b02/00' AND "Rank" = '1st' |
### Instruction:
CREATE TABLE table_name_53 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?
### Response:
| SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392 |
### Instruction:
CREATE TABLE table_34576 (
"Country name" text,
"Russian name" text,
"Cyrillic code" text,
"Latin 3-letter code" text,
"Latin 2-letter code" text,
"Numeric code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Cyrilli... | SELECT "Cyrillic code" FROM table_34576 WHERE "Latin 2-letter code" = 'cu' |
### Instruction:
CREATE TABLE table_16365 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the ... | SELECT "Original air date" FROM table_16365 WHERE "Production code" = '2394087' |
### Instruction:
CREATE TABLE table_29843 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High rebounds" FROM table_29843 WHERE "Record" = '14–7' |
### Instruction:
CREATE TABLE table_5018 (
"Season" text,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Races" FROM table_5018 WHERE "Points" = '10.5' |
### Instruction:
CREATE TABLE table_67657 (
"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.
-- Which date has an A venue with an Opponent of st... | SELECT "Date" FROM table_67657 WHERE "Venue" = 'a' AND "Opponent" = 'stoke city' |
### Instruction:
CREATE TABLE table_name_51 (
yards INTEGER,
avg VARCHAR,
player VARCHAR,
rec VARCHAR,
long VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, a... | SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = "todd herremans" AND avg > 1 |
### Instruction:
CREATE TABLE table_204_565 (
id number,
"game" number,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" number,
"goalscorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did wrigh... | SELECT COUNT(*) FROM table_204_565 WHERE "date" > 1978 AND "goalscorers" = 'wright' |
### Instruction:
CREATE TABLE table_74102 (
"Status" text,
"2001 number (,000)" real,
"2001 %" text,
"2011 number (,000)" real,
"2011 %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 2011 % is 7.9?
### Response:
| SELECT COUNT("2001 number (,000)") FROM table_74102 WHERE "2011 %" = '7.9' |
### Instruction:
CREATE TABLE table_49749 (
"Months in Malayalam Era" text,
"In Malayalam" text,
"Gregorian Calendar" text,
"Tamil calendar" text,
"Saka era" text,
"Sign of Zodiac" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SIGN ... | SELECT "Sign of Zodiac" FROM table_49749 WHERE "In Malayalam" = 'മീനം' |
### Instruction:
CREATE TABLE table_204_924 (
id number,
"match" number,
"date" text,
"ground" text,
"opponent" text,
"score1" text,
"pos." number,
"pts." number,
"gd" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the las... | SELECT "opponent" FROM table_204_924 WHERE "date" = 8 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_78846 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of gold of a country of rank 6, with 2 bronzes?... | SELECT MIN("Gold") FROM table_78846 WHERE "Bronze" = '2' AND "Rank" = '6' AND "Total" > '2' |
### Instruction:
CREATE TABLE table_16439 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT MIN("No. in season") FROM table_16439 WHERE "Directed by" = 'Jeff Melman' |
### Instruction:
CREATE TABLE table_16545 (
"Season" real,
"Grand FinalDate" text,
"WinningTeam" text,
"Score" text,
"LosingTeam" text,
"Location" text,
"GF Attendance" real,
"Clive Churchill Medal" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "LosingTeam" FROM table_16545 WHERE "Score" = '24-12' |
### Instruction:
CREATE TABLE table_46133 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Score" FROM table_46133 WHERE "Date" = 'july 18' |
### Instruction:
CREATE TABLE table_61216 (
"Rank" real,
"Club" text,
"Years" real,
"Games" real,
"\u00d8-Pts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank for 1.26 -Pts in game 1458?
### Response:
| SELECT COUNT("Rank") FROM table_61216 WHERE "\u00d8-Pts" > '1.26' AND "Games" = '1458' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.