instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What was Carlton's score when they were the away team? ### Response:
SELECT "Away team score" FROM table_33047 WHERE "Away team" = 'carlton'
### Instruction: What is the to total number of par with laurie ayton? ### Response:
SELECT COUNT("To par") FROM table_50183 WHERE "Player" = 'laurie ayton'
### Instruction: Give the admission location of subject id 12220. ### Response:
SELECT demographic.admission_location FROM demographic WHERE demographic.subject_id = "12220"
### Instruction: Manager of marty berghammer / nick allen is what year? ### Response:
SELECT "Year" FROM table_35655 WHERE "Manager" = 'marty berghammer / nick allen'
### Instruction: List the plats that attended Wilfrid Laurier University. ### Response:
SELECT "Player" FROM table_22100 WHERE "Alma Mater" = 'Wilfrid Laurier University'
### Instruction: what is admission type of subject id 11221? ### Response:
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "11221"
### Instruction: For each product type, return the maximum and minimum price. ### Response:
SELECT product_type_code, MAX(product_price), MIN(product_price) FROM products GROUP BY product_type_code
### Instruction: Tell me the aircraft for pzl-104 ### Response:
SELECT "Aircraft" FROM table_74500 WHERE "Versions" = 'pzl-104'
### Instruction: What is the smallest crowd at the Victoria Park Venue? ### Response:
SELECT MIN("Crowd") FROM table_32888 WHERE "Venue" = 'victoria park'
### Instruction: What is the website of the cunningham hill infant school? ### Response:
SELECT "School website" FROM table_4043 WHERE "School" = 'Cunningham Hill Infant School'
### Instruction: What is the ERP for the Rockhampton region? ### Response:
SELECT "ERP (Analog/ Digital)" FROM table_68741 WHERE "Region served" = 'rockhampton'
### Instruction: In what district was the representative first elected in 1916? ### Response:
SELECT district FROM table_1342370_10 WHERE first_elected = 1916
### Instruction: How many millions of viewers did Episode number 16 have? ### Response:
SELECT "Viewers (in millions)" FROM table_3483 WHERE "Episode #" = '16'
### Instruction: Where's the school that Mark Fletcher is the principal of? ### Response:
SELECT city___town FROM table_1984697_53 WHERE principal = "Mark Fletcher"
### Instruction: What position(s) drafted by the montreal alouettes? ### Response:
SELECT "Position" FROM table_23587 WHERE "CFL Team" = 'Montreal Alouettes'
### Instruction: The person notable for tennis died in what year? ### Response:
SELECT "Born \u2013 Died" FROM table_6128 WHERE "Notable for" = 'tennis'
### Instruction: What is the Delivered as name of the H3 Locomotive? ### Response:
SELECT "Delivered as" FROM table_6594 WHERE "Locomotive" = 'h3'
### Instruction: What are the positions of players whose average number of points scored by that position is larger than 20? ### Response:
SELECT position FROM player GROUP BY name HAVING AVG(points) >= 20
### Instruction: Who's the incumbent of district Wisconsin 5? ### Response:
SELECT "Incumbent" FROM table_18170 WHERE "District" = 'Wisconsin 5'
### Instruction: what being the minimum first elected with district being washington 7 ### Response:
SELECT MIN("First elected") FROM table_18185 WHERE "District" = 'Washington 7'
### Instruction: What is the main date when the round is third round qualifying? ### Response:
SELECT main_date FROM table_27973624_1 WHERE round = "Third round Qualifying"
### Instruction: How many attendances had the Detroit Lions as opponents? ### Response:
SELECT SUM("Attendance") FROM table_35243 WHERE "Opponent" = 'detroit lions'
### Instruction: What's the weekly rank of episode 1.03? ### Response:
SELECT "Weekly Rank" FROM table_30446 WHERE "Episode" = '1.03'
### Instruction: what's the department with acronym being deped (ked) ### Response:
SELECT department FROM table_1331313_1 WHERE acronym = "DepEd (KEd)"
### Instruction: What is the value of the lowest Week with a Record of 2 9? ### Response:
SELECT MIN("Week") FROM table_38170 WHERE "Record" = '2–9'
### Instruction: What is the branding for the station located in san jose del monte? ### Response:
SELECT "Branding" FROM table_3797 WHERE "Location" = 'San Jose Del Monte'
### Instruction: What is the height of the player from Gulfport, MS? ### Response:
SELECT height FROM table_20785990_2 WHERE home_town = "Gulfport, MS"
### Instruction: Show me the total number by grape in a histogram, and show Y-axis in descending order please. ### Response:
SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) DESC
### Instruction: which Cover model has a Centerfold model of jennifer walcott? ### Response:
SELECT cover_model FROM table_name_77 WHERE centerfold_model = "jennifer walcott"
### Instruction: If the Indians are 8.2%, what is the salary range? ### Response:
SELECT "Salary range" FROM table_74075 WHERE "Indians" = '8.2%'
### Instruction: What location with it's corresponding attendance was the game against Utah Jazz? ### Response:
SELECT "Location Attendance" FROM table_3928 WHERE "Team" = 'Utah Jazz'
### Instruction: What are the torque characteristics of the model with 346 applications? ### Response:
SELECT "Torque" FROM table_73167 WHERE "Applications" = '346'
### Instruction: What courses help you prepare for WRITING 100 ? ### Response:
SELECT DISTINCT advisory_requirement FROM course WHERE department = 'WRITING' AND number = 100
### Instruction: How many games did the team who scored 60 goals win? ### Response:
SELECT MIN(won) FROM table_17358515_1 WHERE goals_for = 60
### Instruction: Which IHSAA Class has a School of shakamak? ### Response:
SELECT "IHSAA Class" FROM table_64976 WHERE "School" = 'shakamak'
### Instruction: What was the final score of the game held on February 24? ### Response:
SELECT score FROM table_22883210_8 WHERE date = "February 24"
### Instruction: Name the total number in season for 'the battle of evermore ### Response:
SELECT COUNT("No. in season") FROM table_30186 WHERE "Title" = 'The Battle of Evermore'
### Instruction: How many games did they play when their record 0-2-0? ### Response:
SELECT COUNT("Date") FROM table_24091 WHERE "Record" = '0-2-0'
### Instruction: What was the total result for couple Ellery and Frankie? ### Response:
SELECT COUNT("Result") FROM table_23242 WHERE "Couple" = 'Ellery and Frankie'
### Instruction: What is the transfer window for the moving from of S o Paulo? ### Response:
SELECT "Transfer window" FROM table_12991 WHERE "Moving from" = 'são paulo'
### Instruction: What was the attendance when they played at Detroit Lions? ### Response:
SELECT "Attendance" FROM table_77282 WHERE "Opponent" = 'at detroit lions'
### Instruction: Which competition in Budapest, Hungary gave a result of 8th? ### Response:
SELECT competition FROM table_name_1 WHERE position = "8th" AND venue = "budapest, hungary"
### Instruction: What date was the bronze label in vinyl format? ### Response:
SELECT "Date" FROM table_8354 WHERE "Label" = 'bronze' AND "Format" = 'vinyl'
### Instruction: When did the no. 23 show originally air? ### Response:
SELECT original_air_date FROM table_10718984_2 WHERE no_in_season = 23
### Instruction: Which Segment A has a Segment C of poster restoration? ### Response:
SELECT "Segment A" FROM table_36810 WHERE "Segment C" = 'poster restoration'
### Instruction: What is the score when high points is from pierce (30)? ### Response:
SELECT "Score" FROM table_17286 WHERE "High points" = 'Pierce (30)'
### Instruction: when fairburn is bigger than 54.0, how many years? ### Response:
SELECT COUNT("Year") FROM table_2225 WHERE "Fairburn" > '54.0'
### Instruction: When was the mcdonald's lpga championship? ### Response:
SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship"
### Instruction: Name the entries for 6 h 23 min elapsed time ### Response:
SELECT "Entries" FROM table_3259 WHERE "Elapsed Time" = '6 h 23 min'
### Instruction: What tournament is lesley joseph the opponent? ### Response:
SELECT "Tournament" FROM table_39170 WHERE "Opponent" = 'lesley joseph'
### Instruction: How many Antonov An-2 Colt aircraft are in service? ### Response:
SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt"
### Instruction: Name the number of lost where tries for is 109 ### Response:
SELECT COUNT(lost) FROM table_17625749_1 WHERE tries_for = "109"
### Instruction: What was the team's playoff status in 2011? ### Response:
SELECT playoffs FROM table_16636344_1 WHERE year = "2011"
### Instruction: A bar chart for what are the number of the dates with a maximum temperature higher than 85? ### Response:
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85
### Instruction: What's Luis Siri's shooting score? ### Response:
SELECT "Shooting" FROM table_17649 WHERE "Athlete (NOC)" = 'Luis Siri'
### Instruction: Show all destinations and the number of flights to each destination by a bar chart, rank in desc by the total number. ### Response:
SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY COUNT(*) DESC
### Instruction: Name the most game with opponent of hartford whalers ### Response:
SELECT MAX("Game") FROM table_6228 WHERE "Opponent" = 'hartford whalers'
### Instruction: How many websites are there for the school with 1939 students? ### Response:
SELECT COUNT("Website") FROM table_73156 WHERE "Size" = '1939'
### Instruction: Who played for Olympiacos in 2008? ### Response:
SELECT "Name" FROM table_45823 WHERE "2008 club" = 'olympiacos'
### Instruction: state the round that had a game attended attended by 9359 people ### Response:
SELECT "Round" FROM table_24214 WHERE "Attendance" = '9359'
### Instruction: What's the title of the episode with a season number 25? ### Response:
SELECT title FROM table_12226390_6 WHERE no_in_season = 25
### Instruction: kamani hill was the first person to be transferred to which team ? ### Response:
SELECT "moving to" FROM table_204_539 WHERE "name" = 'kamani hill'
### Instruction: Which Date has an Attendance of 54,626? ### Response:
SELECT "Date" FROM table_48900 WHERE "Attendance" = '54,626'
### Instruction: How many wins did they have at Richmond Cricket Ground Stadium? ### Response:
SELECT "Wins" FROM table_68654 WHERE "Stadium" = 'richmond cricket ground'
### Instruction: What's the oil rig of the song that ended on 7th place? ### Response:
SELECT "Oil Rig" FROM table_23597 WHERE "Place" = '7th'
### Instruction: who was the voice actor when the species is hedgehog? ### Response:
SELECT "Voice actor" FROM table_28825 WHERE "Species" = 'Hedgehog'
### Instruction: what is the ingesting method of levothyroxine? ### Response:
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'levothyroxine'
### Instruction: What driver has less than 18 laps and a grid number under 16? ### Response:
SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16
### Instruction: How many millions of viewers did watch Episode 5? ### Response:
SELECT "Viewers(millions)" FROM table_17869 WHERE "Episode" = 'Episode 5'
### Instruction: What is the distance of the maldegem > brussels route? ### Response:
SELECT "Distance" FROM table_60902 WHERE "Route" = 'maldegem > brussels'
### Instruction: What year did the school from mars hill, north carolina join? ### Response:
SELECT "Joined" FROM table_17012 WHERE "Location" = 'Mars Hill, North Carolina'
### Instruction: how many films were directed by suresh krishna ? ### Response:
SELECT COUNT("film") FROM table_203_393 WHERE "director" = 'suresh krishna'
### Instruction: In what week was the Result L 35-10? ### Response:
SELECT MIN("Week") FROM table_6255 WHERE "Result" = 'l 35-10'
### Instruction: What is the fewest goals against for teams with more than 27 losses? ### Response:
SELECT MIN(goals_against) FROM table_name_97 WHERE lost > 27
### Instruction: Name the industry for revenue being 2.1 ### Response:
SELECT "Industry" FROM table_73089 WHERE "Revenue (billion $)" = '2.1'
### Instruction: For which production company did Sam Mccarthy produce? ### Response:
SELECT "Production Company" FROM table_36841 WHERE "Producer(s)" = 'sam mccarthy'
### Instruction: What is the home team's score at glenferrie oval? ### Response:
SELECT home_team AS score FROM table_name_66 WHERE venue = "glenferrie oval"
### Instruction: All users that don't have down vote privileges and upvoted less than 10 times. ### Response:
SELECT * FROM Users WHERE 125 > Reputation AND 10 < UpVotes
### Instruction: What was the record of the match that had a time of 1:44? ### Response:
SELECT "Record" FROM table_71890 WHERE "Time" = '1:44'
### Instruction: What is the total score when 7 is the average ranking? ### Response:
SELECT MAX(total_score) FROM table_23465011_5 WHERE average_ranking = 7
### Instruction: What away team score has hawthorn as the home team? ### Response:
SELECT "Away team score" FROM table_50577 WHERE "Home team" = 'hawthorn'
### Instruction: what's the highest position with artbeingt being frankie avalon ### Response:
SELECT "Highest position" FROM table_880 WHERE "Artist" = 'Frankie Avalon'
### Instruction: What was the final episode credited of 187? ### Response:
SELECT "Final Episode" FROM table_56085 WHERE "Episodes Credited" = '187'
### Instruction: What home team has had a crowd bigger than 20,000? ### Response:
SELECT home_team FROM table_name_95 WHERE crowd > 20 OFFSET 000
### Instruction: Can you tell me the Manufacturer that has the Rider of stefan bradl? ### Response:
SELECT manufacturer FROM table_name_5 WHERE rider = "stefan bradl"
### Instruction: What is the sum of the attendance where the score was 1:1? ### Response:
SELECT SUM("Attendance") FROM table_46616 WHERE "Score" = '1:1'
### Instruction: How many networks run on virtual channel 23.4? ### Response:
SELECT COUNT(network) FROM table_2857352_3 WHERE virtual_channel = "23.4"
### Instruction: what is the only population center in the green garden township ? ### Response:
SELECT "population\ncenter" FROM table_203_729 WHERE "township" = 'green garden'
### Instruction: On what date was there a draw at Sydney Cricket Ground? ### Response:
SELECT date FROM table_name_83 WHERE result = "draw" AND venue = "sydney cricket ground"
### Instruction: How many stages were won by Robbie McEwen? ### Response:
SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = "Robbie McEwen"
### Instruction: Name the 2008 for 2012 of sf ### Response:
SELECT "2008" FROM table_37807 WHERE "2012" = 'sf'
### Instruction: How many episodes in the series are from season 12? ### Response:
SELECT no_in_series FROM table_2226817_8 WHERE no_in_season = 12
### Instruction: what is drug type of subject id 3343? ### Response:
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.subject_id = "3343"
### Instruction: What is the radio station branding when the power km is 5kw? ### Response:
SELECT "Branding" FROM table_26389 WHERE "Power kW" = '5kW'
### Instruction: What was the first week that had a transition with Pat Mccready? ### Response:
SELECT MIN("Week") FROM table_55528 WHERE "Transition" = 'pat mccready'
### Instruction: What are the names of all cities with more than one airport and how many airports do they have? ### Response:
SELECT city, COUNT(*) FROM airports GROUP BY city HAVING COUNT(*) > 1
### Instruction: what lift has the least passenger capacity per hour ? ### Response:
SELECT "lift name" FROM table_204_907 ORDER BY "capacity\n(rides/hr)" LIMIT 1
### Instruction: Name the awardee for tingya ### Response:
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya"
### Instruction: which month has the least number of episodes ? ### Response:
SELECT "airdate" FROM table_204_362 GROUP BY "airdate" ORDER BY COUNT("episode") LIMIT 1
### Instruction: Who was sixth place when Hugo Salazar was fifth place? ### Response:
SELECT "Sixth place" FROM table_56634 WHERE "Fifth place" = 'hugo salazar'