text
stringlengths 400
694
| __index_level_0__
int64 6
25k
|
---|---|
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the record for december 8 ### Input: CREATE TABLE table_25811 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) ### Response: SELECT "Record" FROM table_25811 WHERE "Date" = 'December 8' | 18,622 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the code of 1.5 dci 110, which has a capacity of 1,461cc? ### Input: CREATE TABLE table_name_7 (
code VARCHAR,
capacity VARCHAR,
name VARCHAR
) ### Response: SELECT code FROM table_name_7 WHERE capacity = "1,461cc" AND name = "1.5 dci 110" | 22,090 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many points did he average in 1964? ### Input: CREATE TABLE table_69424 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) ### Response: SELECT AVG("Points") FROM table_69424 WHERE "Year" = '1964' | 134 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What location has tatsuhito takaiwa as the wrestler? ### Input: CREATE TABLE table_37027 (
"Wrestler" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
) ### Response: SELECT "Location" FROM table_37027 WHERE "Wrestler" = 'tatsuhito takaiwa' | 4,241 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the number of virtual for NBC ### Input: CREATE TABLE table_19453 (
"Virtual" real,
"Physical" real,
"Call sign" text,
"Branding" text,
"Network" text,
"Owner" text
) ### Response: SELECT COUNT("Virtual") FROM table_19453 WHERE "Network" = 'NBC' | 11,441 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which production codes were written by andrew goldberg ### Input: CREATE TABLE table_28520 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) ### Response: SELECT "Production code" FROM table_28520 WHERE "Written by" = 'Andrew Goldberg' | 9,867 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Pick has a Player of chuck bryant, and an NFL Club of san diego chargers? ### Input: CREATE TABLE table_59756 (
"Player" text,
"Draft" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) ### Response: SELECT "Pick" FROM table_59756 WHERE "Player" = 'chuck bryant' AND "NFL Club" = 'san diego chargers' | 22,161 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What genre is the song recorded in 1929? ### Input: CREATE TABLE table_59657 (
"Year recorded" text,
"Title" text,
"Genre" text,
"Label" text,
"Year inducted" text
) ### Response: SELECT "Genre" FROM table_59657 WHERE "Year recorded" = '1929' | 14,179 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Stations of 16 is assigned what length? ### Input: CREATE TABLE table_4616 (
"Line" text,
"Color" text,
"Terminus" text,
"Length" text,
"Stations" text,
"Daily Ridership" real
) ### Response: SELECT "Length" FROM table_4616 WHERE "Stations" = '16' | 7,408 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What the score of the 1992 game? ### Input: CREATE TABLE table_66062 (
"Year" text,
"Champions" text,
"Score" text,
"Runners-up" text,
"Venue" text
) ### Response: SELECT "Score" FROM table_66062 WHERE "Year" = '1992' | 12,768 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What league has an average attendance of 1452? ### Input: CREATE TABLE table_22965 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"U.S. Open Cup" text,
"Avg. Attendance" real
) ### Response: SELECT "League" FROM table_22965 WHERE "Avg. Attendance" = '1452' | 2,785 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is every English translation when Tamil months is M rkazhi, Tai? ### Input: CREATE TABLE table_1740431_3 (
english_translation VARCHAR,
tamil_months VARCHAR
) ### Response: SELECT english_translation FROM table_1740431_3 WHERE tamil_months = "mārkazhi, tai" | 6,353 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many dollars is listed under Sydney when the distance is 10km? ### Input: CREATE TABLE table_31019 (
"Distance" text,
"Adelaide" text,
"Brisbane" text,
"Canberra" text,
"Melbourne" text,
"Perth" text,
"Sydney" text
) ### Response: SELECT "Sydney" FROM table_31019 WHERE "Distance" = '10km' | 4,973 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many years did the school have a mathetmatics score of 98.02? ### Input: CREATE TABLE table_27575 (
"School Year" text,
"Language" text,
"Science" text,
"Reading" text,
"Mathematics" text,
"Social Studies" text
) ### Response: SELECT COUNT("Science") FROM table_27575 WHERE "Mathematics" = '98.02' | 3,405 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many episodes are titled 'Cops & Robbers'? ### Input: CREATE TABLE table_26435 (
"No. by series" real,
"No. by season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production number" real,
"U.S. viewers (in millions)" text
) ### Response: SELECT COUNT("No. by season") FROM table_26435 WHERE "Title" = 'Cops & Robbers' | 2,896 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What result in the table is from the year 2012? ### Input: CREATE TABLE table_70327 (
"Year" real,
"Award" text,
"Category" text,
"Nominated Work" text,
"Result" text
) ### Response: SELECT "Result" FROM table_70327 WHERE "Year" = '2012' | 4,964 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the full names and ages for all female students whose sex is F? ### Input: CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
) ### Response: SELECT fname, lname, age FROM student WHERE sex = 'F' | 224 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what was the top thrust achieved by a lyul ` ka engine before 1980 ? ### Input: CREATE TABLE table_203_823 (
id number,
"model name" text,
"date" text,
"type" text,
"thrust (kg) / power (eshp)" text,
"fitted to" text
) ### Response: SELECT "thrust (kg) / power (eshp)" FROM table_203_823 ORDER BY "thrust (kg) / power (eshp)" DESC LIMIT 1 | 2,247 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the name of her last album produced with rock records ? ### Input: CREATE TABLE table_203_276 (
id number,
"album#" text,
"english title" text,
"chinese (traditional)" text,
"chinese (simplified)" text,
"release date" text,
"label" text
) ### Response: SELECT "english title" FROM table_203_276 WHERE "label" = 'rock records' ORDER BY id DESC LIMIT 1 | 24,999 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the team performance in 1977? ### Input: CREATE TABLE table_36474 (
"Year" real,
"NFL Team" text,
"Position" text,
"Team Defense Rank" real,
"Team Performance" text
) ### Response: SELECT "Team Performance" FROM table_36474 WHERE "Year" = '1977' | 17,236 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Plot a scatter chart, people id by snatch. ### Input: CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
) ### Response: SELECT People_ID, Snatch FROM body_builder | 1,747 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the notes for the shirt that says +1 in the kit supplied by Rapido? ### Input: CREATE TABLE table_33725 (
"Year" real,
"Kit Supplier" text,
"Sponsor" text,
"Shirt Printing" text,
"Notes" text
) ### Response: SELECT "Notes" FROM table_33725 WHERE "Kit Supplier" = 'rapido' AND "Shirt Printing" = '名品+1' | 16,888 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the largest number of events with the Masters Tournament and less than 4 in the top-25? ### Input: CREATE TABLE table_7816 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) ### Response: SELECT MAX("Events") FROM table_7816 WHERE "Tournament" = 'masters tournament' AND "Top-25" < '4' | 2,077 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponent when Devin Gardner was the player? ### Input: CREATE TABLE table_28313 (
"Rank" real,
"Player" text,
"Year" real,
"Opponent" text,
"Passing yards" real,
"Rushing yards" real,
"Total offense" real
) ### Response: SELECT "Opponent" FROM table_28313 WHERE "Player" = 'Devin Gardner' | 18,401 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: With a Division II of Portsmouth, what is the Division IV? ### Input: CREATE TABLE table_15118 (
"Year" real,
"Division I" text,
"Division II" text,
"Division III" text,
"Division IV" text,
"Division V" text
) ### Response: SELECT "Division IV" FROM table_15118 WHERE "Division III" = 'portsmouth' | 8,011 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many parties are there in races involving Dawson Mathis? ### Input: CREATE TABLE table_18316 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) ### Response: SELECT COUNT("Party") FROM table_18316 WHERE "Incumbent" = 'Dawson Mathis' | 22,311 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Away team has a Score of 0 3? ### Input: CREATE TABLE table_36000 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) ### Response: SELECT "Away team" FROM table_36000 WHERE "Score" = '0–3' | 563 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: After the year 2011, when the Canada - USA Rank was 46th, what was the League Rank? ### Input: CREATE TABLE table_7178 (
"Year" real,
"League" text,
"Average Attendance" real,
"# of Home Games" real,
"League Rank" text,
"Canada - USA Rank" text
) ### Response: SELECT "League Rank" FROM table_7178 WHERE "Year" > '2011' AND "Canada - USA Rank" = '46th' | 17,059 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the first elected year of the district that Ed Towns is an incumbent of? ### Input: CREATE TABLE table_18154 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
) ### Response: SELECT "First elected" FROM table_18154 WHERE "Incumbent" = 'Ed Towns' | 15,827 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc ( c)? ### Input: CREATE TABLE table_2282444_1 (
t_c__ VARCHAR,
magnet VARCHAR
) ### Response: SELECT COUNT(t_c__) AS °c_ FROM table_2282444_1 WHERE magnet = "Nd 2 Fe 14 B (bonded)" | 3,128 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total number of games played against the Buffalo Sabres? ### Input: CREATE TABLE table_37994 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
) ### Response: SELECT COUNT("Game") FROM table_37994 WHERE "Opponent" = 'buffalo sabres' | 1,444 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was St Kilda's away team score? ### Input: CREATE TABLE table_4756 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Away team score" FROM table_4756 WHERE "Away team" = 'st kilda' | 2,578 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what model was in service the least ? ### Input: CREATE TABLE table_204_295 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" number,
"notes" text
) ### Response: SELECT "model" FROM table_204_295 ORDER BY "in service" LIMIT 1 | 21,954 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Name listed for the Nickname of Storm? ### Input: CREATE TABLE table_64644 (
"Name" text,
"Nickname" text,
"Location" text,
"Home ground(s)" text,
"Coach" text,
"Captain" text
) ### Response: SELECT "Name" FROM table_64644 WHERE "Nickname" = 'storm' | 1,241 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the record after the game on May 1, 2004? ### Input: CREATE TABLE table_44553 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
) ### Response: SELECT "Record" FROM table_44553 WHERE "Date" = 'may 1, 2004' | 7,898 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On which date did episode # 18 air in the U.S.? ### Input: CREATE TABLE table_28724 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. air date" text,
"Production code" text,
"U.S. viewers (million)" text
) ### Response: SELECT "U.S. air date" FROM table_28724 WHERE "#" = '18' | 8,422 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who is the away team when the away team score is 10.12 (72)? ### Input: CREATE TABLE table_52260 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) ### Response: SELECT "Away team" FROM table_52260 WHERE "Away team score" = '10.12 (72)' | 17,913 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against smaller than 32? ### Input: CREATE TABLE table_name_17 (
goals_for INTEGER,
goals_against VARCHAR,
position VARCHAR,
wins VARCHAR
) ### Response: SELECT MIN(goals_for) FROM table_name_17 WHERE position < 16 AND wins < 19 AND goals_against < 32 | 3,628 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the first team when the second team was Kalise Gran Canaria? ### Input: CREATE TABLE table_48965 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) ### Response: SELECT "Team #1" FROM table_48965 WHERE "Team #2" = 'kalise gran canaria' | 12,863 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found? ### Input: CREATE TABLE table_50337 (
"Team" text,
"Winners" real,
"Runners-Up" real,
"Years Won" text,
"Years Runner-Up" text
) ### Response: SELECT MIN("Runners-Up") FROM table_50337 WHERE "Team" = 'pachuca' AND "Winners" > '1' | 7,567 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of Money ($), when Score is 70-71-70-69=280? ### Input: CREATE TABLE table_name_43 (
money___ INTEGER,
score VARCHAR
) ### Response: SELECT SUM(money___) AS $__ FROM table_name_43 WHERE score = 70 - 71 - 70 - 69 = 280 | 21,816 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who has held the most records ? ### Input: CREATE TABLE table_204_550 (
id number,
"event" text,
"record" text,
"athlete" text,
"date" text,
"meet" text,
"place" text
) ### Response: SELECT "athlete" FROM table_204_550 GROUP BY "athlete" ORDER BY COUNT(*) DESC LIMIT 1 | 1,982 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the number of drivers who did n't finish the race due to engine trouble ? ### Input: CREATE TABLE table_204_641 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) ### Response: SELECT COUNT("driver") FROM table_204_641 WHERE "time/retired" = 'engine' | 1,176 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: WHo has a Position of end and a School/Club Team of oregon state? ### Input: CREATE TABLE table_36511 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) ### Response: SELECT "Player" FROM table_36511 WHERE "Position" = 'end' AND "School/Club Team" = 'oregon state' | 4,974 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the prior position held by Wyman Webb? ### Input: CREATE TABLE table_75785 (
"Name" text,
"Appointed" text,
"Prior position" text,
"Province" text,
"Nominated by" text
) ### Response: SELECT "Prior position" FROM table_75785 WHERE "Name" = 'wyman webb' | 6,261 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was released on 1936-08-29? ### Input: CREATE TABLE table_63755 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
) ### Response: SELECT "Title" FROM table_63755 WHERE "Release date" = '1936-08-29' | 4,446 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which PAL M has a PAL I of 50HZ? ### Input: CREATE TABLE table_44198 (
"NTSC M" text,
"PAL B,G,H" text,
"PAL I" text,
"PAL N" text,
"PAL M" text
) ### Response: SELECT "PAL M" FROM table_44198 WHERE "PAL I" = '50hz' | 12,864 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many actors are there? ### Input: CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
) ### Response: SELECT COUNT(*) FROM actor | 14,358 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which contestant is from the province of baoruco ### Input: CREATE TABLE table_26661 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
) ### Response: SELECT "Contestant" FROM table_26661 WHERE "Province, Community" = 'Baoruco' | 12,544 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the record for April 8? ### Input: CREATE TABLE table_55428 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) ### Response: SELECT "Record" FROM table_55428 WHERE "Date" = 'april 8' | 23,091 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What team in France had 15 UCi points? ### Input: CREATE TABLE table_57604 (
"Cyclist" text,
"Country" text,
"Team" text,
"Time" text,
"UCI Points" text
) ### Response: SELECT "Team" FROM table_57604 WHERE "Country" = 'france' AND "UCI Points" = '15' | 2,861 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the companies of entrepreneurs, ordered descending by amount of money requested? ### Input: 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
) ### Response: SELECT company FROM entrepreneur ORDER BY money_requested DESC | 3,717 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the Runs has a Venue of bellerive oval , hobart, and a Season of 2004/05, and a Rank of 5? ### Input: CREATE TABLE table_name_26 (
runs VARCHAR,
rank VARCHAR,
venue VARCHAR,
season VARCHAR
) ### Response: SELECT runs FROM table_name_26 WHERE venue = "bellerive oval , hobart" AND season = "2004/05" AND rank = "5" | 21,257 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Tell me the average gold for moldova and bronze less than 1 ### Input: CREATE TABLE table_51649 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT AVG("Gold") FROM table_51649 WHERE "Nation" = 'moldova' AND "Bronze" < '1' | 2,072 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For boozer (13) what is the high assists and high rebounds? ### Input: CREATE TABLE table_55336 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) ### Response: SELECT "High assists" FROM table_55336 WHERE "High rebounds" = 'boozer (13)' | 6,120 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Years as tallest of the Building with a Height ft (m) of 145 (44)? ### Input: CREATE TABLE table_61373 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
) ### Response: SELECT "Years as tallest" FROM table_61373 WHERE "Height ft (m)" = '145 (44)' | 1,656 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What district is the court located in Tolland? ### Input: CREATE TABLE table_29003 (
"District" real,
"Municipalities served" text,
"Judge of probate" text,
"Judges residence" text,
"Location of court" text
) ### Response: SELECT MAX("District") FROM table_29003 WHERE "Location of court" = 'Tolland' | 22,449 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the party affiliation of the incumbent Robert Cramer? ### Input: CREATE TABLE table_22118 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) ### Response: SELECT "Party" FROM table_22118 WHERE "Incumbent" = 'Robert Cramer' | 9,777 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the result for the best musical revival category? ### Input: CREATE TABLE table_37962 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) ### Response: SELECT "Result" FROM table_37962 WHERE "Category" = 'best musical revival' | 121 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many episodes were written by Alexander Woo and directed by Scott Winant? ### Input: CREATE TABLE table_26493520_1 (
title VARCHAR,
written_by VARCHAR,
directed_by VARCHAR
) ### Response: SELECT COUNT(title) FROM table_26493520_1 WHERE written_by = "Alexander Woo" AND directed_by = "Scott Winant" | 66 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Version of the CD release on June 12, 2008 in Cyprus? ### Input: CREATE TABLE table_name_82 (
version VARCHAR,
region VARCHAR,
format VARCHAR,
date VARCHAR
) ### Response: SELECT version FROM table_name_82 WHERE format = "cd" AND date = "june 12, 2008" AND region = "cyprus" | 12,164 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the names of players whose training hours is between 500 and 1500? ### Input: CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
) ### Response: SELECT pname FROM player WHERE hs BETWEEN 500 AND 1500 | 13,211 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When was the game played against Southampton? ### Input: CREATE TABLE table_11694 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text
) ### Response: SELECT "Date" FROM table_11694 WHERE "Opponent" = 'southampton' | 16,866 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the pick # of the player who has a hometown/school of Atlanta, GA? ### Input: CREATE TABLE table_65687 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
) ### Response: SELECT AVG("Pick") FROM table_65687 WHERE "Hometown/School" = 'atlanta, ga' | 19,162 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For airlines named Aeroflot Group, what is the alliance? ### Input: CREATE TABLE table_54138 (
"Rank" real,
"Airline/Holding" text,
"Passenger Fleet" real,
"Current Destinations" real,
"Alliance/ Association" text
) ### Response: SELECT "Alliance/ Association" FROM table_54138 WHERE "Airline/Holding" = 'aeroflot group' | 1,270 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the number of lost for against being 46 ### Input: CREATE TABLE table_20011 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
) ### Response: SELECT COUNT("Lost") FROM table_20011 WHERE "Against" = '46' | 10,257 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club? ### Input: CREATE TABLE table_name_79 (
position VARCHAR,
first_team_goals VARCHAR,
current_club VARCHAR
) ### Response: SELECT position FROM table_name_79 WHERE first_team_goals = "ongoing" AND current_club = "aston villa" | 7,147 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which area is the least dense ? ### Input: CREATE TABLE table_203_222 (
id number,
"category" text,
"#" number,
"name" text,
"hanzi" text,
"hanyu pinyin" text,
"population (2010 census)" number,
"area (km2)" number,
"density (/km2)" number
) ### Response: SELECT "name" FROM table_203_222 ORDER BY "density (/km2)" LIMIT 1 | 14,137 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the date of the poll with Silbert at 10.0%? ### Input: CREATE TABLE table_75621 (
"Source" text,
"Date" text,
"Goldberg" text,
"Murray" text,
"Silbert" text,
"Undecided" text
) ### Response: SELECT "Date" FROM table_75621 WHERE "Silbert" = '10.0%' | 17,174 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who published Star Citizen in 2014? ### Input: CREATE TABLE table_68681 (
"Title" text,
"Year" text,
"Developer" text,
"Publisher" text,
"Platform" text
) ### Response: SELECT "Publisher" FROM table_68681 WHERE "Year" = '2014' AND "Title" = 'star citizen' | 2,036 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Loan Club from Eng that ended on 22 February? ### Input: CREATE TABLE table_14702 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text,
"End Source" text
) ### Response: SELECT "Loan Club" FROM table_14702 WHERE "Country" = 'eng' AND "Ended" = '22 february' | 2,010 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the earliest year the new york jets won at harvard stadium? ### Input: CREATE TABLE table_36642 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) ### Response: SELECT MIN("Year") FROM table_36642 WHERE "Winner" = 'new york jets' AND "Location" = 'harvard stadium' | 10,057 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the sum of spectators for time more than 20.05 and team #2 of estonia ### Input: CREATE TABLE table_name_66 (
spectators INTEGER,
time___cest__ VARCHAR,
team__number2 VARCHAR
) ### Response: SELECT SUM(spectators) FROM table_name_66 WHERE time___cest__ > 20.05 AND team__number2 = "estonia" | 22,314 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of goals scored in regular league play by Mustoe where he scored 0 goals in the League Cup? ### Input: CREATE TABLE table_53428 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Total" real
) ### Response: SELECT SUM("League") FROM table_53428 WHERE "Name" = 'mustoe' AND "League Cup" < '0' | 3,514 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009? ### Input: CREATE TABLE table_name_32 (
Id VARCHAR
) ### Response: SELECT 2004 FROM table_name_32 WHERE 2005 = "a" AND 2009 = "q1" | 19,031 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the home team of the UEFA cup in the 2000-2001 season with a second round? ### Input: CREATE TABLE table_name_93 (
home VARCHAR,
round VARCHAR,
competition VARCHAR,
season VARCHAR
) ### Response: SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round" | 15,703 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what type of organization is sigma phi omega? ### Input: CREATE TABLE table_27627 (
"Letters" text,
"Organization" text,
"Nickname" text,
"Founding Date" text,
"Founding University" text,
"Type" text
) ### Response: SELECT "Type" FROM table_27627 WHERE "Organization" = 'Sigma Phi Omega' | 1,940 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the Japanese characters for the Chinese word ? ### Input: CREATE TABLE table_45719 (
"Japanese" text,
"R\u014dmaji" text,
"Meaning" text,
"Chinese" text,
"Romanization" text,
"Source language" text
) ### Response: SELECT "Japanese" FROM table_45719 WHERE "Chinese" = '叉焼' | 4,112 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Centerfold model has a Date of 3-01? ### Input: CREATE TABLE table_39776 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"20 Questions" text,
"Pictorials" text
) ### Response: SELECT "Centerfold model" FROM table_39776 WHERE "Date" = '3-01' | 15,551 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the power in KW of the transmitter situated in Borongan? ### Input: CREATE TABLE table_27055 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Power kW" text,
"Station Type" text,
"Location (Transmitter site)" text
) ### Response: SELECT "Power kW" FROM table_27055 WHERE "Location (Transmitter site)" = 'Borongan' | 16,858 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where Result is nominated and Organization is 54th the television academy drama awards, what is the award? ### Input: CREATE TABLE table_11356 (
"Year" real,
"Organization" text,
"Award" text,
"Work" text,
"Result" text
) ### Response: SELECT "Award" FROM table_11356 WHERE "Result" = 'nominated' AND "Organization" = '54th the television academy drama awards' | 1,190 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: cardiogenic shock ### Input: CREATE TABLE table_train_53 (
"id" int,
"immune_suppression" bool,
"need_hemodialysis" bool,
"steroid_therapy" bool,
"cardiogenic_shock" bool,
"hematologic_disease" bool,
"coronary_syndrome" bool,
"NOUSE" float
) ### Response: SELECT * FROM table_train_53 WHERE cardiogenic_shock = 1 | 5,764 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the maximum bush# with others% being 1.57% ### Input: CREATE TABLE table_18861 (
"Parish" text,
"Bush#" real,
"Bush%" text,
"Kerry#" real,
"Kerry%" text,
"Others#" real,
"Others%" text,
"Total#" real
) ### Response: SELECT MAX("Bush#") FROM table_18861 WHERE "Others%" = '1.57%' | 861 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what are the number of times model 25 is listed on this chart ? ### Input: CREATE TABLE table_203_136 (
id number,
"year" number,
"ibm model number" text,
"name" text,
"processor" text,
"bus" text,
"hd interface" text,
"case" text,
"notes" text
) ### Response: SELECT COUNT(*) FROM table_203_136 WHERE "name" = 'model 25' | 19,735 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many times have Central Crossing won the OCC Championship? ### Input: CREATE TABLE table_49702 (
"School" text,
"Years of Participation" text,
"OCC Championships" real,
"Last OCC Championship" text,
"Last Outright OCC Championship" text
) ### Response: SELECT SUM("OCC Championships") FROM table_49702 WHERE "School" = 'central crossing' | 3,085 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the production code of the episode that was watched by 3.81 million U.S. viewers? ### Input: CREATE TABLE table_29054902_1 (
production_code VARCHAR,
us_viewers__million_ VARCHAR
) ### Response: SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81" | 11,974 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which H/A/N has a score of 105* ? ### Input: CREATE TABLE table_61520 (
"Score" text,
"Pos." real,
"Inn." real,
"Venue" text,
"H/A/N" text
) ### Response: SELECT "H/A/N" FROM table_61520 WHERE "Score" = '105*♠' | 14,423 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the loss for the angels opponent ### Input: CREATE TABLE table_69727 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) ### Response: SELECT "Loss" FROM table_69727 WHERE "Opponent" = 'angels' | 6,558 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show id and location of railways that are associated with more than one train. ### Input: CREATE TABLE train (
Railway_ID VARCHAR
)
CREATE TABLE railway (
Location VARCHAR,
Railway_ID VARCHAR
) ### Response: SELECT T2.Railway_ID, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 1 | 5,784 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what was the first date of the first international competition ? ### Input: CREATE TABLE table_203_6 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) ### Response: SELECT "date" FROM table_203_6 ORDER BY id LIMIT 1 | 18,998 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the home team on April 13, 2008 when Itabuna was the away team? ### Input: CREATE TABLE table_name_80 (
home_team VARCHAR,
date VARCHAR,
away_team VARCHAR
) ### Response: SELECT home_team FROM table_name_80 WHERE date = "april 13, 2008" AND away_team = "itabuna" | 3,722 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving? ### Input: CREATE TABLE table_name_87 (
entries INTEGER,
front_row_starts VARCHAR,
driver VARCHAR
) ### Response: SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = "michael schumacher" | 24,568 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the score of the game played when the team was 16-17? ### Input: CREATE TABLE table_21319 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) ### Response: SELECT "Score" FROM table_21319 WHERE "Record" = '16-17' | 9,885 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident as the time, and a grid less than 14? ### Input: CREATE TABLE table_name_64 (
rider VARCHAR,
grid VARCHAR,
time VARCHAR,
laps VARCHAR,
bike VARCHAR
) ### Response: SELECT rider FROM table_name_64 WHERE laps < 20 AND bike = "ducati 1098 rs 08" AND time = "accident" AND grid < 14 | 6,391 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the names of the artists who are from UK and have produced English songs. ### Input: CREATE TABLE artist (
artist_name VARCHAR,
country VARCHAR,
languages VARCHAR
)
CREATE TABLE song (
artist_name VARCHAR,
country VARCHAR,
languages VARCHAR
) ### Response: SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | 10,261 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the id of the instructor who advises of all students from History department? ### Input: CREATE TABLE student (
id VARCHAR,
dept_name VARCHAR
)
CREATE TABLE advisor (
s_id VARCHAR
) ### Response: SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' | 2,865 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which lane ranked less than 4 for the Netherlands? ### Input: CREATE TABLE table_14357 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) ### Response: SELECT "Lane" FROM table_14357 WHERE "Rank" < '4' AND "Nationality" = 'netherlands' | 18,809 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: available subnets leading total is? ### Input: CREATE TABLE table_19704 (
"Prefix size" text,
"Network mask" text,
"Available subnets" real,
"Usable hosts per subnet" real,
"Total usable hosts" real
) ### Response: SELECT MAX("Available subnets") FROM table_19704 | 19,216 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Position, when School/Club Team is McMaster? ### Input: CREATE TABLE table_48609 (
"Round" real,
"Pick" text,
"Player" text,
"Position" text,
"School/Club Team" text
) ### Response: SELECT "Position" FROM table_48609 WHERE "School/Club Team" = 'mcmaster' | 1,174 |
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the unique types of player positions in the tryout? ### Input: CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
) ### Response: SELECT COUNT(DISTINCT ppos) FROM tryout | 3,555 |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 48