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: after what year were austevoll mayors affiliated with political parties ? ### Input: CREATE TABLE table_201_10 (
id number,
"#" number,
"name" text,
"office" text,
"political party" text,
"occupation" text
) ### Response: SELECT "office" FROM table_201_10 WHERE "political party" IS NULL ORDER BY "office" DESC LIMIT 1 | 17,420 |
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 result for friendly competition on 9 october 2010 ### Input: CREATE TABLE table_53754 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) ### Response: SELECT "Result" FROM table_53754 WHERE "Competition" = 'friendly' AND "Date" = '9 october 2010' | 24,706 |
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 games were played in the season? ### Input: CREATE TABLE table_20359 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) ### Response: SELECT MAX("Game") FROM table_20359 | 6,530 |
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 percentage of democratic voters in which the registered voters is 67.8%? ### Input: CREATE TABLE table_27003223_4 (
democratic VARCHAR,
registered_voters VARCHAR
) ### Response: SELECT democratic FROM table_27003223_4 WHERE registered_voters = "67.8%" | 16,171 |
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 titles of episodes directed by whitney ransick? ### Input: CREATE TABLE table_4076 (
"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 "Title" FROM table_4076 WHERE "Directed by" = 'Whitney Ransick' | 4,419 |
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 films participated in the 61st Berlin international film festival? ### Input: CREATE TABLE table_29644931_1 (
participants_recipients VARCHAR,
film_festival VARCHAR
) ### Response: SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = "61st Berlin International film_festival" | 5,229 |
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 away team when the VFL played at MCG? ### Input: CREATE TABLE table_74575 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Away team" FROM table_74575 WHERE "Venue" = 'mcg' | 18,543 |
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 home team score of 13.16 (94)? ### Input: CREATE TABLE table_57404 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Home team" FROM table_57404 WHERE "Home team score" = '13.16 (94)' | 3,415 |
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 pages per minute for the Xerox Travel Scanner 100? ### Input: CREATE TABLE table_16409745_1 (
pages_per_minute__color_ INTEGER,
product VARCHAR
) ### Response: SELECT MAX(pages_per_minute__color_) FROM table_16409745_1 WHERE product = "Xerox Travel Scanner 100" | 12,125 |
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 were in attendance with a score of 0:1? ### Input: CREATE TABLE table_5528 (
"Venue" text,
"Home" text,
"Guest" text,
"Score" text,
"Attendance" real
) ### Response: SELECT "Attendance" FROM table_5528 WHERE "Score" = '0:1' | 17,363 |
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 number of 1 acts were there ? ### Input: CREATE TABLE table_203_501 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text
) ### Response: SELECT COUNT(*) FROM table_203_501 WHERE "sub\u00addivisions" = '1 act' | 13,202 |
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 away team score in the game at Arden Street Oval? ### Input: CREATE TABLE table_32550 (
"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_32550 WHERE "Venue" = 'arden street oval' | 2,492 |
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 method was there in round 1 when the location was Aruba? ### Input: CREATE TABLE table_62561 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) ### Response: SELECT "Method" FROM table_62561 WHERE "Round" = '1' AND "Location" = 'aruba' | 4,376 |
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 To Par, when Year(s) Won is '1978 , 1985'? ### Input: CREATE TABLE table_46205 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) ### Response: SELECT SUM("To par") FROM table_46205 WHERE "Year(s) won" = '1978 , 1985' | 4,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: Which region had a year March 10, 1998? ### Input: CREATE TABLE table_60783 (
"Region" text,
"Year" text,
"Label" text,
"Format" text,
"Catalog" text
) ### Response: SELECT "Region" FROM table_60783 WHERE "Year" = 'march 10, 1998' | 1,666 |
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 country is the only country with at least 20 gold medals ? ### Input: CREATE TABLE table_203_716 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) ### Response: SELECT "nation" FROM table_203_716 WHERE "gold" >= 20 | 14,155 |
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: Difference of - 20, and a Position smaller than 17 is the highest against? ### Input: CREATE TABLE table_37850 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) ### Response: SELECT MAX("Against") FROM table_37850 WHERE "Difference" = '- 20' AND "Position" < '17' | 16,801 |
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 country came in first place ? ### Input: CREATE TABLE table_203_600 (
id number,
"rank" text,
"country" text,
"winners" number,
"runners-up" number,
"finals total" number
) ### Response: SELECT "country" FROM table_203_600 WHERE "rank" = 1 | 5,937 |
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 location for win with record of 8-5 ### Input: CREATE TABLE table_54313 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) ### Response: SELECT "Location" FROM table_54313 WHERE "Res." = 'win' AND "Record" = '8-5' | 9,707 |
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: Draw a bar chart for what is the average age for each gender?, and could you show by the Y from low to high please? ### Input: CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) ### Response: SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) | 16,338 |
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 type of printer ports in the model number EX Plus3? ### Input: CREATE TABLE table_609 (
"Model number" text,
"Printer ports" text,
"Network ports" text,
"Network protocols" text,
"Firmware" text,
"Notes" text
) ### Response: SELECT "Printer ports" FROM table_609 WHERE "Model number" = 'EX Plus3' | 11,032 |
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 total candidates when registered voters is 47742? ### Input: CREATE TABLE table_2676980_4 (
total_candidates VARCHAR,
registered_voters VARCHAR
) ### Response: SELECT total_candidates FROM table_2676980_4 WHERE registered_voters = 47742 | 3,013 |
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 Outcome has aN Opponent of pascale paradis-mangon? ### Input: CREATE TABLE table_36289 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) ### Response: SELECT "Outcome" FROM table_36289 WHERE "Opponent" = 'pascale paradis-mangon' | 4,191 |
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 year had the least net profit ? ### Input: CREATE TABLE table_203_847 (
id number,
"financial year" text,
"turnover" text,
"profit before tax" text,
"net profit" text,
"partner bonuses" text,
"profit retained" text
) ### Response: SELECT "financial year" FROM table_203_847 ORDER BY "net profit" LIMIT 1 | 55 |
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 country associated with the date in 2003? ### Input: CREATE TABLE table_12902 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
) ### Response: SELECT "Country" FROM table_12902 WHERE "Date" = '2003' | 3,990 |
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 are the recipients in 1994? ### Input: CREATE TABLE table_64774 (
"Year" real,
"Category" text,
"Recipients and nominees" text,
"Role/Episode" text,
"Result" text
) ### Response: SELECT "Recipients and nominees" FROM table_64774 WHERE "Year" = '1994' | 4,430 |
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 chipset in the Precision 340 model that has the rambus memory and 400 or 533 FSB (MHz)? ### Input: CREATE TABLE table_name_17 (
chipset VARCHAR,
model VARCHAR,
memory VARCHAR,
fsb__mhz_ VARCHAR
) ### Response: SELECT chipset FROM table_name_17 WHERE memory = "rambus" AND fsb__mhz_ = "400 or 533" AND model = "precision 340" | 1,828 |
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 least total when there are more than 2 golds and fewer than 0 silver? ### Input: CREATE TABLE table_12956 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT MIN("Total") FROM table_12956 WHERE "Gold" > '2' AND "Silver" < '0' | 11,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: who is the opponent on 18 january 1993? ### Input: CREATE TABLE table_77184 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) ### Response: SELECT "Opponent" FROM table_77184 WHERE "Date" = '18 january 1993' | 10,586 |
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 minimum lowest with highest being 2363 ### Input: CREATE TABLE table_903 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) ### Response: SELECT MIN("Lowest") FROM table_903 WHERE "Highest" = '2363' | 5,149 |
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 Money ($) of the game with a score of 69-74-70-73=286? ### Input: CREATE TABLE table_name_57 (
money___ INTEGER,
score VARCHAR
) ### Response: SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286 | 4,621 |
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 Time/Retired of 80 laps with a Grid larger than 2? ### Input: CREATE TABLE table_57729 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) ### Response: SELECT "Time/Retired" FROM table_57729 WHERE "Laps" = '80' AND "Grid" > '2' | 4,021 |
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 type of disc by Logistics after 2004? ### Input: CREATE TABLE table_10359 (
"Catalogue Number" text,
"Artist" text,
"Tracks" text,
"Type" text,
"Year" real
) ### Response: SELECT "Type" FROM table_10359 WHERE "Year" > '2004' AND "Artist" = 'logistics' | 4,460 |
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's the incumbent in the district that first elected in 1969? ### Input: CREATE TABLE table_18169 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) ### Response: SELECT "Incumbent" FROM table_18169 WHERE "First elected" = '1969' | 22,536 |
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 round where the gt winning car is max angelelli? ### Input: CREATE TABLE table_30529 (
"Rnd" real,
"Date" text,
"Circuit" text,
"Supporting" text,
"Distance" text,
"GT Winning Car" text,
"TC Winning Car" text
) ### Response: SELECT MIN("Rnd") FROM table_30529 WHERE "GT Winning Car" = 'Max Angelelli' | 9,028 |
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 capacity for Sangre Grande Ground, home of the North East Stars? ### Input: CREATE TABLE table_26509 (
"Team" text,
"Location" text,
"Stadium" text,
"Capacity" real,
"Manager" text,
"Captain" text
) ### Response: SELECT COUNT("Capacity") FROM table_26509 WHERE "Team" = 'North East Stars' | 16,158 |
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 segment A on episode 237? ### Input: CREATE TABLE table_19924 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) ### Response: SELECT "Segment A" FROM table_19924 WHERE "Episode" = '237' | 4,369 |
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 first elected in 1944 ### Input: CREATE TABLE table_18465 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) ### Response: SELECT "Result" FROM table_18465 WHERE "First elected" = '1944' | 1,068 |
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: total number of middle earth video games published by melbourne house ### Input: CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
) ### Response: SELECT COUNT("title") FROM table_204_398 WHERE "publisher" = 'melbourne house' | 13,196 |
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 films is she currently filming ? ### Input: CREATE TABLE table_204_57 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
) ### Response: SELECT COUNT("film") FROM table_204_57 WHERE "notes" = 'filming' | 7,536 |
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 building at 10 court street built ? ### Input: CREATE TABLE table_204_749 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" number
) ### Response: SELECT "dates of use" FROM table_204_749 WHERE "street address" = '10 court street' | 536 |
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 for bronze with a rank of 19? ### Input: CREATE TABLE table_34036 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT MAX("Bronze") FROM table_34036 WHERE "Rank" = '19' | 20,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: What School/Club Team is Player Aaron Williams from? ### Input: CREATE TABLE table_51730 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) ### Response: SELECT "School/Club Team" FROM table_51730 WHERE "Player" = 'aaron williams' | 452 |
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 did Melbourne score as the home team? ### Input: CREATE TABLE table_53627 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Home team score" FROM table_53627 WHERE "Home team" = 'melbourne' | 882 |
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 players had overall 78? ### Input: CREATE TABLE table_17212 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
) ### Response: SELECT COUNT("Player") FROM table_17212 WHERE "Overall" = '78' | 2,992 |
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 indoor track status for the school that has yes for tennis and no for golf? ### Input: CREATE TABLE table_9590 (
"School" text,
"Base" text,
"Bask" text,
"Golf" text,
"Soccer" text,
"Swimming" text,
"Tennis" text,
"Indoor track" text
) ### Response: SELECT "Indoor track" FROM table_9590 WHERE "Tennis" = 'yes' AND "Golf" = 'no' | 7,890 |
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 Position has Goals For of 52, and Goals Against larger than 70? ### Input: CREATE TABLE table_name_51 (
position INTEGER,
goals_for VARCHAR,
goals_against VARCHAR
) ### Response: SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70 | 6,589 |
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 average of all Heats of competitors with a Time of 59.11 and a lane higher than 3? ### Input: CREATE TABLE table_14927 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) ### Response: SELECT AVG("Heat") FROM table_14927 WHERE "Time" = '59.11' AND "Lane" > '3' | 1,389 |
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: Club warrnambool has less than 9 wins and what average of draws? ### Input: CREATE TABLE table_64312 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
) ### Response: SELECT AVG("Draws") FROM table_64312 WHERE "Wins" < '9' AND "Club" = 'warrnambool' | 15,679 |
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 season # for the production code 3.89? ### Input: CREATE TABLE table_31120 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) ### Response: SELECT "Season #" FROM table_31120 WHERE "Production code" = '3.89' | 6,140 |
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 last episode in the series written by Gregory S. Malins? ### Input: CREATE TABLE table_27714985_1 (
no_s__in_series INTEGER,
written_by VARCHAR
) ### Response: SELECT MAX(no_s__in_series) FROM table_27714985_1 WHERE written_by = "Gregory S. Malins" | 10,720 |
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 last movie joya ahsan played in ? ### Input: CREATE TABLE table_203_18 (
id number,
"year" number,
"film" text,
"role" text,
"co-star" text,
"director" text,
"notes" text
) ### Response: SELECT "film" FROM table_203_18 ORDER BY id DESC LIMIT 1 | 6,464 |
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 tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25? ### Input: CREATE TABLE table_name_35 (
tournament VARCHAR,
top_25 VARCHAR,
cuts_made VARCHAR,
wins VARCHAR
) ### Response: SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1 | 14,074 |
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 average Round, when Player is 'Gurnest Brown', and when Pick # is greater than 180? ### Input: CREATE TABLE table_49237 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) ### Response: SELECT AVG("Round") FROM table_49237 WHERE "Player" = 'gurnest brown' AND "Pick #" > '180' | 13,240 |
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 Date has a Runner(s)-up of bernhard langer, and a Tournament of at&t championship? ### Input: CREATE TABLE table_75766 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) ### Response: SELECT "Date" FROM table_75766 WHERE "Runner(s)-up" = 'bernhard langer' AND "Tournament" = 'at&t championship' | 7,479 |
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 bats does Todd have? ### Input: CREATE TABLE table_36837 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
) ### Response: SELECT "Bats" FROM table_36837 WHERE "First" = 'todd' | 166 |
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 manner of departure for date of vacancy 25 august 2008 ### Input: CREATE TABLE table_22421 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) ### Response: SELECT "Manner of departure" FROM table_22421 WHERE "Date of vacancy" = '25 August 2008' | 15,325 |
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 attendance when Fitzroy played as the away team? ### Input: CREATE TABLE table_54512 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT AVG("Crowd") FROM table_54512 WHERE "Away team" = 'fitzroy' | 3,540 |
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 on February 17? ### Input: CREATE TABLE table_12351 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) ### Response: SELECT "Score" FROM table_12351 WHERE "Date" = 'february 17' | 1,889 |
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 events have a Rank of 1? ### Input: CREATE TABLE table_5082 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) ### Response: SELECT "Events" FROM table_5082 WHERE "Rank" = '1' | 5,818 |
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 date for the game in week 7? ### Input: CREATE TABLE table_52230 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) ### Response: SELECT "Date" FROM table_52230 WHERE "Week" = '7' | 269 |
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 of the game with a score of 3-2? ### Input: CREATE TABLE table_40531 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) ### Response: SELECT "Result" FROM table_40531 WHERE "Score" = '3-2' | 3,549 |
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 of the los angeles rams game? ### Input: CREATE TABLE table_9746 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) ### Response: SELECT "Result" FROM table_9746 WHERE "Opponent" = 'los angeles rams' | 6 |
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 difference in score between the two teams in the last game ? ### Input: CREATE TABLE table_204_453 (
id number,
"#" number,
"date" text,
"venue" text,
"opponents" text,
"score" text,
"comp" text,
"denmark scorers" text
) ### Response: SELECT ABS("score" - "score") FROM table_204_453 ORDER BY "date" DESC LIMIT 1 | 6,537 |
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 games were held on March 12? ### Input: CREATE TABLE table_29787 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) ### Response: SELECT COUNT("Game") FROM table_29787 WHERE "Date" = 'March 12' | 4,042 |
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 hosted more , osaka or tokyo ? ### Input: CREATE TABLE table_204_854 (
id number,
"#" number,
"wrestlers" text,
"reign" number,
"date" text,
"days\nheld" number,
"location" text,
"notes" text
) ### Response: SELECT "location" FROM table_204_854 WHERE "location" IN ('osaka', 'tokyo') GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1 | 5,118 |
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 venue will hold the 2013 Concacaf Gold Cup competition? ### Input: CREATE TABLE table_11027 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) ### Response: SELECT "Venue" FROM table_11027 WHERE "Competition" = '2013 concacaf gold cup' | 2,822 |
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 governor took office on January 13, 1877 ### Input: CREATE TABLE table_32351 (
"Name" text,
"Took office" text,
"Left office" text,
"Party" text,
"Governor" text
) ### Response: SELECT "Governor" FROM table_32351 WHERE "Took office" = 'january 13, 1877' | 14,780 |
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 Tournament has a Score of 3 6 6 4 4 6? ### Input: CREATE TABLE table_36033 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) ### Response: SELECT "Tournament" FROM table_36033 WHERE "Score" = '3–6 6–4 4–6' | 2,830 |
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: In how many rounds was Race 17? ### Input: CREATE TABLE table_73937 (
"Round" real,
"Race" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) ### Response: SELECT COUNT("Round") FROM table_73937 WHERE "Race" = '17' | 4,149 |
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 resolution of the fight against steve schneider? ### Input: CREATE TABLE table_48596 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) ### Response: SELECT "Res." FROM table_48596 WHERE "Opponent" = 'steve schneider' | 4,035 |
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 sum of # 100 has a Season of 1990, and an Against of warwickshire? ### Input: CREATE TABLE table_name_33 (
_number_100 INTEGER,
season VARCHAR,
against VARCHAR
) ### Response: SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire" | 1,323 |
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 2011 performance for the US open? ### Input: CREATE TABLE table_15070 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) ### Response: SELECT "2011" FROM table_15070 WHERE "Tournament" = 'us open' | 16,611 |
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 highest roll number of the school in Te puna with a decile larger than 2? ### Input: CREATE TABLE table_69118 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) ### Response: SELECT MAX("Roll") FROM table_69118 WHERE "Decile" > '2' AND "Area" = 'te puna' | 5,473 |
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 the place with 582.20 square km area? ### Input: CREATE TABLE table_21865 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) ### Response: SELECT "Official Name" FROM table_21865 WHERE "Area km 2" = '582.20' | 3,310 |
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 to par of the player from the United States with a t6 place and a score of 70-73-68-73=284? ### Input: CREATE TABLE table_name_22 (
to_par VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
) ### Response: SELECT to_par FROM table_name_22 WHERE country = "united states" AND place = "t6" AND score = 70 - 73 - 68 - 73 = 284 | 12,632 |
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 Pinyin name for Dingyuan County? ### Input: CREATE TABLE table_2173 (
"English Name" text,
"Simplified Chinese" text,
"Traditional Chinese" text,
"Pinyin" text,
"Area" real,
"Population" real,
"Density" real
) ### Response: SELECT "Pinyin" FROM table_2173 WHERE "English Name" = 'Dingyuan County' | 15,382 |
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 physician who was trained in the most expensive procedure? ### Input: CREATE TABLE trained_in (
physician VARCHAR,
treatment VARCHAR
)
CREATE TABLE physician (
name VARCHAR,
employeeid VARCHAR
)
CREATE TABLE procedures (
code VARCHAR,
cost VARCHAR
) ### Response: SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 | 692 |
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 Drawn has a Lost larger than 0, and Points smaller than 11, and Games smaller than 7? ### Input: CREATE TABLE table_name_98 (
drawn INTEGER,
games VARCHAR,
lost VARCHAR,
points VARCHAR
) ### Response: SELECT AVG(drawn) FROM table_name_98 WHERE lost > 0 AND points < 11 AND games < 7 | 3,273 |
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: List the names of phones that are not on any market. ### Input: CREATE TABLE phone (
Name VARCHAR,
Phone_id VARCHAR,
Phone_ID VARCHAR
)
CREATE TABLE phone_market (
Name VARCHAR,
Phone_id VARCHAR,
Phone_ID VARCHAR
) ### Response: SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_id FROM phone_market) | 1,780 |
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 Country has a Player of arjun atwal? ### Input: CREATE TABLE table_7874 (
"Rank" text,
"Player" text,
"Lifespan" text,
"Country" text,
"Wins" real,
"Winning span" text
) ### Response: SELECT "Country" FROM table_7874 WHERE "Player" = 'arjun atwal' | 5,328 |
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 second when Martynas Norkus was the skip? ### Input: CREATE TABLE table_35946 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) ### Response: SELECT "Second" FROM table_35946 WHERE "Skip" = 'martynas norkus' | 3,406 |
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 enzymes do not have any interactions? ### Input: CREATE TABLE enzyme (
id VARCHAR,
enzyme_id VARCHAR
)
CREATE TABLE medicine_enzyme_interaction (
id VARCHAR,
enzyme_id VARCHAR
) ### Response: SELECT COUNT(*) FROM enzyme WHERE NOT id IN (SELECT enzyme_id FROM medicine_enzyme_interaction) | 15,082 |
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 top competitor at the carolina 500 ? ### Input: CREATE TABLE table_204_630 (
id number,
"no" number,
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
) ### Response: SELECT "winner" FROM table_204_630 WHERE "race" = 'carolina 500' | 3,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: Who has a hometown of los angeles, ca? ### Input: CREATE TABLE table_10921 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) ### Response: SELECT "Player" FROM table_10921 WHERE "Hometown" = 'los angeles, ca' | 22,663 |
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 date for lebron james , mo williams (21) ### Input: CREATE TABLE table_25200 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) ### Response: SELECT "Date" FROM table_25200 WHERE "High points" = 'LeBron James , Mo Williams (21)' | 2,102 |
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 smallest total number of medals for rank 11 and more than 0 silver medals? ### Input: CREATE TABLE table_42386 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT MIN("Total") FROM table_42386 WHERE "Rank" = '11' AND "Silver" > '0' | 1,623 |
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 each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade. ### Input: CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
) ### Response: SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade | 3,781 |
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 average crowd attendance for Collingwood? ### Input: CREATE TABLE table_78498 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT AVG("Crowd") FROM table_78498 WHERE "Home team" = 'collingwood' | 3,110 |
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 Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940? ### Input: CREATE TABLE table_name_11 (
tonnage___grt__ VARCHAR,
date VARCHAR,
fate VARCHAR,
deaths VARCHAR
) ### Response: SELECT tonnage___grt__ FROM table_name_11 WHERE fate = "sunk" AND deaths < 17 AND date = "16 november 1940" | 4,215 |
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: Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch? ### Input: CREATE TABLE table_12364 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) ### Response: SELECT "Place" FROM table_12364 WHERE "Country" = 'australia' AND "Player" = 'ian baker-finch' | 21,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: What is the expiring term for Daryl Hecht when the appointing governor is Tom Vilsack? ### Input: CREATE TABLE table_11789 (
"Name" text,
"Appointed/Elected" text,
"Term expires" text,
"Appointing Governor" text,
"Governor's Party Affiliation" text
) ### Response: SELECT "Term expires" FROM table_11789 WHERE "Appointing Governor" = 'tom vilsack' AND "Name" = 'daryl hecht' | 4,617 |
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 first election for the labor party is James Sharpe a part of? ### Input: CREATE TABLE table_53015 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
) ### Response: SELECT "First elected" FROM table_53015 WHERE "Party" = 'labor' AND "Member" = 'james sharpe' | 10,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: If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number? ### Input: CREATE TABLE table_2263152_1 (
release_date VARCHAR,
security_issues VARCHAR,
distribution_mechanism VARCHAR
) ### Response: SELECT COUNT(release_date) FROM table_2263152_1 WHERE security_issues = "99-025" AND distribution_mechanism = "Microsoft website" | 588 |
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 for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25? ### Input: CREATE TABLE table_name_58 (
position VARCHAR,
gymnast VARCHAR,
total VARCHAR
) ### Response: SELECT COUNT(position) FROM table_name_58 WHERE gymnast = "oleksandr vorobiov ( ukr )" AND total > 16.25 | 22,196 |
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 oberliga sudwest for spvgg unterhaching for 1988-89 ### Input: CREATE TABLE table_14242137_4 (
oberliga_südwest VARCHAR,
oberliga_bayern VARCHAR,
season VARCHAR
) ### Response: SELECT oberliga_südwest FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Unterhaching" AND season = "1988-89" | 23,451 |
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 highest number of artists on Scarface? ### Input: CREATE TABLE table_45856 (
"Number" real,
"Artist" text,
"Album" text,
"Average score" real,
"Number of reviews" text
) ### Response: SELECT MAX("Number") FROM table_45856 WHERE "Artist" = 'scarface' | 23,198 |
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 Season has an Agg of 4 1, and an Opponent of rapid wien? ### Input: CREATE TABLE table_6711 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text,
"Agg." text
) ### Response: SELECT "Season" FROM table_6711 WHERE "Agg." = '4–1' AND "Opponent" = 'rapid wien' | 19,181 |
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 race at Truro? ### Input: CREATE TABLE table_68088 (
"Date" text,
"Track" text,
"Race" text,
"Purse" text,
"Finish" text,
"Time" text,
"Last 1/4" real,
"Odds" text,
"Driver" text,
"Trainer" text
) ### Response: SELECT "Date" FROM table_68088 WHERE "Track" = 'truro' | 10,389 |
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 was the first film in kannada ? ### Input: CREATE TABLE table_204_546 (
id number,
"year" number,
"film" text,
"song" text,
"language" text
) ### Response: SELECT "film" FROM table_204_546 WHERE "language" = 'kannada' ORDER BY "year" LIMIT 1 | 1,722 |