instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: how many trains have the number 99808 ### Response:
SELECT COUNT("Train Name") FROM table_31074 WHERE "Train Number" = '99808'
### Instruction: Who was the director for episodes that were written be Matthew Lau? ### Response:
SELECT directed_by FROM table_25740548_2 WHERE written_by = "Matthew Lau"
### Instruction: Which team did David McLay play for? ### Response:
SELECT "College/junior/club team" FROM table_30567 WHERE "Player" = 'David McLay'
### Instruction: Which Trident version has a Gecko value of 19.0? ### Response:
SELECT "Trident" FROM table_49300 WHERE "Gecko" = '19.0'
### Instruction: What is Opponent, when Attendance is 62,170? ### Response:
SELECT opponent FROM table_name_52 WHERE attendance = "62,170"
### Instruction: with name meridian condominiums what is number of floors? ### Response:
SELECT AVG(floors) FROM table_name_19 WHERE name = "meridian condominiums"
### Instruction: Show the ids of all the faculty members who participate in an activity and advise a student. ### Response:
SELECT facid FROM faculty_participates_in INTERSECT SELECT advisor FROM student
### Instruction: what is days of hospital stay of subject name steven sepulveda? ### Response:
SELECT demographic.days_stay FROM demographic WHERE demographic.name = "Steven Sepulveda"
### Instruction: What is the result of the game when the attendance is 56,906? ### Response:
SELECT result FROM table_name_38 WHERE attendance = "56,906"
### Instruction: How many people were in the crowd when the Home Team was Hawthorn? ### Response:
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "hawthorn"
### Instruction: What is the 2012 with a mini in 2009? ### Response:
SELECT 2012 FROM table_name_3 WHERE 2009 = "mini"
### Instruction: the model 2 and the model 2e have what type of cpu ? ### Response:
SELECT "model 02" FROM table_204_451 WHERE "component" = 'cpu'
### Instruction: What was the sum of attendance for games with a time of 3:23? ### Response:
SELECT SUM(attendance) FROM table_name_53 WHERE time = "3:23"
### Instruction: How did Hamza Kramou fare in the semifinals? ### Response:
SELECT semifinals FROM table_17427004_7 WHERE athlete = "Hamza Kramou"
### Instruction: Which opening film has the opening date of august 23? ### Response:
SELECT "Opening Film" FROM table_72992 WHERE "Date (Opening)" = 'August 23'
### Instruction: What did the home team score when playing Fitzroy as the away team? ### Response:
SELECT "Home team score" FROM table_32338 WHERE "Away team" = 'fitzroy'
### Instruction: What is the Record of the game with an Attendance of 70,479? ### Response:
SELECT record FROM table_name_41 WHERE attendance = "70,479"
### Instruction: Which departments have M.Phil(Maths)? ### Response:
SELECT "Department" FROM table_21672 WHERE "Qualification" = 'M.Phil(Maths)'
### Instruction: Name the total number of r for coppa italia larger than 1.0 ### Response:
SELECT COUNT("R") FROM table_2782 WHERE "Coppa Italia" > '1.0'
### Instruction: what place was 1a aficio and 3a aficio ? ### Response:
SELECT "place" FROM table_203_783 WHERE "division" = '1a aficio'
### Instruction: What time has a Set 3 of 25 16? ### Response:
SELECT "Time" FROM table_13908 WHERE "Set 3" = '25–16'
### Instruction: how many total with county being rooks county, kansas ### Response:
SELECT COUNT(total) FROM table_13606924_1 WHERE county = "Rooks county, Kansas"
### Instruction: What is the judge's total for Roxanne and Daniel? ### Response:
SELECT judges FROM table_19744915_16 WHERE couple = "Roxanne and Daniel"
### Instruction: Name the mission name for ocean of storms ### Response:
SELECT mission_name FROM table_1558077_8 WHERE lunar_landing_site = "Ocean of Storms"
### Instruction: what series was in sydney, new south wales? ### Response:
SELECT "Series" FROM table_61215 WHERE "City / State" = 'sydney, new south wales'
### Instruction: What city held that game with a 5:2 result? ### Response:
SELECT "City" FROM table_37778 WHERE "Results\u00b9" = '5:2'
### Instruction: What is Type, when Works Number is 75823? ### Response:
SELECT "Type" FROM table_44379 WHERE "Works number" = '75823'
### Instruction: Tell me the total number for costa rica and rank more than 8 ### Response:
SELECT COUNT(total) FROM table_name_82 WHERE nation = "costa rica" AND rank > 8
### Instruction: Who in series 5 corresponds to Deborah Meaden in series 3? ### Response:
SELECT series_5 FROM table_name_57 WHERE series_3 = "deborah meaden"
### Instruction: What was the title of the episode with a production code of 1gowo04? ### Response:
SELECT episode_title FROM table_name_3 WHERE prod_code = "1gowo04"
### Instruction: how many transmitters have a kw value more then 0.1 ? ### Response:
SELECT COUNT("transmitter") FROM table_204_270 WHERE "kw" > 0.1
### Instruction: Corey Maggette from the United States plays what position? ### Response:
SELECT position FROM table_name_70 WHERE nationality = "united states" AND player = "corey maggette"
### Instruction: What country was the prix uip ghent nominating festival? ### Response:
SELECT "Country" FROM table_79893 WHERE "Nominating Festival" = 'prix uip ghent'
### Instruction: Which Team 1 had a 1st leg of 0 2? ### Response:
SELECT "Team 1" FROM table_8157 WHERE "1st leg" = '0–2'
### Instruction: What is the biggest crowd when carlton is the away squad? ### Response:
SELECT MAX("Crowd") FROM table_32266 WHERE "Away team" = 'carlton'
### Instruction: Which format is released on August 29, 1998? ### Response:
SELECT format FROM table_name_72 WHERE date = "august 29, 1998"
### Instruction: when was the last year they placed 2nd ? ### Response:
SELECT "season" FROM table_204_974 WHERE "position" = 2 ORDER BY "season" DESC LIMIT 1
### Instruction: What is Mass, when Designation is Prognoz 2? ### Response:
SELECT "Mass" FROM table_12856 WHERE "Designation" = 'prognoz 2'
### Instruction: How many opponents were in North Carolina state game? ### Response:
SELECT COUNT("Opponents") FROM table_24005 WHERE "Opponent" = 'North Carolina State'
### Instruction: What is the latest death with a description of BR-Built inspection saloon? ### Response:
SELECT MAX(date) FROM table_name_4 WHERE description = "br-built inspection saloon"
### Instruction: Name the least touchdowns for joe rogers ### Response:
SELECT MIN(touchdowns) FROM table_25646820_2 WHERE player = "Joe Rogers"
### Instruction: What is 2012 that has a winning % of 67%? ### Response:
SELECT 2012 FROM table_name_60 WHERE win__percentage = "67%"
### Instruction: what is the lowest viewers (m) when the share is more than 13? ### Response:
SELECT MIN(viewers__m_) FROM table_name_69 WHERE share > 13
### Instruction: How many calibers require the type LB/RN? ### Response:
SELECT COUNT("Caliber") FROM table_24444 WHERE "Type" = 'LB/RN'
### Instruction: A bar chart for listing the number of the name of technicians whose team is not 'NYY'. ### Response:
SELECT Name, COUNT(Name) FROM technician WHERE Team <> "NYY" GROUP BY Name
### Instruction: From what school was a player drafted in 1950? ### Response:
SELECT "School/Country" FROM table_32638 WHERE "From" = '1950'
### Instruction: Who played mixed doubles when Anna Keir played women's singles? ### Response:
SELECT "Mixed doubles" FROM table_5347 WHERE "Women's singles" = 'anna keir'
### Instruction: What is the highest Attendance, when Date is 'Oct. 26'? ### Response:
SELECT MAX(attendance) FROM table_name_25 WHERE date = "oct. 26"
### Instruction: Which Title has a Type of album and a Year larger than 1986? ### Response:
SELECT title FROM table_name_73 WHERE type = "album" AND year > 1986
### Instruction: Which tie did Huddersfield Town play as an away team? ### Response:
SELECT "Tie no" FROM table_49738 WHERE "Away team" = 'huddersfield town'
### Instruction: Which Date has a 20 Questions of jason lee? ### Response:
SELECT "Date" FROM table_39927 WHERE "20 Questions" = 'jason lee'
### Instruction: What is the frequency for the station with DYBT as its callsign? ### Response:
SELECT "Frequency" FROM table_40154 WHERE "Callsign" = 'dybt'
### Instruction: What was Bill Glasson's score to par after 2 rounds? ### Response:
SELECT "To par" FROM table_50379 WHERE "Player" = 'bill glasson'
### Instruction: Which City has a Date of may 19, 1976? ### Response:
SELECT city FROM table_name_23 WHERE date = "may 19, 1976"
### Instruction: How many scores were at the Northville Long Island Classic? ### Response:
SELECT COUNT(score) FROM table_11621873_1 WHERE tournament = "Northville Long Island Classic"
### Instruction: Name the number of districts for december 1799 ### Response:
SELECT COUNT("District") FROM table_1275 WHERE "Election date" = 'December 1799'
### Instruction: What is the lowest Attendance when the home team was slough town? ### Response:
SELECT MIN("Attendance") FROM table_41905 WHERE "Home team" = 'slough town'
### Instruction: What was score of the game when the record was 72-74? ### Response:
SELECT "Score" FROM table_69073 WHERE "Record" = '72-74'
### Instruction: Did this driver have any winnings the season he had 32 starts ### Response:
SELECT COUNT(winnings) FROM table_1875157_1 WHERE starts = 32
### Instruction: What is the Original air date for the episode written by Peter Ocko? ### Response:
SELECT "Original air date" FROM table_18007 WHERE "Written by" = 'Peter Ocko'
### Instruction: What pick number did Real Salt Lake get? ### Response:
SELECT MIN(pick__number) FROM table_29836557_2 WHERE mls_team = "Real Salt Lake"
### Instruction: If the assembly is the sixth assembly, what is the maximum election year? ### Response:
SELECT MAX("Election Year") FROM table_26132 WHERE "Assembly" = 'Sixth Assembly'
### Instruction: what is diagnoses long title of subject id 21796? ### Response:
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "21796"
### Instruction: Which Venue has a Club of west bromwich albion? ### Response:
SELECT "Venue" FROM table_8184 WHERE "Club" = 'west bromwich albion'
### Instruction: How many draws were there when there were 30 tries against? ### Response:
SELECT drawn FROM table_12792876_2 WHERE tries_against = "30"
### Instruction: When Treasurer was treasurer, who was the highway commissioner? ### Response:
SELECT highway_commissioners FROM table_name_37 WHERE "treasurer" = "treasurer"
### Instruction: What was the score of the game that had a loss of Cerutti (0-1)? ### Response:
SELECT score FROM table_name_91 WHERE loss = "cerutti (0-1)"
### Instruction: What's the district that Otto Passman is the incumbent of? ### Response:
SELECT "District" FROM table_731 WHERE "Incumbent" = 'Otto Passman'
### Instruction: What is the result for w. arthur winstead? ### Response:
SELECT result FROM table_1342233_24 WHERE incumbent = "W. Arthur Winstead"
### Instruction: If the hometown is Windhoek, what is the represented? ### Response:
SELECT represented FROM table_23576576_2 WHERE hometown = "Windhoek"
### Instruction: How many picks did the Chicago Black Hawks get? ### Response:
SELECT COUNT("Pick #") FROM table_29011 WHERE "NHL team" = 'Chicago Black Hawks'
### Instruction: What Player in Opposition of Kilkenny has a Total of 10? ### Response:
SELECT player FROM table_name_83 WHERE total = 10 AND opposition = "kilkenny"
### Instruction: What is the player with a Span of 1998-2009? ### Response:
SELECT player FROM table_name_8 WHERE span = "1998-2009"
### Instruction: what year what his busiest year with the most roles ? ### Response:
SELECT "year" FROM table_203_710 GROUP BY "year" ORDER BY COUNT("role") DESC LIMIT 1
### Instruction: Name the publisher for resident evil 4 ### Response:
SELECT publisher_s_ FROM table_14325653_2 WHERE video_game = "Resident Evil 4"
### Instruction: What is the City / State, when Series is ATCC Round 3? ### Response:
SELECT "City / State" FROM table_9363 WHERE "Series" = 'atcc round 3'
### Instruction: in the year 1998/99 what was the league ### Response:
SELECT league FROM table_1908049_1 WHERE year = "1998/99"
### Instruction: What's the airing date for the show with 62 episodes? ### Response:
SELECT "Airing date" FROM table_65811 WHERE "Number of episodes" = '62'
### Instruction: Which college is present in the hometown of Crete, Illinois? ### Response:
SELECT college FROM table_11677691_9 WHERE hometown = "Crete, Illinois"
### Instruction: Which ministers are not a part of the Progress Party, and count them by a pie chart ### Response:
SELECT Minister, COUNT(Minister) FROM party WHERE Party_name <> 'Progress Party' GROUP BY Minister
### Instruction: Name the most number of total votes for election for 1878 ### Response:
SELECT MAX("# of total votes") FROM table_2160 WHERE "Election" = '1878'
### Instruction: What city does call sign K248am have its license in? ### Response:
SELECT city_of_license FROM table_name_54 WHERE call_sign = "k248am"
### Instruction: What neon has an Argon of 4.203? ### Response:
SELECT "Neon" FROM table_13074 WHERE "Argon" = '4.203'
### Instruction: What source gave 26% of the votes to Brian Moran? ### Response:
SELECT source FROM table_21535453_1 WHERE brian_moran = "26%"
### Instruction: What was the top ends lost where the ends won 47? ### Response:
SELECT MAX("Ends Lost") FROM table_20088 WHERE "Ends Won" = '47'
### Instruction: Name the result/games for 52521 ### Response:
SELECT "Result/Games" FROM table_24340 WHERE "Attendance" = '52521'
### Instruction: What are the names of the technicians that have not been assigned to repair machines? ### Response:
SELECT name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)
### Instruction: Does the model e5504 have a turbo boost? ### Response:
SELECT turbo_boost FROM table_269920_17 WHERE model = "E5504"
### Instruction: On what Date was the Attendance 63,546? ### Response:
SELECT "Date" FROM table_62019 WHERE "Attendance" = '63,546'
### Instruction: Who were the commanders when 8 off 0 men were wounded? ### Response:
SELECT "Commander" FROM table_17186 WHERE "Wounded" = '8 off 0 men'
### Instruction: what number of television appearances did kerry ellis make in 2010 ? ### Response:
SELECT COUNT(*) FROM table_203_224 WHERE "year" = 2010
### Instruction: how many students are in each department?, could you order in desc by the y axis? ### Response:
SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY COUNT(*) DESC
### Instruction: What is the length in feet of the Jiangzhou arch? ### Response:
SELECT "Length ( ft )" FROM table_77220 WHERE "Name" = 'jiangzhou arch'
### Instruction: What is the highest frequency from uncionfeypoder.com? ### Response:
SELECT MAX(frequency) FROM table_name_79 WHERE website = "uncionfeypoder.com"
### Instruction: What is the affiliation when the institution was ohio christian university? ### Response:
SELECT "Affiliation" FROM table_73631 WHERE "Institution" = 'Ohio Christian University'
### Instruction: What is the result of the game at kyiv, ukraine? ### Response:
SELECT "Result" FROM table_61380 WHERE "Venue" = 'kyiv, ukraine'
### Instruction: Show how many rank from each rank, rank by the Y-axis from high to low. ### Response:
SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank ORDER BY COUNT(Rank) DESC
### Instruction: What is the most adjusted points for Great Britain? ### Response:
SELECT MAX(Adjusted) AS points FROM table_26454128_4 WHERE country = "Great Britain"
### Instruction: How many titles did Trupti Murgunde claim? ### Response:
SELECT "Womens doubles" FROM table_461 WHERE "Womens singles" = 'Trupti Murgunde'
### Instruction: If the average is 50.16, who is the player? ### Response:
SELECT "Player" FROM table_74073 WHERE "Average" = '50.16'