instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_20973 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What batting partners were the ... | SELECT "Batting partners" FROM table_20973 WHERE "Season" = '2004' |
### Instruction:
CREATE TABLE table_69473 (
"Rank" real,
"Player" text,
"Goals" real,
"Games" real,
"Debut in Europe" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the latest debut in Europe for Henrik Larsson, with less than 108 games?
... | SELECT MAX("Debut in Europe") FROM table_69473 WHERE "Player" = 'henrik larsson' AND "Games" < '108' |
### Instruction:
CREATE TABLE table_79836 (
"Year" real,
"Stage" real,
"Category" text,
"Start" text,
"Finish" text,
"Leader at the summit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the start of an event in Catagory 2 of the year 1947.... | SELECT "Start" FROM table_79836 WHERE "Category" = '2' AND "Year" = '1947' |
### Instruction:
CREATE TABLE table_74712 (
"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 venue when Geelong ... | SELECT "Venue" FROM table_74712 WHERE "Away team" = 'geelong' |
### Instruction:
CREATE TABLE table_57043 (
"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 was the attendance at the Red Sox game that had a loss of Wakefi... | SELECT "Attendance" FROM table_57043 WHERE "Loss" = 'wakefield (7–10)' |
### Instruction:
CREATE TABLE table_69038 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of the ERP W with a call s... | SELECT COUNT("ERP W") FROM table_69038 WHERE "Call sign" = 'w242ak' |
### Instruction:
CREATE TABLE table_73808 (
"No. in series" real,
"No. in season" 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.
-- Name the ... | SELECT MAX("No. in season") FROM table_73808 WHERE "Directed by" = 'Leslie Hill' |
### Instruction:
CREATE TABLE table_46044 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality has a Pick larger than 109, and a Round small... | SELECT "Nationality" FROM table_46044 WHERE "Pick" > '109' AND "Round" < '5' |
### Instruction:
CREATE TABLE table_11356 (
"Year" real,
"Organization" text,
"Award" text,
"Work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where Result is nominated and Organization is 54th the television academy drama awards, ... | SELECT "Award" FROM table_11356 WHERE "Result" = 'nominated' AND "Organization" = '54th the television academy drama awards' |
### Instruction:
CREATE TABLE table_74047 (
"No." real,
"Title" text,
"Directed by" text,
"Story by" text,
"Teleplay by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number... | SELECT "No." FROM table_74047 WHERE "Directed by" = 'Simon Cellan Jones' |
### Instruction:
CREATE TABLE table_3615 (
"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 incumbent for lost re-election democratic-repub... | SELECT "Incumbent" FROM table_3615 WHERE "Result" = 'Lost re-election Democratic-Republican hold' |
### Instruction:
CREATE TABLE table_68259 (
"Year" text,
"Position" text,
"League" text,
"FA Cup" text,
"Malaysia Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position when the League is the malaysian super league, and a Year of 2... | SELECT "Position" FROM table_68259 WHERE "League" = 'malaysian super league' AND "Year" = '2011' |
### Instruction:
CREATE TABLE table_5184 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Location of boston garden, and a Record of 58-23 involved what opponent?... | SELECT "Opponent" FROM table_5184 WHERE "Location" = 'boston garden' AND "Record" = '58-23' |
### Instruction:
CREATE TABLE table_45133 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha
... | SELECT MIN("Laps") FROM table_45133 WHERE "Rider" = 'andrew pitt' AND "Grid" < '18' |
### Instruction:
CREATE TABLE table_79863 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Pick # of 25, and an Overall of 207 has what name?
### Response:
| SELECT "Name" FROM table_79863 WHERE "Pick #" = '25' AND "Overall" = '207' |
### Instruction:
CREATE TABLE table_16957 (
"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.
-- How many locations logged a score of... | SELECT COUNT("Location") FROM table_16957 WHERE "Score" = '206 (-7)' |
### Instruction:
CREATE TABLE table_43287 (
"Ship" text,
"Hull No." text,
"Commissioned" text,
"Builder" text,
"Home Port" text,
"NVR Page" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NVR Page of the ship with a Home Port of Saseb... | SELECT "NVR Page" FROM table_43287 WHERE "Home Port" = 'sasebo, japan' |
### Instruction:
CREATE TABLE table_33647 (
"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 largest crowd wher... | SELECT MAX("Crowd") FROM table_33647 WHERE "Away team" = 'carlton' |
### Instruction:
CREATE TABLE table_38266 (
"Driver" text,
"Season" text,
"Entries" real,
"Front row starts" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the total number of entries in 2001 that had a front row smaller... | SELECT COUNT("Entries") FROM table_38266 WHERE "Season" = '2001' AND "Front row starts" < '13' |
### Instruction:
CREATE TABLE table_23985 (
"Model Type" text,
"Model Designation" text,
"Engine" text,
"Wheelbase (mm/inch)" text,
"GVW (kg/ton)" text,
"Axle Ratio" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many engines are there for m... | SELECT COUNT("Engine") FROM table_23985 WHERE "Model Designation" = '97H00' |
### Instruction:
CREATE TABLE table_204_865 (
id number,
"date" text,
"tournament" text,
"winner" text,
"purse ($)" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total purse amount for the salta open and the tandil o... | SELECT SUM("purse ($)") FROM table_204_865 WHERE "tournament" IN ('salta open', 'tandil open') |
### Instruction:
CREATE TABLE table_7768 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player from the United States with a score of 70-70-71=211?
### Response:
| SELECT "Player" FROM table_7768 WHERE "Country" = 'united states' AND "Score" = '70-70-71=211' |
### Instruction:
CREATE TABLE table_57344 (
"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" FROM table_57344 WHERE "Venue" = 'princes park' |
### Instruction:
CREATE TABLE book (
book_id number,
title text,
issues number,
writer text
)
CREATE TABLE publication (
publication_id number,
book_id number,
publisher text,
publication_date text,
price number
)
-- Using valid SQLite, answer the following questions for the table... | SELECT T1.title, T2.publication_date FROM book AS T1 JOIN publication AS T2 ON T1.book_id = T2.book_id |
### Instruction:
CREATE TABLE table_25855 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Location Attendance" FROM table_25855 WHERE "Game" = '4' |
### Instruction:
CREATE TABLE table_11567 (
"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 lowest crowd when N... | SELECT MIN("Crowd") FROM table_11567 WHERE "Home team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_18018 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did the Seahawks play at los angeles... | SELECT MIN("Week") FROM table_18018 WHERE "Game site" = 'Los Angeles Memorial Coliseum' |
### Instruction:
CREATE TABLE table_59175 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Cathi O'Malley was featured in Week 3, who was the cyber girl for Week 5?
### Resp... | SELECT "Week 5" FROM table_59175 WHERE "Week 3" = 'cathi o''malley' |
### Instruction:
CREATE TABLE table_35110 (
"Callsign" text,
"Area served" text,
"Frequency" text,
"Band" text,
"Freq currently" text,
"Purpose" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the purpose for the katherine freq of 8rn?
... | SELECT "Purpose" FROM table_35110 WHERE "Freq currently" = '8rn' AND "Area served" = 'katherine' |
### Instruction:
CREATE TABLE table_78065 (
"Theatre" text,
"Current show" text,
"Classification" text,
"Capacity" real,
"Opening date" text,
"Closing date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the opening date of the musical a... | SELECT "Opening date" FROM table_78065 WHERE "Classification" = 'musical' AND "Theatre" = 'adelphi theatre' |
### Instruction:
CREATE TABLE table_1057316_1 (
wheel_arrangement___whyte_notation__ VARCHAR,
operational_owner_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wheels does the train owned by Texas and New Orleans Railroad #319 have?
### Response... | SELECT COUNT(wheel_arrangement___whyte_notation__) FROM table_1057316_1 WHERE operational_owner_s_ = "Texas and New Orleans Railroad #319" |
### Instruction:
CREATE TABLE table_8300 (
"Game" real,
"October" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game on October 20 with a decision of Lundq... | SELECT "Score" FROM table_8300 WHERE "Decision" = 'lundqvist' AND "October" = '20' |
### Instruction:
CREATE TABLE table_8278 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the semifinalists of the tournament with ... | SELECT "Semifinalists" FROM table_8278 WHERE "Finalist" = 'magnus gustafsson' |
### Instruction:
CREATE TABLE table_204_42 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many seasons other than 1999 was their a ... | SELECT COUNT("season") FROM table_204_42 WHERE "season" <> 1999 AND "movements" = 'spring series' |
### Instruction:
CREATE TABLE table_27261 (
"Air date" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the vote when the air date is 4 october 1997?
### Res... | SELECT "Vote" FROM table_27261 WHERE "Air date" = '4 October 1997' |
### Instruction:
CREATE TABLE table_35802 (
"Title" text,
"Year" real,
"Platform(s)" text,
"Director" text,
"Producer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the director of the game with HIroshi Sato as the producer on the GBA platfo... | SELECT "Director" FROM table_35802 WHERE "Producer" = 'hiroshi sato' AND "Platform(s)" = 'gba' |
### Instruction:
CREATE TABLE table_19456 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of class aaa for 2006-07
#... | SELECT COUNT("Class AAA") FROM table_19456 WHERE "School Year" = '2006-07' |
### Instruction:
CREATE TABLE table_49256 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue had a Score of 120-108?
### Respo... | SELECT "Venue" FROM table_49256 WHERE "Score" = '120-108' |
### Instruction:
CREATE TABLE table_49260 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the decision when the visitor was Detroit... | SELECT "Decision" FROM table_49260 WHERE "Visitor" = 'detroit' AND "Home" = 'ottawa' |
### Instruction:
CREATE TABLE table_54222 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver for Maserati has more laps than 23 and a grid greater than 7?
### R... | SELECT "Driver" FROM table_54222 WHERE "Constructor" = 'maserati' AND "Laps" > '23' AND "Grid" > '7' |
### Instruction:
CREATE TABLE table_12938 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of lap for the Dale Coyne Racing Team, and 0 points?
... | SELECT SUM("Laps") FROM table_12938 WHERE "Team" = 'dale coyne racing' AND "Points" = '0' |
### Instruction:
CREATE TABLE table_54506 (
"Tournament" text,
"Date" text,
"City" text,
"Country" text,
"Surface" text,
"Singles champions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date will the Argentina F17 Futures Tournament be... | SELECT "Date" FROM table_54506 WHERE "Country" = 'argentina' AND "Tournament" = 'argentina f17 futures' |
### Instruction:
CREATE TABLE table_3054 (
"Rank" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Withdrew due to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many defending points d... | SELECT MAX("Points defending") FROM table_3054 WHERE "Player" = 'Radek Štěpánek' |
### Instruction:
CREATE TABLE table_27503 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- It's not my job' is the minimum title... | SELECT MIN("No. in season") FROM table_27503 WHERE "Title" = 'It''s Not My Job' |
### Instruction:
CREATE TABLE table_200_35 (
id number,
"party" text,
"active voters" number,
"inactive voters" number,
"total voters" number,
"percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- as of october 25 , 2005 , how many active ... | SELECT "active voters" FROM table_200_35 WHERE "party" = 'democratic' |
### Instruction:
CREATE TABLE table_57851 (
"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_57851 WHERE "Away team" = 'geelong' |
### Instruction:
CREATE TABLE table_32355 (
"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 the date of the game of th... | SELECT "Date" FROM table_32355 WHERE "Venue" = 'princes park' |
### Instruction:
CREATE TABLE table_48237 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"# of Years as tallest" text,
"Height m / ft" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the building... | SELECT "Name" FROM table_48237 WHERE "# of Years as tallest" = '28 years' |
### Instruction:
CREATE TABLE table_47291 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent, during the game at the location of key... | SELECT "Opponent" FROM table_47291 WHERE "Location/Attendance" = 'keyarena at seattle center' |
### Instruction:
CREATE TABLE table_15864 (
"Player" text,
"No." real,
"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 number is the player that played 1998-200... | SELECT MIN("No.") FROM table_15864 WHERE "Years in Toronto" = '1998-2001' |
### Instruction:
CREATE TABLE table_69599 (
"Event" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real,
"Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Gold has a Silver greater than 30 and a Total less than 107?
### R... | SELECT "Gold" FROM table_69599 WHERE "Silver" > '30' AND "Total" < '107' |
### Instruction:
CREATE TABLE table_name_18 (
played INTEGER,
drawn VARCHAR,
position VARCHAR,
lost VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position... | SELECT AVG(played) FROM table_name_18 WHERE lost > 9 AND points < 15 AND position < 12 AND drawn < 2 |
### Instruction:
CREATE TABLE table_name_39 (
score VARCHAR,
opponent_in_the_final VARCHAR,
year VARCHAR,
outcome VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score when the outcome is runner-up, the opponent in the final is herbert law... | SELECT score FROM table_name_39 WHERE year > 1882 AND outcome = "runner-up" AND opponent_in_the_final = "herbert lawford" |
### Instruction:
CREATE TABLE table_204_471 (
id number,
"year" number,
"title" text,
"peak chart positions\nger" number,
"label" text,
"artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many willy deville albums have reached the chart ... | SELECT COUNT("title") FROM table_204_471 WHERE "artist" = 'willy deville' AND NOT "peak chart positions\nger" IS NULL |
### Instruction:
CREATE TABLE table_44686 (
"Conference" text,
"Bids" real,
"Record" text,
"Win %" real,
"Quarterfinals" text,
"Semifinals" text,
"Final" text,
"Champions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Bids, when... | SELECT "Bids" FROM table_44686 WHERE "Champions" = '1' |
### Instruction:
CREATE TABLE table_23701 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("F/Laps") FROM table_23701 |
### Instruction:
CREATE TABLE table_204_711 (
id number,
"dance" text,
"best dancer(s)" text,
"best score" number,
"worst dancer(s)" text,
"worst score" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was henrik normann the worst... | SELECT COUNT(*) FROM table_204_711 WHERE "worst dancer(s)" = 'henrik normann' |
### Instruction:
CREATE TABLE table_66237 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successor's formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is it that successor's formal... | SELECT "Date of successor's formal installation" FROM table_66237 WHERE "Vacator" = 'ross bass (d)' |
### Instruction:
CREATE TABLE table_59144 (
"Event" text,
"Time" text,
"Swimmer" text,
"School" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is School, when Year is less than 2013, and when Event is '100 Breaststroke'?
### Resp... | SELECT "School" FROM table_59144 WHERE "Year" < '2013' AND "Event" = '100 breaststroke' |
### Instruction:
CREATE TABLE table_32214 (
"Rank" real,
"All-time Rank" text,
"Name" text,
"Debut Year" real,
"Current Club" text,
"Goals" real,
"Apps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which value for Apps is associated with t... | SELECT "Apps" FROM table_32214 WHERE "All-time Rank" = '53' |
### Instruction:
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
-- Using valid SQLite,... | SELECT MAX(points) FROM climber WHERE country = "United Kingdom" |
### Instruction:
CREATE TABLE table_name_29 (
position__eliminated VARCHAR,
age¹ VARCHAR,
full_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Position/ Eliminated, when Age is less than 22, and when Full Name is 'Muhammad Fairul Azreen Bin M... | SELECT position__eliminated FROM table_name_29 WHERE age¹ < 22 AND full_name = "muhammad fairul azreen bin mohd zahid" |
### Instruction:
CREATE TABLE table_29070 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the visiting team ... | SELECT "Time" FROM table_29070 WHERE "Visiting team" = 'Clemson' |
### Instruction:
CREATE TABLE table_37988 (
"School" text,
"Team Name" text,
"Town" text,
"County" text,
"School Enrollment (2008\u201310)" real,
"Football?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school had a team name of the Troja... | SELECT "School" FROM table_37988 WHERE "Team Name" = 'trojans' |
### Instruction:
CREATE TABLE table_29781 (
"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 "Date" FROM table_29781 WHERE "Team" = 'Boston' |
### Instruction:
CREATE TABLE table_21828 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_21828 WHERE "Series" = '2-2' |
### Instruction:
CREATE TABLE table_203_366 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team did the ... | SELECT "team" FROM table_203_366 ORDER BY "laps" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_73003 (
"No. overall" real,
"No. in series" real,
"Title" text,
"Director" text,
"Writer" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 'episode 1' i... | SELECT "No. overall" FROM table_73003 WHERE "Title" = 'Episode 1' |
### Instruction:
CREATE TABLE table_76445 (
"Date" text,
"Event" text,
"City" text,
"Oil Pattern" text,
"Winner (Title #)" text,
"Runner-up" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Event which has a Score of 209... | SELECT "Event" FROM table_76445 WHERE "Score" = '209-197' |
### Instruction:
CREATE TABLE table_41271 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which bike had a grid less than 35 and time at 37:58.607?
### Response:
| SELECT "Bike" FROM table_41271 WHERE "Grid" < '35' AND "Time" = '37:58.607' |
### Instruction:
CREATE TABLE table_13338 (
"Name" text,
"Platform" text,
"Indication" text,
"Status" text,
"Collaboration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What company collaborated in pre-clinical autoimmune disease and inflammation?... | SELECT "Collaboration" FROM table_13338 WHERE "Status" = 'pre-clinical' AND "Indication" = 'autoimmune disease and inflammation' |
### Instruction:
CREATE TABLE table_71132 (
"Season" text,
"Club" text,
"Country" text,
"Competition" text,
"Apps." real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals did he have in the bundesliga with under 7 appearance... | SELECT AVG("Goals") FROM table_71132 WHERE "Competition" = 'bundesliga' AND "Apps." < '7' |
### Instruction:
CREATE TABLE table_8568 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank team akasvayu girona had with less than 311 rebounds?
### Response:
| SELECT MAX("Rank") FROM table_8568 WHERE "Team" = 'akasvayu girona' AND "Rebounds" < '311' |
### Instruction:
CREATE TABLE table_32997 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silver medals were won when there were 4 gold and 22 in total?
#... | SELECT MIN("Silver") FROM table_32997 WHERE "Gold" = '4' AND "Total" = '22' |
### Instruction:
CREATE TABLE table_70300 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface for the ga... | SELECT "Surface" FROM table_70300 WHERE "Partner" = 'tiya rolle' |
### Instruction:
CREATE TABLE table_53474 (
"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 home team score for... | SELECT "Home team score" FROM table_53474 WHERE "Home team" = 'st kilda' |
### Instruction:
CREATE TABLE table_1892 (
"No. in series" 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 provided above.
-- N... | SELECT "Original air date" FROM table_1892 WHERE "Directed by" = 'Chris Long' |
### Instruction:
CREATE TABLE table_26010 (
"Pos" real,
"Constructor" text,
"Chassis" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Power stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT MAX("Finishes") FROM table_26010 |
### Instruction:
CREATE TABLE table_72656 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for the shows featuring beet suga... | SELECT "Segment B" FROM table_72656 WHERE "Segment C" = 'Beet Sugar' |
### Instruction:
CREATE TABLE table_204_401 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"react" number,
"time" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name of athlete who came in fir... | SELECT "name" FROM table_204_401 WHERE "rank" = 1 |
### Instruction:
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
-- Using valid SQLite, answer the ... | SELECT company FROM entrepreneur ORDER BY money_requested DESC |
### Instruction:
CREATE TABLE table_204_662 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what week was the bye after ?
### Response:
| SELECT "week" FROM table_204_662 WHERE id = (SELECT id FROM table_204_662 WHERE "bye" = 1) - 1 |
### Instruction:
CREATE TABLE table_77963 (
"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 full amount of Total for Austria when the number of gold is les... | SELECT SUM("Total") FROM table_77963 WHERE "Nation" = 'austria' AND "Gold" < '0' |
### Instruction:
CREATE TABLE table_32640 (
"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 home team plays at glenfer... | SELECT "Home team" FROM table_32640 WHERE "Venue" = 'glenferrie oval' |
### Instruction:
CREATE TABLE table_43030 (
"Maximum Ceiling Temperature" text,
"Temperature Rating" text,
"Temperature Classification" text,
"Color Code (with Fusible Link)" text,
"Glass Bulb Color" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Temperature Classification" FROM table_43030 WHERE "Glass Bulb Color" = 'purple' |
### Instruction:
CREATE TABLE table_20343 (
"Name" text,
"Japanese" text,
"Date of designation" text,
"Date of reclassification" text,
"Region" text,
"Prefecture" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name thenames for 2002-04-01
### ... | SELECT "Name" FROM table_20343 WHERE "Date of designation" = '2002-04-01' |
### Instruction:
CREATE TABLE table_2878 (
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production Code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the... | SELECT "Director" FROM table_2878 WHERE "Writer(s)" = 'Jason Yoshimura' |
### Instruction:
CREATE TABLE table_5134 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the Final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Final that has a Date of january 10, 2004 had what opponent?
### Respon... | SELECT "Opponent in the Final" FROM table_5134 WHERE "Date" = 'january 10, 2004' |
### Instruction:
CREATE TABLE table_22791 (
"Year" real,
"Host" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text,
"5th Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st place when Pennsylvania ... | SELECT "1st Place" FROM table_22791 WHERE "2nd Place" = 'Pennsylvania' |
### Instruction:
CREATE TABLE table_73567 (
"Order number" text,
"Build date" text,
"Serial numbers" text,
"Country" text,
"Railroad" text,
"Numbers" text,
"Quantity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many railroads have the... | SELECT COUNT("Railroad") FROM table_73567 WHERE "Numbers" = '864-873' |
### Instruction:
CREATE TABLE table_2654 (
"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.
-- What is the final... | SELECT "Score in the final" FROM table_2654 WHERE "Partner" = 'Woodforde' |
### Instruction:
CREATE TABLE table_6767 (
"SANSKRT" text,
"CHINESE" text,
"VIETNAMESE" text,
"JAPANESE" text,
"KOREAN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which SANSKRT has a CHINESE of / m n lu ?
### Response:
| SELECT "SANSKRT" FROM table_6767 WHERE "CHINESE" = '摩拏羅 / mónáluó' |
### Instruction:
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE table_58719 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country scored 66-65-66-72=269?
### Response:
| SELECT "Country" FROM table_58719 WHERE "Score" = '66-65-66-72=269' |
### Instruction:
CREATE TABLE table_63544 (
"Children of Earth" text,
"Run time" text,
"Writer" text,
"Director" text,
"Original airdate" text,
"Viewers (including HD) in millions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many viewers ... | SELECT "Viewers (including HD) in millions" FROM table_63544 WHERE "Children of Earth" = 'day one' |
### Instruction:
CREATE TABLE table_24620684_2 (
clean_electric_grid_california__san_francisco_ VARCHAR,
vehicle VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When bmw activee is the vehicle type how many clean electric grid california (san francisco) measu... | SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_24620684_2 WHERE vehicle = "BMW ActiveE" |
### Instruction:
CREATE TABLE table_203_345 (
id number,
"name" text,
"party" text,
"took office" number,
"left office" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which progressive party member took office after a liberal ?
### Response:
| SELECT "name" FROM table_203_345 WHERE "party" = 'progressive' AND id = (SELECT id FROM table_203_345 WHERE "party" = 'liberal') + 1 |
### Instruction:
CREATE TABLE table_6936 (
"Name" text,
"Stories" real,
"Height" text,
"Built" text,
"Purpose" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of the home with stories greater than 22 and built in... | SELECT "Height" FROM table_6936 WHERE "Stories" > '22' AND "Built" = '2009' |
### Instruction:
CREATE TABLE table_name_60 (
film_name VARCHAR,
year VARCHAR,
music_director VARCHAR,
language VARCHAR,
lyricist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 1979 Hindi film had Ravindra Jain directing music?
### Respons... | SELECT film_name FROM table_name_60 WHERE language = "hindi" AND lyricist = "ravindra jain" AND music_director = "ravindra jain" AND year = 1979 |
### Instruction:
CREATE TABLE table_203_364 (
id number,
"year" number,
"driver" text,
"nation of citizenship" text,
"racing series" text,
"type of vehicle" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver won espy awards 11 years apa... | SELECT "driver" FROM table_203_364 GROUP BY "driver" HAVING MAX("year") - MIN("year") = 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.