instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What score won $36,090? ### Response:
SELECT "Score" FROM table_44079 WHERE "Money ( $ )" = '36,090'
### Instruction: What was the smallest numbered rank for Michael Bevan? ### Response:
SELECT MIN(rank) FROM table_21100348_10 WHERE player = "Michael Bevan"
### Instruction: Show the title and score of the movie with a bar chart. ### Response:
SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID
### Instruction: What is the average capacity of the stadiums that were opened in year 2005? ### Response:
SELECT AVG(capacity) FROM stadium WHERE opening_year = 2005
### Instruction: What shows for the Diameter (mi) when the Gill is g? ### Response:
SELECT "Diameter (mi)" FROM table_39994 WHERE "Gill" = 'g'
### Instruction: In what year is australia/oceania listed? ### Response:
SELECT COUNT(year) FROM table_27435931_1 WHERE continent = "Australia/Oceania"
### Instruction: Name the party a for sriperumbudur ### Response:
SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur"
### Instruction: What is the average crowd when footscray is at home? ### Response:
SELECT AVG("Crowd") FROM table_53096 WHERE "Home team" = 'footscray'
### Instruction: What was the attendance when St Kilda played as the away team? ### Response:
SELECT AVG(crowd) FROM table_name_79 WHERE away_team = "st kilda"
### Instruction: What is the maximum purse prize of the Northeast Delta Dental International Championship? ### Response:
SELECT MAX(purse__) AS $_ FROM table_15315276_1
### Instruction: When the team is Toronto how many times did they place third? ### Response:
SELECT COUNT(third_place) FROM table_1571238_2 WHERE team = "Toronto"
### Instruction: Name the base 10 for shortscale comparison for billion ### Response:
SELECT base_10 FROM table_260938_1 WHERE shortscale_comparison = "Billion"
### Instruction: Which year had a team of Aprilia and a rank of 4th? ### Response:
SELECT year FROM table_name_17 WHERE team = "aprilia" AND rank = "4th"
### Instruction: For what competition was the game played on 28 March 2009? ### Response:
SELECT competition FROM table_name_28 WHERE date = "28 march 2009"
### Instruction: Name the peletier for systematics being million 1 ### Response:
SELECT "Peletier" FROM table_28297 WHERE "Systematics" = 'Million 1'
### Instruction: Query users and their student. ### Response:
SELECT DisplayName, C.Text AS Comment, C.CreationDate FROM Users AS u INNER JOIN Comments AS C ON u.Id = C.UserId
### Instruction: How many students live in each city, and I want to display from low to high by the X. ### Response:
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code
### Instruction: How many pick numbers did Michael Giffin have? ### Response:
SELECT COUNT(pick__number) FROM table_16575609_3 WHERE player = "Michael Giffin"
### Instruction: What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor. ### Response:
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
### Instruction: How many tries were there for club cwmtwrch rfc? ### Response:
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc"
### Instruction: What did the loss come from a Club of mumbles rfc? ### Response:
SELECT "Lost" FROM table_6643 WHERE "Club" = 'mumbles rfc'
### Instruction: What is Call Sign, when ERP W is greater than 50? ### Response:
SELECT "Call sign" FROM table_77225 WHERE "ERP W" > '50'
### Instruction: What player(s) appeared in 1969? ### Response:
SELECT player FROM table_25820584_7 WHERE year_s_ = "1969"
### Instruction: What is the Tyre when Jerry Hoyt was the pole position? ### Response:
SELECT "Tyre" FROM table_57591 WHERE "Pole position" = 'jerry hoyt'
### Instruction: Which Hometown/School has a Team of atlanta braves? ### Response:
SELECT hometown_school FROM table_name_74 WHERE team = "atlanta braves"
### Instruction: A scatter chart shows the correlation between address_id and monthly_rental . ### Response:
SELECT address_id, monthly_rental FROM Student_Addresses ORDER BY monthly_rental DESC
### Instruction: What is the suriname with a 16.8% brokopondo? ### Response:
SELECT suriname FROM table_name_62 WHERE brokopondo = "16.8%"
### Instruction: When are all dates in the year 2006? ### Response:
SELECT COUNT(dates) FROM table_15315816_1 WHERE year = "2006"
### Instruction: In what year did the school with enrollment of 650 leave? ### Response:
SELECT left FROM table_1973816_2 WHERE enrollment = 650
### Instruction: What was the away team score at Brunswick Street Oval? ### Response:
SELECT away_team AS score FROM table_name_82 WHERE venue = "brunswick street oval"
### Instruction: Which week has a result showing L 24-10? ### Response:
SELECT "Week" FROM table_56105 WHERE "Result" = 'l 24-10'
### Instruction: which players have a height of 2.07m? ### Response:
SELECT player FROM table_23670057_5 WHERE height__m_ = "2.07"
### Instruction: WHo is Player that has a Place of t9 in united states? ### Response:
SELECT player FROM table_name_74 WHERE place = "t9" AND country = "united states"
### Instruction: Which Result has a Date of september 3, 2000? ### Response:
SELECT result FROM table_name_81 WHERE date = "september 3, 2000"
### Instruction: what is date of birth and gender of subject name kelly gallardo? ### Response:
SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.name = "Kelly Gallardo"
### Instruction: How old was the horse when the SP was 200/1? ### Response:
SELECT COUNT("Age") FROM table_2582 WHERE "SP" = '200/1'
### Instruction: What is the Open 1st VIII for the 2012 crew? ### Response:
SELECT open_1st_viii FROM table_name_76 WHERE crew = 2012
### Instruction: What Tournament was the 2010 Olympic Games? ### Response:
SELECT "Tournament" FROM table_53868 WHERE "2010" = 'olympic games'
### Instruction: what is the sweet for voice actor saki fujita? ### Response:
SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita"
### Instruction: Which Opponent has a Date of may 30? ### Response:
SELECT "Opponent" FROM table_15616 WHERE "Date" = 'may 30'
### Instruction: Create a bar chart showing how many class across class, and list from high to low by the x-axis please. ### Response:
SELECT Class, COUNT(Class) FROM race GROUP BY Class ORDER BY Class DESC
### Instruction: Show the trend about the average of the number of attendance at home games change over the years, bin year into year interval. ### Response:
SELECT year, AVG(attendance) FROM home_game
### Instruction: which year had the least amount of overall seats won ? ### Response:
SELECT "election year" FROM table_204_72 ORDER BY "# of\noverall seats won" LIMIT 1
### Instruction: Who was the opponent when Raphael was 4-0? ### Response:
SELECT "Opponent" FROM table_32917 WHERE "Record" = '4-0'
### Instruction: HOW MANY GAMES WERE TIED AT 76? ### Response:
SELECT drawn FROM table_12807904_3 WHERE points = "76"
### Instruction: What was the average crowd size when the away team was South Melbourne? ### Response:
SELECT AVG(crowd) FROM table_name_63 WHERE away_team = "south melbourne"
### Instruction: Tell me the 2011 tournament of monte carlo masters ### Response:
SELECT 2011 FROM table_name_73 WHERE tournament = "monte carlo masters"
### Instruction: how many result with district being florida 14 ### Response:
SELECT COUNT(result) FROM table_1341604_10 WHERE district = "Florida 14"
### Instruction: What is the listed Status that has the Province of Ontario and Rank of 86? ### Response:
SELECT status FROM table_name_19 WHERE province = "ontario" AND rank = 86
### Instruction: How many were in attendance when the result was l 20-17? ### Response:
SELECT attendance FROM table_name_42 WHERE result = "l 20-17"
### Instruction: What years have claudia ruffo as the actor? ### Response:
SELECT "Years" FROM table_65588 WHERE "Actor" = 'claudia ruffo'
### Instruction: Date of 24 september 2002 is what group position? ### Response:
SELECT group_position FROM table_name_55 WHERE date = "24 september 2002"
### Instruction: What are the THTREMUS 3 -credit courses ? ### Response:
SELECT DISTINCT name, number FROM course WHERE department = 'THTREMUS' AND credits = 3
### Instruction: Which manufacturer made a locomotive with a type of 4-6-4t? ### Response:
SELECT manufacturer FROM table_name_40 WHERE type = "4-6-4t"
### Instruction: What was the result for the candidate first elected in 1820? ### Response:
SELECT "Result" FROM table_74002 WHERE "First elected" = '1820'
### Instruction: At the home game in Collingwood, how much did the away team score? ### Response:
SELECT away_team AS score FROM table_name_62 WHERE home_team = "collingwood"
### Instruction: On what date was Portland on the road for Game 2? ### Response:
SELECT date FROM table_name_95 WHERE road_team = "portland" AND game = "game 2"
### Instruction: What was Jos Mar a Olaz bal's score? ### Response:
SELECT "To par" FROM table_48723 WHERE "Player" = 'josé maría olazábal'
### Instruction: What is the largest number of cars per set that is less than 9? ### Response:
SELECT MAX("Number") FROM table_55821 WHERE "Cars per Set" < '9'
### Instruction: What away team has tottenham hotspur as the home team? ### Response:
SELECT away_team FROM table_name_67 WHERE home_team = "tottenham hotspur"
### Instruction: Who directed the episode with a production code of 301? ### Response:
SELECT "Directed by" FROM table_22313 WHERE "Production code" = '301'
### Instruction: Which club team was the player from who was selected in a round under 4? ### Response:
SELECT "Club Team" FROM table_44733 WHERE "Round" < '4'
### Instruction: What is the incumbent from 1941? ### Response:
SELECT "Incumbent" FROM table_72407 WHERE "First elected" = '1941'
### Instruction: how many times is gold more than 0 and the rank less than 2? ### Response:
SELECT COUNT(silver) FROM table_name_64 WHERE gold > 0 AND rank < 2
### Instruction: How many lap two's did marco andretti do? ### Response:
SELECT COUNT("Lap Two") FROM table_2756 WHERE "Name" = 'Marco Andretti'
### Instruction: Brain research papers ### Response:
SELECT DISTINCT paper.paperid FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'Brain research'
### Instruction: How many opponents led to an exactly 7-0 record? ### Response:
SELECT COUNT("Opponent") FROM table_24070 WHERE "Record" = '7-0'
### Instruction: What is the Hanzi for p ngf ng q ? ### Response:
SELECT hanzi FROM table_name_4 WHERE hanyu_pinyin = "píngfáng qū"
### Instruction: What is the total number of top-25 a tournament with less than 2 events has? ### Response:
SELECT COUNT(top_25) FROM table_name_93 WHERE events < 2
### Instruction: What was the home team's score that played Geelong? ### Response:
SELECT "Home team score" FROM table_32476 WHERE "Away team" = 'geelong'
### Instruction: How many numbers of dances for place 1? ### Response:
SELECT COUNT(number_of_dances) FROM table_26375386_28 WHERE place = 1
### Instruction: How many points are there for 63 tries against? ### Response:
SELECT points_for FROM table_17625749_3 WHERE tries_against = "63"
### Instruction: tell me the death date for the patient with patient id 9271. ### Response:
SELECT demographic.dod FROM demographic WHERE demographic.subject_id = "9271"
### Instruction: In which district is the incumbent Carl W. Rich? ### Response:
SELECT district FROM table_1341865_37 WHERE incumbent = "Carl W. Rich"
### Instruction: What's the margin of victory during the Pocono Northeast Classic? ### Response:
SELECT margin_of_victory FROM table_name_55 WHERE tournament = "pocono northeast classic"
### Instruction: no of users every year. ### Response:
SELECT SUM(a.Reputation) FROM (SELECT TOP(2415565) AS Reputation FROM Users ORDER BY Reputation) AS a
### Instruction: What the date of the game of the team that plays in princes park? ### Response:
SELECT "Date" FROM table_32355 WHERE "Venue" = 'princes park'
### Instruction: What season has a 6th north finish and more than 21 points? ### Response:
SELECT season FROM table_name_18 WHERE points > 21 AND finish = "6th north"
### Instruction: Questions and tags for one year. ### Response:
SELECT Id, CreationDate, Title, Body, Tags FROM Posts WHERE CreationDate > '2017-01-01'
### Instruction: When was the lock with 10 caps born? ### Response:
SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10
### Instruction: What was the Tie no when Manchester United was the home team? ### Response:
SELECT "Tie no" FROM table_58812 WHERE "Home team" = 'manchester united'
### Instruction: Which Surface has a Score of 6 4, 6 2? ### Response:
SELECT surface FROM table_name_65 WHERE score = "6–4, 6–2"
### Instruction: When was the University founded that joined in 1978? ### Response:
SELECT MAX("Founded") FROM table_27721 WHERE "Joined" = '1978'
### Instruction: How many years did he finish in 59th? ### Response:
SELECT COUNT(avg_start) FROM table_1637041_2 WHERE position = "59th"
### Instruction: When 17 is the number in series who is the director? ### Response:
SELECT "Directed by" FROM table_26549 WHERE "No. in series" = '17'
### Instruction: What was the score of the game that had a loss of Drese (2-2)? ### Response:
SELECT score FROM table_name_99 WHERE loss = "drese (2-2)"
### Instruction: What is the title for episode number 7 in the season? ### Response:
SELECT COUNT(title) FROM table_15431251_1 WHERE no_in_season = 7
### Instruction: HOW MANY GAMES WERE TIED AT 76? ### Response:
SELECT "Drawn" FROM table_17822 WHERE "Points" = '76'
### Instruction: what is the highest tankers when pumpers is more than 2? ### Response:
SELECT MAX("Tankers") FROM table_9472 WHERE "Pumpers" > '2'
### Instruction: How many times is the new entries this round is none? ### Response:
SELECT COUNT("Number of fixtures") FROM table_30168 WHERE "New entries this round" = 'none'
### Instruction: Which Tournament has a Margin of victory of 7 strokes ### Response:
SELECT "Tournament" FROM table_77721 WHERE "Margin of victory" = '7 strokes'
### Instruction: Who was the home team at the game held at Princes Park? ### Response:
SELECT "Home team" FROM table_57344 WHERE "Venue" = 'princes park'
### Instruction: What's Shion Newton's MLB draft result? ### Response:
SELECT mlb_draft FROM table_11677100_3 WHERE player = "Shion Newton"
### Instruction: When was outgoing manager Zolt n Varga appointed? ### Response:
SELECT "Date of appointment" FROM table_58671 WHERE "Outgoing manager" = 'zoltán varga'
### Instruction: What is the home team score when the away team is Collingwood? ### Response:
SELECT "Home team score" FROM table_4642 WHERE "Away team" = 'collingwood'
### Instruction: Which TV season has a Season larger than 2, and a Ranking of #5? ### Response:
SELECT tv_season FROM table_name_4 WHERE season > 2 AND ranking = "#5"
### Instruction: February 12 is the date for all location attendance. ### Response:
SELECT "Location Attendance" FROM table_21268 WHERE "Date" = 'February 12'
### Instruction: Leading Scorer of Ian rush is what lowest # of goals? ### Response:
SELECT MIN(goals) FROM table_name_45 WHERE leading_scorer = "ian rush"
### Instruction: I want the league one/second division for club of millwall ### Response:
SELECT "League One/Second Division" FROM table_52617 WHERE "Club" = 'millwall'
### Instruction: What values of HDTV correspond to n of 862? ### Response:
SELECT hdtv FROM table_15887683_16 WHERE n° = 862