instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_21075 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what latitude can the name origin of naijok foss... | SELECT "Latitude" FROM table_21075 WHERE "Name" = 'Naijok Fossae' |
### Instruction:
CREATE TABLE table_16303 (
"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.
-- How many directors were there for the film Cour... | SELECT COUNT("Director") FROM table_16303 WHERE "Film title used in nomination" = 'Course Completed' |
### Instruction:
CREATE TABLE table_56727 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the friendly match, ending in a result of 1-1?
### Response:
| SELECT "Date" FROM table_56727 WHERE "Competition" = 'friendly match' AND "Result" = '1-1' |
### Instruction:
CREATE TABLE table_name_81 (
nhl_team VARCHAR,
college_junior_club_team VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team picked the player from the Toronto Marlboros (OHA) as Pick #32?
### Response:
| SELECT nhl_team FROM table_name_81 WHERE college_junior_club_team = "toronto marlboros (oha)" AND pick__number = "32" |
### Instruction:
CREATE TABLE table_11550 (
"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 day is the team 17 24 5?
### Response:
| SELECT "Date" FROM table_11550 WHERE "Record" = '17–24–5' |
### Instruction:
CREATE TABLE table_69921 (
"Draw" real,
"Competing dancers" text,
"Dance styles" text,
"Rank" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest points with 6 draws and lower than rank 10?
### Respons... | SELECT MIN("Points") FROM table_69921 WHERE "Draw" = '6' AND "Rank" > '10' |
### Instruction:
CREATE TABLE table_12420 (
"Rank" text,
"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 silver medals for a nation with fewer than 1... | SELECT MIN("Silver") FROM table_12420 WHERE "Bronze" < '1' |
### Instruction:
CREATE TABLE table_2799 (
"Club" text,
"Location" text,
"Manager" text,
"Stadium" text,
"Capacity" real,
"Team captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different team captains does the club Sliven 2000 ha... | SELECT COUNT("Team captain") FROM table_2799 WHERE "Club" = 'Sliven 2000' |
### Instruction:
CREATE TABLE table_name_63 (
total INTEGER,
difficulty_score VARCHAR,
rank VARCHAR,
routine_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty... | SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = "13.8" |
### Instruction:
CREATE TABLE table_26618 (
"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.
-- What was the record for the Argonauts on S... | SELECT "Record" FROM table_26618 WHERE "Date" = 'September 7' |
### Instruction:
CREATE TABLE table_63530 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the most wins of Terang with the draws less than 0?
### Response:
| SELECT MAX("Wins") FROM table_63530 WHERE "Club" = 'terang' AND "Draws" < '0' |
### Instruction:
CREATE TABLE table_name_38 (
studio_host VARCHAR,
play_by_play VARCHAR,
colour_commentator_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the studio host that has a play-by-play announcer of Bob Cole and a colour commentator of... | SELECT studio_host FROM table_name_38 WHERE play_by_play = "bob cole" AND colour_commentator_s_ = "harry neale" |
### Instruction:
CREATE TABLE table_17868 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Viewers(millions)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the original airdate of the episode directed... | SELECT "Original airdate" FROM table_17868 WHERE "Director" = 'Pete Travis' |
### Instruction:
CREATE TABLE table_10588 (
"Games" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank in the 2009 Hanoi Games?
### Response:
| SELECT "Rank" FROM table_10588 WHERE "Games" = '2009 hanoi' |
### Instruction:
CREATE TABLE table_60699 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has a league 3rd liga, and away of 1-0?
### Response:
| SELECT "Season" FROM table_60699 WHERE "League" = '3rd liga' AND "Away" = '1-0' |
### Instruction:
CREATE TABLE table_22882 (
"Performer" text,
"Performances" real,
"Category" text,
"First performance" text,
"Last performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the performer that did last performance on 04/08/... | SELECT "Performer" FROM table_22882 WHERE "Last performance" = '04/08/1963' |
### Instruction:
CREATE TABLE table_70653 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a lost of wells (6-2)?
### Response:
| SELECT "Opponent" FROM table_70653 WHERE "Loss" = 'wells (6-2)' |
### Instruction:
CREATE TABLE table_106 (
"Name of lava dome" text,
"Country" text,
"Volcanic area" text,
"Composition" text,
"Last eruption or growth episode" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What countries have had eruptions of growt... | SELECT "Country" FROM table_106 WHERE "Last eruption or growth episode" = '1986' |
### Instruction:
CREATE TABLE table_204_564 (
id number,
"devanagari" text,
"iso 15919" text,
"unrsgn" text,
"iast" text,
"comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which devanagari transliteration is listed on the top of the table... | SELECT "devanagari" FROM table_204_564 WHERE id = 1 |
### Instruction:
CREATE TABLE table_43983 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of transfer window is winter in Ita?
### Respo... | SELECT "Type" FROM table_43983 WHERE "Transfer window" = 'winter' AND "Nat." = 'ita' |
### Instruction:
CREATE TABLE table_36368 (
"Season" text,
"Tier" real,
"League" text,
"Pos." real,
"Postseason" text,
"Dutch Cup" text,
"European competitions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which European competitions have ... | SELECT "European competitions" FROM table_36368 WHERE "Pos." = '6' |
### Instruction:
CREATE TABLE table_204_164 (
id number,
"branding" text,
"callsign" text,
"frequency" text,
"power (kw)" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of stations with frequencies above... | SELECT COUNT("branding") FROM table_204_164 WHERE "frequency" > 100 |
### Instruction:
CREATE TABLE table_5550 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the tournament with Alena Tarasova as the oppo... | SELECT "Date" FROM table_5550 WHERE "Opponent" = 'alena tarasova' |
### Instruction:
CREATE TABLE table_203_724 (
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.
-- how many nations won at least 10 silver medals ?... | SELECT COUNT("nation") FROM table_203_724 WHERE "silver" >= 10 |
### Instruction:
CREATE TABLE table_32864 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average diff when games played are more than... | SELECT AVG("Diff.") FROM table_32864 WHERE "Played" > '6' |
### Instruction:
CREATE TABLE table_204_235 (
id number,
"season" text,
"team" text,
"country" text,
"competition" text,
"matches" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many matches did jones kusi asare play in... | SELECT "matches" FROM table_204_235 ORDER BY "season" LIMIT 1 |
### Instruction:
CREATE TABLE table_204_696 (
id number,
"issue" number,
"volume" number,
"title" text,
"main feature story" text,
"first/early appearance story/stories" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wha... | SELECT "title" FROM table_204_696 ORDER BY "release date" LIMIT 1 |
### Instruction:
CREATE TABLE table_58165 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the team with a qual 1 time of 1:17.481?
### Response:
| SELECT "Team" FROM table_58165 WHERE "Qual 1" = '1:17.481' |
### Instruction:
CREATE TABLE table_50756 (
"Year" text,
"Total matches" real,
"Total W-L-H" text,
"Singles W-L-H" text,
"Points won" real,
"Points %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT YEAR HAD 5 TOTAL MATCHES?
### Response:
| SELECT "Year" FROM table_50756 WHERE "Total matches" = '5' |
### Instruction:
CREATE TABLE table_10938 (
"Round" text,
"Pick" text,
"Player" text,
"Nationality" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school's nationality was United States when its pick was 595?
### Response:
| SELECT "School" FROM table_10938 WHERE "Nationality" = 'united states' AND "Pick" = '595' |
### Instruction:
CREATE TABLE table_22041 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the aggregate is 3-4, what is the first leg?
### Response:
| SELECT "Home (1st leg)" FROM table_22041 WHERE "Aggregate" = '3-4' |
### Instruction:
CREATE TABLE table_69218 (
"Goalkeeper" text,
"Goals" real,
"Matches" real,
"Average" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average of goals less than 45 for team Real Sociedad?
### Respon... | SELECT MAX("Average") FROM table_69218 WHERE "Goals" < '45' AND "Team" = 'real sociedad' |
### Instruction:
CREATE TABLE table_name_66 (
votes INTEGER,
date VARCHAR,
_percentage_of_national_vote VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes were tallied in 1956 with a % of national vote larger than 11.47?
### Response:
| SELECT SUM(votes) FROM table_name_66 WHERE date = "1956" AND _percentage_of_national_vote > 11.47 |
### Instruction:
CREATE TABLE table_name_30 (
overall INTEGER,
name VARCHAR,
pick__number VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Overall is the average one that has a Pick # larger than 7, and a Round larger than 4, and a... | SELECT AVG(overall) FROM table_name_30 WHERE pick__number > 7 AND round > 4 AND name = "glen howe" |
### Instruction:
CREATE TABLE table_7730 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date's margin of victory was 3 and 2?
... | SELECT "Date" FROM table_7730 WHERE "Margin of victory" = '3 and 2' |
### Instruction:
CREATE TABLE table_68357 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the money for the to par of -6
### Response:
| SELECT "Money ( \u00a3 )" FROM table_68357 WHERE "To par" = '-6' |
### Instruction:
CREATE TABLE table_57950 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grid for jacques villeneuve with over 36 laps?
### Response:
| SELECT MAX("Grid") FROM table_57950 WHERE "Driver" = 'jacques villeneuve' AND "Laps" > '36' |
### Instruction:
CREATE TABLE table_1096 (
"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 was the position of the player picked b... | SELECT "Position" FROM table_1096 WHERE "NHL team" = 'Montreal Canadiens' |
### Instruction:
CREATE TABLE table_33900 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Performer 2 has an Episode of 5?
### Respon... | SELECT "Performer 2" FROM table_33900 WHERE "Episode" = '5' |
### Instruction:
CREATE TABLE table_42114 (
"Source" text,
"Date" text,
"Clinton" text,
"Obama" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Source has a Clinton of 39% and a Undecided of 7%?
### Response:
| SELECT "Source" FROM table_42114 WHERE "Clinton" = '39%' AND "Undecided" = '7%' |
### Instruction:
CREATE TABLE table_12079 (
"Round" text,
"Pick" text,
"Position" text,
"Team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the pick for the game at the College of Kentucky with the team Washington Capitols... | SELECT "Pick" FROM table_12079 WHERE "College" = 'kentucky' AND "Team" = 'washington capitols' |
### Instruction:
CREATE TABLE table_45544 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record h... | SELECT "Record" FROM table_45544 WHERE "Game" = '61' |
### Instruction:
CREATE TABLE table_203_640 (
id number,
"name" text,
"college" text,
"years" text,
"reign" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was harald v of norway the king of norway at the university of oxford ?
### Respons... | SELECT "years" - "years" FROM table_203_640 WHERE "name" = 'harald v of norway' |
### Instruction:
CREATE TABLE table_41655 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the home team of the game on 2 February 2006?
### Respon... | SELECT "Home" FROM table_41655 WHERE "Date" = '2 february 2006' |
### Instruction:
CREATE TABLE table_41878 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the Fourth District with a Third District... | SELECT "Fourth District" FROM table_41878 WHERE "Third District" = 'sharon yentsch' |
### Instruction:
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
home town text
)
CREATE TABLE perpetrator (
perpetrator_id number,
people_id number,
date text,
year number,
location text,
country text,
killed number,
injured number
)... | SELECT COUNT(*) FROM perpetrator |
### Instruction:
CREATE TABLE table_9770 (
"Episode #" text,
"Original airdate (UK)" text,
"Episode title" text,
"Doctor Who episode" text,
"Webcast link" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Doctor Who episode has a Original airdate... | SELECT "Doctor Who episode" FROM table_9770 WHERE "Original airdate (UK)" = 'dvd only' |
### Instruction:
CREATE TABLE table_25966 (
"Year" real,
"Host City" text,
"Host School" text,
"Champion" text,
"Second Place" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the champions in years where michigan tech... | SELECT "Champion" FROM table_25966 WHERE "Third Place" = 'Michigan Technological University' |
### Instruction:
CREATE TABLE table_39908 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Type of 4-6-0, and a Number larger than 11?
### Response:
| SELECT "Date" FROM table_39908 WHERE "Type" = '4-6-0' AND "Number" > '11' |
### Instruction:
CREATE TABLE table_27455867_1 (
callback_audition_date VARCHAR,
episode_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the callback audition date for the audition city from the episode aired on February 2, 2011?
### Respo... | SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = "February 2, 2011" |
### Instruction:
CREATE TABLE table_78404 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the competition that took place on may 31, 2008?
### Response:
| SELECT "Competition" FROM table_78404 WHERE "Date" = 'may 31, 2008' |
### Instruction:
CREATE TABLE table_67829 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total overall when Kenny Lewis is the player in a round after 5?
### Res... | SELECT COUNT("Overall") FROM table_67829 WHERE "Player" = 'kenny lewis' AND "Round" > '5' |
### Instruction:
CREATE TABLE table_64705 (
"Date" text,
"Event" text,
"Heat/Semifinal/Final" text,
"Nation" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What heat, semifinal or final has a time of 25.00?
### Response:
| SELECT "Heat/Semifinal/Final" FROM table_64705 WHERE "Time" = '25.00' |
### Instruction:
CREATE TABLE table_204_77 (
id number,
"number" text,
"builder" text,
"type" text,
"date" text,
"works number" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of the only diesel locomotive f... | SELECT "number" FROM table_204_77 WHERE "builder" = 'edwards rail car company' |
### Instruction:
CREATE TABLE table_51130 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people are enrolled in platteville, wi?
... | SELECT SUM("Enrollment") FROM table_51130 WHERE "Location" = 'platteville, wi' |
### Instruction:
CREATE TABLE table_29281 (
"Position" real,
"Building" text,
"City" text,
"Height" text,
"Number of floors" real,
"Completion" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- if the completed is 2010, what is the number of floors... | SELECT MIN("Number of floors") FROM table_29281 WHERE "Completion" = '2010' |
### Instruction:
CREATE TABLE table_77163 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Game number on April 12 with St. Louis Home Team?
### Response:
| SELECT "Game" FROM table_77163 WHERE "Home Team" = 'st. louis' AND "Date" = 'april 12' |
### Instruction:
CREATE TABLE table_35435 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Last match" text,
"Replaced by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the manner of departur... | SELECT "Manner of departure" FROM table_35435 WHERE "Replaced by" = 'tita' |
### Instruction:
CREATE TABLE table_204_302 (
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 won the largest haul of bronze med... | SELECT "nation" FROM table_204_302 ORDER BY "bronze" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_49 (
goals_for INTEGER,
goals_against VARCHAR,
position VARCHAR,
draw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average goals for with a position under 12, draws over 1, and goals against unde... | SELECT AVG(goals_for) FROM table_name_49 WHERE position < 12 AND draw > 1 AND goals_against < 28 |
### Instruction:
CREATE TABLE table_204_556 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who came in first place at the 1980 winter olympic women 's 1000 metres i... | SELECT "athlete" FROM table_204_556 WHERE id = 1 |
### Instruction:
CREATE TABLE table_29997 (
"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.
-- How many different nationalities is pick numb... | SELECT COUNT("Nationality") FROM table_29997 WHERE "Pick" = '179' |
### Instruction:
CREATE TABLE table_204_596 (
id number,
"year" number,
"winners" text,
"score" text,
"runners up" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the difference in the scores for the game in 1955 .
### Res... | SELECT ABS("score" - "score") FROM table_204_596 WHERE "year" = 1955 |
### Instruction:
CREATE TABLE table_50284 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has... | SELECT "Record" FROM table_50284 WHERE "Game" = '46' |
### Instruction:
CREATE TABLE table_37566 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a Year larger than 1966, and Wins larger than 1?
### Response:
| SELECT AVG("Points") FROM table_37566 WHERE "Year" > '1966' AND "Wins" > '1' |
### Instruction:
CREATE TABLE table_10466 (
"Independent" text,
"Lost" real,
"Tied" real,
"Pct." real,
"Years" real,
"Total Games" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the PCT when the total number of games is less than 944?
... | SELECT "Pct." FROM table_10466 WHERE "Total Games" < '944' |
### Instruction:
CREATE TABLE table_23674 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did McCain get 20226 votes?
### Response:
| SELECT "County" FROM table_23674 WHERE "McCain#" = '20226' |
### Instruction:
CREATE TABLE table_25944 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the surface for the year 2001... | SELECT "Surface" FROM table_25944 WHERE "Year" = '2001' |
### Instruction:
CREATE TABLE table_64823 (
"Name (pinyin)" text,
"Name (Wade Giles)" text,
"Characters" text,
"Type" text,
"Construction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name (pinyin) is named fu-ching?
### Response:
| SELECT "Name (pinyin)" FROM table_64823 WHERE "Name (Wade Giles)" = 'fu-ching' |
### Instruction:
CREATE TABLE table_204_506 (
id number,
"seasons" number,
"team" text,
"ch.wins" number,
"promotions" number,
"relegations" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many relegations did andrea costa imola undergo ?
... | SELECT "relegations" FROM table_204_506 WHERE "team" = 'andrea costa imola' |
### Instruction:
CREATE TABLE table_name_65 (
conceded INTEGER,
played VARCHAR,
points VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number conceded for hte team that had less than 19 points, played more than 18... | SELECT AVG(conceded) FROM table_name_65 WHERE points < 19 AND position < 10 AND played > 18 |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank |
### Instruction:
CREATE TABLE table_204_198 (
id number,
"club" text,
"nickname" text,
"no. of premierships" number,
"premiership years" text,
"moved to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- four corners has 13 premierships listed , wh... | SELECT "nickname" FROM table_204_198 WHERE "club" = 'four corners' |
### Instruction:
CREATE TABLE table_27755603_8 (
location_attendance VARCHAR,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the location attendance for austin daye , tracy mcgrady , tayshaun prince (20)
### Response:
| SELECT location_attendance FROM table_27755603_8 WHERE high_points = "Austin Daye , Tracy McGrady , Tayshaun Prince (20)" |
### Instruction:
CREATE TABLE table_22123920_4 (
shows___sellout VARCHAR,
sellout___percentage_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Between November 25 30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was w... | SELECT shows___sellout FROM table_22123920_4 WHERE sellout___percentage_ = "75%" |
### Instruction:
CREATE TABLE table_69701 (
"Date" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Result F A of 5 0 had what group position?
### Response:
| SELECT "Group position" FROM table_69701 WHERE "Result F\u2013A" = '5–0' |
### Instruction:
CREATE TABLE table_20628 (
"No." real,
"Name" text,
"Mi from Kingston" text,
"Km from Kingston" text,
"Parish" text,
"Length feet" real,
"Length meters" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which parishes have the ... | SELECT "Parish" FROM table_20628 WHERE "Name" = 'Highworth' |
### Instruction:
CREATE TABLE table_44899 (
"Team" text,
"Coach" text,
"Home Ground" text,
"Location" text,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the club that was founded in 1946 located that has an unknown coach?
### ... | SELECT "Location" FROM table_44899 WHERE "Coach" = 'unknown' AND "Founded" = '1946' |
### Instruction:
CREATE TABLE table_name_63 (
result VARCHAR,
opponent VARCHAR,
week VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the resu... | SELECT result FROM table_name_63 WHERE week > 1 AND attendance = "69,149" AND opponent = "seattle seahawks" |
### Instruction:
CREATE TABLE table_14697 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top rank with a time of 2:19.86?
### Response:
| SELECT MAX("Rank") FROM table_14697 WHERE "Time" = '2:19.86' |
### Instruction:
CREATE TABLE table_75277 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which batter has a uni# of 31?
### Response:
| SELECT "Bats" FROM table_75277 WHERE "Uni#" = '31' |
### Instruction:
CREATE TABLE table_53349 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low grid for gerhard berger for laps over 56?
### Response:
| SELECT MIN("Grid") FROM table_53349 WHERE "Driver" = 'gerhard berger' AND "Laps" > '56' |
### Instruction:
CREATE TABLE table_204_57 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in how many years has madhurima been in at least 3 films ?
### Response:
| SELECT COUNT(*) FROM (SELECT "year" FROM table_204_57 GROUP BY "year" HAVING COUNT("film") >= 3) |
### Instruction:
CREATE TABLE table_12576 (
"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 venue for the Status of Five Nations and 0 againts?
### Response:
| SELECT "Venue" FROM table_12576 WHERE "Status" = 'five nations' AND "Against" = '0' |
### Instruction:
CREATE TABLE table_16519 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest attendance that East End Park has ever had?
##... | SELECT MIN("Lowest") FROM table_16519 WHERE "Stadium" = 'East End Park' |
### Instruction:
CREATE TABLE table_71212 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game that had a loss of Politte (0-2)?
###... | SELECT "Date" FROM table_71212 WHERE "Loss" = 'politte (0-2)' |
### Instruction:
CREATE TABLE table_70067 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average bronze had a silver greater than 2 and a gold larger than 7?
### Response:
| SELECT AVG("Bronze") FROM table_70067 WHERE "Silver" > '2' AND "Gold" > '7' |
### Instruction:
CREATE TABLE table_65728 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many picks on average did Jay Bruchak have before round 6?
### Response:
| SELECT AVG("Pick") FROM table_65728 WHERE "Player" = 'jay bruchak' AND "Round" < '6' |
### Instruction:
CREATE TABLE table_42094 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"American Labor ticket" text,
"Socialist ticket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which American Labor candidate ran against... | SELECT "American Labor ticket" FROM table_42094 WHERE "Republican ticket" = 'thomas e. dewey' |
### Instruction:
CREATE TABLE table_58170 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the qual 2 when the qual 1 is 1:16.841?
### Response:
| SELECT "Qual 2" FROM table_58170 WHERE "Qual 1" = '1:16.841' |
### Instruction:
CREATE TABLE table_28458 (
"Modern English day name" text,
"Old English day name" text,
"English day name meaning" text,
"Glossed from Latin day name" text,
"Latin day name meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wha... | SELECT "Old English day name" FROM table_28458 WHERE "Modern English day name" = 'Saturday' |
### Instruction:
CREATE TABLE table_name_49 (
laps INTEGER,
grid VARCHAR,
points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and th... | SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = "garry rogers motorsport" AND grid < 23 |
### Instruction:
CREATE TABLE table_7732 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par when the tournament involv... | SELECT "To par" FROM table_7732 WHERE "Tournament" = 'transitions championship' |
### Instruction:
CREATE TABLE table_23115 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Persian title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the Persian Title , what were the results?
... | SELECT "Result" FROM table_23115 WHERE "Persian title" = 'میم مثل مادر' |
### Instruction:
CREATE TABLE table_204_631 (
id number,
"#" number,
"title" text,
"english translation" text,
"original album" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of songs that were also on the binta... | SELECT COUNT("title") FROM table_204_631 WHERE "original album" = 'bintang di surga' |
### Instruction:
CREATE TABLE table_22559 (
"Date" real,
"Single" text,
"Backed with" text,
"Record label" text,
"Format" text,
"Other details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the 'other details' (number released) for 'i... | SELECT "Other details" FROM table_22559 WHERE "Single" = 'My Love Will Follow Me' |
### Instruction:
CREATE TABLE table_61861 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?
### Response:
| SELECT "Team" FROM table_61861 WHERE "Position" = 'of' AND "Pick" = '24' |
### Instruction:
CREATE TABLE table_1856 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the province where the age of the... | SELECT "Province, Community" FROM table_1856 WHERE "Age" = '27' |
### Instruction:
CREATE TABLE table_name_77 (
player VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from the United States in T4 place with a score of 68-73-68=209?
### Response:
| SELECT player FROM table_name_77 WHERE country = "united states" AND place = "t4" AND score = 68 - 73 - 68 = 209 |
### Instruction:
CREATE TABLE table_204_79 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after the 1990/91 season , which place was earned in the next season ?
### Response:
| SELECT "place" FROM table_204_79 WHERE "season" > '1990/91' ORDER BY "season" LIMIT 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.