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 were the total number of sales for the song 21 Seconds? ### Input: CREATE TABLE table_14994 ( "Position" real, "Song Title" text, "Artist" text, "Highest Position" real, "Sales" real ) ### Response: SELECT COUNT("Sales") FROM table_14994 WHERE "Song Title" = '21 seconds'
23,339
Below are sql tables 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(s) did they play on week 2? ### Input: CREATE TABLE table_20781 ( "Week" real, "Date" text, "Kickoff" text, "Opponent" text, "Final score" text, "Team record" text, "Game site" text, "Attendance" real ) ### Response: SELECT "Date" FROM table_20781 WHERE "Week" = '2'
189
Below are sql tables 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 to par of the United States with the score of 71-71=142? ### Input: CREATE TABLE table_49165 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) ### Response: SELECT "To par" FROM table_49165 WHERE "Country" = 'united states' AND "Score" = '71-71=142'
2,431
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total number of Year(s), when Date (Opening) is 'September 21'? ### Input: CREATE TABLE table_60282 ( "Year" real, "Date (Opening)" text, "Date (Closing)" text, "Opening Film" text, "Number of Screening" text ) ### Response: SELECT COUNT("Year") FROM table_60282 WHERE "Date (Opening)" = 'september 21'
779
Below are sql tables 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 English word for apfel? ### Input: CREATE TABLE table_12393 ( "English" text, "Crimean Gothic" text, "Bible Gothic" text, "German" text, "Dutch" text, "Icelandic" text, "Swedish" text ) ### Response: SELECT "English" FROM table_12393 WHERE "German" = 'apfel'
23,118
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where was the decision draw before round 5? ### Input: CREATE TABLE table_48503 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) ### Response: SELECT "Location" FROM table_48503 WHERE "Method" = 'decision draw' AND "Round" < '5'
2,860
Below are sql tables 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 amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue? ### Input: CREATE TABLE table_name_6 ( floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR ) ### Response: SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue"
4,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: What is the name of the player with position of G and the team was the Washington Capitols? ### Input: CREATE TABLE table_11644 ( "Round" text, "Player" text, "Position" text, "Team" text, "College" text ) ### Response: SELECT "Player" FROM table_11644 WHERE "Position" = 'g' AND "Team" = 'washington capitols'
8,178
Below are sql tables 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 did eric norri play who was the overall pick less than 322 on a round larger than 3? ### Input: CREATE TABLE table_name_33 ( position VARCHAR, name VARCHAR, overall VARCHAR, round VARCHAR ) ### Response: SELECT position FROM table_name_33 WHERE overall < 322 AND round > 3 AND name = "eric norri"
15,503
Below are sql tables 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 Melbourne had a gold coast and sydney which were yes, but an adelaide that was no? ### Input: CREATE TABLE table_68329 ( "Sydney" text, "Melbourne" text, "Perth" text, "Adelaide" text, "Gold Coast" text, "Auckland" text ) ### Response: SELECT "Melbourne" FROM table_68329 WHERE "Gold Coast" = 'yes' AND "Adelaide" = 'no' AND "Sydney" = 'yes'
10,947
Below are sql tables 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 low grid total for a retired due to steering in under 15 laps? ### Input: CREATE TABLE table_52760 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT MIN("Grid") FROM table_52760 WHERE "Time/Retired" = 'steering' AND "Laps" < '15'
2,612
Below are sql tables 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 had a place larger than 1 with 229 points? ### Input: CREATE TABLE table_36724 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real ) ### Response: SELECT "Artist" FROM table_36724 WHERE "Place" > '1' AND "Points" = '229'
1,255
Below are sql tables 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 cities are in wisconsin ? ### Input: CREATE TABLE table_201_13 ( id number, "city" text, "county(ies)" text, "population\n(2000 census)" number, "population\n(2010 census)" number, "class" text, "incorporation\ndate" number ) ### Response: SELECT COUNT("city") FROM table_201_13
12,525
Below are sql tables 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 power for when the torque is n m (lb ft)/*n m (lb ft) @1750 ### Input: CREATE TABLE table_name_62 ( power_rpm VARCHAR, torque__nm__rpm VARCHAR ) ### Response: SELECT power_rpm FROM table_name_62 WHERE torque__nm__rpm = "n·m (lb·ft)/*n·m (lb·ft) @1750"
8,770
Below are sql tables 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 stumped when matches is 14? ### Input: CREATE TABLE table_26515 ( "Rank" real, "Dismissals" real, "Player" text, "Caught" real, "Stumped" real, "Matches" real, "Innings" real ) ### Response: SELECT MIN("Stumped") FROM table_26515 WHERE "Matches" = '14'
2,441
Below are sql tables 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 bronze when the rank is 5, the nation is poland and gold is less than 0? ### Input: CREATE TABLE table_name_89 ( bronze INTEGER, gold VARCHAR, rank VARCHAR, nation VARCHAR ) ### Response: SELECT SUM(bronze) FROM table_name_89 WHERE rank = 5 AND nation = "poland" AND gold < 0
16,331
Below are sql tables 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 laps did Jo Bonnier driver when the grid number was smaller than 11? ### Input: CREATE TABLE table_51480 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT SUM("Laps") FROM table_51480 WHERE "Driver" = 'jo bonnier' AND "Grid" < '11'
2,910
Below are sql tables 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 character is in over 22 episodes? ### Input: CREATE TABLE table_57491 ( "Actor" text, "Character" text, "Duration" text, "No. of series" text, "Episodes" real ) ### Response: SELECT "Character" FROM table_57491 WHERE "Episodes" > '22'
16,194
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which rounds were held on August 9? ### Input: CREATE TABLE table_16286 ( "Rnd" text, "Race Name" text, "Circuit" text, "City/Location" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Winning team" text, "Report" text ) ### Response: SELECT "Rnd" FROM table_16286 WHERE "Date" = 'August 9'
6,543
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many points does Tom Hammond have if he has more than 12 points? ### Input: CREATE TABLE table_5810 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) ### Response: SELECT SUM("Points") FROM table_5810 WHERE "Player" = 'tom hammond' AND "Extra points" > '12'
373
Below are sql tables 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 silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals? ### Input: CREATE TABLE table_64994 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT "Silver" FROM table_64994 WHERE "Bronze" > '0' AND "Total" < '54' AND "Nation" = 'spain'
16,956
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the record when they play the canucks and have under 98 points? ### Input: CREATE TABLE table_53804 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text, "Arena" text, "Points" real ) ### Response: SELECT "Record" FROM table_53804 WHERE "Points" < '98' AND "Opponent" = 'canucks'
196
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the name, location, open year for all tracks with a seating higher than the average. ### Input: CREATE TABLE track ( track_id number, name text, location text, seating number, year_opened number ) CREATE TABLE race ( race_id number, name text, class text, date text, track_id text ) ### Response: SELECT name, location, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track)
18,142
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the location for saturday, april 21 ### Input: CREATE TABLE table_30072 ( "Week" real, "Date" text, "Kickoff" text, "Opponent" text, "Final score" text, "Team record" text, "Game site" text, "Attendance" real ) ### Response: SELECT "Game site" FROM table_30072 WHERE "Date" = 'Saturday, April 21'
3,482
Below are sql tables 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 race came next after the pocono 200 ? ### Input: CREATE TABLE table_204_630 ( id number, "no" number, "date" text, "race" text, "track" text, "winner" text, "reports" text ) ### Response: SELECT "race" FROM table_204_630 WHERE id = (SELECT id FROM table_204_630 WHERE "race" = 'pocono 200') + 1
7,336
Below are sql tables 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 driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari? ### Input: CREATE TABLE table_name_58 ( driver VARCHAR, constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR ) ### Response: SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = "collision" AND constructor = "ferrari"
6,672
Below are sql tables 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 number of nations received 1 medal ? ### Input: CREATE TABLE table_204_595 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) ### Response: SELECT COUNT("nation") FROM table_204_595 WHERE "total" = 1
3,044
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the record in the competition in which the home team was the Mavericks? ### Input: CREATE TABLE table_56052 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) ### Response: SELECT "Record" FROM table_56052 WHERE "Home" = 'mavericks'
2,265
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When South Melbourne was the Away Team, what was their score? ### Input: CREATE TABLE table_51599 ( "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_51599 WHERE "Away team" = 'south melbourne'
5,977
Below are sql tables 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 episode number of the season was 'The Northern Uprising'? ### Input: CREATE TABLE table_16102 ( "No. in series" real, "No. in season" real, "Title" text, "Setting" text, "Directed by" text, "Written by" text, "Original air date" text ) ### Response: SELECT "No. in season" FROM table_16102 WHERE "Title" = 'The Northern Uprising'
8,022
Below are sql tables 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 home team score for the game where Hawthorn is the home team? ### Input: CREATE TABLE table_32456 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT "Home team score" FROM table_32456 WHERE "Home team" = 'hawthorn'
18,483
Below are sql tables 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 code number for Amadiba? ### Input: CREATE TABLE table_63124 ( "Place" text, "Code" real, "Area (km 2 )" real, "Population" real, "Most spoken language" text ) ### Response: SELECT COUNT("Code") FROM table_63124 WHERE "Place" = 'amadiba'
16,476
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the winner for london tournament ### Input: CREATE TABLE table_10647 ( "Tournament" text, "Winner" text, "Runner-up" text, "Score" text, "Third Place" text ) ### Response: SELECT "Winner" FROM table_10647 WHERE "Tournament" = 'london'
14,419
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On what date was the game played where the opponent was Stanford, ranked #5? ### Input: CREATE TABLE table_59322 ( "Date" text, "Time" text, "Opponent#" text, "Rank #" text, "Result" text, "Attendance" text ) ### Response: SELECT "Date" FROM table_59322 WHERE "Rank #" = '5' AND "Opponent#" = 'stanford'
24,810
Below are sql tables 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 for fox news channel ### Input: CREATE TABLE table_1366 ( "N\u00b0" real, "Television service" text, "Country" text, "Language" text, "Content" text, "DAR" text, "HDTV" text, "Package/Option" text ) ### Response: SELECT "N\u00b0" FROM table_1366 WHERE "Television service" = 'Fox News Channel'
2,459
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: must weigh a minimum of 110 pounds ### Input: CREATE TABLE table_train_228 ( "id" int, "ejection_fraction_ef" int, "hiv_infection" bool, "heart_disease" bool, "body_weight" float, "body_mass_index_bmi" float, "allergy_to_beef" bool, "NOUSE" float ) ### Response: SELECT * FROM table_train_228 WHERE body_weight >= 110
3,171
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Date, when Home Team is 'Chester City'? ### Input: CREATE TABLE table_12438 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) ### Response: SELECT "Date" FROM table_12438 WHERE "Home team" = 'chester city'
22,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: What was the decision of the Kings game when Chicago was the visiting team? ### Input: CREATE TABLE table_77722 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) ### Response: SELECT "Decision" FROM table_77722 WHERE "Visitor" = 'chicago'
2,253
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what are the original air dates with a production code of 2394087 ### Input: CREATE TABLE table_16365 ( "No. in series" real, "No. in season" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production code" text ) ### Response: SELECT "Original air date" FROM table_16365 WHERE "Production code" = '2394087'
10,104
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Team has the Player of A.J. Moye? ### Input: CREATE TABLE table_38362 ( "Season" text, "Player" text, "Position" text, "Nationality" text, "Team" text ) ### Response: SELECT "Team" FROM table_38362 WHERE "Player" = 'a.j. moye'
16,802
Below are sql tables 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 Player from Charlotte, NC? ### Input: CREATE TABLE table_39830 ( "Name" text, "Height" text, "Position" text, "Year" text, "Home Town" text ) ### Response: SELECT "Name" FROM table_39830 WHERE "Home Town" = 'charlotte, nc'
4,983
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the different ship flags, and how many ships have each Plot them as bar chart, and could you display bar from low to high order? ### 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 Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag
17,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 engine what in the vehicle when adt champion racing ranked in 1st place? ### Input: CREATE TABLE table_71126 ( "Year" real, "Entrant" text, "Class" text, "Chassis" text, "Engine" text, "Tyres" text, "Rank" text, "Points" real ) ### Response: SELECT "Engine" FROM table_71126 WHERE "Rank" = '1st' AND "Entrant" = 'adt champion racing'
12,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: Who was nominated for Best Theatre Choreographer? ### Input: CREATE TABLE table_46415 ( "Year" real, "Award" text, "Category" text, "Nominee" text, "Result" text ) ### Response: SELECT "Nominee" FROM table_46415 WHERE "Category" = 'best theatre choreographer'
6,506
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponent in week 4? ### Input: CREATE TABLE table_19637 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) ### Response: SELECT "Opponent" FROM table_19637 WHERE "Week" = '4'
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 original title of 3.19? ### Input: CREATE TABLE table_23547 ( "#" text, "Original title" text, "Directed by" text, "Written by" text, "Original airdate" text, "Production code" text ) ### Response: SELECT "Original title" FROM table_23547 WHERE "Production code" = '3.19'
20,953
Below are sql tables 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 lengtho f track 16? ### Input: CREATE TABLE table_75453 ( "Track" text, "Song title" text, "Length" text, "Composer(s)" text, "Performance location(s)" text ) ### Response: SELECT "Length" FROM table_75453 WHERE "Track" = '16'
11,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: Which player was drafted by the Saskatchewan Roughriders? ### Input: CREATE TABLE table_43135 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) ### Response: SELECT "Player" FROM table_43135 WHERE "CFL Team" = 'saskatchewan roughriders'
22,652
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Team 2 has a second leg of 1-0? ### Input: CREATE TABLE table_71675 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) ### Response: SELECT "Team 2" FROM table_71675 WHERE "2nd leg" = '1-0'
18,470
Below are sql tables 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 MLB draft has a School of green valley high school? ### Input: CREATE TABLE table_57549 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) ### Response: SELECT "MLB Draft" FROM table_57549 WHERE "School" = 'green valley high school'
43
Below are sql tables 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 crew chief for the team owned by Bob Leavine? ### Input: CREATE TABLE table_538 ( "Team" text, "Car(s)" text, "#" real, "Driver(s)" text, "Primary Sponsor(s)" text, "Owner(s)" text, "Crew Chief" text, "Rounds" real ) ### Response: SELECT "Crew Chief" FROM table_538 WHERE "Owner(s)" = 'Bob Leavine'
7,997
Below are sql tables 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 rank did actor Aaron Pedersen's character have? ### Input: CREATE TABLE table_4556 ( "Actor/actress" text, "Character" text, "Rank" text, "Tenure" text, "Episodes" text ) ### Response: SELECT "Rank" FROM table_4556 WHERE "Actor/actress" = 'aaron pedersen'
4,030
Below are sql tables 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 aired on 22january2009 ### Input: CREATE TABLE table_17641206_8 ( episode VARCHAR, original_airdate VARCHAR ) ### Response: SELECT COUNT(episode) FROM table_17641206_8 WHERE original_airdate = "22January2009"
18,743
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the position of the player from England with 62 goals? ### Input: CREATE TABLE table_58181 ( "Nationality" text, "Position" text, "Tottenham Hotspur career" text, "Club Apps" text, "Goals" text ) ### Response: SELECT "Position" FROM table_58181 WHERE "Nationality" = 'england' AND "Goals" = '62'
16,079
Below are sql tables 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 total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6? ### Input: CREATE TABLE table_name_89 ( total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR ) ### Response: SELECT AVG(total) FROM table_name_89 WHERE position < 4 AND b_score > 9.125 AND a_score < 6.6
14,988
Below are sql tables 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 draws that have a total of 1 and a goal difference of 2:0? ### Input: CREATE TABLE table_67928 ( "Wins" real, "Draws" real, "Losses" real, "Goal difference" text, "Total" real ) ### Response: SELECT AVG("Draws") FROM table_67928 WHERE "Total" = '1' AND "Goal difference" = '2:0'
1,027
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the final score at texas stadium on September 17? ### Input: CREATE TABLE table_51362 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text ) ### Response: SELECT "Final Score" FROM table_51362 WHERE "Stadium" = 'texas stadium' AND "Date" = 'september 17'
15,269
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what team had the most ch . wins during season 8 ? ### Input: CREATE TABLE table_204_506 ( id number, "seasons" number, "team" text, "ch.wins" number, "promotions" number, "relegations" number ) ### Response: SELECT "team" FROM table_204_506 WHERE "seasons" = 8 ORDER BY "ch.wins" DESC LIMIT 1
22,562
Below are sql tables 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 finishes is 10, what is the POS minimum? ### Input: CREATE TABLE table_26009 ( "Pos" real, "Constructor" text, "Chassis" text, "Starts" real, "Finishes" real, "Wins" real, "Podiums" real, "Stage wins" real, "Power stage wins" real, "Points" real ) ### Response: SELECT MIN("Pos") FROM table_26009 WHERE "Finishes" = '10'
6,962
Below are sql tables 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 equation is 6 9 + 6 9 + 6, what is the 2nd throw? ### Input: CREATE TABLE table_21443 ( "1st throw" real, "2nd throw" real, "3rd throw" real, "Equation" text, "Result" real ) ### Response: SELECT MAX("2nd throw") FROM table_21443 WHERE "Equation" = '6 × 9² + 6 × 9 + 6'
6,280
Below are sql tables 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 campus is in Brgy. Alangilan, Batangas City? ### Input: CREATE TABLE table_65868 ( "Campus" text, "Executive Director" text, "Founded" real, "Type" text, "Location" text ) ### Response: SELECT "Campus" FROM table_65868 WHERE "Location" = 'brgy. alangilan, batangas city'
7,808
Below are sql tables 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 table when the team is slovan bratislava? ### Input: CREATE TABLE table_29718 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Table" text, "Incoming manager" text, "Date of appointment" text ) ### Response: SELECT "Table" FROM table_29718 WHERE "Team" = 'Slovan Bratislava'
3,434
Below are sql tables 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 shown for high points when the score was l 87 89 (ot)? ### Input: CREATE TABLE table_27722408_6 ( high_points VARCHAR, score VARCHAR ) ### Response: SELECT COUNT(high_points) FROM table_27722408_6 WHERE score = "L 87–89 (OT)"
15,112
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the record of the game played at home by the Blues where the attendance was larger than 4,719? ### Input: CREATE TABLE table_34392 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Attendance" real, "Record" text, "Points" real ) ### Response: SELECT "Record" FROM table_34392 WHERE "Attendance" > '4,719' AND "Home" = 'blues'
6,772
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: before 2010 what was their best position ? ### Input: CREATE TABLE table_203_715 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) ### Response: SELECT MIN("position") FROM table_203_715 WHERE "year" < 2010
20,428
Below are sql tables 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 ties does Walsall have? ### Input: CREATE TABLE table_41720 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text, "Attendance" text ) ### Response: SELECT "Tie no" FROM table_41720 WHERE "Away team" = 'walsall'
9,332
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many positions have points against less than 28, americano-sp as the team, with a played greater than 8? ### Input: CREATE TABLE table_name_7 ( position VARCHAR, played VARCHAR, against VARCHAR, team VARCHAR ) ### Response: SELECT COUNT(position) FROM table_name_7 WHERE against < 28 AND team = "americano-sp" AND played > 8
16,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: How many Points have a Name of stephen myler, and Tries smaller than 0? ### Input: CREATE TABLE table_65309 ( "Points" real, "Name" text, "Club" text, "Tries" real, "Drop" real ) ### Response: SELECT SUM("Points") FROM table_65309 WHERE "Name" = 'stephen myler' AND "Tries" < '0'
863
Below are sql tables 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 classification of the institution nicknamed Dolphins? ### Input: CREATE TABLE table_587 ( "Institution" text, "Location" text, "Nickname" text, "Current Conference" text, "Classification" text ) ### Response: SELECT "Classification" FROM table_587 WHERE "Nickname" = 'Dolphins'
5,672
Below are sql tables 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 Name has a Number of electorates (2009) greater than 188,799? ### Input: CREATE TABLE table_name_56 ( name VARCHAR, number_of_electorates__2009_ INTEGER ) ### Response: SELECT name FROM table_name_56 WHERE number_of_electorates__2009_ > 188 OFFSET 799
745
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng? ### Input: CREATE TABLE table_40182 ( "Rank" real, "Prev" real, "Player" text, "Rating" real, "Chng" text ) ### Response: SELECT "Player" FROM table_40182 WHERE "Rating" > '2746' AND "Prev" < '4' AND "Chng" = '+4'
8,724
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how long did it take ryosuke irie to finish ? ### Input: CREATE TABLE table_204_835 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" text, "notes" text ) ### Response: SELECT "time" FROM table_204_835 WHERE "name" = 'ryosuke irie'
2,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: If a team has a grid of over 8 with less than 4 points, what's the team name? ### Input: CREATE TABLE table_48727 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) ### Response: SELECT "Team" FROM table_48727 WHERE "Grid" > '8' AND "Points" < '4'
3,223
Below are sql tables 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 did the season with 7-2 conference record ed? ### Input: CREATE TABLE table_23658 ( "Season" real, "Division" text, "Coach" text, "Overall Record" text, "Conference Record" text, "Result" text, "Attendance" real ) ### Response: SELECT "Result" FROM table_23658 WHERE "Conference Record" = '7-2'
21,392
Below are sql tables 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 downhill has 7 overalls? ### Input: CREATE TABLE table_68184 ( "Season" real, "Overall" text, "Slalom" text, "Giant Slalom" text, "Super G" text, "Downhill" text, "Combined" text ) ### Response: SELECT "Downhill" FROM table_68184 WHERE "Overall" = '7'
18,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: Jos verstappen jeroen bleekemolen is on Imp2 winning team where all are rnd. ### Input: CREATE TABLE table_14154271_2 ( rnd VARCHAR, lmp2_winning_team VARCHAR ) ### Response: SELECT rnd FROM table_14154271_2 WHERE lmp2_winning_team = "Jos Verstappen Jeroen Bleekemolen"
13,184
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the colors of the team hosted by Christopher? ### Input: CREATE TABLE table_58762 ( "Team Name" text, "Schools" text, "Sports" text, "Host" text, "Nickname(s)" text, "Colors" text, "Enrollment (2013/14)" real ) ### Response: SELECT "Colors" FROM table_58762 WHERE "Host" = 'christopher'
2,081
Below are sql tables 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 only airport in portugal that is among the 10 busiest routes to and from london southend airport in 2012 ? ### Input: CREATE TABLE table_203_340 ( id number, "rank" number, "airport" text, "passengers handled" number, "% change 2011 / 12" number ) ### Response: SELECT "airport" FROM table_203_340 WHERE "airport" = 'portugal'
12,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: what is the total number of international goals that holosko has scored ? ### Input: CREATE TABLE table_203_6 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) ### Response: SELECT SUM("result") FROM table_203_6
16,461
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: diabetic ### Input: CREATE TABLE table_train_2 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "diabetic" string, "electro_systolic_process" bool, "degenerative_pathology" bool, "neurological_disease" bool, "cardiomyopathy" bool, "NOUSE" float ) ### Response: SELECT * FROM table_train_2 WHERE diabetic <> 'none'
20,344
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of the gold medals of the total nation, which has more than 19 silver medals? ### Input: CREATE TABLE table_42512 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT SUM("Gold") FROM table_42512 WHERE "Nation" = 'total' AND "Silver" > '19'
3,517
Below are sql tables 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 colour commmentator that broadcasted along with the Play-by-play of bob cole? ### Input: CREATE TABLE table_11766 ( "Year" real, "Network" text, "Play-by-play" text, "Colour commentator(s)" text, "Studio host" text ) ### Response: SELECT "Colour commentator(s)" FROM table_11766 WHERE "Play-by-play" = 'bob cole'
5,725
Below are sql tables 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 Class when Wessex Trains Pink is the Livery? ### Input: CREATE TABLE table_43400 ( "Number" real, "Class" real, "Name" text, "Livery" text, "Notes" text ) ### Response: SELECT "Class" FROM table_43400 WHERE "Livery" = 'wessex trains pink'
11,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: Which Incumbent has a District of California 8? ### Input: CREATE TABLE table_74881 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) ### Response: SELECT "Incumbent" FROM table_74881 WHERE "District" = 'california 8'
9,628
Below are sql tables 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 title runs for 3:22? ### Input: CREATE TABLE table_52754 ( "Title" text, "Author(s)" text, "Recorded" text, "Location(s)" text, "Time" text ) ### Response: SELECT "Title" FROM table_52754 WHERE "Time" = '3:22'
21,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: what is the even when the location is tokyo, japan and the record is 6-1? ### Input: CREATE TABLE table_63738 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) ### Response: SELECT "Event" FROM table_63738 WHERE "Location" = 'tokyo, japan' AND "Record" = '6-1'
2,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 is the average rank of the province alborz, which had more than 14526 in 1956? ### Input: CREATE TABLE table_name_95 ( rank INTEGER, province VARCHAR ) ### Response: SELECT AVG(rank) FROM table_name_95 WHERE province = "alborz" AND 1956 > 14526
12,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 was the sum of the crowds that watched Fitzroy play as the away team? ### Input: CREATE TABLE table_32242 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT SUM("Crowd") FROM table_32242 WHERE "Away team" = 'fitzroy'
1,772
Below are sql tables 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 in the three darts challenge that aired on 10 may 2010? ### Input: CREATE TABLE table_28984 ( "Episode Number" real, "Air Date" text, "Guests" text, "Three Darts Challenge" text, "Musical Performance" text ) ### Response: SELECT "Three Darts Challenge" FROM table_28984 WHERE "Air Date" = '10 May 2010'
1,597
Below are sql tables 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 away team was geelong, what was the away team score? ### Input: CREATE TABLE table_10951 ( "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_10951 WHERE "Away team" = 'geelong'
6,498
Below are sql tables 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 totla number of goal difference for goals against of 30 and played less than 18 ### Input: CREATE TABLE table_name_4 ( goal_difference VARCHAR, goals_against VARCHAR, played VARCHAR ) ### Response: SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18
4,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 latest day in November with a game 15? ### Input: CREATE TABLE table_6510 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Record" text ) ### Response: SELECT MAX("November") FROM table_6510 WHERE "Game" = '15'
12,489
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the names of perpetrators in country 'China' or 'Japan'? ### Input: CREATE TABLE people ( Name VARCHAR, People_ID VARCHAR ) CREATE TABLE perpetrator ( People_ID VARCHAR, Country VARCHAR ) ### Response: SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = "China" OR T2.Country = "Japan"
6,466
Below are sql tables 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's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name? ### Input: CREATE TABLE table_name_90 ( college VARCHAR, name VARCHAR, round VARCHAR, overall VARCHAR ) ### Response: SELECT college FROM table_name_90 WHERE round > 4 AND overall < 237 AND name = "ted cottrell"
16,182
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the number of gold medals for Lithuania (ltu), when the total is more than 1? ### Input: CREATE TABLE table_79456 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT MAX("Gold") FROM table_79456 WHERE "Nation" = 'lithuania (ltu)' AND "Total" > '1'
24,279
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What team(s) enjoyed an average spped (mph) of 138.14? ### Input: CREATE TABLE table_17802778_1 ( team VARCHAR, average_speed__mph_ VARCHAR ) ### Response: SELECT team FROM table_17802778_1 WHERE average_speed__mph_ = "138.14"
24,107
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who won the womens doubles when wu jianqui won the womens singles? ### Input: CREATE TABLE table_12027364_1 ( womens_doubles VARCHAR, womens_singles VARCHAR ) ### Response: SELECT womens_doubles FROM table_12027364_1 WHERE womens_singles = "Wu Jianqui"
12,526
Below are sql tables 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 constructor on the team with 8 rounds and a chassis of 156 158 1512? ### Input: CREATE TABLE table_name_54 ( constructor VARCHAR, rounds VARCHAR, chassis VARCHAR ) ### Response: SELECT constructor FROM table_name_54 WHERE rounds = "8" AND chassis = "156 158 1512"
24,053
Below are sql tables 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 when the home was Atlanta? ### Input: CREATE TABLE table_10330 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) ### Response: SELECT "Score" FROM table_10330 WHERE "Home" = 'atlanta'
16,212
Below are sql tables 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 Area has the frequency of 100.3 and an On-air ID of yass fm? ### Input: CREATE TABLE table_name_94 ( area_served VARCHAR, frequency VARCHAR, on_air_id VARCHAR ) ### Response: SELECT area_served FROM table_name_94 WHERE frequency = "100.3" AND on_air_id = "yass fm"
8,228