instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_1115992_1 (
sept_1943 INTEGER,
late_1943 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least september 1943 when late 1943 is 78000
### Response:
|
SELECT MIN(sept_1943) FROM table_1115992_1 WHERE late_1943 = 78000
|
### Instruction:
CREATE TABLE table_59604 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status for 07/01/1961?
### Response:
|
SELECT "Status" FROM table_59604 WHERE "Date" = '07/01/1961'
|
### Instruction:
CREATE TABLE table_78802 (
"Service name" text,
"Owner" text,
"Catch-up period" text,
"Streamed" text,
"Download" text,
"Technology" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the download of the varies catch-up period?
### Response:
|
SELECT "Download" FROM table_78802 WHERE "Catch-up period" = 'varies'
|
### Instruction:
CREATE TABLE table_204_813 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of times mckoy placed in the top 3 ?
### Response:
|
SELECT COUNT(*) FROM table_204_813 WHERE "position" <= 3
|
### Instruction:
CREATE TABLE table_72770 (
"School" text,
"Record" text,
"Conference" text,
"Conf. record" text,
"Regular season finish" text,
"Regular season second place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which qualifying schools were in the Patriot conference?
### Response:
|
SELECT "School" FROM table_72770 WHERE "Conference" = 'Patriot'
|
### Instruction:
CREATE TABLE table_42208 (
"Record" text,
"Athlete" text,
"Nation" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nation with a Date that is may 6, 1991?
### Response:
|
SELECT "Nation" FROM table_42208 WHERE "Date" = 'may 6, 1991'
|
### Instruction:
CREATE TABLE table_38305 (
"Rank" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Rank is the director of maximilian jezo-parovsky?
### Response:
|
SELECT "Rank" FROM table_38305 WHERE "Director(s)" = 'maximilian jezo-parovsky'
|
### Instruction:
CREATE TABLE table_43230 (
"Family" text,
"Baltimore group" text,
"envelopment" text,
"Virion shape" text,
"Replication site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the envelopment for the rhabdoviridae family?
### Response:
|
SELECT "envelopment" FROM table_43230 WHERE "Family" = 'rhabdoviridae'
|
### Instruction:
CREATE TABLE table_80019 (
"Sport" text,
"League" text,
"Tier" text,
"Club" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tier is for football at Tianhe Stadium?
### Response:
|
SELECT "Tier" FROM table_80019 WHERE "Sport" = 'football' AND "Stadium" = 'tianhe stadium'
|
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a pie chart on how old is the youngest person for each job?
### Response:
|
SELECT job, MIN(age) FROM Person GROUP BY job
|
### Instruction:
CREATE TABLE table_26419 (
"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 outcome for zurich
### Response:
|
SELECT "Outcome" FROM table_26419 WHERE "Championship" = 'Zurich'
|
### Instruction:
CREATE TABLE table_14807 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the margin of victory for jonas blixt
### Response:
|
SELECT "Margin of victory" FROM table_14807 WHERE "Runner(s)-up" = 'jonas blixt'
|
### Instruction:
CREATE TABLE table_203_165 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which nation finished first in total medals earned ?
### Response:
|
SELECT "nation" FROM table_203_165 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_44512 (
"Year" text,
"Supplier" text,
"Chest" text,
"Sleeves" text,
"Back" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Sleeves have a Year of 2006-2008?
### Response:
|
SELECT "Sleeves" FROM table_44512 WHERE "Year" = '2006-2008'
|
### Instruction:
CREATE TABLE table_15843 (
"State/territory" text,
"Text/background colour" text,
"Format" text,
"Current slogan" text,
"Current series" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format for South Australia?
### Response:
|
SELECT "Format" FROM table_15843 WHERE "State/territory" = 'South Australia'
|
### Instruction:
CREATE TABLE table_65675 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has uefa euro 2008 qualification as the competition?
### Response:
|
SELECT "Date" FROM table_65675 WHERE "Competition" = 'uefa euro 2008 qualification'
|
### Instruction:
CREATE TABLE table_55628 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Studio host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which network has a play-by-play announcer of John Wells?
### Response:
|
SELECT "Network" FROM table_55628 WHERE "Play-by-play" = 'john wells'
|
### Instruction:
CREATE TABLE table_203_830 (
id number,
"year" number,
"song" text,
"chart positions\nus country" number,
"chart positions\ncan country" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which song had the highest us country position ?
### Response:
|
SELECT "song" FROM table_203_830 ORDER BY "chart positions\nus country" LIMIT 1
|
### Instruction:
CREATE TABLE table_19527 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title did Neil Affleck direct?
### Response:
|
SELECT "Title" FROM table_19527 WHERE "Directed by" = 'Neil Affleck'
|
### Instruction:
CREATE TABLE table_60342 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For what country does the golfer play who has a score of 72-65=137?
### Response:
|
SELECT "Country" FROM table_60342 WHERE "Score" = '72-65=137'
|
### Instruction:
CREATE TABLE table_35653 (
"Year" real,
"League" text,
"Class" text,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Manager of art griggs had what lowest year?
### Response:
|
SELECT MIN("Year") FROM table_35653 WHERE "Manager" = 'art griggs'
|
### Instruction:
CREATE TABLE table_name_53 (
constructor VARCHAR,
driver VARCHAR,
grid VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Constructor has a Grid smaller than 24, more than 77 laps, and a Driver of jean-pierre beltoise?
### Response:
|
SELECT constructor FROM table_name_53 WHERE grid < 24 AND laps > 77 AND driver = "jean-pierre beltoise"
|
### Instruction:
CREATE TABLE table_78354 (
"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.
-- Which record has a time of 0:13?
### Response:
|
SELECT "Record" FROM table_78354 WHERE "Time" = '0:13'
|
### Instruction:
CREATE TABLE table_69653 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the catalogue with song title of love me tonight
### Response:
|
SELECT "Catalogue" FROM table_69653 WHERE "Song Title" = 'love me tonight'
|
### Instruction:
CREATE TABLE table_71701 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the authority for morrinsville college
### Response:
|
SELECT "Authority" FROM table_71701 WHERE "Name" = 'morrinsville college'
|
### Instruction:
CREATE TABLE table_name_27 (
bronze VARCHAR,
nation VARCHAR,
rank VARCHAR,
gold VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35?
### Response:
|
SELECT bronze FROM table_name_27 WHERE gold < 39 AND silver = 3 AND rank < 35 AND nation = "spain"
|
### Instruction:
CREATE TABLE table_204_130 (
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.
-- what is the last date ?
### Response:
|
SELECT "date" FROM table_204_130 ORDER BY "date" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_62506 (
"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.
-- What is the country of the player who has a total larger than 300?
### Response:
|
SELECT "Country" FROM table_62506 WHERE "Total" > '300'
|
### Instruction:
CREATE TABLE table_35971 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Stuart have when he had less than 1 touchdown?
### Response:
|
SELECT SUM("Points") FROM table_35971 WHERE "Player" = 'stuart' AND "Touchdowns" < '1'
|
### Instruction:
CREATE TABLE table_69969 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did they play cambridge united?
### Response:
|
SELECT "Date" FROM table_69969 WHERE "Opponent" = 'cambridge united'
|
### Instruction:
CREATE TABLE table_49946 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the 2006 Fifa World Cup Qualification?
### Response:
|
SELECT "Score" FROM table_49946 WHERE "Competition" = '2006 fifa world cup qualification'
|
### Instruction:
CREATE TABLE table_63577 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Name has a 2008 Club of Sisley Treviso?
### Response:
|
SELECT "Name" FROM table_63577 WHERE "2008 club" = 'sisley treviso'
|
### Instruction:
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give the names of mountains in alphabetical order.
### Response:
|
SELECT name FROM mountain ORDER BY name
|
### Instruction:
CREATE TABLE table_203_608 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country has the most number of medals ?
### Response:
|
SELECT "nation" FROM table_203_608 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_72069 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school did player number 21 play for?
### Response:
|
SELECT "School/Club Team" FROM table_72069 WHERE "No." = '21'
|
### Instruction:
CREATE TABLE table_55757 (
"Sport" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What sport has a Gold larger than 0, and a Silver of 2?
### Response:
|
SELECT "Sport" FROM table_55757 WHERE "Gold" > '0' AND "Silver" = '2'
|
### Instruction:
CREATE TABLE table_6505 (
"Country/Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date for the release with a catalogue number of WARPCDD333?
### Response:
|
SELECT "Date" FROM table_6505 WHERE "Catalogue number" = 'warpcdd333'
|
### Instruction:
CREATE TABLE table_204_195 (
id number,
"team" text,
"home city" text,
"stadium" text,
"capacity" number,
"last season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people can attend a game in holon city arena ?
### Response:
|
SELECT "capacity" FROM table_204_195 WHERE "stadium" = 'holon city arena'
|
### Instruction:
CREATE TABLE table_30120556_1 (
civil_parish VARCHAR,
townland VARCHAR,
area__acres__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What civil paris appears when Ballynamona is the townland with 126 acres?
### Response:
|
SELECT civil_parish FROM table_30120556_1 WHERE townland = "Ballynamona" AND area__acres__ = 126
|
### Instruction:
CREATE TABLE table_name_19 (
date INTEGER,
partner VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the most recent game that he partnered with nicklas kulti and they scored 3 6, 7 6, 6 4?
### Response:
|
SELECT MAX(date) FROM table_name_19 WHERE partner = "nicklas kulti" AND score = "3β6, 7β6, 6β4"
|
### Instruction:
CREATE TABLE table_31389 (
"Season" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What TV season was the 1st season?
### Response:
|
SELECT "TV season" FROM table_31389 WHERE "Season" = '1st'
|
### Instruction:
CREATE TABLE table_14869 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player with a 76-67-71=214 score?
### Response:
|
SELECT "Player" FROM table_14869 WHERE "Score" = '76-67-71=214'
|
### Instruction:
CREATE TABLE table_204_727 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which countries won at least six bronze medals ?
### Response:
|
SELECT "nation" FROM table_204_727 WHERE "bronze" >= 6
|
### Instruction:
CREATE TABLE table_204_783 (
id number,
"position" text,
"player" text,
"free agency\ntag" text,
"date signed" text,
"2013 team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the top played position according to this chart .
### Response:
|
SELECT "position" FROM table_204_783 GROUP BY "position" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_37459 (
"Team" text,
"Car(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has Peak Fitness as the primary sponsor?
### Response:
|
SELECT "Team" FROM table_37459 WHERE "Primary Sponsor(s)" = 'peak fitness'
|
### Instruction:
CREATE TABLE table_49342 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Attendance that has the Opponent of new york giants?
### Response:
|
SELECT "Attendance" FROM table_49342 WHERE "Opponent" = 'new york giants'
|
### Instruction:
CREATE TABLE table_72032 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game that had a loss of Leonard (7 8)?
### Response:
|
SELECT "Opponent" FROM table_72032 WHERE "Loss" = 'leonard (7β8)'
|
### Instruction:
CREATE TABLE table_78045 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many TDs are there were the long is smaller than 23?
### Response:
|
SELECT MIN("TD's") FROM table_78045 WHERE "Long" < '23'
|
### Instruction:
CREATE TABLE table_12147 (
"Seat" real,
"Series 1" text,
"Series 3" text,
"Series 4" text,
"Series 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the series 4 with sarah newman in series 1?
### Response:
|
SELECT "Series 4" FROM table_12147 WHERE "Series 1" = 'sarah newman'
|
### Instruction:
CREATE TABLE table_name_28 (
mountain_range VARCHAR,
mountain_peak VARCHAR,
state VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the mountain range when the state is colorado, rank is higher than 90 and mountain peak is whetstone mountain?
### Response:
|
SELECT mountain_range FROM table_name_28 WHERE state = "colorado" AND rank > 90 AND mountain_peak = "whetstone mountain"
|
### Instruction:
CREATE TABLE table_30632 (
"Category" text,
"Player" text,
"Team" text,
"Games played" real,
"Totals" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the totals when the average is 6.25?
### Response:
|
SELECT "Totals" FROM table_30632 WHERE "Average" = '6.25'
|
### Instruction:
CREATE TABLE table_51713 (
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the pole at the French Grand Prix?
### Response:
|
SELECT "Pole Position" FROM table_51713 WHERE "Grand Prix" = 'french grand prix'
|
### Instruction:
CREATE TABLE table_8875 (
"Game" real,
"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 game when the opponent is @ chicago stags?
### Response:
|
SELECT SUM("Game") FROM table_8875 WHERE "Opponent" = '@ chicago stags'
|
### Instruction:
CREATE TABLE table_66109 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What station has average ratings of 14.7%?
### Response:
|
SELECT "TV Station" FROM table_66109 WHERE "Average Ratings" = '14.7%'
|
### Instruction:
CREATE TABLE table_36625 (
"Fraction" text,
"Ellipsis" text,
"Vinculum" text,
"Dots" text,
"Parentheses" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value of vinculum for parentheses of 0.(6)?
### Response:
|
SELECT "Vinculum" FROM table_36625 WHERE "Parentheses" = '0.(6)'
|
### Instruction:
CREATE TABLE table_2263152_1 (
version VARCHAR,
security_issues VARCHAR,
distribution_mechanism VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version?
### Response:
|
SELECT version FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website"
|
### Instruction:
CREATE TABLE table_290 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the MLB draft with the hometown Opa-locka, Fl?
### Response:
|
SELECT "MLB Draft" FROM table_290 WHERE "Hometown" = 'Opa-locka, FL'
|
### Instruction:
CREATE TABLE table_74262 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many caps figures for the Doncaster Rovers?
### Response:
|
SELECT COUNT("Cap(s)") FROM table_74262 WHERE "Club(s)" = 'Doncaster Rovers'
|
### Instruction:
CREATE TABLE table_18344 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which district is the incumbent John Breaux?
### Response:
|
SELECT "District" FROM table_18344 WHERE "Incumbent" = 'John Breaux'
|
### Instruction:
CREATE TABLE table_74011 (
"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.
-- Name the party for virginia 12
### Response:
|
SELECT "Party" FROM table_74011 WHERE "District" = 'Virginia 12'
|
### Instruction:
CREATE TABLE table_204_882 (
id number,
"number" number,
"builder" text,
"entered service" text,
"withdrawn" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which numbers were not withdrawn from service in 1957 ?
### Response:
|
SELECT "number" FROM table_204_882 WHERE "withdrawn" <> 1957
|
### Instruction:
CREATE TABLE table_203_539 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what distance hurdles was run the most ?
### Response:
|
SELECT "event" FROM table_203_539 GROUP BY "event" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_38275 (
"Team" text,
"Driver" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid number that had Team China with less than 10 laps?
### Response:
|
SELECT AVG("Grid") FROM table_38275 WHERE "Laps" < '10' AND "Team" = 'china'
|
### Instruction:
CREATE TABLE table_name_16 (
wins VARCHAR,
team VARCHAR,
f_laps VARCHAR,
series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins did team Kolles & Heinz union, with f/laps of 0, have in the Formula Three Euroseries?
### Response:
|
SELECT wins FROM table_name_16 WHERE f_laps = "0" AND series = "formula three euroseries" AND team = "kolles & heinz union"
|
### Instruction:
CREATE TABLE table_203_437 (
id number,
"year" number,
"laureate" text,
"relation" text,
"category" text,
"rationale" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many of the laureates received the nobel peace prize ?
### Response:
|
SELECT COUNT("laureate") FROM table_203_437 WHERE "category" = 'nobel peace prize'
|
### Instruction:
CREATE TABLE table_12468 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest gold with 1 silver, and more than 1 altogether?
### Response:
|
SELECT MAX("Gold") FROM table_12468 WHERE "Silver" = '1' AND "Total" > '1'
|
### Instruction:
CREATE TABLE table_71567 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent with a record of 60-61
### Response:
|
SELECT "Opponent" FROM table_71567 WHERE "Record" = '60-61'
|
### Instruction:
CREATE TABLE table_4595 (
"Name" text,
"Bullet" text,
"Length" text,
"Base" text,
"Shoulder" text,
"Neck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which length has a Bullet of 6.5 (.257)?
### Response:
|
SELECT "Length" FROM table_4595 WHERE "Bullet" = '6.5 (.257)'
|
### Instruction:
CREATE TABLE table_68603 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game that resulted in a 15-9 record?
### Response:
|
SELECT "Score" FROM table_68603 WHERE "Record" = '15-9'
|
### Instruction:
CREATE TABLE table_2625 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the weight when 20 is the number?
### Response:
|
SELECT MAX("Weight") FROM table_2625 WHERE "#" = '20'
|
### Instruction:
CREATE TABLE table_18450 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what district is the incumbent John Bell Williams?
### Response:
|
SELECT "District" FROM table_18450 WHERE "Incumbent" = 'John Bell Williams'
|
### Instruction:
CREATE TABLE table_46779 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Game that has the Opponent of miami heat?
### Response:
|
SELECT "Game" FROM table_46779 WHERE "Opponent" = 'miami heat'
|
### Instruction:
CREATE TABLE table_75255 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Score of 4 5, and a Game smaller than 4?
### Response:
|
SELECT "Date" FROM table_75255 WHERE "Score" = '4β5' AND "Game" < '4'
|
### Instruction:
CREATE TABLE table_11090 (
"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.
-- How many people attended the game of a.f.c. totton?
### Response:
|
SELECT "Attendance" FROM table_11090 WHERE "Home team" = 'a.f.c. totton'
|
### Instruction:
CREATE TABLE table_75985 (
"Name" text,
"Country" text,
"Date(s)" text,
"Loss" text,
"Institution" text,
"Market activity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss for Boris Picano-Nacci?
### Response:
|
SELECT "Loss" FROM table_75985 WHERE "Name" = 'boris picano-nacci'
|
### Instruction:
CREATE TABLE table_53273 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the venue when the away team was richmond
### Response:
|
SELECT "Venue" FROM table_53273 WHERE "Away team" = 'richmond'
|
### Instruction:
CREATE TABLE table_51659 (
"Ceremony" text,
"Award" text,
"Category" text,
"Nominee" text,
"Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which ceremony was Harnam Singh Rawail nominated for an award?
### Response:
|
SELECT "Ceremony" FROM table_51659 WHERE "Nominee" = 'harnam singh rawail'
|
### Instruction:
CREATE TABLE table_47426 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament was Kirk Triplett a runner-up in?
### Response:
|
SELECT "Tournament" FROM table_47426 WHERE "Runner(s)-up" = 'kirk triplett'
|
### Instruction:
CREATE TABLE table_15928 (
"County" text,
"English name" text,
"Irish name" text,
"Population" real,
"Irish speakers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Irish name listed with 62% Irish speakers?
### Response:
|
SELECT "Irish name" FROM table_15928 WHERE "Irish speakers" = '62%'
|
### Instruction:
CREATE TABLE table_49248 (
"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.
-- What is the date of the match when Phoenix is the home team?
### Response:
|
SELECT "Date" FROM table_49248 WHERE "Home" = 'phoenix'
|
### Instruction:
CREATE TABLE table_14603212_1 (
school_year VARCHAR,
class_a VARCHAR,
class_aAA VARCHAR,
Cuero VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school years have a class a being lindsay and a class aaa being cuero?
### Response:
|
SELECT school_year FROM table_14603212_1 WHERE class_a = "Lindsay" AND class_aAA = Cuero
|
### Instruction:
CREATE TABLE table_16848 (
"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.
-- What is the nationality of bill robinzine?
### Response:
|
SELECT "Nationality" FROM table_16848 WHERE "Player" = 'Bill Robinzine'
|
### Instruction:
CREATE TABLE table_14860 (
"Round" text,
"Track" text,
"Race 1" text,
"Race 2" text,
"Race 3" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Round has the Track Clipsal 500 Support?
### Response:
|
SELECT "Round" FROM table_14860 WHERE "Track" = 'clipsal 500 support'
|
### Instruction:
CREATE TABLE table_28768925_1 (
written_by VARCHAR,
directed_by VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote episode 27 in the series that was directed by Wendey Stanzler?
### Response:
|
SELECT written_by FROM table_28768925_1 WHERE directed_by = "Wendey Stanzler" AND no_in_series = 27
|
### Instruction:
CREATE TABLE table_69885 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which record has 2:57 as the time?
### Response:
|
SELECT "Record" FROM table_69885 WHERE "Time" = '2:57'
|
### Instruction:
CREATE TABLE table_17451 (
"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.
-- What position does Neil Komadoski play?
### Response:
|
SELECT "Position" FROM table_17451 WHERE "Player" = 'Neil Komadoski'
|
### Instruction:
CREATE TABLE table_4271 (
"Route Number" real,
"Origin" text,
"Intermediate stops" text,
"Destination" text,
"Provider" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many route numbers occur for the origin of Birmingham and destination of Bristol?
### Response:
|
SELECT COUNT("Route Number") FROM table_4271 WHERE "Origin" = 'Birmingham' AND "Destination" = 'Bristol'
|
### Instruction:
CREATE TABLE table_26719 (
"Pitcher" text,
"Strikeouts" real,
"Season" real,
"Team" text,
"League" text,
"Overall Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most overall rank for nl/ua league
### Response:
|
SELECT MAX("Overall Rank") FROM table_26719 WHERE "League" = 'NL/UA'
|
### Instruction:
CREATE TABLE table_19813 (
"Software" text,
"Version" text,
"Operating systems" text,
"Developer" text,
"License" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is hte license for beeone smod/hms software?
### Response:
|
SELECT "License" FROM table_19813 WHERE "Software" = 'BeeOne SMOD/HMS'
|
### Instruction:
CREATE TABLE table_77076 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player that was from west virginia tech?
### Response:
|
SELECT "Player" FROM table_77076 WHERE "From" = 'west virginia tech'
|
### Instruction:
CREATE TABLE table_26604 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent for week 12
### Response:
|
SELECT "Opponent" FROM table_26604 WHERE "Week" = '12'
|
### Instruction:
CREATE TABLE table_name_9 (
silver INTEGER,
bronze VARCHAR,
nation VARCHAR,
total VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of silvers for qatar with under 8 total, 0 golds, and over 2 bronzes?
### Response:
|
SELECT MAX(silver) FROM table_name_9 WHERE total < 8 AND gold = 0 AND nation = "qatar" AND bronze > 2
|
### Instruction:
CREATE TABLE table_name_44 (
date VARCHAR,
home VARCHAR,
time VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was the time 14:30, the result 0:1, and the home team fc chiasso (chl)?
### Response:
|
SELECT date FROM table_name_44 WHERE time = "14:30" AND result = "0:1" AND home = "fc chiasso (chl)"
|
### Instruction:
CREATE TABLE table_51424 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the match on July 22, 2008?
### Response:
|
SELECT "Score" FROM table_51424 WHERE "Date" = 'july 22, 2008'
|
### Instruction:
CREATE TABLE table_51398 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of birth of Kameli Ratuvou?
### Response:
|
SELECT "Date of Birth (Age)" FROM table_51398 WHERE "Player" = 'kameli ratuvou'
|
### Instruction:
CREATE TABLE table_name_71 (
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Runner(s)-up has a Winning score of 9 (71-68-72-68=279)?
### Response:
|
SELECT runner_s__up FROM table_name_71 WHERE winning_score = β9(71 - 68 - 72 - 68 = 279)
|
### Instruction:
CREATE TABLE table_1652224_5 (
date_successor_seated VARCHAR,
reason_for_change VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date the successor seated because the person died august 17, 1954?
### Response:
|
SELECT date_successor_seated FROM table_1652224_5 WHERE reason_for_change = "Died August 17, 1954"
|
### Instruction:
CREATE TABLE table_6437 (
"Week" text,
"Division" text,
"Position" text,
"Player" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on week of february 12, in the west division, what is the position?
### Response:
|
SELECT "Position" FROM table_6437 WHERE "Division" = 'west' AND "Week" = 'february 12'
|
### Instruction:
CREATE TABLE table_name_97 (
torque VARCHAR,
engine_code VARCHAR,
power VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?
### Response:
|
SELECT torque FROM table_name_97 WHERE engine_code = "n46b20" AND power = "ps (kw; hp)@6400"
|
### Instruction:
CREATE TABLE table_1684 (
"Episode" text,
"First broadcast" text,
"Graemes guest" text,
"Jeremys guest" text,
"Votes (%)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what date was aired the first broacast of the episode 1x02
### Response:
|
SELECT "First broadcast" FROM table_1684 WHERE "Episode" = '1x02'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.