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: What position was played ealier then 2004? ### Input: CREATE TABLE table_4906 ( "Player" text, "Nationality" text, "Position" text, "From" real, "School/Country" text ) ### Response: SELECT "Position" FROM table_4906 WHERE "From" < '2004'
16,556
Below are sql tables 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 incumbent from the south carolina 1 district first elected? ### Input: CREATE TABLE table_36744 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text ) ### Response: SELECT "First elected" FROM table_36744 WHERE "District" = 'south carolina 1'
7,993
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: In the Champions league is the forward position smaller than 6.0 ### Input: CREATE TABLE table_21767 ( "P" real, "Player" text, "Position" text, "League" real, "Copa del Rey" real, "Champions League" real, "Total" real ) ### Response: SELECT COUNT("Champions League") FROM table_21767 WHERE "Position" = 'Forward' AND "League" < '6.0'
11,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: Name the circuit for hertz british grand prix ### Input: CREATE TABLE table_30130 ( "Round" real, "Date" text, "Grand Prix" text, "Circuit" text, "MotoGP winner" text, "Moto2 winner" text, "Moto3 winner" text, "Report" text ) ### Response: SELECT "Circuit" FROM table_30130 WHERE "Grand Prix" = 'Hertz British Grand Prix'
164
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many millions of US viewers for the episode 'the last word'? ### Input: CREATE TABLE table_28791 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) ### Response: SELECT "U.S. viewers (millions)" FROM table_28791 WHERE "Title" = 'The Last Word'
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: Which runner-up has narva trans as a 3rd position for the 2005 season? ### Input: CREATE TABLE table_40544 ( "Season" text, "Champion" text, "Runner-Up" text, "3rd Position" text, "Top Goalscorer(s)" text, "Team(s)" real ) ### Response: SELECT "Runner-Up" FROM table_40544 WHERE "3rd Position" = 'narva trans' AND "Season" = '2005'
14,847
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the result of the game from 10 October 2009? ### Input: CREATE TABLE table_69807 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) ### Response: SELECT "Result" FROM table_69807 WHERE "Date" = '10 october 2009'
9,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: What is the lowest ranking associated with a total of 23? ### Input: CREATE TABLE table_74958 ( "Ranking" real, "Nationality" text, "Name" text, "Years" text, "ICFC" real, "FCWC" real, "Total" real ) ### Response: SELECT MIN("Ranking") FROM table_74958 WHERE "Total" = '23'
8,688
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponent of the game on August 8? ### Input: CREATE TABLE table_70969 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) ### Response: SELECT "Opponent" FROM table_70969 WHERE "Date" = 'august 8'
24,035
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the team from Derbyshire county? ### Input: CREATE TABLE table_1868 ( "Team" text, "Location" text, "County" text, "Division" text, "Home ground" text, "Coach" text, "Captain" text ) ### Response: SELECT "Team" FROM table_1868 WHERE "County" = 'Derbyshire'
23,486
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the outcome of the match when the partner is Nicole Arendt? ### Input: CREATE TABLE table_11292 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) ### Response: SELECT "Outcome" FROM table_11292 WHERE "Partner" = 'nicole arendt'
5,304
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Visualize a bar chart showing the average age of captains in each class, I want to rank in asc by the x axis. ### Input: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) ### Response: SELECT Class, AVG(age) FROM captain GROUP BY Class ORDER BY Class
10,925
Below are sql tables schemas 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 Rowers of the race with a Time of 7:41.97 and Notes of FC? ### Input: CREATE TABLE table_64792 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) ### Response: SELECT "Rowers" FROM table_64792 WHERE "Notes" = 'fc' AND "Time" = '7:41.97'
1,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: When did they play the swindon wildcats away? ### Input: CREATE TABLE table_51076 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real, "Competition" text, "Man of the Match" text ) ### Response: SELECT "Date" FROM table_51076 WHERE "Venue" = 'away' AND "Opponent" = 'swindon wildcats'
8,540
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which nationality is top on the chart ### Input: CREATE TABLE table_204_866 ( id number, "name" text, "lifetime" text, "nationality" text, "notable as" text, "notes" text ) ### Response: SELECT "nationality" FROM table_204_866 WHERE id = 1
20,432
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What countries have a margin of victory at 6 strokes? ### Input: CREATE TABLE table_72663 ( "Year" real, "Dates" text, "Champion" text, "Country" text, "Score" text, "To par" text, "Margin of victory" text, "Purse ( US$ )" real, "Winners share" real ) ### Response: SELECT "Country" FROM table_72663 WHERE "Margin of victory" = '6 strokes'
2,394
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: At what Venue was the Home team score 17.19 (121)? ### Input: CREATE TABLE table_55019 ( "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_55019 WHERE "Home team score" = '17.19 (121)'
1,314
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: In the country Switzerland, what is the total trade? ### Input: CREATE TABLE table_28338 ( "Country" text, "Exports" text, "Imports" text, "Total Trade" text, "Trade Balance" text ) ### Response: SELECT "Total Trade" FROM table_28338 WHERE "Country" = 'Switzerland'
871
Below are sql tables 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 locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees. ### Input: CREATE TABLE performance ( LOCATION VARCHAR, Attendance INTEGER ) ### Response: SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000
7,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 is the difference in height between garreth lodge and thomas pearson ? ### Input: CREATE TABLE table_203_418 ( id number, "#" number, "player" text, "position" text, "height" number, "current club" text ) ### Response: SELECT ABS((SELECT "height" FROM table_203_418 WHERE "player" = 'garreth lodge') - (SELECT "height" FROM table_203_418 WHERE "player" = 'thomas pearson'))
5,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: Name the number of location attendance for l 141 143 (ot) ### Input: CREATE TABLE table_17102076_10 ( location_attendance VARCHAR, score VARCHAR ) ### Response: SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = "L 141–143 (OT)"
12,715
Below are sql tables schemas 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 score for the year 2012? ### Input: CREATE TABLE table_44873 ( "Year" real, "Country" text, "Course" text, "Location" text, "Total score" text, "To par [a ]" text ) ### Response: SELECT "Total score" FROM table_44873 WHERE "Year" = '2012'
14,504
Below are sql tables schemas 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 Assists, when Games is greater than 19, and when Name is 'Pablo Prigioni'? ### Input: CREATE TABLE table_8068 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Assists" real ) ### Response: SELECT AVG("Assists") FROM table_8068 WHERE "Games" > '19' AND "Name" = 'pablo prigioni'
11,380
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is every original game for the artist Lynyrd Skynyrd? ### Input: CREATE TABLE table_24417 ( "Year" real, "Song Title" text, "Artist" text, "Genre" text, "Original Game" text, "Band Tier/Venue" text, "Exportable to GH5/BH" text ) ### Response: SELECT "Original Game" FROM table_24417 WHERE "Artist" = 'Lynyrd Skynyrd'
6,583
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What titles were fought for on 1997-04-12? ### Input: CREATE TABLE table_17557 ( "Number" real, "Name" text, "Titles" text, "Date" text, "Opponent" text, "Result" text, "Defenses" real ) ### Response: SELECT "Titles" FROM table_17557 WHERE "Date" = '1997-04-12'
16,838
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the opponent on October 28, 2001? ### Input: CREATE TABLE table_45571 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text ) ### Response: SELECT "Opponent" FROM table_45571 WHERE "Date" = 'october 28, 2001'
1,831
Below are sql tables schemas 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 accreditation level of the network brand Movistar? ### Input: CREATE TABLE table_45491 ( "Company name" text, "Network brand name" text, "Country" text, "Accreditation type" text, "Accreditation level" text, "Date" text ) ### Response: SELECT "Accreditation level" FROM table_45491 WHERE "Network brand name" = 'movistar'
8,430
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the final result when the Mountaineers scored less than 13 and their opponents scored 26? ### Input: CREATE TABLE table_name_32 ( result VARCHAR, points_for VARCHAR, points_against VARCHAR ) ### Response: SELECT result FROM table_name_32 WHERE points_for < 13 AND points_against = 26
12,315
Below are sql tables 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 winning team on May 12? ### Input: CREATE TABLE table_59630 ( "Round" text, "Date" text, "Event" text, "Circuit" text, "Winning Driver" text, "Winning Team" text ) ### Response: SELECT "Winning Team" FROM table_59630 WHERE "Date" = 'may 12'
8,328
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the only network owned by national polytechnic institute ? ### Input: CREATE TABLE table_204_779 ( id number, "network name" text, "flagship" text, "programming type" text, "owner" text, "affiliates" number ) ### Response: SELECT "network name" FROM table_204_779 WHERE "owner" = 'national polytechnic institute'
3,935
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When was the game played at Moorabbin Oval? ### Input: CREATE TABLE table_10206 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT "Date" FROM table_10206 WHERE "Venue" = 'moorabbin oval'
9,150
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the most points for Coloni Spa? ### Input: CREATE TABLE table_14794 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) ### Response: SELECT MAX("Points") FROM table_14794 WHERE "Entrant" = 'coloni spa'
5,921
Below are sql tables schemas 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 Goals, when Team is 'Rah Ahan', and when Division is less than 1? ### Input: CREATE TABLE table_79119 ( "Season" text, "Team" text, "Country" text, "Division" real, "Goals" real ) ### Response: SELECT AVG("Goals") FROM table_79119 WHERE "Team" = 'rah ahan' AND "Division" < '1'
6,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: What is the round of player brad winton with a draft before 1983 and a pick less than 132? ### Input: CREATE TABLE table_name_48 ( round VARCHAR, player VARCHAR, draft VARCHAR, pick VARCHAR ) ### Response: SELECT round FROM table_name_48 WHERE draft < 1983 AND pick < 132 AND player = "brad winton"
11,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: What was the score of the game from July 18? ### Input: CREATE TABLE table_46133 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text ) ### Response: SELECT "Score" FROM table_46133 WHERE "Date" = 'july 18'
2,540
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the location before game 44, and a 20-16 record? ### Input: CREATE TABLE table_47980 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text ) ### Response: SELECT "Location" FROM table_47980 WHERE "Game" < '44' AND "Record" = '20-16'
12,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: Who has a 59 cap? ### Input: CREATE TABLE table_32044 ( "Name" text, "Career" text, "Caps" real, "Goals" real, "First Cap" text, "Recent Cap" text ) ### Response: SELECT "Name" FROM table_32044 WHERE "Caps" = '59'
13,855
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what country uses the mitsubishi l200 by their military ? ### Input: CREATE TABLE table_204_430 ( id number, "model" text, "origin" text, "type" text, "version" text, "in service" text, "notes" text ) ### Response: SELECT "origin" FROM table_204_430 WHERE "model" = 'mitsubishi l200'
12,450
Below are sql tables 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 show had the earliest opening date ? ### Input: CREATE TABLE table_204_592 ( id number, "#" number, "title" text, "type" text, "opening\ndate" text, "closing\ndate" text, "performances" number, "comment" text ) ### Response: SELECT "title" FROM table_204_592 ORDER BY "opening\ndate" LIMIT 1
4,668
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: largest medal differential between countries ### Input: CREATE TABLE table_203_466 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) ### Response: SELECT MAX("total") - MIN("total") FROM table_203_466
6,323
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which episode was Transmitted on wednesday if the episode of '319 sucker punch' was transmitted on tuesday? ### Input: CREATE TABLE table_1826 ( "Episodes" text, "Monday" text, "Tuesday" text, "Wednesday" text, "Thursday" text, "Friday" text ) ### Response: SELECT COUNT("Wednesday") FROM table_1826 WHERE "Tuesday" = '319 Sucker Punch'
24,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: The record of 9-4 was against which opponent? ### Input: CREATE TABLE table_16065 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Vikings points" real, "Opponents" real, "Record" text, "Attendance" real ) ### Response: SELECT "Opponent" FROM table_16065 WHERE "Record" = '9-4'
12,690
Below are sql tables 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 different types of ships and the average tonnage of ships of each type. ### Input: CREATE TABLE ship ( ship_id number, name text, type text, nationality text, tonnage number ) CREATE TABLE mission ( mission_id number, ship_id number, code text, launched_year number, location text, speed_knots number, fate text ) ### Response: SELECT type, AVG(tonnage) FROM ship GROUP BY type
17,830
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the largest attendance on august 10, 1963, and a week larger than 1? ### Input: CREATE TABLE table_name_75 ( attendance INTEGER, date VARCHAR, week VARCHAR ) ### Response: SELECT MAX(attendance) FROM table_name_75 WHERE date = "august 10, 1963" AND week > 1
762
Below are sql tables schemas 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 latest episode of 'House of Cards'? ### Input: CREATE TABLE table_126 ( "Series #" real, "Episode #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) ### Response: SELECT MAX("Episode #") FROM table_126 WHERE "Title" = 'House of Cards'
786
Below are sql tables 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 surface when the partner is carlos berlocq ### Input: CREATE TABLE table_51313 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) ### Response: SELECT "Surface" FROM table_51313 WHERE "Partner" = 'carlos berlocq'
3,204
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what competition is lorenzo 's top position in ? ### Input: CREATE TABLE table_203_734 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text ) ### Response: SELECT "competition" FROM table_203_734 ORDER BY "position" LIMIT 1
24,620
Below are sql tables schemas 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 gp-gs when the receptions is more than 4, long is 55 and avg/g is 151? ### Input: CREATE TABLE table_name_44 ( gp_gs VARCHAR, avg_g VARCHAR, receptions VARCHAR, long VARCHAR ) ### Response: SELECT gp_gs FROM table_name_44 WHERE receptions > 4 AND long = 55 AND avg_g = 151
17,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: Who was the away team who scored 9.7 (61)? ### Input: CREATE TABLE table_33092 ( "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_33092 WHERE "Away team score" = '9.7 (61)'
12,683
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What type of ship was the HMSST George? ### Input: CREATE TABLE table_14432 ( "Estimate" text, "Name" text, "Nat." text, "Ship Type" text, "Principal victims" text, "Where sunk" text, "Date" text ) ### Response: SELECT "Ship Type" FROM table_14432 WHERE "Name" = 'hmsst george'
22,028
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the position for pick number 39 ### Input: CREATE TABLE table_27364 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) ### Response: SELECT "Position" FROM table_27364 WHERE "Pick #" = '39'
3,846
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which home team brought the greatest number of attendance ? ### Input: CREATE TABLE table_204_846 ( id number, "tie no" number, "home team" text, "score" text, "away team" text, "attendance" number ) ### Response: SELECT "home team" FROM table_204_846 ORDER BY "attendance" DESC LIMIT 1
3,937
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which artist has the most concerts ? ### Input: CREATE TABLE table_204_697 ( id number, "song" text, "artist(s)" text, "concert" number, "film" number, "1978 album" number, "2002 album" number ) ### Response: SELECT "artist(s)" FROM table_204_697 ORDER BY "concert" DESC LIMIT 1
1,642
Below are sql tables 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 which loss was the record 48-50? ### Input: CREATE TABLE table_69983 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) ### Response: SELECT "Loss" FROM table_69983 WHERE "Record" = '48-50'
10,156
Below are sql tables schemas 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 every one of the rivals in conclusive where title is z rich ### Input: CREATE TABLE table_25713 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents in final" text, "Score in final" text ) ### Response: SELECT "Opponents in final" FROM table_25713 WHERE "Championship" = 'Zürich'
17,109
Below are sql tables 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 seats were up for election during the vote where the election result was 9 and the new council 27? ### Input: CREATE TABLE table_name_10 ( seats_up_for_election INTEGER, election_result VARCHAR, new_council VARCHAR ) ### Response: SELECT SUM(seats_up_for_election) FROM table_name_10 WHERE election_result = 9 AND new_council > 27
5,302
Below are sql tables 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 production codes are there for episode 10 in the season? ### Input: CREATE TABLE table_26832 ( "Series" real, "Season" text, "Original air date" text, "Production code" text, "Episode title" text ) ### Response: SELECT COUNT("Production code") FROM table_26832 WHERE "Season" = '10'
13,151
Below are sql tables schemas 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 Ashton Cobb's class in Game 2? ### Input: CREATE TABLE table_38680 ( "Position" text, "Number" real, "Name" text, "Height" text, "Weight" text, "Class" text, "Hometown" text, "Games\u2191" real ) ### Response: SELECT "Class" FROM table_38680 WHERE "Games\u2191" = '2' AND "Name" = 'ashton cobb'
7,928
Below are sql tables 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 people were in attendance in a week over 4 on December 6, 1981? ### Input: CREATE TABLE table_69021 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) ### Response: SELECT COUNT("Attendance") FROM table_69021 WHERE "Week" > '4' AND "Date" = 'december 6, 1981'
13,555
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the number of average for steals per game ### Input: CREATE TABLE table_28824 ( "Category" text, "Player" text, "Games played" real, "Totals" text, "Average" text ) ### Response: SELECT COUNT("Average") FROM table_28824 WHERE "Category" = 'Steals per game'
2,042
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the date when the team is listed as New Orleans? ### Input: CREATE TABLE table_29940 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Date" FROM table_29940 WHERE "Team" = 'New Orleans'
9,217
Below are sql tables 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 name of the customer who has the most orders. ### Input: CREATE TABLE customer_orders ( customer_id VARCHAR ) CREATE TABLE customers ( customer_name VARCHAR, customer_id VARCHAR ) ### Response: SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
15,003
Below are sql tables schemas 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 Ship, when Commissioned is '13 March 1982'? ### Input: CREATE TABLE table_61232 ( "Ship" text, "Hull Number" text, "Laid down" text, "Launched" text, "Commissioned" text ) ### Response: SELECT "Ship" FROM table_61232 WHERE "Commissioned" = '13 march 1982'
4,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: Count the number of captains that have each rank Visualize by bar chart, rank by the the total number in descending. ### Input: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) ### Response: SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) DESC
939
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the starting position in the year before 1986? ### Input: CREATE TABLE table_33408 ( "Year" real, "Chassis" text, "Engine" text, "Start" text, "Finish" text, "Team" text ) ### Response: SELECT "Start" FROM table_33408 WHERE "Year" < '1986'
21,866
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Date has a Score of 0 3, and a Set 2 of 16 25? ### Input: CREATE TABLE table_5902 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) ### Response: SELECT "Date" FROM table_5902 WHERE "Score" = '0–3' AND "Set 2" = '16–25'
12,667
Below are sql tables 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 1st day with 3rd day being bumped st. catharine's ### Input: CREATE TABLE table_668 ( "Year" real, "Finish position" text, "1st day" text, "2nd day" text, "3rd day" text, "4th Day" text ) ### Response: SELECT COUNT("1st day") FROM table_668 WHERE "3rd day" = 'bumped St. Catharine''s'
6,403
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: If the Home team is carlton, what's the lowest Crowd found? ### Input: CREATE TABLE table_55058 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT MIN("Crowd") FROM table_55058 WHERE "Home team" = 'carlton'
12,105
Below are sql tables schemas 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 First Branch Opened, when Branch is Belmont Library? ### Input: CREATE TABLE table_41562 ( "Branch" text, "Address" text, "Neighborhood" text, "First branch opened" real, "Current branch opened" real ) ### Response: SELECT "First branch opened" FROM table_41562 WHERE "Branch" = 'belmont library'
11,233
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What party did john s. barbour represent? ### Input: CREATE TABLE table_28869 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) ### Response: SELECT "Party" FROM table_28869 WHERE "Incumbent" = 'John S. Barbour'
24,796
Below are sql tables schemas 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 frequency of the call sign licensed in Albany, New York? ### Input: CREATE TABLE table_7123 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text ) ### Response: SELECT "Frequency MHz" FROM table_7123 WHERE "City of license" = 'albany, new york'
2,417
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Can you tell me the Name that has the DCSF number of 2117? ### Input: CREATE TABLE table_45329 ( "Name" text, "Faith" text, "Type" text, "Intake" real, "DCSF number" real, "Ofsted number" real ) ### Response: SELECT "Name" FROM table_45329 WHERE "DCSF number" = '2117'
14,272
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average Year for the Finish of lost 2001 alcs and the Percentage is over 0.716? ### Input: CREATE TABLE table_51640 ( "Year" real, "Franchise" text, "League" text, "Percentage" real, "Finish" text ) ### Response: SELECT AVG("Year") FROM table_51640 WHERE "Finish" = 'lost 2001 alcs' AND "Percentage" > '0.716'
3,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: How many locations are there for the athletic nickname is blue crusaders? ### Input: CREATE TABLE table_24826 ( "Institution" text, "Location" text, "Enrollment" text, "Athletic nickname" text, "School Colors" text, "Founded" real ) ### Response: SELECT COUNT("Location") FROM table_24826 WHERE "Athletic nickname" = 'Blue Crusaders'
23,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: what is the rank when the player is henry shefflin and the matches is higher than 4? ### Input: CREATE TABLE table_55502 ( "Rank" real, "Player" text, "County" text, "Tally" text, "Total" real, "Matches" real, "Average" real ) ### Response: SELECT SUM("Rank") FROM table_55502 WHERE "Player" = 'henry shefflin' AND "Matches" > '4'
15,327
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What locomotive built after 1895 has the highest SLM number? ### Input: CREATE TABLE table_41773 ( "Built" real, "Number" real, "Type" text, "SLM Number" real, "Wheel arrangement" text, "Location" text, "Notes" text ) ### Response: SELECT MAX("SLM Number") FROM table_41773 WHERE "Built" > '1895'
4,295
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Stacked bar of class and the number of class colored by Rank, and display in asc by the x axis please. ### 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 Rank, Class ORDER BY Class
18,119
Below are sql tables 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 Notes have a Time larger than 23.34, and a Rank of 8? ### Input: CREATE TABLE table_65118 ( "Rank" real, "Lane" real, "Athlete" text, "Time ( sec )" real, "Notes" text ) ### Response: SELECT "Notes" FROM table_65118 WHERE "Time ( sec )" > '23.34' AND "Rank" = '8'
2,685
Below are sql tables 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 performance was last on this album ? ### Input: CREATE TABLE table_204_906 ( id number, "#" number, "title" text, "songwriters" text, "producer(s)" text, "performer" text ) ### Response: SELECT "title" FROM table_204_906 ORDER BY "#" DESC LIMIT 1
16,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: What was the rating in 1997? ### Input: CREATE TABLE table_17115 ( "Year" real, "Network" text, "Lap-by-lap" text, "Color commentator(s)" text, "Pit reporters" text, "Host" text, "Ratings" text, "Viewers" text ) ### Response: SELECT "Ratings" FROM table_17115 WHERE "Year" = '1997'
7,803
Below are sql tables 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 the game was played at Domnarvsvallen who were the opponents? ### Input: CREATE TABLE table_43714 ( "Date" text, "Venue" text, "Opponents" text, "Score" text, "Comp" text ) ### Response: SELECT "Opponents" FROM table_43714 WHERE "Venue" = 'domnarvsvallen'
7,902
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the lowest Attendance on 8 October 1986? ### Input: CREATE TABLE table_7385 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real ) ### Response: SELECT MIN("Attendance") FROM table_7385 WHERE "Date" = '8 october 1986'
288
Below are sql tables 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 the number of the countries of the mountains that have a height larger than 5000. ### Input: CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text ) CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) ### Response: SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country
10,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: When is the latest year the venue is in gothenburg, sweden? ### Input: CREATE TABLE table_55515 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Extra" text ) ### Response: SELECT MAX("Year") FROM table_55515 WHERE "Venue" = 'gothenburg, sweden'
7,762
Below are sql tables 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 judges were there when the result is safe with a vote percentage of 10.7%? ### Input: CREATE TABLE table_26375386_20 ( judges INTEGER, result VARCHAR, vote_percentage VARCHAR ) ### Response: SELECT MIN(judges) FROM table_26375386_20 WHERE result = "Safe" AND vote_percentage = "10.7%"
21,080
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponent during the second round? ### Input: CREATE TABLE table_40857 ( "Season" text, "Round" text, "Country" text, "Opponent" text, "Result" text ) ### Response: SELECT "Opponent" FROM table_40857 WHERE "Round" = 'second round'
10,387
Below are sql tables 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 were the successors when the date the successors were installed was February 23, 1870? ### Input: CREATE TABLE table_2417345_3 ( successor VARCHAR, date_of_successors_formal_installation VARCHAR ) ### Response: SELECT successor FROM table_2417345_3 WHERE date_of_successors_formal_installation = "February 23, 1870"
20,220
Below are sql tables 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 successor when the reason for change is died November 11, 1845? ### Input: CREATE TABLE table_2632 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) ### Response: SELECT "Successor" FROM table_2632 WHERE "Reason for change" = 'Died November 11, 1845'
7,514
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the school that hosts jim goodman ### Input: CREATE TABLE table_35492 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text ) ### Response: SELECT "School/Club Team" FROM table_35492 WHERE "Player" = 'jim goodman'
11,583
Below are sql tables schemas 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 Ivan Ciernik's average points with less than 11 goals? ### Input: CREATE TABLE table_48216 ( "Player" text, "Club" text, "Games" real, "Goals" real, "Assists" real, "Points" real ) ### Response: SELECT AVG("Points") FROM table_48216 WHERE "Player" = 'ivan ciernik' AND "Goals" < '11'
5,839
Below are sql tables 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 tribunal sentenced the largest number of executions ? ### Input: CREATE TABLE table_203_303 ( id number, "tribunal" text, "number of autos da fe" number, "executions in persona" number, "executions in effigie" number, "penanced" number, "total" number ) ### Response: SELECT "tribunal" FROM table_203_303 ORDER BY "total" DESC LIMIT 1
2,291
Below are sql tables 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 stations opened before 1926 ? ### Input: CREATE TABLE table_203_839 ( id number, "station" text, "type" text, "latitude" text, "longitude" text, "el. (m)" number, "opened" number, "closed" number, "coordinates" text ) ### Response: SELECT COUNT("station") FROM table_203_839 WHERE "opened" < 1926
1,281
Below are sql tables 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 who wrote the episode when the viewers was 1.81 ### Input: CREATE TABLE table_15584067_7 ( written_by VARCHAR, us_viewers__million_ VARCHAR ) ### Response: SELECT written_by FROM table_15584067_7 WHERE us_viewers__million_ = "1.81"
160
Below are sql tables schemas 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 MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED? ### Input: CREATE TABLE table_47681 ( "Rider" text, "Manufacturer" text, "Laps" text, "Time/Retired" text, "Grid" text ) ### Response: SELECT "Manufacturer" FROM table_47681 WHERE "Laps" = '24' AND "Time/Retired" = '+1.965'
17,928
Below are sql tables schemas 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 away team score when the away team is Essendon? ### Input: CREATE TABLE table_33178 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT "Away team score" FROM table_33178 WHERE "Away team" = 'essendon'
4,739
Below are sql tables schemas 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 with enrollment of 316 and county is 68 Randolph? ### Input: CREATE TABLE table_13623 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text ) ### Response: SELECT "Location" FROM table_13623 WHERE "# / County" = '68 randolph' AND "Enrollment" = '316'
20,859
Below are sql tables schemas 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 season number with a series number of 47? ### Input: CREATE TABLE table_27397948_2 ( no_in_season INTEGER, no_in_series VARCHAR ) ### Response: SELECT MAX(no_in_season) FROM table_27397948_2 WHERE no_in_series = 47
21,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: Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296? ### Input: CREATE TABLE table_name_29 ( accession_number VARCHAR, protein_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR ) ### Response: SELECT accession_number FROM table_name_29 WHERE protein_name = "ccdc165" AND divergence_from_human_lineage__mya_ < 296
2,021
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the song choice when the theme was free choice and Adeleye made it through to bootcamp? ### Input: CREATE TABLE table_5828 ( "Week" text, "Song choice" text, "Theme" text, "Performance Order" text, "Result" text ) ### Response: SELECT "Song choice" FROM table_5828 WHERE "Theme" = 'free choice' AND "Result" = 'through to bootcamp'
4,742
Below are sql tables 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 Player of damon jones? ### Input: CREATE TABLE table_51067 ( "Round" real, "Pick" real, "Player" text, "Position" text, "College" text ) ### Response: SELECT SUM("Round") FROM table_51067 WHERE "Player" = 'damon jones'
257