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: Bar chart x axis publication date y axis how many publication date, could you order by the x-axis in ascending? ### Input: CREATE TABLE book ( Book_ID int, Title text, Issues real, Writer text ) CREATE TABLE publication ( Publication_ID int, Book_ID int, Publisher text, Publication_Date text, Price real ) ### Response: SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY Publication_Date
1,771
Below are sql tables 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 name of the project that peaked at 40 and was in the USA? ### Input: CREATE TABLE table_5931 ( "Country" text, "Project Name" text, "Year startup" text, "Operator" text, "Peak" text ) ### Response: SELECT "Project Name" FROM table_5931 WHERE "Peak" = '40' AND "Country" = 'usa'
342
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Sport of football, and a Venue of stadion polonii is what league? ### Input: CREATE TABLE table_36907 ( "Club" text, "Sport" text, "Founded" real, "League" text, "Venue" text, "Head Coach" text ) ### Response: SELECT "League" FROM table_36907 WHERE "Sport" = 'football' AND "Venue" = 'stadion polonii'
12,194
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: did the philippines or kazakhstan have a higher number of total medals ? ### Input: CREATE TABLE table_203_165 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) ### Response: SELECT "nation" FROM table_203_165 WHERE "nation" IN ('philippines', 'kazakhstan') ORDER BY "total" DESC LIMIT 1
1,578
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the voting order when the commentator was renato tagliani? ### Input: CREATE TABLE table_65775 ( "Voting order" real, "Country" text, "Spokespersons" text, "Commentator" text, "Broadcaster" text ) ### Response: SELECT "Voting order" FROM table_65775 WHERE "Commentator" = 'renato tagliani'
14,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: What is the name of team with Palmeiras 4-2 portuguesa as the last match? ### Input: CREATE TABLE table_35434 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Last match" text, "Replaced by" text ) ### Response: SELECT "Team" FROM table_35434 WHERE "Last match" = 'palmeiras 4-2 portuguesa'
2,648
Below are sql tables 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 movie titles and average rating of the movies with the lowest average rating? ### Input: CREATE TABLE Movie ( title VARCHAR, mID VARCHAR ) CREATE TABLE Rating ( stars INTEGER, mID VARCHAR ) ### Response: SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1
9,945
Below are sql tables 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 storage stability of Arsine with a toxicity of 8, and field stability less than 5? ### Input: CREATE TABLE table_name_30 ( storage_stability INTEGER, field_stability VARCHAR, toxicity_as_blood_agent VARCHAR, agent VARCHAR ) ### Response: SELECT MIN(storage_stability) FROM table_name_30 WHERE toxicity_as_blood_agent > 8 AND agent = "arsine" AND field_stability < 5
9,361
Below are sql tables 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 final score of the game played on July 10? ### Input: CREATE TABLE table_24620 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text ) ### Response: SELECT "Final Score" FROM table_24620 WHERE "Date" = 'July 10'
23,922
Below are sql tables 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 was the opponent on october 21? ### Input: CREATE TABLE table_29883 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Team" FROM table_29883 WHERE "Date" = 'October 21'
1,128
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the names of members in ascending order of their rank in rounds. ### Input: CREATE TABLE member ( Name VARCHAR, Member_ID VARCHAR ) CREATE TABLE round ( Member_ID VARCHAR ) ### Response: SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round
16,142
Below are sql tables 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 of follow up years do each author have ? ### Input: CREATE TABLE table_204_597 ( id number, "main author" text, "no. of patients" number, "duration of follow-up years" number, "linearized rate of infection" text, "actuarial freedom from infective endocarditis" text ) ### Response: SELECT MIN("duration of follow-up years") FROM table_204_597
1,884
Below are sql tables 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 south american rank for venezuela ### Input: CREATE TABLE table_25058 ( "South American Rank" real, "World Rank" real, "Nation" text, "2011 (IMF)" text, "2008 (CIA Factbook)" text ) ### Response: SELECT MIN("South American Rank") FROM table_25058 WHERE "Nation" = 'Venezuela'
17,821
Below are sql tables 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 of game #3? ### Input: CREATE TABLE table_29758 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) ### Response: SELECT "Date" FROM table_29758 WHERE "Game" = '3'
2,073
Below are sql tables 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 when Calgary was visiting team and Niittymaki had the decision? ### Input: CREATE TABLE table_45979 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) ### Response: SELECT "Score" FROM table_45979 WHERE "Decision" = 'niittymaki' AND "Visitor" = 'calgary'
22,933
Below are sql tables 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 season 2008/09 was the place above or below 10th ? ### Input: CREATE TABLE table_204_186 ( id number, "season" text, "tier" number, "division" text, "place" text ) ### Response: SELECT (SELECT "place" FROM table_204_186 WHERE "season" = '2008/09') < 10
24,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 different players did the high assists in games where the high rebounds were done by Sales (10)? ### Input: CREATE TABLE table_19778010_5 ( high_assists VARCHAR, high_rebounds VARCHAR ) ### Response: SELECT COUNT(high_assists) FROM table_19778010_5 WHERE high_rebounds = "Sales (10)"
3,869
Below are sql tables 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 would an Italian say the Andalusian word coche? ### Input: CREATE TABLE table_38136 ( "Rioplatense" text, "Castilian" text, "Andalusian" text, "Mexican" text, "Chilean" text, "English ( US / UK )" text, "Italian" text ) ### Response: SELECT "Italian" FROM table_38136 WHERE "Andalusian" = 'coche'
4,475
Below are sql tables 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 Inaug., when the Type is Public, when the Name is Mei Lam Estate, and when the No Units is larger than 4,156? ### Input: CREATE TABLE table_name_96 ( inaug VARCHAR, no_units VARCHAR, type VARCHAR, name VARCHAR ) ### Response: SELECT COUNT(inaug) FROM table_name_96 WHERE type = "public" AND name = "mei lam estate" AND no_units > 4 OFFSET 156
11,261
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show me a bar chart comparing the total number of captains of different classes, I want to order by the x axis from high to low. ### Input: CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) ### Response: SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY Class DESC
16,759
Below are sql tables 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 status of joe gibbs racing? ### Input: CREATE TABLE table_17375 ( "Finish" real, "Start" real, "Car No." real, "Driver" text, "Car Name" text, "Car Make" text, "Entrant" text, "Laps" real, "Status" text ) ### Response: SELECT "Status" FROM table_17375 WHERE "Entrant" = 'Joe Gibbs Racing'
20,798
Below are sql tables 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 format for the label Mightier than Sword on January 12, 2010 in the United States? ### Input: CREATE TABLE table_59369 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) ### Response: SELECT "Format" FROM table_59369 WHERE "Region" = 'united states' AND "Date" = 'january 12, 2010' AND "Label" = 'mightier than sword'
16,495
Below are sql tables 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 director for the episode airing on September 24, 1993? ### Input: CREATE TABLE table_2409041_6 ( directed_by VARCHAR, original_air_date VARCHAR ) ### Response: SELECT directed_by FROM table_2409041_6 WHERE original_air_date = "September 24, 1993"
1,842
Below are sql tables 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 fewest shots a glazing can handle? ### Input: CREATE TABLE table_24447 ( "Class" text, "Weapon" text, "Caliber" text, "Type" text, "Weight (g)" text, "Range (m)" text, "Velocity (m/s)" text, "Impact Energy" text, "Shots" real ) ### Response: SELECT MIN("Shots") FROM table_24447
17,918
Below are sql tables 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 companies were founded at least after 1990 ? ### Input: CREATE TABLE table_203_241 ( id number, "name" text, "founded" number, "defunct" number, "country" text, "publisher" text, "topics" text, "external link" text ) ### Response: SELECT "name" FROM table_203_241 WHERE "founded" > 1990
15,416
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Whatis the original title for lion's den? ### Input: CREATE TABLE table_19008 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text ) ### Response: SELECT "Original title" FROM table_19008 WHERE "Film title used in nomination" = 'Lion''s Den'
13,610
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: risk of bleeding ### Input: CREATE TABLE table_train_6 ( "id" int, "bleeding" int, "systolic_blood_pressure_sbp" int, "mean_arterial_pressure_map" int, "active_infection" bool, "hypotension" bool, "age" float, "NOUSE" float ) ### Response: SELECT * FROM table_train_6 WHERE bleeding = 1
8,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: Name the city of license with frequency of 90.1 fm ### Input: CREATE TABLE table_71970 ( "Call sign" text, "Frequency" text, "City of license" text, "Facility ID" real, "ERP / Power W" real, "Height m ( ft )" text, "Class" text ) ### Response: SELECT "City of license" FROM table_71970 WHERE "Frequency" = '90.1 fm'
2,501
Below are sql tables 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 pick for the New York jets with a defensive end? ### Input: CREATE TABLE table_63830 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text ) ### Response: SELECT "Pick" FROM table_63830 WHERE "Position" = 'defensive end' AND "Team" = 'new york jets'
7,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: What' the series number of the episode with season number 13? ### Input: CREATE TABLE table_2226817_6 ( no_in_series INTEGER, no_in_season VARCHAR ) ### Response: SELECT MIN(no_in_series) FROM table_2226817_6 WHERE no_in_season = 13
6,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: Name the date of birth for 27/07/86 ### Input: CREATE TABLE table_73428 ( "Number" real, "Name" text, "Height (m)" real, "Date of Birth" text, "Position" text, "Nationality" text ) ### Response: SELECT "Name" FROM table_73428 WHERE "Date of Birth" = '27/07/86'
3,375
Below are sql tables 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 winner of Stage 9 when then general classification was Danilo Di Luca? ### Input: CREATE TABLE table_13639 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text ) ### Response: SELECT "Winner" FROM table_13639 WHERE "General classification" = 'danilo di luca' AND "Stage" = '9'
7,535
Below are sql tables 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 the highest assists on November 4 ### Input: CREATE TABLE table_17281 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "High assists" FROM table_17281 WHERE "Date" = 'November 4'
8,359
Below are sql tables 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 press like in Paris for Roger Francois, and Carlo Galimberti? ### Input: CREATE TABLE table_name_67 ( paris___fra__ VARCHAR, roger_françois VARCHAR ) ### Response: SELECT paris___fra__ FROM table_name_67 WHERE "press" = "press" AND roger_françois = "carlo galimberti"
507
Below are sql tables 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 year for scatman winning? ### Input: CREATE TABLE table_58096 ( "Year" real, "Winner" text, "Jockey" text, "Trainer" text, "Owner" text, "Time" text ) ### Response: SELECT AVG("Year") FROM table_58096 WHERE "Winner" = 'scatman'
1,649
Below are sql tables 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 jockey for the winning horse Rafael Bejarano? ### Input: CREATE TABLE table_58024 ( "Date" text, "Track" text, "Race" text, "Distance" text, "Surface track" text, "Winning horse" text, "Winning jockey" text ) ### Response: SELECT "Winning horse" FROM table_58024 WHERE "Winning jockey" = 'rafael bejarano'
2,122
Below are sql tables 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 highest player number from the list from 2000-2001 ### Input: CREATE TABLE table_72793 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text ) ### Response: SELECT MAX("No.") FROM table_72793 WHERE "Years for Grizzlies" = '2000-2001'
24,096
Below are sql tables 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 distrct for thomas wilson ### Input: CREATE TABLE table_74009 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) ### Response: SELECT "District" FROM table_74009 WHERE "Incumbent" = 'Thomas Wilson'
17,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: how many number of english when kunrei-shiki is otya ### Input: CREATE TABLE table_3533 ( "English" text, "Japanese" text, "Kana spelling" text, "Revised Hepburn" text, "Kunrei-shiki" text, "Nihon-shiki" text ) ### Response: SELECT COUNT("English") FROM table_3533 WHERE "Kunrei-shiki" = 'otya'
12,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: does m90 have a higher or lower apparent magnitude than m63 ? ### Input: CREATE TABLE table_203_569 ( id number, "designation" text, "classification" text, "constellation" text, "apparent magnitude" number ) ### Response: SELECT (SELECT "apparent magnitude" FROM table_203_569 WHERE "designation" = 'm90') > (SELECT "apparent magnitude" FROM table_203_569 WHERE "designation" = 'm63')
1,410
Below are sql tables 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 manager was appointed on 08.06.2010? ### Input: CREATE TABLE table_29305 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) ### Response: SELECT "Replaced by" FROM table_29305 WHERE "Date of appointment" = '08.06.2010'
13,912
Below are sql tables 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 for wes ours with over 1 reception and under 1 TD? ### Input: CREATE TABLE table_78274 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) ### Response: SELECT SUM("Avg.") FROM table_78274 WHERE "Rec." > '1' AND "Player" = 'wes ours' AND "TD's" < '1'
431
Below are sql tables 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 program where duration (years) is 1.5 and teaching language is german/english? ### Input: CREATE TABLE table_12591022_2 ( program VARCHAR, duration__years_ VARCHAR, teaching_language VARCHAR ) ### Response: SELECT program FROM table_12591022_2 WHERE duration__years_ = "1.5" AND teaching_language = "German/English"
4,648
Below are sql tables 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 wins for the NFL with a finish of 1st, and more than 6 losses? ### Input: CREATE TABLE table_name_27 ( wins INTEGER, losses VARCHAR, league VARCHAR, finish VARCHAR ) ### Response: SELECT MAX(wins) FROM table_name_27 WHERE league = "nfl" AND finish = "1st" AND losses > 6
5,379
Below are sql tables 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 name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid? ### Input: CREATE TABLE table_name_2 ( name VARCHAR, rocket VARCHAR, block VARCHAR ) ### Response: SELECT name FROM table_name_2 WHERE rocket = "titan iv(401)b" AND block = "block i/ii hybrid"
20,757
Below are sql tables 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 actors name for fuchzhou and nomination was best non-professional actor? ### Input: CREATE TABLE table_10236830_1 ( actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR ) ### Response: SELECT actors_name FROM table_10236830_1 WHERE film_name = "Fuchzhou" AND nomination = "Best Non-Professional Actor"
20,964
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the team when player is listed as Ronjay Buenafe? ### Input: CREATE TABLE table_4067 ( "Category" text, "Player" text, "Team" text, "Games played" real, "Totals" text, "Average" text ) ### Response: SELECT "Team" FROM table_4067 WHERE "Player" = 'Ronjay Buenafe'
7,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: What is Darryl Fedorak's highest round? ### Input: CREATE TABLE table_34686 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) ### Response: SELECT MAX("Round") FROM table_34686 WHERE "Player" = 'darryl fedorak'
11,167
Below are sql tables 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 election where Sir Christopher William Codrington is elected First Member and the second party is Conservative? ### Input: CREATE TABLE table_53216 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) ### Response: SELECT "Election" FROM table_53216 WHERE "1st Member" = 'sir christopher william codrington' AND "2nd Party" = 'conservative'
7,705
Below are sql tables 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 production code of the episode written by Brendan Cowell? ### Input: CREATE TABLE table_27637 ( "Series #" real, "Title" text, "Director" text, "Writer" text, "Air Date" text, "Production Code" real ) ### Response: SELECT "Production Code" FROM table_27637 WHERE "Writer" = 'Brendan Cowell'
10,712
Below are sql tables 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 shows as the Diameter (km) when the Diameter (mi) is 5mi? ### Input: CREATE TABLE table_39996 ( "Gill" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Diameter (mi)" text ) ### Response: SELECT "Diameter (km)" FROM table_39996 WHERE "Diameter (mi)" = '5mi'
5,531
Below are sql tables 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 2005 is the year played what is the lowest year drafted? ### Input: CREATE TABLE table_18373863_2 ( year_drafted INTEGER, years_played VARCHAR ) ### Response: SELECT MIN(year_drafted) FROM table_18373863_2 WHERE years_played = "2005"
5,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 year was the international lower than 17,517 and domestic was less than 545? ### Input: CREATE TABLE table_61059 ( "Year" real, "Domestic" real, "International" real, "Total" real, "Change" text ) ### Response: SELECT AVG("Year") FROM table_61059 WHERE "International" < '17,517' AND "Domestic" < '545'
3,582
Below are sql tables 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 years of TeBe career for the players whose league matches are exactly 163? ### Input: CREATE TABLE table_30712 ( "Player" text, "Nation" text, "TeBe career" text, "League matches" real, "League goals" real, "Cup matches" real, "Cup goals" real ) ### Response: SELECT "TeBe career" FROM table_30712 WHERE "League matches" = '163'
4,991
Below are sql tables 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 fewest Al Ahly wins for El Zamalek wins of 0 and 0 draws? ### Input: CREATE TABLE table_name_29 ( al_ahly_wins INTEGER, draws VARCHAR, el_zamalek_wins VARCHAR ) ### Response: SELECT MIN(al_ahly_wins) FROM table_name_29 WHERE draws = 0 AND el_zamalek_wins < 0
322
Below are sql tables 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 1940 , how many steam locomotives were built ? ### Input: CREATE TABLE table_204_30 ( id number, "year built" text, "works number" number, "wheel arr." text, "gauge" text, "original owner" text, "name" text, "current location" text, "notes" text ) ### Response: SELECT COUNT(*) FROM table_204_30 WHERE "year built" > 1940
19,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: renal failure ### Input: CREATE TABLE table_train_192 ( "id" int, "hemoglobin_a1c_hba1c" float, "renal_disease" bool, "diabetic" string, "fasting_plasma_glucose" int, "NOUSE" float ) ### Response: SELECT * FROM table_train_192 WHERE renal_disease = 1
13,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: During the quarter 2012 Q4, how many millions of android phones were shipped? ### Input: CREATE TABLE table_972 ( "Quarter" text, "Android" text, "iOS" text, "Symbian" text, "BlackBerry OS" text, "Linux" text, "Windows Phone" text, "Other" text, "Total" text ) ### Response: SELECT COUNT("Android") FROM table_972 WHERE "Quarter" = '2012 Q4'
20,967
Below are sql tables 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 lowest attendance in round r1 at H venue? ### Input: CREATE TABLE table_9470 ( "Date" text, "Round" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real ) ### Response: SELECT MIN("Attendance") FROM table_9470 WHERE "Round" = 'r1' AND "Venue" = 'h'
10,680
Below are sql tables 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 time of the person in lane 7? ### Input: CREATE TABLE table_66760 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) ### Response: SELECT "Time" FROM table_66760 WHERE "Lane" = '7'
12,516
Below are sql tables 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 driver(s) had over 65 stag wins? ### Input: CREATE TABLE table_26007 ( "Pos" real, "Driver" text, "Starts" real, "Finishes" real, "Wins" real, "Podiums" real, "Stage wins" real, "Power stage wins" real, "Points" real ) ### Response: SELECT "Driver" FROM table_26007 WHERE "Stage wins" = '65'
17,398
Below are sql tables 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, when the Date is October 6? ### Input: CREATE TABLE table_42130 ( "Season" real, "Date" text, "Location" text, "Driver" text, "Chassis" text, "Engine" text, "Team" text ) ### Response: SELECT "Driver" FROM table_42130 WHERE "Date" = 'october 6'
24,472
Below are sql tables 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 catalog number named callanetics: 10 years younger in 10 hours ### Input: CREATE TABLE table_11222744_3 ( catalog_number VARCHAR, title VARCHAR ) ### Response: SELECT catalog_number FROM table_11222744_3 WHERE title = "Callanetics: 10 years Younger In 10 Hours"
9,837
Below are sql tables 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 the game that was 76-85, what was the record? ### Input: CREATE TABLE table_43762 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text ) ### Response: SELECT "Record" FROM table_43762 WHERE "Score" = '76-85'
23,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: the nebraska cornhuskers last game was played where ### Input: CREATE TABLE table_204_294 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) ### Response: SELECT "site" FROM table_204_294 ORDER BY "date" DESC LIMIT 1
19,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: Which ERP W is the highest one that has a Call sign of w255bi? ### Input: CREATE TABLE table_38706 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text ) ### Response: SELECT MAX("ERP W") FROM table_38706 WHERE "Call sign" = 'w255bi'
11,656
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the date of the Cubs game when the Cubs had a record of 1-0? ### Input: CREATE TABLE table_54866 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) ### Response: SELECT "Date" FROM table_54866 WHERE "Record" = '1-0'
22,132
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the power of b-b wheel arrangement, built in 1952? ### Input: CREATE TABLE table_name_88 ( power_output VARCHAR, wheel_arrangement VARCHAR, build_date VARCHAR ) ### Response: SELECT power_output FROM table_name_88 WHERE wheel_arrangement = "b-b" AND build_date = "1952"
22,089
Below are sql tables 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 University founded in 1863? ### Input: CREATE TABLE table_2004 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Year Joined" real, "Nickname" text, "Conference" text ) ### Response: SELECT COUNT("Enrollment") FROM table_2004 WHERE "Founded" = '1863'
2,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 was the top crowd when the team scored 12.15 (87) at home? ### Input: CREATE TABLE table_56940 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT MAX("Crowd") FROM table_56940 WHERE "Home team score" = '12.15 (87)'
825
Below are sql tables 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 player come from whose position is DL? ### Input: CREATE TABLE table_27351 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) ### Response: SELECT "College" FROM table_27351 WHERE "Position" = 'DL'
14,071
Below are sql tables 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 the University that is also called Hawks? ### Input: CREATE TABLE table_2002 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Year Joined" real, "Nickname" text, "Conference" text ) ### Response: SELECT "Location" FROM table_2002 WHERE "Nickname" = 'Hawks'
6,629
Below are sql tables 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 Result of 1 2? ### Input: CREATE TABLE table_52484 ( "Date" text, "Venue" text, "Result" text, "Scored" real, "Competition" text ) ### Response: SELECT "Venue" FROM table_52484 WHERE "Result" = '1–2'
3,999
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How long is the song titled burning love? ### Input: CREATE TABLE table_40061 ( "Track" real, "Recorded" text, "Catalogue" text, "Release date" text, "Song title" text, "Writer(s)" text, "Time" text ) ### Response: SELECT "Time" FROM table_40061 WHERE "Song title" = 'burning love'
4,238
Below are sql tables 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 for someone on grid 9? ### Input: CREATE TABLE table_51465 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text ) ### Response: SELECT "Time/Retired" FROM table_51465 WHERE "Grid" = '9'
15,850
Below are sql tables 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 model number for the processor with sSpec number of sl3jm(kc0)sl3jt(kc0)? ### Input: CREATE TABLE table_name_32 ( model_number VARCHAR, sspec_number VARCHAR ) ### Response: SELECT model_number FROM table_name_32 WHERE sspec_number = "sl3jm(kc0)sl3jt(kc0)"
6,799
Below are sql tables 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 laps when the driver is rolf stommelen and the grid is more than 18? ### Input: CREATE TABLE table_name_99 ( laps INTEGER, driver VARCHAR, grid VARCHAR ) ### Response: SELECT MIN(laps) FROM table_name_99 WHERE driver = "rolf stommelen" AND grid > 18
11,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 was the pick number for Andrew Quarless? ### Input: CREATE TABLE table_3462 ( "Round #" real, "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) ### Response: SELECT MAX("Pick #") FROM table_3462 WHERE "Player" = 'Andrew Quarless'
9,514
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What position belonged to the player from Paramus, New Jersey? ### Input: CREATE TABLE table_17066 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text ) ### Response: SELECT "Position" FROM table_17066 WHERE "Hometown" = 'Paramus, New Jersey'
4,372
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: I want to meet that has a time 2:15.93 ### Input: CREATE TABLE table_4345 ( "Event" text, "Time" text, "Nationality" text, "Date" text, "Meet" text, "Location" text ) ### Response: SELECT "Meet" FROM table_4345 WHERE "Time" = '2:15.93'
10,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: How many jury votes for the televote of 7? ### Input: CREATE TABLE table_23290 ( "Draw" real, "Artist" text, "Song" text, "Jury votes" real, "Televotes" real, "Total votes" real, "Result" text ) ### Response: SELECT "Jury votes" FROM table_23290 WHERE "Televotes" = '7'
4,647
Below are sql tables 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 shows for Scorers when the Opponent was west germany on October 7? ### Input: CREATE TABLE table_6609 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Scorers" text, "Type of game" text ) ### Response: SELECT "Scorers" FROM table_6609 WHERE "Opponent" = 'west germany' AND "Date" = 'october 7'
11,488
Below are sql tables 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 away team played Footscray? ### Input: CREATE TABLE table_74722 ( "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_74722 WHERE "Home team" = 'footscray'
12,308
Below are sql tables 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 is from Chula Vista, Ca? ### Input: CREATE TABLE table_58031 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) ### Response: SELECT "Player" FROM table_58031 WHERE "Hometown" = 'chula vista, ca'
15,209
Below are sql tables 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 teams with 7 wins, what is the number of goals against? ### Input: CREATE TABLE table_78523 ( "Team" text, "Games Played" real, "Wins" real, "Losses" real, "Ties" real, "Goals For" real, "Goals Against" real ) ### Response: SELECT "Goals Against" FROM table_78523 WHERE "Wins" = '7'
12,654
Below are sql tables 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 type has list entry number of 1356677? ### Input: CREATE TABLE table_40668 ( "Name" text, "Location" text, "Type" text, "Completed" text, "List entry number" real ) ### Response: SELECT "Type" FROM table_40668 WHERE "List entry number" = '1356677'
2,153
Below are sql tables 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 did Hawthorn play an away game? ### Input: CREATE TABLE table_10619 ( "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_10619 WHERE "Away team" = 'hawthorn'
13,427
Below are sql tables 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 teachers teach in classroom 109? Give me their last names. ### Input: CREATE TABLE teachers ( lastname text, firstname text, classroom number ) CREATE TABLE list ( lastname text, firstname text, grade number, classroom number ) ### Response: SELECT lastname FROM teachers WHERE classroom = 109
3,608
Below are sql tables 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 digital channel corresponds to virtual channel 5.2? ### Input: CREATE TABLE table_30608 ( "Callsign" text, "City of license" text, "Virtual channel" text, "Digital channel" text, "Network" text ) ### Response: SELECT "Digital channel" FROM table_30608 WHERE "Virtual channel" = '5.2'
3,249
Below are sql tables 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 place when the language is croatian? ### Input: CREATE TABLE table_62273 ( "Draw" real, "Language" text, "Artist" text, "Song" text, "English translation" text, "National final" text, "Place" real, "Points" real ) ### Response: SELECT MIN("Place") FROM table_62273 WHERE "Language" = 'croatian'
1,347
Below are sql tables 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 player had the largest number of &#931; points ? ### Input: CREATE TABLE table_203_507 ( id number, "#" text, "player" text, "\u03c3 points" number, "qual." number, "final" number ) ### Response: SELECT "player" FROM table_203_507 ORDER BY "\u03c3 points" DESC LIMIT 1
19,932
Below are sql tables 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 Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up? ### Input: CREATE TABLE table_name_63 ( intercontinental_cup_1999 VARCHAR, copa_conmebol_1999 VARCHAR ) ### Response: SELECT intercontinental_cup_1999 FROM table_name_63 WHERE copa_conmebol_1999 = "runner-up"
13,631
Below are sql tables 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 had a lost 5-4 result? ### Input: CREATE TABLE table_45184 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" text, "Competition" text, "Man of the Match" text ) ### Response: SELECT "Venue" FROM table_45184 WHERE "Result" = 'lost 5-4'
24,959
Below are sql tables 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 most minimal Final year that has a North or east end of covington? ### Input: CREATE TABLE table_8471 ( "South or west terminus" text, "North or east terminus" text, "First year" real, "Final year" real, "Notes" text ) ### Response: SELECT MIN("Final year") FROM table_8471 WHERE "North or east terminus" = 'covington'
14,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: What was the surface of the match against bethanie mattek-sands? ### Input: CREATE TABLE table_68459 ( "Outcome" text, "Date" text, "Surface" text, "Opponent" text, "Score" text ) ### Response: SELECT "Surface" FROM table_68459 WHERE "Opponent" = 'bethanie mattek-sands'
6,760
Below are sql tables 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 point is tony kanaan ### Input: CREATE TABLE table_204_175 ( id number, "pos" text, "no." number, "driver" text, "team" text, "laps" number, "time/retired" text, "grid" number, "laps led" number, "points" number ) ### Response: SELECT "points" FROM table_204_175 WHERE "driver" = 'tony kanaan'
1,843
Below are sql tables 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 clubs with 46 matches? ### Input: CREATE TABLE table_75457 ( "Round" text, "Date" text, "Matches" real, "Clubs" text, "New entries this round" text, "Prize money" text ) ### Response: SELECT "Clubs" FROM table_75457 WHERE "Matches" = '46'
17,349
Below are sql tables 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 winner of the race at barbagallo raceway? ### Input: CREATE TABLE table_23989 ( "Rd." real, "Race Title" text, "Circuit" text, "Location" text, "Date" text, "Format" text, "Winner" text, "Team" text, "Report" text ) ### Response: SELECT "Winner" FROM table_23989 WHERE "Circuit" = 'Barbagallo Raceway'
20,436
Below are sql tables 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 rookie goalkeeper Mike Gabel? ### Input: CREATE TABLE table_6045 ( "Month" text, "Week" real, "Offensive" text, "Defensive" text, "Goalkeeper" text, "Rookie" text ) ### Response: SELECT "Rookie" FROM table_6045 WHERE "Goalkeeper" = 'mike gabel'
17,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: How much money has been raised that has $5,821,587 cash on hand? ### Input: CREATE TABLE table_name_75 ( money_raised VARCHAR, _3q VARCHAR, cash_on_hand VARCHAR ) ### Response: SELECT money_raised, _3q FROM table_name_75 WHERE cash_on_hand = "$5,821,587"
8,136