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 that had 0.54 million U.S. viewers? ### Input: CREATE TABLE table_26914076_4 ( directed_by VARCHAR, us_viewers__millions_ VARCHAR ) ### Response: SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.54"
17,102
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What district is incumbent sid simpson from? ### Input: CREATE TABLE table_762 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) ### Response: SELECT "District" FROM table_762 WHERE "Incumbent" = 'Sid Simpson'
16,568
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the alternate of the nation with Piotras Gerasimovici as the second? ### Input: CREATE TABLE table_36154 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text ) ### Response: SELECT "Alternate" FROM table_36154 WHERE "Second" = 'piotras gerasimovici'
18,485
Below are sql tables 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 College/Junior/Club Team (league) does Matthew Bartkowski play for? ### Input: CREATE TABLE table_name_31 ( college_junior_club_team__league_ VARCHAR, player VARCHAR ) ### Response: SELECT college_junior_club_team__league_ FROM table_name_31 WHERE player = "matthew bartkowski"
14,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 are all episodes with a viewing figure of 6.72 million? ### Input: CREATE TABLE table_19802 ( "#" real, "Episode" text, "Writer" text, "Director" text, "Original air date" text, "Viewing figure" text ) ### Response: SELECT "Episode" FROM table_19802 WHERE "Viewing figure" = '6.72 million'
1,554
Below are sql tables 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 Rank of the Guam Player? ### Input: CREATE TABLE table_65448 ( "Rank" real, "Athletes" text, "Country" text, "Time" text, "Notes" text ) ### Response: SELECT AVG("Rank") FROM table_65448 WHERE "Country" = 'guam'
5,554
Below are sql tables 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 owner with a call sign of cjgx? ### Input: CREATE TABLE table_31717 ( "Frequency" text, "Call sign" text, "Branding" text, "Format" text, "Owner" text ) ### Response: SELECT "Owner" FROM table_31717 WHERE "Call sign" = 'cjgx'
7,258
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many episodes in the series were titled 'a little death'? ### Input: CREATE TABLE table_30687 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) ### Response: SELECT COUNT("No. in series") FROM table_30687 WHERE "Title" = 'A Little Death'
16,599
Below are sql tables 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 division is listed only once ? ### Input: CREATE TABLE table_204_589 ( id number, "season" text, "tier" number, "division" text, "pos." text, "notes" text ) ### Response: SELECT "division" FROM table_204_589 GROUP BY "division" HAVING COUNT(*) = 1
3,707
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the total number of episodes with the production code 2395113A? ### Input: CREATE TABLE table_16369 ( "No. in series" real, "No. in season" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production code" text ) ### Response: SELECT COUNT("Title") FROM table_16369 WHERE "Production code" = '2395113A'
14,523
Below are sql tables 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 did the episode with season number 10b air for the first time? ### Input: CREATE TABLE table_907 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Storyboarded by" text, "Original air date" text, "Production code" text ) ### Response: SELECT "Original air date" FROM table_907 WHERE "No. in season" = '10b'
12,193
Below are sql tables 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 record on july 10? ### Input: CREATE TABLE table_80405 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) ### Response: SELECT "Record" FROM table_80405 WHERE "Date" = 'july 10'
3,702
Below are sql tables 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 total Lost that has a Played that's larger than 42? ### Input: CREATE TABLE table_38994 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) ### Response: SELECT SUM("Lost") FROM table_38994 WHERE "Played" > '42'
24,435
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many games have a Result of 4 0, and an Attendance larger than 12,256? ### Input: CREATE TABLE table_62815 ( "Game" real, "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real ) ### Response: SELECT COUNT("Game") FROM table_62815 WHERE "Result" = '4–0' AND "Attendance" > '12,256'
264
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson? ### Input: CREATE TABLE table_39761 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Law Preservation ticket" text, "Socialist ticket" text, "Socialist Labor ticket" text ) ### Response: SELECT "Socialist ticket" FROM table_39761 WHERE "Socialist Labor ticket" = 'charles m. carlson'
14,559
Below are sql tables 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 Lead has a City of winnipeg, and a Third/Vice skip of kevin park? ### Input: CREATE TABLE table_49158 ( "Skip" text, "Third/Vice skip" text, "Second" text, "Lead" text, "City" text ) ### Response: SELECT "Lead" FROM table_49158 WHERE "City" = 'winnipeg' AND "Third/Vice skip" = 'kevin park'
16,751
Below are sql tables 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 Outcome for the Partner of J rgen Melzer on the Date of February 7, 2010? ### Input: CREATE TABLE table_name_94 ( outcome VARCHAR, partner VARCHAR, date VARCHAR ) ### Response: SELECT outcome FROM table_name_94 WHERE partner = "jürgen melzer" AND date = "february 7, 2010"
3,309
Below are sql tables 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 total number of medals associated with 1 gold, more than 0 silver, and 2 bronze? ### Input: CREATE TABLE table_name_33 ( total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR ) ### Response: SELECT MAX(total) FROM table_name_33 WHERE bronze = 2 AND gold = 1 AND silver > 0
1,449
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Label has a Catalog number of 885 572-7 in 7' single Format? ### Input: CREATE TABLE table_34058 ( "Date" text, "Label" text, "Region" text, "Format" text, "Catalog" text ) ### Response: SELECT "Label" FROM table_34058 WHERE "Format" = '7" single' AND "Catalog" = '885 572-7'
18,268
Below are sql tables 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 Olin Dutra's score? ### Input: CREATE TABLE table_70717 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) ### Response: SELECT "Score" FROM table_70717 WHERE "Player" = 'olin dutra'
18,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: What year had a date of TBA where the Oakland raiders were the home team? ### Input: CREATE TABLE table_40950 ( "Year" real, "Date" text, "Television" text, "Designated Visitors" text, "Designated Home" text, "Stadium" text, "City" text ) ### Response: SELECT AVG("Year") FROM table_40950 WHERE "Date" = 'tba' AND "Designated Home" = 'oakland raiders'
14,958
Below are sql tables 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 location/attendance when the record is 9-2? ### Input: CREATE TABLE table_76284 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text ) ### Response: SELECT "Location/Attendance" FROM table_76284 WHERE "Record" = '9-2'
1,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: Which Games have a Drawn smaller than 1, and a Lost smaller than 1? ### Input: CREATE TABLE table_38247 ( "Games" real, "Drawn" real, "Lost" real, "Points difference" text, "Points" real ) ### Response: SELECT "Games" FROM table_38247 WHERE "Drawn" < '1' AND "Lost" < '1'
18,630
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the season when the third is shawn rojeski? ### Input: CREATE TABLE table_8028 ( "Season" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) ### Response: SELECT "Season" FROM table_8028 WHERE "Third" = 'shawn rojeski'
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 were the revising conventions commentary with a denunciation of 21? ### Input: CREATE TABLE table_2001348_1 ( revising_convention_s_ VARCHAR, denunciations__september_2011_ VARCHAR ) ### Response: SELECT revising_convention_s_ FROM table_2001348_1 WHERE denunciations__september_2011_ = 21
16,001
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When was the game at Gillette Stadium that ended in a final score of 30-17? ### Input: CREATE TABLE table_name_37 ( date VARCHAR, final_score VARCHAR, stadium VARCHAR ) ### Response: SELECT date FROM table_name_37 WHERE final_score = "30-17" AND stadium = "gillette stadium"
2,615
Below are sql tables 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 against Portland in game numbers under 20? ### Input: CREATE TABLE table_7988 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Score" FROM table_7988 WHERE "Game" < '20' AND "Team" = 'portland'
12,400
Below are sql tables 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 average for long 10? ### Input: CREATE TABLE table_56189 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) ### Response: SELECT COUNT("Avg.") FROM table_56189 WHERE "Long" = '10'
23,032
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many entries are there for weight when the winner is 1st - defier and venue is randwick? ### Input: CREATE TABLE table_1360997_3 ( weight__kg_ VARCHAR, winner_2nd VARCHAR, venue VARCHAR ) ### Response: SELECT COUNT(weight__kg_) FROM table_1360997_3 WHERE winner_2nd = "1st - Defier" AND venue = "Randwick"
2,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: What is the Name with an Event that is men's time trial? ### Input: CREATE TABLE table_41319 ( "Medal" text, "Name" text, "Sport" text, "Event" text, "Date" text ) ### Response: SELECT "Name" FROM table_41319 WHERE "Event" = 'men''s time trial'
13,911
Below are sql tables 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 partner that played a match on a grass court? ### Input: CREATE TABLE table_68336 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) ### Response: SELECT "Partner" FROM table_68336 WHERE "Surface" = 'grass'
12,420
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the incumbent in district Massachusetts7? ### Input: CREATE TABLE table_18206 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Status" text, "Opponent" text ) ### Response: SELECT "Incumbent" FROM table_18206 WHERE "District" = 'Massachusetts7'
512
Below are sql tables 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 rank of the Virgin Islands athlete with react under 0.168? ### Input: CREATE TABLE table_64049 ( "Rank" real, "Lane" real, "Athlete" text, "Nationality" text, "Time" real, "React" real ) ### Response: SELECT "Rank" FROM table_64049 WHERE "React" < '0.168' AND "Nationality" = 'virgin islands'
23,148
Below are sql tables 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 number of floors of the Venetian tower? ### Input: CREATE TABLE table_40892 ( "Rank" text, "Name" text, "Height m / feet" text, "Floors" real, "Year" real ) ### Response: SELECT AVG("Floors") FROM table_40892 WHERE "Name" = 'venetian tower'
15,975
Below are sql tables 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 Place, when Player is 'Steve Pate'? ### Input: CREATE TABLE table_61132 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) ### Response: SELECT "Place" FROM table_61132 WHERE "Player" = 'steve pate'
232
Below are sql tables 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 for driver gerhard berger with a grid more than 6? ### Input: CREATE TABLE table_10669 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT MIN("Laps") FROM table_10669 WHERE "Driver" = 'gerhard berger' AND "Grid" > '6'
3,425
Below are sql tables 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 Prize, when Runner-Up is 'Simon Ehne', and when Winner is 'David Tighe'? ### Input: CREATE TABLE table_9736 ( "Season" text, "Winner" text, "Prize" text, "Runner-Up" text, "3rd place" text ) ### Response: SELECT "Prize" FROM table_9736 WHERE "Runner-Up" = 'simon ehne' AND "Winner" = 'david tighe'
10,767
Below are sql tables 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 reader on the download/cd format of the title written by author lidster, joseph joseph lidster? ### Input: CREATE TABLE table_20174050_23 ( reader VARCHAR, format VARCHAR, author VARCHAR ) ### Response: SELECT reader FROM table_20174050_23 WHERE format = "Download/CD" AND author = "Lidster, Joseph Joseph Lidster"
9,061
Below are sql tables 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 Round has a Ranking of 2008 wta tour? ### Input: CREATE TABLE table_33875 ( "Player" text, "Ranking" text, "Event" text, "Surface" text, "Round" text, "Score" text ) ### Response: SELECT "Round" FROM table_33875 WHERE "Ranking" = '2008 wta tour'
5,268
Below are sql tables 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 Opponent, when Rank is 3? ### Input: CREATE TABLE table_45774 ( "Rank" text, "Figures" text, "Player" text, "Opponent" text, "Venue" text, "Season" text ) ### Response: SELECT "Opponent" FROM table_45774 WHERE "Rank" = '3'
15,378
Below are sql tables 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 WAS ON SEPTEMBER 21? ### Input: CREATE TABLE table_47867 ( "Date" text, "Opponent" text, "Score" text, "Result" text, "Record" text ) ### Response: SELECT "Score" FROM table_47867 WHERE "Date" = 'september 21'
21,032
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the length for a diameter totaling 450 mm? ### Input: CREATE TABLE table_22000 ( "Name (year commissioned)" text, "Owner/operator" text, "Length" text, "Maximum diameter" text, "From/to" text, "Licence number" text ) ### Response: SELECT "Length" FROM table_22000 WHERE "Maximum diameter" = '450 mm'
3,296
Below are sql tables 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 > 7.5 % ### Input: CREATE TABLE table_train_207 ( "id" int, "anemia" bool, "hemoglobin_a1c_hba1c" float, "diabetic" string, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) ### Response: SELECT * FROM table_train_207 WHERE hemoglobin_a1c_hba1c > 7.5
18,888
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What town has the population of 777? ### Input: CREATE TABLE table_2562572_39 ( cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR ) ### Response: SELECT cyrillic_name_other_names FROM table_2562572_39 WHERE population__2011_ = "777"
17,901
Below are sql tables 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 Mountains classification has Points classification of not awarded? ### Input: CREATE TABLE table_6003 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Combination classification" text, "Team classification" text ) ### Response: SELECT "Mountains classification" FROM table_6003 WHERE "Points classification" = 'not awarded'
21,284
Below are sql tables 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 cell phone number of the student whose address has the lowest monthly rental? ### Input: CREATE TABLE Students ( cell_mobile_number VARCHAR, student_id VARCHAR ) CREATE TABLE Student_Addresses ( student_id VARCHAR, monthly_rental VARCHAR ) ### Response: SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental LIMIT 1
23,271
Below are sql tables 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 competition in 2003? ### Input: CREATE TABLE table_69314 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) ### Response: SELECT "Competition" FROM table_69314 WHERE "Year" = '2003'
1,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: Which Episodes have a TV Station of ntv, and a Japanese Title of ? ### Input: CREATE TABLE table_65176 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" real, "Average Ratings" text ) ### Response: SELECT AVG("Episodes") FROM table_65176 WHERE "TV Station" = 'ntv' AND "Japanese Title" = 'あいのうた'
21,325
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the most gold medals a team with less than 2 silvers, more than 7 total medals, and less than 8 bronze medals has? ### Input: CREATE TABLE table_name_19 ( gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR ) ### Response: SELECT MAX(gold) FROM table_name_19 WHERE silver < 2 AND total > 7 AND bronze < 8
21,084
Below are sql tables 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 2008 club of Venelle? ### Input: CREATE TABLE table_44039 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text ) ### Response: SELECT "Name" FROM table_44039 WHERE "2008 club" = 'venelle'
15,973
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the advisor of student with ID 1004? ### Input: CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE has_allergy ( stuid number, allergy text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) ### Response: SELECT advisor FROM student WHERE stuid = 1004
8,473
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who was the winner of uci rating cn? ### Input: CREATE TABLE table_30058 ( "Dates" text, "Race Name" text, "Location" text, "UCI Rating" text, "Winner" text, "Team" text, "Series Leader" text ) ### Response: SELECT "Winner" FROM table_30058 WHERE "UCI Rating" = 'CN'
2,686
Below are sql tables 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 leagues have Raiders as their mascot? ### Input: CREATE TABLE table_72150 ( "School" text, "Mascot" text, "Location" text, "League" text, "Enrollment" real ) ### Response: SELECT "League" FROM table_72150 WHERE "Mascot" = 'Raiders'
21,283
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Compare the total number of captains with different classes using a bar graph, and display total number from low to high order. ### 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 COUNT(Class)
3,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: What Location has a Team Nickname called the Fighting Missionaries? ### Input: CREATE TABLE table_7064 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Team Nickname" text, "Primary conference" text ) ### Response: SELECT "Location" FROM table_7064 WHERE "Team Nickname" = 'fighting missionaries'
824
Below are sql tables 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 became the champion for the 1984 Grand Prix where Marty Davis was the runner-up? ### Input: CREATE TABLE table_31076 ( "Week of" text, "Tournament" text, "Champion" text, "Runner-up" text, "Semifinalists" text, "Quarterfinalists" text ) ### Response: SELECT "Champion" FROM table_31076 WHERE "Runner-up" = 'Marty Davis'
15,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: Which place has United States as the country and Craig Wood as the player? ### Input: CREATE TABLE table_68290 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) ### Response: SELECT "Place" FROM table_68290 WHERE "Country" = 'united states' AND "Player" = 'craig wood'
1,254
Below are sql tables 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 title of the episode written by Bob Rosenfarb and directed by Richard Correll? ### Input: CREATE TABLE table_2468961_3 ( title VARCHAR, written_by VARCHAR, directed_by VARCHAR ) ### Response: SELECT title FROM table_2468961_3 WHERE written_by = "Bob Rosenfarb" AND directed_by = "Richard Correll"
12,917
Below are sql tables 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 with a Lap that is 5? ### Input: CREATE TABLE table_42181 ( "Name" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT "Team" FROM table_42181 WHERE "Laps" = '5'
19,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: Who is the creator of the title , aejangpan hongchawangja? ### Input: CREATE TABLE table_63645 ( "Title" text, "Localized Title" text, "Creator" text, "Years" text, "Origin" text ) ### Response: SELECT "Creator" FROM table_63645 WHERE "Localized Title" = '애장판 홍차왕자, aejangpan hongchawangja'
12,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 are all the name(namesakes) for the entire chart? ### Input: CREATE TABLE table_31386 ( "Name (Namesake)" text, "Builder Dimensions Displacement, Hull Speed Complement" text, "Machinery Boiler, Bunkers Engines Armament" text, "Ordered Laid down Launched Trials" text, "Commissioned Decommissioned Afterward" text ) ### Response: SELECT "Name (Namesake)" FROM table_31386
2,738
Below are sql tables 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 lest amount of bronzes that ranked 2 and has less silvers than 0? ### Input: CREATE TABLE table_45287 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT MIN("Bronze") FROM table_45287 WHERE "Rank" = '2' AND "Silver" < '0'
6,992
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What day was the opponent Austria? ### Input: CREATE TABLE table_37147 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text ) ### Response: SELECT "Date" FROM table_37147 WHERE "Opponent" = 'austria'
1,587
Below are sql tables 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 round that has a draftee from Washington State University? ### Input: CREATE TABLE table_70940 ( "Round" real, "Name" text, "Position" text, "School" text, "Signed" text ) ### Response: SELECT MAX("Round") FROM table_70940 WHERE "School" = 'washington state university'
3,510
Below are sql tables 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 Projects template has an IntelliTrace of no, and a Windows Phone development of yes, and a Test impact analysis of no? ### Input: CREATE TABLE table_name_39 ( projects_templates VARCHAR, test_impact_analysis VARCHAR, intellitrace VARCHAR, windows_phone_development VARCHAR ) ### Response: SELECT projects_templates FROM table_name_39 WHERE intellitrace = "no" AND windows_phone_development = "yes" AND test_impact_analysis = "no"
2,607
Below are sql tables 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 Player, when Score is less than 69, and when Country is 'United States'? ### Input: CREATE TABLE table_48772 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) ### Response: SELECT "Player" FROM table_48772 WHERE "Score" < '69' AND "Country" = 'united states'
17,033
Below are sql tables 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 number of left fielders on the list . ### Input: CREATE TABLE table_204_486 ( id number, "name" text, "season(s)" text, "position(s)" text, "notes" text ) ### Response: SELECT COUNT(*) FROM table_204_486 WHERE "position(s)" = 'left fielder'
12,130
Below are sql tables 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 partner of the team that faced the guillermo garc a-l pez albert portas on clay? ### Input: CREATE TABLE table_name_45 ( partner VARCHAR, surface VARCHAR, opponents VARCHAR ) ### Response: SELECT partner FROM table_name_45 WHERE surface = "clay" AND opponents = "guillermo garcía-lópez albert portas"
6,927
Below are sql tables 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 played for Memphis State? ### Input: CREATE TABLE table_33553 ( "Round" real, "Overall" real, "Player" text, "Position" text, "School/Club Team" text ) ### Response: SELECT "Player" FROM table_33553 WHERE "School/Club Team" = 'memphis state'
7,633
Below are sql tables 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 ranking for the player from Australia? ### Input: CREATE TABLE table_68969 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) ### Response: SELECT "Place" FROM table_68969 WHERE "Country" = 'australia'
14,207
Below are sql tables 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 score of Jeff Maggert in T2 place? ### Input: CREATE TABLE table_44996 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) ### Response: SELECT "Score" FROM table_44996 WHERE "Place" = 't2' AND "Player" = 'jeff maggert'
14,898
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V? ### Input: CREATE TABLE table_name_7 ( socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR ) ### Response: SELECT socket FROM table_name_7 WHERE frequency = "1600mhz" AND release_date = "june 22, 2005" AND voltage < 1.35
10,116
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the result for opponent of chicago bears ### Input: CREATE TABLE table_15115 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" text ) ### Response: SELECT "Result" FROM table_15115 WHERE "Opponent" = 'chicago bears'
15,566
Below are sql tables 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 unemployment rate where the market income per capita is $16,406? ### Input: CREATE TABLE table_22815568_13 ( unemployment_rate VARCHAR, market_income_per_capita VARCHAR ) ### Response: SELECT unemployment_rate FROM table_22815568_13 WHERE market_income_per_capita = "$16,406"
7,836
Below are sql tables 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 Round, when College/Junior/Club Team (League) is 'Kelowna Rockets ( WHL )'? ### Input: CREATE TABLE table_name_83 ( round VARCHAR, college_junior_club_team__league_ VARCHAR ) ### Response: SELECT COUNT(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )"
7,496
Below are sql tables 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 Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger? ### Input: CREATE TABLE table_79201 ( "Rank" real, "Lane" real, "Athlete" text, "Country" text, "Time" text ) ### Response: SELECT MAX("Rank") FROM table_79201 WHERE "Time" = '1:47.65' AND "Lane" > '3'
8,614
Below are sql tables 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 Year has a Location of dinas on 13 january? ### Input: CREATE TABLE table_61876 ( "Colliery" text, "Location" text, "Date" text, "Year" real, "Death toll" real, "cause" text ) ### Response: SELECT "Year" FROM table_61876 WHERE "Location" = 'dinas' AND "Date" = '13 january'
8,509
Below are sql tables 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 rank of the time of 6:30.53? ### Input: CREATE TABLE table_79208 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) ### Response: SELECT COUNT("Rank") FROM table_79208 WHERE "Time" = '6:30.53'
24,885
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many overs bowled for muttiah muralitharan? ### Input: CREATE TABLE table_20281 ( "Name" text, "Overs Bowled" text, "Maidens" real, "Runs Conceded" real, "Wickets" real, "Extras" real, "E.R." text ) ### Response: SELECT COUNT("Overs Bowled") FROM table_20281 WHERE "Name" = 'Muttiah Muralitharan'
16,707
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the minimum population in 2011 of the district of Prakasam? ### Input: CREATE TABLE table_1610301_1 ( population__2011_ INTEGER, district VARCHAR ) ### Response: SELECT MIN(population__2011_) FROM table_1610301_1 WHERE district = "Prakasam"
16,565
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of Pick #, when Position is Guard, and when Round is greater than 2? ### Input: CREATE TABLE table_47100 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text ) ### Response: SELECT SUM("Pick #") FROM table_47100 WHERE "Position" = 'guard' AND "Round" > '2'
8,335
Below are sql tables 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 Digital PSIP for channels over 15 with callsign CFTU-DT? ### Input: CREATE TABLE table_63929 ( "Call sign" text, "Broadcast channel" real, "Digital PSIP" real, "Cable channel" real, "Network" text ) ### Response: SELECT "Digital PSIP" FROM table_63929 WHERE "Broadcast channel" > '15' AND "Call sign" = 'cftu-dt'
5,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 is the sum of points when Bruce Arena has 21 wins? ### Input: CREATE TABLE table_79985 ( "Coach" text, "Club" text, "Wins" real, "Loss" real, "PCT." real, "PTS." real ) ### Response: SELECT SUM("PTS.") FROM table_79985 WHERE "Wins" = '21' AND "Coach" = 'bruce arena'
13,856
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What district is the democratic Francis C. Le Blond from? ### Input: CREATE TABLE table_39223 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) ### Response: SELECT "District" FROM table_39223 WHERE "Party" = 'democratic' AND "Incumbent" = 'francis c. le blond'
9,827
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)? ### Input: CREATE TABLE table_2850912_7 ( nhl_team VARCHAR, college_junior_club_team VARCHAR ) ### Response: SELECT COUNT(nhl_team) FROM table_2850912_7 WHERE college_junior_club_team = "Newton North High School (USHS-MA)"
14,214
Below are sql tables 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 the exports is 13,608.65, what is the total trade? ### Input: CREATE TABLE table_26160007_1 ( total_trade VARCHAR, exports VARCHAR ) ### Response: SELECT total_trade FROM table_26160007_1 WHERE exports = "13,608.65"
20,445
Below are sql tables 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 band has a year above 2011? ### Input: CREATE TABLE table_7044 ( "Year" real, "Band" text, "Song" text, "Album" text, "Contribution" text ) ### Response: SELECT "Band" FROM table_7044 WHERE "Year" > '2011'
6,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: Return a scatter on how many students does one classroom have? ### Input: CREATE TABLE teachers ( LastName TEXT, FirstName TEXT, Classroom INTEGER ) CREATE TABLE list ( LastName TEXT, FirstName TEXT, Grade INTEGER, Classroom INTEGER ) ### Response: SELECT COUNT(*), Classroom FROM list GROUP BY Classroom
13,117
Below are sql tables 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 position with artbeingt being jim reeves ### Input: CREATE TABLE table_879 ( "Position" real, "Artist" text, "Song title" text, "Highest position" real, "Points" real ) ### Response: SELECT "Position" FROM table_879 WHERE "Artist" = 'Jim Reeves'
9,598
Below are sql tables 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 gene is ongoing and has an intramuscular route of administration? ### Input: CREATE TABLE table_14056 ( "Gene" text, "Route of administration" text, "Phase" text, "Subject number" text, "Status" text ) ### Response: SELECT "Gene" FROM table_14056 WHERE "Route of administration" = 'intramuscular' AND "Status" = 'ongoing'
14,351
Below are sql tables 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 nations won no silver medals at all ? ### Input: CREATE TABLE table_203_165 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) ### Response: SELECT COUNT("nation") FROM table_203_165 WHERE "silver" = 0
735
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the total number for mens single for 2002/2003 ### Input: CREATE TABLE table_17527 ( "Season" text, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) ### Response: SELECT COUNT("Mens singles") FROM table_17527 WHERE "Season" = '2002/2003'
22,072
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the score of the January 8 game? ### Input: CREATE TABLE table_3849 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Score" FROM table_3849 WHERE "Date" = 'January 8'
18,965
Below are sql tables 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 player for mercer ### Input: CREATE TABLE table_1656 ( "Pick" real, "Player" text, "Nationality" text, "New WNBA Team" text, "Former WNBA Team" text, "College/Country/Team" text ) ### Response: SELECT "Player" FROM table_1656 WHERE "College/Country/Team" = 'Mercer'
17,024
Below are sql tables 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 Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070? ### Input: CREATE TABLE table_name_81 ( week VARCHAR, opponent VARCHAR, attendance VARCHAR ) ### Response: SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at chicago bears" AND attendance > 49 OFFSET 070
8,901
Below are sql tables 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 party is tobias a. plants the incumbent? ### Input: CREATE TABLE table_5537 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text ) ### Response: SELECT "Party" FROM table_5537 WHERE "Incumbent" = 'tobias a. plants'
14,067
Below are sql tables 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 Elevator of Giacomo Colonna? ### Input: CREATE TABLE table_63621 ( "Elector" text, "Nationality" text, "Cardinalatial order and title" text, "Elevated" text, "Elevator" text ) ### Response: SELECT "Elevator" FROM table_63621 WHERE "Elector" = 'giacomo colonna'
24,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: How many different records were there in the games that ended in w 70-66? ### Input: CREATE TABLE table_22659 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location" text, "Record" text ) ### Response: SELECT COUNT("Record") FROM table_22659 WHERE "Score" = 'W 70-66'
23,391
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which years did raymond floyd win? ### Input: CREATE TABLE table_46262 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) ### Response: SELECT "Year(s) won" FROM table_46262 WHERE "Player" = 'raymond floyd'
580
Below are sql tables 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 title 'peggy sue got work'? ### Input: CREATE TABLE table_24865 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) ### Response: SELECT "Directed by" FROM table_24865 WHERE "Title" = 'Peggy Sue Got Work'
5,207