instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: If I take 699 , how many credits will I receive ? ### Response:
SELECT DISTINCT credits FROM course WHERE department = 'EECS' AND number = 699
### Instruction: Can you tell me the Score that has the Team of memphis? ### Response:
SELECT "Score" FROM table_48287 WHERE "Team" = 'memphis'
### Instruction: What was the resolution of the fight when matt grice had a record of 2-0? ### Response:
SELECT res FROM table_name_89 WHERE record = "2-0"
### Instruction: How many times is st kilda the away team? ### Response:
SELECT COUNT("Crowd") FROM table_32651 WHERE "Away team" = 'st kilda'
### Instruction: What was the score of the game on 19/3/00? ### Response:
SELECT score FROM table_name_60 WHERE date = "19/3/00"
### Instruction: What was the away team score, when the away team was Fitzroy? ### Response:
SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy"
### Instruction: How many times were players named brett ralph were selected? ### Response:
SELECT COUNT("Pick #") FROM table_16398 WHERE "Player" = 'Brett Ralph'
### Instruction: In which district is the incumbent John Breaux? ### Response:
SELECT "District" FROM table_18344 WHERE "Incumbent" = 'John Breaux'
### Instruction: Show all the actual delivery dates and bin by weekday in a bar chart. ### Response:
SELECT Actual_Delivery_Date, COUNT(Actual_Delivery_Date) FROM Bookings
### Instruction: Which location was in China, and played on a hard court? ### Response:
SELECT location FROM table_name_69 WHERE court_surface = "hard" AND country = "china"
### Instruction: What is the whole of Points that has a Drawn smaller than 1? ### Response:
SELECT SUM("Points") FROM table_8226 WHERE "Drawn" < '1'
### Instruction: Name Nationality is on 6 july 1942? ### Response:
SELECT nationality FROM table_name_83 WHERE date = "6 july 1942"
### Instruction: At the match in windy hill, how much did the home team score? ### Response:
SELECT home_team AS score FROM table_name_33 WHERE venue = "windy hill"
### Instruction: Which institution was located in bakersfield, california? ### Response:
SELECT institution FROM table_27816698_2 WHERE location = "Bakersfield, California"
### Instruction: what was the number of goals scored against san marino ? ### Response:
SELECT "score" FROM table_203_655 WHERE "opponent" = 'san marino'
### Instruction: How many years did BBC One rank 20th? ### Response:
SELECT COUNT("Year") FROM table_16043 WHERE "BBC One Rank" = '20th'
### Instruction: What player had a finals score of 0 (10)? ### Response:
SELECT "Name" FROM table_13721 WHERE "Finals" = '0 (10)'
### Instruction: Who directed the episode titled 'Full Metal Betsy'? ### Response:
SELECT "Director" FROM table_16372 WHERE "Title" = 'Full Metal Betsy'
### Instruction: What network airs on virtual channel 23.1? ### Response:
SELECT network FROM table_2857352_3 WHERE virtual_channel = "23.1"
### Instruction: What was the away team score at Windy Hill? ### Response:
SELECT "Away team score" FROM table_54152 WHERE "Venue" = 'windy hill'
### Instruction: Who was the Centerfold Model on 9-03? ### Response:
SELECT "Centerfold model" FROM table_43062 WHERE "Date" = '9-03'
### Instruction: What is Etymology, when Rank is 14? ### Response:
SELECT "Etymology" FROM table_77261 WHERE "Rank" = '14'
### Instruction: Name the team with best of 58.846 ### Response:
SELECT "Team" FROM table_68240 WHERE "Best" = '58.846'
### Instruction: When did Archbishop Albert Daeger vacate the throne? ### Response:
SELECT vacated_throne FROM table_name_63 WHERE archbishop = "albert daeger"
### Instruction: What is the site when the superintendent was John Barry? ### Response:
SELECT "Site" FROM table_67147 WHERE "Superintendent" = 'john barry'
### Instruction: What was the rating of the episode 'After Hours'? ### Response:
SELECT "Rating (Millions)" FROM table_10623 WHERE "Title" = 'after hours'
### Instruction: What was the loss of the game attended by 41,212? ### Response:
SELECT loss FROM table_name_50 WHERE attendance = "41,212"
### Instruction: Name the performance order of the velasco brothers ### Response:
SELECT performance_order FROM table_26267849_11 WHERE artist = "Velasco Brothers"
### Instruction: what was the average number of fans in attendance in the first three games ? ### Response:
SELECT AVG("attendance") FROM table_204_605 WHERE id <= 3
### Instruction: What is the time for the rank after 5 with sc/d notes? ### Response:
SELECT time FROM table_name_27 WHERE notes = "sc/d" AND rank > 5
### Instruction: Name the Adelaide for Sydney of yes and Perth of yes ### Response:
SELECT adelaide FROM table_name_6 WHERE sydney = "yes" AND perth = "yes"
### Instruction: What player represented Vista Murrieta High School? ### Response:
SELECT "Player" FROM table_17064 WHERE "School" = 'Vista Murrieta High School'
### Instruction: What are the ids and locations of all circuits in France or Belgium? ### Response:
SELECT circuitid, location FROM circuits WHERE country = "France" OR country = "Belgium"
### Instruction: What was the record for the Argonauts on September 7? ### Response:
SELECT record FROM table_24136814_3 WHERE date = "September 7"
### Instruction: Who wrote the episodes directed by David Straiton? ### Response:
SELECT "Written by" FROM table_24262 WHERE "Directed by" = 'David Straiton'
### Instruction: Who was the home team at Gold Coast Convention Centre? ### Response:
SELECT "Home team" FROM table_76726 WHERE "Venue" = 'gold coast convention centre'
### Instruction: How many clubs are involved when the clubs remaining are 2? ### Response:
SELECT SUM(clubs_involved) FROM table_name_88 WHERE clubs_remaining = 2
### Instruction: What is the after for the player kevin streelman? ### Response:
SELECT after FROM table_28498999_3 WHERE player = "Kevin Streelman"
### Instruction: What is the total number of Races with a Pole that is larger than 0? ### Response:
SELECT COUNT(races) FROM table_name_70 WHERE poles > 0
### Instruction: In what year is the notes distance 1.83m? ### Response:
SELECT "Year" FROM table_5268 WHERE "Notes" = '1.83m'
### Instruction: at kardinia park, what was the away team's score? ### Response:
SELECT away_team AS score FROM table_name_22 WHERE venue = "kardinia park"
### Instruction: What is fleet number for the year of 19xx? ### Response:
SELECT "Fleet Number" FROM table_35932 WHERE "Year" = '19xx'
### Instruction: What is the opponent of the veterans stadium ### Response:
SELECT "Opponent" FROM table_17879 WHERE "Game Site" = 'Veterans Stadium'
### Instruction: What is the title of the episode number 11 of the season? ### Response:
SELECT "Title" FROM table_30031 WHERE "Season #" = '11'
### Instruction: What is the RAtt in the year 1988? ### Response:
SELECT "RAtt" FROM table_41832 WHERE "Year" = '1988'
### Instruction: What was the attendance of the game November 24 ### Response:
SELECT "Location Attendance" FROM table_17280 WHERE "Date" = 'November 24'
### Instruction: I want the sum of pages for thistle among roses ### Response:
SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses"
### Instruction: Name the total number of rank for east midnapore ### Response:
SELECT COUNT("Rank") FROM table_27491 WHERE "District" = 'East Midnapore'
### Instruction: find the insurance of subject id 81923. ### Response:
SELECT demographic.insurance FROM demographic WHERE demographic.subject_id = "81923"
### Instruction: what was the number of silver medals won by ukraine ? ### Response:
SELECT "silver" FROM table_203_175 WHERE "nation" = 'ukraine'
### Instruction: What team opposed Tipperary in the Munster Final game? ### Response:
SELECT team FROM table_name_98 WHERE opposition = "tipperary" AND game = "munster final"
### Instruction: Who replaced when position in table is pre-season? ### Response:
SELECT "Replaced by" FROM table_16193 WHERE "Position in table" = 'Pre-season'
### Instruction: What is the Date of the game with a Record of 5-3? ### Response:
SELECT "Date" FROM table_63152 WHERE "Record" = '5-3'
### Instruction: How many games did they play on october 9? ### Response:
SELECT COUNT(opponent) FROM table_27539808_3 WHERE october = 9
### Instruction: Who is the player name when eastern michigan is the college? ### Response:
SELECT player_name FROM table_20871703_1 WHERE college = "Eastern Michigan"
### Instruction: What is Attendance, when Opponent is 'At Syracuse'? ### Response:
SELECT attendance FROM table_name_79 WHERE opponent = "at syracuse"
### Instruction: What province has the largest city of Birjand? ### Response:
SELECT "Province" FROM table_48114 WHERE "Largest city" = 'birjand'
### Instruction: What was the winning score for runnerup Greg Norman ### Response:
SELECT "Winning score" FROM table_39484 WHERE "Runner(s)-up" = 'greg norman'
### Instruction: What is the tenure for the Tritons team? ### Response:
SELECT "Tenure" FROM table_38849 WHERE "Team Nickname" = 'tritons'
### Instruction: what is days of hospital stay of subject name bruce harris? ### Response:
SELECT demographic.days_stay FROM demographic WHERE demographic.name = "Bruce Harris"
### Instruction: Who is the away side at corio oval? ### Response:
SELECT "Away team" FROM table_74770 WHERE "Venue" = 'corio oval'
### Instruction: Which Year is the lowest one that has Wins smaller than 0? ### Response:
SELECT MIN("Year") FROM table_37567 WHERE "Wins" < '0'
### Instruction: What away game had a time of 10:00? ### Response:
SELECT "Away" FROM table_7340 WHERE "Time" = '10:00'
### Instruction: What is the total number of byes when the wins were 9? ### Response:
SELECT COUNT("Byes") FROM table_60465 WHERE "Wins" = '9'
### Instruction: What day did the VFL play at Junction Oval? ### Response:
SELECT "Date" FROM table_53564 WHERE "Venue" = 'junction oval'
### Instruction: A bar chart about what is average age for different job title?, and display names from low to high order. ### Response:
SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job
### Instruction: In what season were there 27 goals and 58 points? ### Response:
SELECT season FROM table_name_54 WHERE goals = "27" AND points = "58"
### Instruction: How many titles had production code 1040? ### Response:
SELECT COUNT("Title") FROM table_73839 WHERE "Production code" = '1040'
### Instruction: How many pages does the story from 1987-08 have? ### Response:
SELECT pages FROM table_name_69 WHERE date = "1987-08"
### Instruction: What is the station station and end station for the trips with the three smallest ids? ### Response:
SELECT start_station_name, end_station_name FROM trip ORDER BY id LIMIT 3
### Instruction: Name the directors for peter gawler ### Response:
SELECT "Director(s)" FROM table_28099 WHERE "Writer(s)" = 'Peter Gawler'
### Instruction: what is the total amount of free throws by ralf woods ? ### Response:
SELECT "free throws" FROM table_204_344 WHERE "player" = 'ralf woods'
### Instruction: What was the high rebounds on November 26? ### Response:
SELECT "High rebounds" FROM table_21545 WHERE "Date" = 'November 26'
### Instruction: Which player has an average of 38.22? ### Response:
SELECT "Player" FROM table_49938 WHERE "Average" = '38.22'
### Instruction: What rank was the premier Sir John See? ### Response:
SELECT COUNT("Rank:") FROM table_64997 WHERE "Premier:" = 'sir john see'
### Instruction: What was the home team score with an away team of Melbourne? ### Response:
SELECT "Home team score" FROM table_57246 WHERE "Away team" = 'melbourne'
### Instruction: What is the Venue on 26 jan 2005 ### Response:
SELECT venue FROM table_name_12 WHERE date = "26 jan 2005"
### Instruction: Find the name, type, and flag of the ship that is built in the most recent year. ### Response:
SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1
### Instruction: find the number of patients who prefer haitian language. ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "HAIT"
### Instruction: What is Lisladeen poor law union? ### Response:
SELECT poor_law_union FROM table_30120566_1 WHERE townland = "Lisladeen"
### Instruction: Which province has the partido Socialista del Pueblo Extreme o party? ### Response:
SELECT province FROM table_name_31 WHERE party = "partido socialista del pueblo extremeño"
### Instruction: What was the result for the Bafta Tv award? ### Response:
SELECT "Result" FROM table_44325 WHERE "Award" = 'bafta tv award'
### Instruction: What was the score on the October 28 game? ### Response:
SELECT "Final Score" FROM table_26169 WHERE "Date" = 'October 28'
### Instruction: What's the name of the city whose first season was in 1996? ### Response:
SELECT city FROM table_name_32 WHERE first_season = 1996
### Instruction: how long did it take for erik lesser to finish ? ### Response:
SELECT "time" FROM table_204_664 WHERE "name" = 'erik lesser'
### Instruction: Which album debuted in season 2 (2005)? ### Response:
SELECT debut_album FROM table_name_93 WHERE season = "season 2 (2005)"
### Instruction: How many spectators were at the away team Carlton? ### Response:
SELECT "Crowd" FROM table_55975 WHERE "Away team" = 'carlton'
### Instruction: Name the production code for 60 number in series ### Response:
SELECT production_code FROM table_26702078_1 WHERE no_in_series = 60
### Instruction: Name the points against for november 14 ### Response:
SELECT points_against FROM table_15607589_2 WHERE date = "November 14"
### Instruction: what is the tries against where points is 60? ### Response:
SELECT tries_against FROM table_12828723_4 WHERE points = "60"
### Instruction: What district was Harold Earthman the incumbent in? ### Response:
SELECT district FROM table_1342233_42 WHERE incumbent = "Harold Earthman"
### Instruction: Name the episode for run time 25:05 ### Response:
SELECT "Episode" FROM table_24053 WHERE "Run time" = '25:05'
### Instruction: What region has the catalog sir021-6? ### Response:
SELECT "Region" FROM table_7555 WHERE "Catalog" = 'sir021-6'
### Instruction: Bar chart x axis other details y axis resident_id, display y-axis in descending order. ### Response:
SELECT other_details, resident_id FROM Residents ORDER BY resident_id DESC
### Instruction: What is the purse value for the New York location? ### Response:
SELECT purse__$__ FROM table_11622896_1 WHERE location = "New York"
### Instruction: who was running where the winner is daniel montgomery ### Response:
SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery"
### Instruction: What was the minimum touchdowns of the Fullback player? ### Response:
SELECT MIN("Touchdowns") FROM table_28034 WHERE "Position" = 'Fullback'
### Instruction: what are all the score in conclusive where title is rome ### Response:
SELECT "Score in final" FROM table_25714 WHERE "Championship" = 'Rome'
### Instruction: Number of posts in recent 1 month. ### Response:
SELECT COUNT(*) FROM Posts WHERE CreationDate > '2020-08-21' AND Body LIKE '%http%'
### Instruction: what was the total number of medals won by madagascar ? ### Response:
SELECT "total" FROM table_203_61 WHERE "nation" = 'madagascar'