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: Who directed the episode with 3.19 million u.s. viewers? ### Input: CREATE TABLE table_12722302_2 (
directed_by VARCHAR,
us_viewers__million_ VARCHAR
) ### Response: SELECT directed_by FROM table_12722302_2 WHERE us_viewers__million_ = "3.19" | 5,344 |
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 score has 3-7 as the record? ### Input: CREATE TABLE table_33808 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
) ### Response: SELECT "Score" FROM table_33808 WHERE "Record" = '3-7' | 17,390 |
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 when the candidates are alexander smyth (dr) 100% ### Input: CREATE TABLE table_28898 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) ### Response: SELECT "Result" FROM table_28898 WHERE "Candidates" = 'Alexander Smyth (DR) 100%' | 7,844 |
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 lost on 20 August 1989? ### Input: CREATE TABLE table_56417 (
"Season" text,
"Cup FinalDate" text,
"WinningTeam" text,
"Score" text,
"LosingTeam" text,
"Cup Final Attendance" text
) ### Response: SELECT "LosingTeam" FROM table_56417 WHERE "Cup FinalDate" = '20 august 1989' | 18,395 |
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 series number had an original airdate of March 1, 1991? ### Input: CREATE TABLE table_26540 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) ### Response: SELECT MIN("No. in series") FROM table_26540 WHERE "Original air date" = 'March 1, 1991' | 424 |
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 when the score was w 108 93 (ot)? ### Input: CREATE TABLE table_18885 (
"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_18885 WHERE "Score" = 'W 108–93 (OT)' | 16,381 |
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 for the september 5th game ? ### Input: CREATE TABLE table_203_598 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) ### Response: SELECT "attendance" FROM table_203_598 WHERE "date" = 'september 5' | 3,457 |
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 birth places that are shared by at least two people? ### Input: CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
) ### Response: SELECT birth_place FROM people GROUP BY birth_place HAVING COUNT(*) >= 2 | 9,476 |
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 average Points has a Lost higher than 20? ### Input: CREATE TABLE table_41937 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) ### Response: SELECT AVG("Points") FROM table_41937 WHERE "Lost" > '20' | 14,332 |
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 Population has a Median family income of $38,044? ### Input: CREATE TABLE table_13555 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) ### Response: SELECT "Population" FROM table_13555 WHERE "Median family income" = '$38,044' | 9,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 college did the #22 overall draft pick attend? ### Input: CREATE TABLE table_44399 (
"Rnd." text,
"Pick #" real,
"NFL team" text,
"Pos." text,
"College" text,
"Conf." text
) ### Response: SELECT "College" FROM table_44399 WHERE "Pick #" = '22' | 13,915 |
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 was the game played where the home team was Collingwood? ### Input: CREATE TABLE table_56903 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) ### Response: SELECT "Venue" FROM table_56903 WHERE "Home team" = 'collingwood' | 16,150 |
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 NFL team for the player who's college was Norfolk State? ### Input: CREATE TABLE table_1435 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) ### Response: SELECT "NFL Team" FROM table_1435 WHERE "College" = 'Norfolk State' | 11,902 |
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 was the downy woodpecker coin created? ### Input: CREATE TABLE table_55306 (
"Year" real,
"Animal" text,
"Artist" text,
"Finish" text,
"Mintage" real,
"Issue Price" text
) ### Response: SELECT SUM("Year") FROM table_55306 WHERE "Animal" = 'downy woodpecker' | 9,924 |
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 total number of EBIT (US $m) in 2011 and a Earnings per share ( ) larger than 47? ### Input: CREATE TABLE table_name_46 (
ebit__us_ VARCHAR,
year_to_april VARCHAR,
earnings_per_share__¢_ VARCHAR
) ### Response: SELECT COUNT(ebit__us_) AS $m_ FROM table_name_46 WHERE year_to_april = 2011 AND earnings_per_share__¢_ > 47 | 4,609 |
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 next to be sent home after patrick ? ### Input: CREATE TABLE table_204_945 (
id number,
"episode" number,
"name" text,
"synopsis" text,
"sent home" text,
"highest seller" text
) ### Response: SELECT "sent home" FROM table_204_945 WHERE "episode" = (SELECT "episode" FROM table_204_945 WHERE "sent home" = 'patrick') + 1 | 8,520 |
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 player from the United States played for the Grizzlies from 1997-1998? ### Input: CREATE TABLE table_8683 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) ### Response: SELECT "Player" FROM table_8683 WHERE "Nationality" = 'united states' AND "Years for Grizzlies" = '1997-1998' | 23,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 total sum of 50m splits for josefin lillhage in lanes above 8? ### Input: CREATE TABLE table_74580 (
"Lane" real,
"Name" text,
"Nationality" text,
"Split (50m)" real,
"Time" real
) ### Response: SELECT SUM("Split (50m)") FROM table_74580 WHERE "Name" = 'josefin lillhage' AND "Lane" > '8' | 10,395 |
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 1st leg that has hapoel jerusalem? ### Input: CREATE TABLE table_39308 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) ### Response: SELECT "1st leg" FROM table_39308 WHERE "Team #1" = 'hapoel jerusalem' | 20,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 is the lowest Finished, when Post is less than 2? ### Input: CREATE TABLE table_46425 (
"Finished" real,
"Time/ Behind" text,
"Post" real,
"Horse" text,
"Jockey" text,
"Trainer" text,
"Owner" text
) ### Response: SELECT MIN("Finished") FROM table_46425 WHERE "Post" < '2' | 11,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: Who was the home team that scored 10.12 (72)? ### Input: CREATE TABLE table_33313 (
"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_33313 WHERE "Home team score" = '10.12 (72)' | 9,027 |
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 won the game at Dairy farmers stadium with a score of 28-24? ### Input: CREATE TABLE table_51452 (
"Opponent" text,
"Result" text,
"Score" text,
"Date" text,
"Venue" text
) ### Response: SELECT "Result" FROM table_51452 WHERE "Venue" = 'dairy farmers stadium' AND "Score" = '28-24' | 2,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 average cap number in scotland in 1986 1998 leass than 69? ### Input: CREATE TABLE table_name_6 (
average VARCHAR,
caps VARCHAR,
scotland_career VARCHAR
) ### Response: SELECT COUNT(average) FROM table_name_6 WHERE caps < 69 AND scotland_career = "1986–1998" | 16,324 |
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 Artist has a Track(s) of ' evilmainya '? ### Input: CREATE TABLE table_63196 (
"Artist" text,
"Album" text,
"Track(s)" text,
"Date" text,
"Label" text
) ### Response: SELECT "Artist" FROM table_63196 WHERE "Track(s)" = ' evilmainya ' | 5,293 |
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 Terrain of plain stage, and a Stage of 4? ### Input: CREATE TABLE table_32382 (
"Stage" text,
"Date" text,
"Route" text,
"Terrain" text,
"Length" text,
"Winner" text
) ### Response: SELECT "Date" FROM table_32382 WHERE "Terrain" = 'plain stage' AND "Stage" = '4' | 5,360 |
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 did carlos cardus drive for in 1983 when he got less than 21 points? ### Input: CREATE TABLE table_35188 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) ### Response: SELECT "Team" FROM table_35188 WHERE "Points" < '21' AND "Year" = '1983' | 11,455 |
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: The frequency 89.3 belongs to what class? ### Input: CREATE TABLE table_69482 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) ### Response: SELECT "Class" FROM table_69482 WHERE "Frequency MHz" = '89.3' | 4,199 |
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 in the game against the New Orleans Saints? ### Input: CREATE TABLE table_45983 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) ### Response: SELECT COUNT("Attendance") FROM table_45983 WHERE "Opponent" = 'new orleans saints' | 14,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: Which date has a Race Leader of hermann buse ( ger ), and a Stage of 5? ### Input: CREATE TABLE table_71067 (
"Stage" text,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
) ### Response: SELECT "Date" FROM table_71067 WHERE "Race Leader" = 'hermann buse ( ger )' AND "Stage" = '5' | 8,289 |
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 rank of the celebrity with a 34.66 average and a season greater than 1? ### Input: CREATE TABLE table_6980 (
"Rank" real,
"Celebrity" text,
"Professional Partner" text,
"Season" real,
"Average" real
) ### Response: SELECT COUNT("Rank") FROM table_6980 WHERE "Average" = '34.66' AND "Season" > '1' | 22,184 |
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 finish by the player from West Germany? ### Input: CREATE TABLE table_69616 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) ### Response: SELECT "Finish" FROM table_69616 WHERE "Country" = 'west germany' | 1,014 |
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: adult patients, > / = 18 years of age ### Input: CREATE TABLE table_dev_50 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"hba1c" float,
"age" float,
"NOUSE" float
) ### Response: SELECT * FROM table_dev_50 WHERE age >= 18 | 453 |
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 votes from the Labour Party? ### Input: CREATE TABLE table_39932 (
"Party" text,
"Candidate" text,
"Votes" real,
"% Share" text,
"Change" text
) ### Response: SELECT COUNT("Votes") FROM table_39932 WHERE "Party" = 'labour' | 10,726 |
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 gender of the cunningham hill infant school? ### Input: CREATE TABLE table_4040 (
"School" text,
"Gender" text,
"Age Range" text,
"Religious Affiliation" text,
"Location" text,
"School website" text
) ### Response: SELECT "Gender" FROM table_4040 WHERE "School" = 'Cunningham Hill Infant School' | 11,915 |
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 Greater Greensboro Chrysler Classic? ### Input: CREATE TABLE table_75100 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" real
) ### Response: SELECT "Date" FROM table_75100 WHERE "Tournament" = 'greater greensboro chrysler classic' | 7,007 |
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 is the only team that chile was faster than in cycling at the 1996 summer olympics men 's team pursuit ? ### Input: CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
) ### Response: SELECT "team" FROM table_204_735 WHERE "time" > (SELECT "time" FROM table_204_735 WHERE "team" = 'chile') | 1,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: What was the location of the match that had a result of 3-3? ### Input: CREATE TABLE table_47982 (
"Match" text,
"Date" text,
"Location" text,
"Lineup" text,
"Result" text,
"Competition" text
) ### Response: SELECT "Location" FROM table_47982 WHERE "Result" = '3-3' | 256 |
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 score of the game when the New York Rangers were the home team? ### Input: CREATE TABLE table_56609 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) ### Response: SELECT "Score" FROM table_56609 WHERE "Home" = 'new york rangers' | 7,407 |
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 Draws, when Wins is 'Did Not Qualify'? ### Input: CREATE TABLE table_45796 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
) ### Response: SELECT "Draws" FROM table_45796 WHERE "Wins" = 'did not qualify' | 16,641 |
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 F_A on 17 December 2002? ### Input: CREATE TABLE table_70893 (
"Date" text,
"Round" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real
) ### Response: SELECT "Result F\u2013A" FROM table_70893 WHERE "Date" = '17 december 2002' | 9,508 |
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: out of 30 top competitors , what number of those are from norway ? ### Input: CREATE TABLE table_204_120 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"notes" text
) ### Response: SELECT COUNT("athlete") FROM table_204_120 WHERE "rank" <= 30 AND "country" = 'norway' | 5,729 |
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 reserves were established on 19740329 29.03.1974? ### Input: CREATE TABLE table_26013618_1 (
nsg_nr VARCHAR,
date_established VARCHAR
) ### Response: SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE date_established = "19740329 29.03.1974" | 15,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: Name the model number for usf46 ### Input: CREATE TABLE table_24451 (
"Chassis code" text,
"Model no." text,
"Production years" text,
"Drivetrain" text,
"Transmission" text,
"Engine type" text,
"Engine code" text,
"Region(s)" text
) ### Response: SELECT "Model no." FROM table_24451 WHERE "Chassis code" = 'USF46' | 22,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: Which Bronze has a Total smaller than 1? ### Input: CREATE TABLE table_65776 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT AVG("Bronze") FROM table_65776 WHERE "Total" < '1' | 9,832 |
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 districts are there in this city ? ### Input: CREATE TABLE table_204_739 (
id number,
"districts" text,
"ubigeo" number,
"area\n(km2)" number,
"population" number,
"population density\n(/km2)" number,
"created" text,
"postal\ncode" number
) ### Response: SELECT COUNT("districts") FROM table_204_739 | 14,873 |
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 tournament when the performance in 2012 is 3r and 2011 is qf? ### Input: CREATE TABLE table_15069 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) ### Response: SELECT "Tournament" FROM table_15069 WHERE "2012" = '3r' AND "2011" = 'qf' | 18,467 |
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 Masaaki Mochizuki has a Gran Hamada of hamada (10:47)? ### Input: CREATE TABLE table_name_56 (
masaaki_mochizuki VARCHAR,
gran_hamada VARCHAR
) ### Response: SELECT masaaki_mochizuki FROM table_name_56 WHERE gran_hamada = "hamada (10:47)" | 12,950 |
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: High assists belonging to Carmelo Anthony (11) have a record of what? ### Input: CREATE TABLE table_21614 (
"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_21614 WHERE "High assists" = 'Carmelo Anthony (11)' | 7,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: For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity? ### Input: CREATE TABLE table_name_60 (
quantity INTEGER,
name VARCHAR,
nicotine VARCHAR
) ### Response: SELECT MIN(quantity) FROM table_name_60 WHERE name = "raison blue" AND nicotine > 0.30000000000000004 | 8,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 is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal? ### Input: CREATE TABLE table_24081 (
"Medal of Honor" text,
"Coast Guard Cross" text,
"Navy Cross" text,
"Distinguished Service Cross" text,
"Air Force Cross" text,
"Homeland Security Distinguished Service Medal" text
) ### Response: SELECT "Homeland Security Distinguished Service Medal" FROM table_24081 WHERE "Medal of Honor" = 'Coast Guard Medal' | 12,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 is the per capita income of the county with a median family income of $40,492? ### Input: CREATE TABLE table_name_61 (
per_capita_income VARCHAR,
median_family_income VARCHAR
) ### Response: SELECT per_capita_income FROM table_name_61 WHERE median_family_income = "$40,492" | 21,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: in which year did she have the least amount of awards or nominations ? ### Input: CREATE TABLE table_203_757 (
id number,
"year" number,
"award ceremony" text,
"category" text,
"film/show" text,
"result" text
) ### Response: SELECT "year" FROM table_203_757 GROUP BY "year" ORDER BY COUNT(*) LIMIT 1 | 12,381 |
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 dennis ross (r) unopposed is the candidate what is the party? ### Input: CREATE TABLE table_3186 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) ### Response: SELECT "Party" FROM table_3186 WHERE "Candidates" = 'Dennis Ross (R) unopposed' | 243 |
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 bronze value associated with ranks over 5? ### Input: CREATE TABLE table_15485 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) ### Response: SELECT "Bronze" FROM table_15485 WHERE "Rank" > '5' | 8,272 |
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: systolic bp >= 170 mmhg ### Input: CREATE TABLE table_train_109 (
"id" int,
"serum_potassium" float,
"systolic_blood_pressure_sbp" int,
"body_mass_index_bmi" float,
"hypertension" bool,
"NOUSE" float
) ### Response: SELECT * FROM table_train_109 WHERE systolic_blood_pressure_sbp >= 170 | 12,124 |
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 national rank of Windstream? ### Input: CREATE TABLE table_24674 (
"State Rank by Revenue" real,
"Company Name" text,
"National Rank" real,
"Revenue ($billions) 2012 estimate" text,
"Headquarters City" text,
"Known for" text
) ### Response: SELECT MIN("National Rank") FROM table_24674 WHERE "Company Name" = 'Windstream' | 24,814 |
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 on December 4? ### Input: CREATE TABLE table_77673 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) ### Response: SELECT "Record" FROM table_77673 WHERE "Date" = 'december 4' | 9,634 |
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 driver of the team with tyre d, bt11 chassis, and 8 rounds? ### Input: CREATE TABLE table_53669 (
"Constructor" text,
"Chassis" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) ### Response: SELECT "Driver" FROM table_53669 WHERE "Tyre" = 'd' AND "Chassis" = 'bt11' AND "Rounds" = '8' | 7,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: how long is die slow in terms of time ? ### Input: CREATE TABLE table_203_353 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"time" text
) ### Response: SELECT "time" FROM table_203_353 WHERE "title" = '"die slow"' | 23,319 |
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 the Ronde Van Vlaanderen race what is the leader's team? ### Input: CREATE TABLE table_43103 (
"Date" text,
"Race" text,
"Country" text,
"Winner" text,
"Team" text,
"World Cup Leader" text,
"Leader's Team" text
) ### Response: SELECT "Leader's Team" FROM table_43103 WHERE "Race" = 'ronde van vlaanderen' | 19,200 |
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 Rating, when Air Date is 'July 24, 2008*', and when Weekly Winner is 'Sales Rep. Oscar Ledezma'? ### Input: CREATE TABLE table_name_7 (
rating VARCHAR,
air_date VARCHAR,
weekly_winner VARCHAR
) ### Response: SELECT rating FROM table_name_7 WHERE air_date = "july 24, 2008*" AND weekly_winner = "sales rep. oscar ledezma" | 4,265 |
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 place that had a main railway station of banbury and a population bigger than 28,672? ### Input: CREATE TABLE table_65502 (
"Place" text,
"Population" real,
"Ceremonial County" text,
"Main Railway station" text,
"Motorway junction" text
) ### Response: SELECT "Place" FROM table_65502 WHERE "Population" > '28,672' AND "Main Railway station" = 'banbury' | 3,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: Which 2008-12 has a 2007 of A, and a Tournament of us open? ### Input: CREATE TABLE table_33985 (
"Tournament" text,
"2006" text,
"2007" text,
"2008-12" text,
"2013" text
) ### Response: SELECT "2008-12" FROM table_33985 WHERE "2007" = 'a' AND "Tournament" = 'us open' | 14,150 |
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 much were tickets for the show in Hartford, Connecticut? ### Input: CREATE TABLE table_61776 (
"Date(s)" text,
"City, state" text,
"Ticket price(s)" text,
"Ticket sold / available" text,
"Ticket grossing" text
) ### Response: SELECT "Ticket price(s)" FROM table_61776 WHERE "City, state" = 'hartford, connecticut' | 21,487 |
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 all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )? ### Input: CREATE TABLE table_224839_3 (
state__class_ VARCHAR,
reason_for_change VARCHAR,
vacator VARCHAR
) ### Response: SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = "Resigned November 26, 1798" AND vacator = "John Hunter ( DR )" | 8,915 |
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 diff with drawn of 6 and play larger than 18? ### Input: CREATE TABLE table_58057 (
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Diff" real
) ### Response: SELECT MAX("Diff") FROM table_58057 WHERE "Drawn" = '6' AND "Played" > '18' | 15,457 |
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 is jersey number 3 from? ### Input: CREATE TABLE table_45997 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
) ### Response: SELECT "From" FROM table_45997 WHERE "Jersey Number(s)" = '3' | 17,929 |
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 party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to? ### Input: CREATE TABLE table_2668401_17 (
party VARCHAR,
district VARCHAR,
result VARCHAR,
first_elected VARCHAR
) ### Response: SELECT party FROM table_2668401_17 WHERE result = "Re-elected" AND first_elected = "1797" AND district = "Virginia 5" | 19,131 |
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 home team has a Away team of hawthorn? ### Input: CREATE TABLE table_77898 (
"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_77898 WHERE "Away team" = 'hawthorn' | 7,906 |
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 celebrity who was famous for being the ex busted member and TV presenter exited on day 19? ### Input: CREATE TABLE table_name_53 (
celebrity VARCHAR,
exited VARCHAR,
famous_for VARCHAR
) ### Response: SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter" | 3,852 |
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 Year of jeff van note ( Kentucky) ### Input: CREATE TABLE table_80023 (
"Year" real,
"Florida" text,
"Georgia" text,
"Kentucky" text,
"South Carolina" text,
"Tennessee" text,
"Vanderbilt" text
) ### Response: SELECT SUM("Year") FROM table_80023 WHERE "Kentucky" = 'jeff van note' | 19,037 |
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 song for draw less than 7 and artists of martin & johannes ### Input: CREATE TABLE table_68966 (
"Draw" real,
"Country" text,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Result" text
) ### Response: SELECT "Song" FROM table_68966 WHERE "Draw" < '7' AND "Artist" = 'martin & johannes' | 1,736 |
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 lowest number of games Jack Gaudion, who debut in 1936, played? ### Input: CREATE TABLE table_name_88 (
games INTEGER,
debut_year VARCHAR,
player VARCHAR
) ### Response: SELECT MIN(games) FROM table_name_88 WHERE debut_year = 1936 AND player = "jack gaudion" | 12,100 |
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 when they played golden state? ### Input: CREATE TABLE table_25850 (
"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_25850 WHERE "Team" = 'Golden State' | 1,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: Who wrote 'Voir Dire'? ### Input: CREATE TABLE table_27242 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) ### Response: SELECT "Written by" FROM table_27242 WHERE "Title" = 'Voir Dire' | 8,662 |
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 what game was the attendance at the America West Arena 18,756? ### Input: CREATE TABLE table_29997127_4 (
game INTEGER,
location_attendance VARCHAR
) ### Response: SELECT MAX(game) FROM table_29997127_4 WHERE location_attendance = "America West Arena 18,756" | 10,639 |
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 original Australian performers are there when the Original West End Performer is Jordan Dunne? ### Input: CREATE TABLE table_1901751_1 (
original_australian_performer VARCHAR,
original_west_end_performer VARCHAR
) ### Response: SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = "Jordan Dunne" | 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: Tell me the total number of points with chassis of tf103 ### Input: CREATE TABLE table_11482 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
) ### Response: SELECT COUNT("Points") FROM table_11482 WHERE "Chassis" = 'tf103' | 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 statue for an against above 22? ### Input: CREATE TABLE table_13155 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) ### Response: SELECT "Status" FROM table_13155 WHERE "Against" > '22' | 2,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: Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships? ### Input: CREATE TABLE table_name_72 (
venue VARCHAR,
competition VARCHAR,
year VARCHAR,
event VARCHAR
) ### Response: SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships" | 7,746 |
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 earliest year in which long jump was performed in the world indoor Championships in 5th position? ### Input: CREATE TABLE table_70414 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Performance" text
) ### Response: SELECT MIN("Year") FROM table_70414 WHERE "Performance" = 'long jump' AND "Competition" = 'world indoor championships' AND "Position" = '5th' | 1,877 |
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 team has a home team score of 17.12 (114)? ### Input: CREATE TABLE table_54550 (
"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_54550 WHERE "Home team score" = '17.12 (114)' | 7,579 |
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 opponent is listed below venezuela ? ### Input: CREATE TABLE table_203_793 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) ### Response: SELECT "opponent" FROM table_203_793 WHERE id = (SELECT id FROM table_203_793 WHERE "opponent" = 'venezuela') + 1 | 14,838 |
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 lowest number of blocks for players with height of 206 and more than 356 spikes? ### Input: CREATE TABLE table_name_69 (
block INTEGER,
height VARCHAR,
spike VARCHAR
) ### Response: SELECT MIN(block) FROM table_name_69 WHERE height = 206 AND spike > 356 | 13,239 |
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 Competition has the Date July 1, 2000? ### Input: CREATE TABLE table_66734 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) ### Response: SELECT "Competition" FROM table_66734 WHERE "Date" = 'july 1, 2000' | 9,529 |
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 had fewer than 13 episodes and aired its season finale on February 20, 2011? ### Input: CREATE TABLE table_76092 (
"Season" real,
"Episodes" real,
"Season Premiere" text,
"Season Finale" text,
"DVD Release Date" text
) ### Response: SELECT COUNT("Season") FROM table_76092 WHERE "Episodes" < '13' AND "Season Finale" = 'february 20, 2011' | 10,673 |
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 Goals Conceded which has a Draw of 0 and a Played larger than 0? ### Input: CREATE TABLE table_name_48 (
goals_conceded INTEGER,
draw VARCHAR,
played VARCHAR
) ### Response: SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0 | 16,377 |
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 lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze? ### Input: CREATE TABLE table_name_70 (
total INTEGER,
bronze VARCHAR,
rank VARCHAR,
silver VARCHAR
) ### Response: SELECT MIN(total) FROM table_name_70 WHERE rank < 8 AND silver > 6 AND bronze = 20 | 4,235 |
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 result for the game held on December 27, 2004 with a week greater than 2? ### Input: CREATE TABLE table_32707 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
) ### Response: SELECT "Result" FROM table_32707 WHERE "Week" > '2' AND "Date" = 'december 27, 2004' | 68 |
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 box score has a Loss of capuano (5 5)? ### Input: CREATE TABLE table_10460 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text,
"Boxscore" text
) ### Response: SELECT "Boxscore" FROM table_10460 WHERE "Loss" = 'capuano (5–5)' | 17,486 |
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 polling institute showed a lead of 6%? ### Input: CREATE TABLE table_66677 (
"Date(s) Released" text,
"Polling institute" text,
"Nationalist" text,
"Labour" text,
"Democratic Alternative" text,
"Undecided/ No answer" text,
"Lead" text
) ### Response: SELECT "Polling institute" FROM table_66677 WHERE "Lead" = '6%' | 9,319 |
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 had a qual 2 time of 58.385? ### Input: CREATE TABLE table_34674 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" real
) ### Response: SELECT "Team" FROM table_34674 WHERE "Qual 2" = '58.385' | 3,327 |
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 Craig Stadler's lowest score for United states? ### Input: CREATE TABLE table_59836 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) ### Response: SELECT MIN("Score") FROM table_59836 WHERE "Country" = 'united states' AND "Player" = 'craig stadler' | 1,506 |
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 venue when the home team is melbourne? ### Input: CREATE TABLE table_52259 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) ### Response: SELECT "Venue" FROM table_52259 WHERE "Home team" = 'melbourne' | 24,050 |
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 had a finish of t16? ### Input: CREATE TABLE table_61975 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) ### Response: SELECT "Player" FROM table_61975 WHERE "Finish" = 't16' | 8,750 |
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 have Mrs. briar as a villain ### Input: CREATE TABLE table_16124 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer" text,
"US air date" text,
"Storyteller" text,
"Villains" text
) ### Response: SELECT COUNT("No.") FROM table_16124 WHERE "Villains" = 'Mrs. Briar' | 3,618 |
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 much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11? ### Input: CREATE TABLE table_name_63 (
played INTEGER,
points VARCHAR,
against VARCHAR,
lost VARCHAR
) ### Response: SELECT SUM(played) FROM table_name_63 WHERE against > 37 AND lost = 15 AND points < 11 | 12,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: hba1c 10 % or higher. ### Input: CREATE TABLE table_train_236 (
"id" int,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"hba1c" float,
"fbg" int,
"NOUSE" float
) ### Response: SELECT * FROM table_train_236 WHERE hba1c >= 10 | 21,478 |
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 girl of the week after nicole woodruff in the same month? ### Input: CREATE TABLE table_60103 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
) ### Response: SELECT "Week 5" FROM table_60103 WHERE "Week 4" = 'nicole woodruff' | 8,939 |
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 venue when the score was 5 0, and a Competition of 2007 caribbean cup qualifier? ### Input: CREATE TABLE table_71256 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) ### Response: SELECT "Venue" FROM table_71256 WHERE "Score" = '5–0' AND "Competition" = '2007 caribbean cup qualifier' | 11,927 |