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: In what venue was the hosted away team Essendon? ### Input: CREATE TABLE table_78510 ( "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_78510 WHERE "Away team" = 'essendon'
7,488
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Pittodrie Stadium's maximum capacity? ### Input: CREATE TABLE table_156 ( "Team" text, "Stadium" text, "Capacity" real, "Lowest" real, "Highest" real, "Average" real ) ### Response: SELECT MAX("Capacity") FROM table_156 WHERE "Stadium" = 'Pittodrie'
4,496
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the scores for michael buerk and russell howard ### Input: CREATE TABLE table_2904 ( "Episode" text, "First broadcast" text, "Davids team" text, "Lees team" text, "Scores" text ) ### Response: SELECT "Scores" FROM table_2904 WHERE "Lees team" = 'Michael Buerk and Russell Howard'
83
Below are sql tables schemas 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 that saw 4 heats and a lane higher than 7? ### Input: CREATE TABLE table_80288 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) ### Response: SELECT "Name" FROM table_80288 WHERE "Heat" = '4' AND "Lane" > '7'
35
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What category of the British Soap Awards resulted in nominated? ### Input: CREATE TABLE table_58545 ( "Awards" text, "Year" real, "Category" text, "Result" text, "Production" text, "Roll" text ) ### Response: SELECT "Category" FROM table_58545 WHERE "Awards" = 'british soap awards' AND "Result" = 'nominated'
20,379
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the average attendance when the record was 17-18? ### Input: CREATE TABLE table_68635 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) ### Response: SELECT AVG("Attendance") FROM table_68635 WHERE "Record" = '17-18'
569
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What average played has an against less than 15? ### Input: CREATE TABLE table_42931 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) ### Response: SELECT AVG("Played") FROM table_42931 WHERE "Against" < '15'
1,490
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the least silver when gold is 0? ### Input: CREATE TABLE table_65436 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT MIN("Silver") FROM table_65436 WHERE "Gold" < '0'
1,096
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the debut year for player terry fulton with games less than 51? ### Input: CREATE TABLE table_51617 ( "Debut year" real, "Player" text, "Date of birth" text, "Games" real, "Goals" real, "Years at club" text ) ### Response: SELECT AVG("Debut year") FROM table_51617 WHERE "Player" = 'terry fulton' AND "Games" < '51'
10,205
Below are sql tables schemas 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 shank type of the buttonholer with red plastic box as storage case? ### Input: CREATE TABLE table_28652521_1 ( for_shank_type VARCHAR, storage_case VARCHAR ) ### Response: SELECT for_shank_type FROM table_28652521_1 WHERE storage_case = "red plastic box"
21,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: What percentage did kennedy win while coakly won 37.9% ### Input: CREATE TABLE table_26594 ( "County" text, "Coakley %" text, "Coakley votes" real, "Brown %" text, "Brown votes" real, "Kennedy %" text, "Kennedy votes" real ) ### Response: SELECT "Kennedy %" FROM table_26594 WHERE "Coakley %" = '37.9%'
22,516
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is part 1 when the class is 7d? ### Input: CREATE TABLE table_44371 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) ### Response: SELECT "Part 1" FROM table_44371 WHERE "Class" = '7d'
12,137
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What years did Birger Ruud win the FIS Nordic World Ski Championships? ### Input: CREATE TABLE table_21696 ( "Winner" text, "Country" text, "Winter Olympics" text, "FIS Nordic World Ski Championships" text, "Holmenkollen" text ) ### Response: SELECT "FIS Nordic World Ski Championships" FROM table_21696 WHERE "Winner" = 'Birger Ruud'
7,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: What is the ICT when education is 1.73 and KI is ag 1.99? ### Input: CREATE TABLE table_23050383_1 ( ict VARCHAR, education VARCHAR, ki VARCHAR ) ### Response: SELECT ict FROM table_23050383_1 WHERE education = "1.73" AND ki = "1.99"
15,046
Below are sql tables schemas 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 is based at junction oval? ### Input: CREATE TABLE table_52085 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT "Home team" FROM table_52085 WHERE "Venue" = 'junction oval'
1,131
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many weeks have an Attendance of 62,289? ### Input: CREATE TABLE table_65734 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) ### Response: SELECT SUM("Week") FROM table_65734 WHERE "Attendance" = '62,289'
7,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: When was Dickinson College founded? ### Input: CREATE TABLE table_73795 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real, "Nickname" text, "US News Ranking 2014 for Liberal Arts" text, "Football?" text ) ### Response: SELECT "Founded" FROM table_73795 WHERE "Institution" = 'Dickinson College'
6,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: Name the result for dolly parton ### Input: CREATE TABLE table_23047 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text ) ### Response: SELECT "Result" FROM table_23047 WHERE "Original artist" = 'Dolly Parton'
1,038
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What home team played against Fleetwood Town? ### Input: CREATE TABLE table_58723 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" real ) ### Response: SELECT "Home team" FROM table_58723 WHERE "Away team" = 'fleetwood town'
19,842
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many clubs had no drawn results ? ### Input: CREATE TABLE table_203_322 ( id number, "club" text, "played" number, "won" number, "drawn" number, "lost" number, "points for" number, "points against" number, "bonus points" number, "points" number ) ### Response: SELECT COUNT("club") FROM table_203_322 WHERE "drawn" IS NULL
651
Below are sql tables schemas 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 air date of the episode that had 5.30 million U.S. viewers? ### Input: CREATE TABLE table_25548505_1 ( original_air_date VARCHAR, us_viewers__millions_ VARCHAR ) ### Response: SELECT original_air_date FROM table_25548505_1 WHERE us_viewers__millions_ = "5.30"
6,014
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the venue that away team footscray played at? ### Input: CREATE TABLE table_56963 ( "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_56963 WHERE "Away team" = 'footscray'
162
Below are sql tables 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 Tie is from birmingham city? ### Input: CREATE TABLE table_76223 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) ### Response: SELECT "Tie no" FROM table_76223 WHERE "Home team" = 'birmingham city'
16,113
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the team's record on may 12 when they play the giants? ### Input: CREATE TABLE table_55875 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) ### Response: SELECT "Record" FROM table_55875 WHERE "Opponent" = 'giants' AND "Date" = 'may 12'
9,768
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the time/retired for the driver with 14 points? ### Input: CREATE TABLE table_50442 ( "Fin. Pos" text, "Car No." text, "Driver" text, "Team" text, "Laps" text, "Time/Retired" text, "Grid" text, "Laps Led" text, "Points" text ) ### Response: SELECT "Time/Retired" FROM table_50442 WHERE "Points" = '14'
18,213
Below are sql tables schemas 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 deployed from date for the a-4b aircraft from westpac with a tail code of ah-3xx? ### Input: CREATE TABLE table_46310 ( "from" text, "aircraft" text, "carrier" text, "air wing" text, "tail code" text, "area" text ) ### Response: SELECT "from" FROM table_46310 WHERE "tail code" = 'ah-3xx' AND "area" = 'westpac' AND "aircraft" = 'a-4b'
11,674
Below are sql tables 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 candidates were there in the race where Cecil R. King is the incumbent? ### Input: CREATE TABLE table_18543 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) ### Response: SELECT COUNT("Candidates") FROM table_18543 WHERE "Incumbent" = 'Cecil R. King'
18,899
Below are sql tables schemas 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 points for a song ranked 2nd with a draw greater than 3? ### Input: CREATE TABLE table_75891 ( "Draw" real, "Song" text, "Performer" text, "Points" real, "Rank" text ) ### Response: SELECT AVG("Points") FROM table_75891 WHERE "Rank" = '2nd' AND "Draw" > '3'
5,494
Below are sql tables 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 teams had a difference of 8 between goals scored and goals conceeded ### Input: CREATE TABLE table_1243 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won" real, "Drawn" real, "Lost" real, "For" real, "Against" real, "Difference" text ) ### Response: SELECT "Team" FROM table_1243 WHERE "Difference" = '8'
4,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: What points have 500cc as a class, and nsr500 as a machine? ### Input: CREATE TABLE table_39457 ( "Year" real, "Class" text, "Team" text, "Machine" text, "Points" real, "Rank" text, "Wins" real ) ### Response: SELECT "Points" FROM table_39457 WHERE "Class" = '500cc' AND "Machine" = 'nsr500'
11,809
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many counties are smaller than 10,000 km2 ? ### Input: CREATE TABLE table_204_778 ( id number, "code" number, "county" text, "former province" text, "area (km2)" number, "population\ncensus 2009" number, "capital" text ) ### Response: SELECT COUNT("county") FROM table_204_778 WHERE "area (km2)" < 10000
6,884
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Home team has an away score of 6.6 (42)? ### Input: CREATE TABLE table_54879 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) ### Response: SELECT "Home team score" FROM table_54879 WHERE "Away team score" = '6.6 (42)'
1,593
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How much Overall has a Round smaller than 6, and a Pick # of 26? ### Input: CREATE TABLE table_39722 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) ### Response: SELECT SUM("Overall") FROM table_39722 WHERE "Round" < '6' AND "Pick #" = '26'
7,570
Below are sql tables 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 track 7 title was recorded in 1959-09-15? ### Input: CREATE TABLE table_53807 ( "Track" real, "Title" text, "Translation" text, "Composer" text, "Recorded" text ) ### Response: SELECT "Title" FROM table_53807 WHERE "Recorded" = '1959-09-15' AND "Track" = '7'
9,300
Below are sql tables 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 times were points counted for fk prienai ### Input: CREATE TABLE table_1402 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real ) ### Response: SELECT COUNT("Points") FROM table_1402 WHERE "Club" = 'FK Prienai'
21,894
Below are sql tables 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 average wins have USA as the team? ### Input: CREATE TABLE table_42434 ( "Pos." real, "Team" text, "Wins" real, "Ties" real, "Losses" real, "Goals" text, "Diff." text, "Points" text ) ### Response: SELECT AVG("Wins") FROM table_42434 WHERE "Team" = 'usa'
10,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: What country were the athletes where ranked smaller than 5 with notes listed as fb? ### Input: CREATE TABLE table_65513 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) ### Response: SELECT "Country" FROM table_65513 WHERE "Rank" < '5' AND "Notes" = 'fb'
530
Below are sql tables schemas 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 date in March when the opponent was the Boston Bruins and the game number was smaller than 66? ### Input: CREATE TABLE table_name_94 ( march INTEGER, opponent VARCHAR, game VARCHAR ) ### Response: SELECT MAX(march) FROM table_name_94 WHERE opponent = "boston bruins" AND game < 66
4,123
Below are sql tables schemas 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 rider ? ### Input: CREATE TABLE table_204_352 ( id number, "pos" text, "no" number, "rider" text, "manufacturer" text, "laps" number, "time" text, "grid" number, "points" number ) ### Response: SELECT COUNT("rider") FROM table_204_352
15,696
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What term did hon ralph hunt serve in office? ### Input: CREATE TABLE table_71587 ( "Member" text, "Party" text, "Electorate" text, "State" text, "Term in office" text ) ### Response: SELECT "Term in office" FROM table_71587 WHERE "Member" = 'hon ralph hunt'
18,487
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the name of the last competition ? ### Input: CREATE TABLE table_204_395 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) ### Response: SELECT "competition" FROM table_204_395 ORDER BY "year" DESC LIMIT 1
21,565
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Date that has MARTIN of 7 9% and no Undecided? ### Input: CREATE TABLE table_36882 ( "Source" text, "Date" text, "MARTIN" text, "GR\u00dcNE" text, "Others" text, "Undecided" text ) ### Response: SELECT "Date" FROM table_36882 WHERE "Undecided" = '–' AND "MARTIN" = '7–9%'
12,456
Below are sql tables 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 series were played on April 18? ### Input: CREATE TABLE table_25885 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) ### Response: SELECT "Series" FROM table_25885 WHERE "Date" = 'April 18'
11,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: Construction start of phase i includes what type? ### Input: CREATE TABLE table_68272 ( "Unit" text, "Type" text, "Gross MW" text, "Construction start" text, "Operation start" text ) ### Response: SELECT "Type" FROM table_68272 WHERE "Construction start" = 'phase i'
7,881
Below are sql tables schemas 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 starts in 1977 ### Input: CREATE TABLE table_2180 ( "Pitcher" text, "Starts" real, "Wins" real, "Losses" real, "No decisions" real, "Winning %" text, "Seasons" text ) ### Response: SELECT "Starts" FROM table_2180 WHERE "Seasons" = '1977'
2,055
Below are sql tables schemas 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 episode on NHK with average ratings of 9.2%? ### Input: CREATE TABLE table_66113 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" real, "Average Ratings" text ) ### Response: SELECT COUNT("Episodes") FROM table_66113 WHERE "TV Station" = 'nhk' AND "Average Ratings" = '9.2%'
6,084
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the circuit in which the race name is ii danish grand prix? ### Input: CREATE TABLE table_16758 ( "Race Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Constructor" text, "Report" text ) ### Response: SELECT "Circuit" FROM table_16758 WHERE "Race Name" = 'II Danish Grand Prix'
18,098
Below are sql tables schemas 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 is titled 'Authority Vested'? ### Input: CREATE TABLE table_2293 ( "No. in series" real, "No. in season" real, "Title" text, "Directedby" text, "Writtenby" text, "Originalairdate" text, "Production code" text, "U.S. viewers (million)" text ) ### Response: SELECT MAX("No. in season") FROM table_2293 WHERE "Title" = 'Authority Vested'
21,731
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: I want the average lose for lost point more than 16 and goal difference less than 37 and point less than 43 ### Input: CREATE TABLE table_name_96 ( lose INTEGER, point VARCHAR, lost_point VARCHAR, goal_difference VARCHAR ) ### Response: SELECT AVG(lose) FROM table_name_96 WHERE lost_point > 16 AND goal_difference < 37 AND point < 43
18,211
Below are sql tables schemas 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 grid number for paul cruickshank racing with less than 27 laps? ### Input: CREATE TABLE table_32491 ( "Name" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT AVG("Grid") FROM table_32491 WHERE "Team" = 'paul cruickshank racing' AND "Laps" < '27'
19,844
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418? ### Input: CREATE TABLE table_58391 ( "AVE- No." real, "Name" text, "Country" text, "Highest mountain" text, "Height (m)" real ) ### Response: SELECT SUM("AVE- No.") FROM table_58391 WHERE "Name" = 'albula alps' AND "Height (m)" > '3418'
2,740
Below are sql tables schemas 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 average spectators from the Group H Round? ### Input: CREATE TABLE table_46460 ( "Date" text, "Time (CET)" real, "Res." text, "Round" text, "Spectators" real ) ### Response: SELECT AVG("Spectators") FROM table_46460 WHERE "Round" = 'group h'
15,960
Below are sql tables schemas 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 EASA (EU) when the notes show aoc 135? ### Input: CREATE TABLE table_41081 ( "Airline" text, "Fleet Size" real, "Notes" text, "IOSA (IATA)" text, "EASA (EU)" text, "IASA (FAA)" text ) ### Response: SELECT "EASA (EU)" FROM table_41081 WHERE "Notes" = 'aoc 135'
7,154
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many games happened in 1987 ? ### Input: CREATE TABLE table_204_495 ( id number, "date" text, "opponent" text, "venue" text, "result" text, "attendance" number, "scorers" text ) ### Response: SELECT COUNT(*) FROM table_204_495 WHERE "date" = 1987
19,303
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what year is 4:00 long ### Input: CREATE TABLE table_38987 ( "Version" text, "Length" text, "Album" text, "Remixed by" text, "Year" real ) ### Response: SELECT COUNT("Year") FROM table_38987 WHERE "Length" = '4:00'
11,680
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: State average scores of participants from arizona ### Input: CREATE TABLE table_21277 ( "Country" text, "Preliminary" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Average" text ) ### Response: SELECT "Average" FROM table_21277 WHERE "Country" = 'Arizona'
19,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: Which Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)? ### Input: CREATE TABLE table_name_10 ( round INTEGER, college_junior_club_team__league_ VARCHAR ) ### Response: SELECT MAX(round) FROM table_name_10 WHERE college_junior_club_team__league_ = "torpedo yaroslavl (rus)"
12,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: What is the title of the king who left office in 982 and entered office in 949? ### Input: CREATE TABLE table_name_64 ( title VARCHAR, left_office VARCHAR, entered_office VARCHAR ) ### Response: SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949"
2,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 is the score for set 1 when the score for set 3 is 22 25? ### Input: CREATE TABLE table_9150 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) ### Response: SELECT "Set 1" FROM table_9150 WHERE "Set 3" = '22–25'
15,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 last performance of leon varkas category:articles with hcards ### Input: CREATE TABLE table_19189856_1 ( last_performance VARCHAR, performer VARCHAR ) ### Response: SELECT last_performance FROM table_19189856_1 WHERE performer = "Leon Varkas category:Articles with hCards"
16,926
Below are sql tables 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 new conference is located in Greentown? ### Input: CREATE TABLE table_37263 ( "School" text, "Location" text, "Mascot" text, "# / County" text, "Year joined" real, "Previous conference" text, "Year left" real, "New conference" text ) ### Response: SELECT "New conference" FROM table_37263 WHERE "Location" = 'greentown'
15,023
Below are sql tables 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 placed t5 and had a score of 70-72=142? ### Input: CREATE TABLE table_78952 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) ### Response: SELECT "Player" FROM table_78952 WHERE "Place" = 't5' AND "Score" = '70-72=142'
1,567
Below are sql tables 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 Driver has a Capacity smaller than 5700, and a Total Time of 08:29? ### Input: CREATE TABLE table_63012 ( "Driver" text, "Navigator" text, "Vehicle" text, "Class" text, "Capacity" real, "Total Time" text, "Margin" text ) ### Response: SELECT "Driver" FROM table_63012 WHERE "Capacity" < '5700' AND "Total Time" = '08:29'
20,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 is the average number of runner-up that National University, which has more than 2 total championships, has? ### Input: CREATE TABLE table_40122 ( "University" text, "Men's" real, "Women's" real, "Runner-up" real, "Total Championships" real ) ### Response: SELECT AVG("Runner-up") FROM table_40122 WHERE "University" = 'national university' AND "Total Championships" > '2'
1,257
Below are sql tables schemas 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 has a status of proposed, with 80 floors for Celestia Spaces 4? ### Input: CREATE TABLE table_name_79 ( rank INTEGER, name VARCHAR, status VARCHAR, floors VARCHAR ) ### Response: SELECT AVG(rank) FROM table_name_79 WHERE status = "proposed" AND floors = 80 AND name = "celestia spaces 4"
22,456
Below are sql tables schemas 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 in game 81? ### Input: CREATE TABLE table_72882 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Score" FROM table_72882 WHERE "Game" = '81'
1,876
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the fewest number of wins when he has 3 poles in 2010? ### Input: CREATE TABLE table_37723 ( "Season" text, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "Points" text, "Position" text ) ### Response: SELECT MIN("Wins") FROM table_37723 WHERE "Poles" = '3' AND "Season" = '2010'
186
Below are sql tables schemas 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 was Ryan Callahan, who received a penalty for roughing, playing for? ### Input: CREATE TABLE table_47123 ( "Period" text, "Team" text, "Player" text, "Penalty" text, "Time" text ) ### Response: SELECT "Team" FROM table_47123 WHERE "Penalty" = 'roughing' AND "Player" = 'ryan callahan'
6,722
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What director(s) have the intouchables as the title? ### Input: CREATE TABLE table_45664 ( "Rank" real, "Title" text, "Studio" text, "Director(s)" text, "Worldwide Gross" text ) ### Response: SELECT "Director(s)" FROM table_45664 WHERE "Title" = 'the intouchables'
11,137
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many enrollment figures are provided for Roosevelt High School? ### Input: CREATE TABLE table_18972 ( "High School" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Nickname" text, "Division" text ) ### Response: SELECT COUNT("Enrollment") FROM table_18972 WHERE "High School" = 'Roosevelt'
4,944
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Date has a Result of l 21 34? ### Input: CREATE TABLE table_38168 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) ### Response: SELECT "Date" FROM table_38168 WHERE "Result" = 'l 21–34'
823
Below are sql tables 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 Races has a T.C. of 3rd, and a D.C. of 7th? ### Input: CREATE TABLE table_name_14 ( races INTEGER, tc VARCHAR, dc VARCHAR ) ### Response: SELECT MIN(races) FROM table_name_14 WHERE tc = "3rd" AND dc = "7th"
21,868
Below are sql tables schemas 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 Competition with a Score of 1 0, and a Result with 3 0? ### Input: CREATE TABLE table_11127 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) ### Response: SELECT "Competition" FROM table_11127 WHERE "Score" = '1–0' AND "Result" = '3–0'
24,188
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who had the highest assists during the game on February 22? ### Input: CREATE TABLE table_35592 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "High assists" FROM table_35592 WHERE "Date" = 'february 22'
11,636
Below are sql tables schemas 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 2nd leg when Team 1 was Chicago Croatian? ### Input: CREATE TABLE table_68948 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) ### Response: SELECT "2nd leg" FROM table_68948 WHERE "Team 1" = 'chicago croatian'
8,326
Below are sql tables schemas 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 Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills? ### Input: CREATE TABLE table_name_88 ( dolphins_points INTEGER, opponent VARCHAR, attendance VARCHAR ) ### Response: SELECT AVG(dolphins_points) FROM table_name_88 WHERE opponent = "buffalo bills" AND attendance < 69 OFFSET 313
17,645
Below are sql tables 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 Year Yugoslavia won 1 Silver, how many Gold medals did they win? ### Input: CREATE TABLE table_5985 ( "Year" text, "Sports" text, "Competitors" text, "Gold" text, "Silver" text, "Bronze" text, "Total" text ) ### Response: SELECT "Gold" FROM table_5985 WHERE "Silver" = '1'
15,001
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many for percentages are there when the against percentage is 35,782 (69)? ### Input: CREATE TABLE table_1289762_1 ( for___percentage_ VARCHAR, against___percentage_ VARCHAR ) ### Response: SELECT for___percentage_ FROM table_1289762_1 WHERE against___percentage_ = "35,782 (69)"
12,582
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who directed the episode that is written by Eli Attie and production code is 2t5018? ### Input: CREATE TABLE table_29152820_1 ( directed_by VARCHAR, written_by VARCHAR, production_code VARCHAR ) ### Response: SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018"
10,120
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Presentation of Credentials has a Termination of Mission listed as August 15, 2000? ### Input: CREATE TABLE table_15165 ( "Representative" text, "Title" text, "Presentation of Credentials" text, "Termination of Mission" text, "Appointed by" text ) ### Response: SELECT "Presentation of Credentials" FROM table_15165 WHERE "Termination of Mission" = 'august 15, 2000'
13,497
Below are sql tables schemas 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 with Nathalie Tauziat as a partner? ### Input: CREATE TABLE table_6976 ( "Date" text, "Tournament" text, "Surface" text, "Partnering" text, "Opponents in the final" text, "Score" text ) ### Response: SELECT "Score" FROM table_6976 WHERE "Partnering" = 'nathalie tauziat'
7,968
Below are sql tables schemas 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 NHL team that has a team (League) of Mississauga Icedogs (ohl)? ### Input: CREATE TABLE table_name_59 ( nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR ) ### Response: SELECT nhl_team FROM table_name_59 WHERE college_junior_club_team__league_ = "mississauga icedogs (ohl)"
10,797
Below are sql tables schemas 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 Champion with a Year that is 2008? ### Input: CREATE TABLE table_42910 ( "Year" real, "Champion" text, "Runner-up" text, "Third place" text, "Fourth place" text, "Jack Tompkins Trophy (MVP)" text ) ### Response: SELECT "Champion" FROM table_42910 WHERE "Year" = '2008'
5,115
Below are sql tables 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 Road team has a Home team of portland, and a Date of may 31? ### Input: CREATE TABLE table_49471 ( "Game" text, "Date" text, "Home team" text, "Result" text, "Road team" text ) ### Response: SELECT "Road team" FROM table_49471 WHERE "Home team" = 'portland' AND "Date" = 'may 31'
17,023
Below are sql tables schemas 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 LMS number of the trains built by G&SWR Kilmarnock? ### Input: CREATE TABLE table_20062 ( "Class" text, "Wheels" real, "Date" text, "Builder" text, "No. built" real, "1919 nos." text, "LMS Class" text, "LMS nos." text ) ### Response: SELECT "LMS nos." FROM table_20062 WHERE "Builder" = 'G&SWR Kilmarnock'
17,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 Length (ft.) for a 2008 nfi d40lf? ### Input: CREATE TABLE table_name_67 ( length__ft_ VARCHAR, order_year VARCHAR, manufacturer VARCHAR, model VARCHAR ) ### Response: SELECT length__ft_ FROM table_name_67 WHERE manufacturer = "nfi" AND model = "d40lf" AND order_year = "2008"
11,293
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Poles has a Wins larger than 0, and a Podiums smaller than 17? ### Input: CREATE TABLE table_name_94 ( poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR ) ### Response: SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 0
9,987
Below are sql tables schemas 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 2007-08 season for the city of Ferrara? ### Input: CREATE TABLE table_49423 ( "Club" text, "City" text, "Stadium" text, "Capacity" real, "2007\u201308 season" text ) ### Response: SELECT "2007\u201308 season" FROM table_49423 WHERE "City" = 'ferrara'
14,797
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the location and attendance of the game when High Assists were Andre Miller (7)? ### Input: CREATE TABLE table_21519 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Location Attendance" FROM table_21519 WHERE "High assists" = 'Andre Miller (7)'
9,155
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qualifying competition? ### Input: CREATE TABLE table_name_24 ( date VARCHAR, scored VARCHAR, competition VARCHAR ) ### Response: SELECT date FROM table_name_24 WHERE scored < 2 AND competition = "uefa euro 2004 qualifying"
6,154
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the score of the game where the Rangers record was 16-8-4? ### Input: CREATE TABLE table_5772 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text ) ### Response: SELECT "Score" FROM table_5772 WHERE "Record" = '16-8-4'
17,397
Below are sql tables schemas 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 last recorded ship sunk on august 25 ? ### Input: CREATE TABLE table_204_100 ( id number, "date" text, "name of ship" text, "nationality" text, "tonnage" number, "fate" text ) ### Response: SELECT "name of ship" FROM table_204_100 WHERE "date" = 8 AND "date" = 25 ORDER BY id DESC LIMIT 1
1,256
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the most flags that had 473 wins and less than 633 losses? ### Input: CREATE TABLE table_64137 ( "Club" text, "Active" text, "Wins" real, "Losses" real, "Draws" real, "Percentage wins" text, "Flags" real ) ### Response: SELECT MAX("Flags") FROM table_64137 WHERE "Wins" = '473' AND "Losses" < '633'
8,507
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest ranked nation with 15 silver medals and no more than 47 total? ### Input: CREATE TABLE table_33568 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) ### Response: SELECT MAX("Rank") FROM table_33568 WHERE "Silver" = '15' AND "Total" < '47'
970
Below are sql tables 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 building has 8 floors and is 240 ft tall ? ### Input: CREATE TABLE table_203_105 ( id number, "name" text, "street address" text, "years as tallest" text, "height\nft (m)" text, "floors" number ) ### Response: SELECT "name" FROM table_203_105 WHERE "floors" = 8 AND "height\nft (m)" = 240
18,521
Below are sql tables 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 united states president appointed the most ambassador 's to mexico ### Input: CREATE TABLE table_203_69 ( id number, "representative" text, "title" text, "from" number, "to" number, "appointed by" text ) ### Response: SELECT "appointed by" FROM table_203_69 GROUP BY "appointed by" ORDER BY COUNT(*) DESC LIMIT 1
11,563
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: In which season was Jeanne d'Arc (Bamako) the runner-up? ### Input: CREATE TABLE table_17670 ( "Season" text, "Winner" text, "Score" text, "Runner-up" text, "lost to eventual winner" text, "lost to eventual runner-up" text ) ### Response: SELECT "Season" FROM table_17670 WHERE "Runner-up" = 'Jeanne d''Arc (Bamako)'
19,017
Below are sql tables 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 otar iosseliani's film selected ### Input: CREATE TABLE table_22142 ( "Year [e ] (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Main Language(s)" text, "Result" text ) ### Response: SELECT "Year [e ] (Ceremony)" FROM table_22142 WHERE "Director" = 'Otar Iosseliani'
168
Below are sql tables 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 were completed in the time of +7.213 with a grid number larger than 7? ### Input: CREATE TABLE table_71172 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT COUNT("Laps") FROM table_71172 WHERE "Time/Retired" = '+7.213' AND "Grid" > '7'
20,423
Below are sql tables schemas 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 Attendance WITH A RECORD 94 36 ### Input: CREATE TABLE table_57722 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text, "Attendance" real, "Record" text ) ### Response: SELECT AVG("Attendance") FROM table_57722 WHERE "Save" = '–' AND "Record" = '94–36'
1,135