instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: List all results in elections with Richard Baker as the incumbent. ### Response:
SELECT result FROM table_1341472_20 WHERE incumbent = "Richard Baker"
### Instruction: Who was the stage winner when the start of stage is Cauterets? ### Response:
SELECT stage AS winner FROM table_name_38 WHERE start_of_stage = "cauterets"
### Instruction: Compare the total number of captains with different classes using a bar graph, show by the Class in ascending. ### Response:
SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY Class
### Instruction: Which stadiums have a capacity of 51082? ### Response:
SELECT "Stadium" FROM table_154 WHERE "Capacity" = '51082'
### Instruction: What is To Par, when Player is 'Tommy Bolt'? ### Response:
SELECT "To par" FROM table_48345 WHERE "Player" = 'tommy bolt'
### Instruction: When the away team was Geelong, what was the home team score? ### Response:
SELECT home_team AS score FROM table_name_97 WHERE away_team = "geelong"
### Instruction: How many peak positions were there on the daily charts? ### Response:
SELECT "Peak Position" FROM table_2785 WHERE "Oricon Albums Chart" = 'Daily Charts'
### Instruction: what is the location when the opponent is aleksandr pitchkounov? ### Response:
SELECT location FROM table_name_54 WHERE opponent = "aleksandr pitchkounov"
### Instruction: Name the averae top 25 with events less than 0 ### Response:
SELECT AVG("Top-25") FROM table_35860 WHERE "Events" < '0'
### Instruction: Which one took place on December 3, 1995? ### Response:
SELECT result FROM table_name_60 WHERE date = "december 3, 1995"
### Instruction: SELECT * FROM (SELECT * FROM Users WHERE Views = 10). ### Response:
SELECT * FROM Users WHERE Views = 10 AND Reputation > 1000 LIMIT 1
### Instruction: When the pos equals 18 what is the max amount of points? ### Response:
SELECT MAX(points) FROM table_23391714_1 WHERE pos = 18
### Instruction: What character does German voice actor Dirk Fenselau play? ### Response:
SELECT character FROM table_name_63 WHERE german_voice_actor = "dirk fenselau"
### Instruction: What is the lowest minutes a goalkeeper with 13 games played has? ### Response:
SELECT MIN(minutes) FROM table_name_25 WHERE games_played = 13
### Instruction: Name the points against for porthcawl rfc ### Response:
SELECT "Points against" FROM table_6335 WHERE "Club" = 'porthcawl rfc'
### Instruction: How many episodes were written by Alison McDonald? ### Response:
SELECT COUNT("Directed by") FROM table_29155 WHERE "Written by" = 'Alison McDonald'
### Instruction: What was the score for the matchup having attendance of 354? ### Response:
SELECT "Score" FROM table_63048 WHERE "Att." = '354'
### Instruction: What is the party when the incumbent is samuel smith? ### Response:
SELECT party FROM table_2668416_7 WHERE incumbent = "Samuel Smith"
### Instruction: what is diagnoses long title of subject id 6983? ### Response:
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "6983"
### Instruction: What kind of Tongan has a North Marquesan of /ha e/? ### Response:
SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/"
### Instruction: Which parish has an area of 750.51? ### Response:
SELECT official_name FROM table_name_46 WHERE area_km_2 = 750.51
### Instruction: How many viewers were there for the premier with 34 ### Response:
SELECT "HK viewers" FROM table_16356 WHERE "Premiere" = '34'
### Instruction: Which Semi finalists had a Week of may 15? ### Response:
SELECT "Semi finalists" FROM table_9726 WHERE "Week" = 'may 15'
### Instruction: What School has an Enrollement smaller than 301? ### Response:
SELECT "School" FROM table_71165 WHERE "Enrollment" < '301'
### Instruction: What is the total of bronze that has more silvers than 2? ### Response:
SELECT COUNT("Bronze") FROM table_45283 WHERE "Silver" > '2'
### Instruction: Wjat game 3 has ian french as a game of 2? ### Response:
SELECT game_3 FROM table_name_92 WHERE game_2 = "ian french"
### Instruction: Bar graph to show how many location from different location, and sort Y from high to low order. ### Response:
SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY COUNT(Location) DESC
### Instruction: serum bicarbonate concentration < 15 mmol / l ### Response:
SELECT * FROM table_train_257 WHERE serum_bicarbonate < 15
### Instruction: Name the lowest Founded with the Name cougars? ### Response:
SELECT MIN("Founded") FROM table_47948 WHERE "Nickname" = 'cougars'
### Instruction: How many tries for did the team with a try bonus of 5 score? ### Response:
SELECT "Tries for" FROM table_69524 WHERE "Try bonus" = '5'
### Instruction: Akin Ayodele drafted before round 7 plays what position? ### Response:
SELECT position FROM table_name_18 WHERE round < 7 AND name = "akin ayodele"
### Instruction: What is Result, when Date is 'November 22'? ### Response:
SELECT "Result" FROM table_59361 WHERE "Date" = 'november 22'
### Instruction: If the skip is Kelly Scott, what is the PF total number? ### Response:
SELECT COUNT("PF") FROM table_73871 WHERE "Skip" = 'Kelly Scott'
### Instruction: In 2011 which sport had the year award? ### Response:
SELECT "Sport" FROM table_78314 WHERE "Year of award" = '2011'
### Instruction: What is the average number of silver medals won among nations that won 9 medals total? ### Response:
SELECT AVG(silver) FROM table_name_88 WHERE total = 9
### Instruction: What is the largest crowd for the St Kilda as the away team? ### Response:
SELECT MAX(crowd) FROM table_name_26 WHERE away_team = "st kilda"
### Instruction: What is the Departure time at Rajendranagar Terminal? ### Response:
SELECT "Departure" FROM table_5087 WHERE "Station Name" = 'rajendranagar terminal'
### Instruction: What is the score for the away team when they played Hawthorn? ### Response:
SELECT away_team AS score FROM table_name_46 WHERE home_team = "hawthorn"
### Instruction: What was the score for the away team when they played at lake oval? ### Response:
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
### Instruction: What party is Frank Lobiondo a member of? ### Response:
SELECT party FROM table_1341453_32 WHERE incumbent = "Frank LoBiondo"
### Instruction: How many nicknames were associated with Milton, Massachusetts? ### Response:
SELECT COUNT(nickname) FROM table_1973729_1 WHERE location = "Milton, Massachusetts"
### Instruction: What is the tyres for the JBW type 2 chassis? ### Response:
SELECT tyres FROM table_name_70 WHERE chassis = "jbw type 2"
### Instruction: What is every Swedish name for residence city is Loviisa? ### Response:
SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa"
### Instruction: What's the Loss for the game that had a 22-24 record? ### Response:
SELECT loss FROM table_name_24 WHERE record = "22-24"
### Instruction: What was Head Coach Jim Morris's best finish? ### Response:
SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris"
### Instruction: Which race had an average climb of 40%? ### Response:
SELECT "Location" FROM table_21764 WHERE "Average climb (%)" = '40'
### Instruction: What is the verb for ? ### Response:
SELECT "Verb" FROM table_76515 WHERE "2 (F)" = 'তুমি খেলে'
### Instruction: Name the population for ### Response:
SELECT COUNT("Population (2011)") FROM table_27870 WHERE "Cyrillic Name Other Names" = 'Александрово'
### Instruction: For each type, what is the average tonnage, show from low to high by the Type. ### Response:
SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY Type
### Instruction: Which Home Captain has Eng by 208 runs? ### Response:
SELECT "Home captain" FROM table_80204 WHERE "Result" = 'eng by 208 runs'
### Instruction: Where was the game played that had a record of 19-6? ### Response:
SELECT "Location" FROM table_22688 WHERE "Record" = '19-6'
### Instruction: Name the incumbent for new york 10 ### Response:
SELECT incumbent FROM table_2668352_11 WHERE district = "New York 10"
### Instruction: What tie number featured Chelsea as the home team? ### Response:
SELECT MIN("Tie no") FROM table_21886 WHERE "Home team" = 'Chelsea'
### Instruction: Which 2009 tournament was french open? ### Response:
SELECT "2009" FROM table_54433 WHERE "Tournament" = 'french open'
### Instruction: How many defending champs from thailand? ### Response:
SELECT COUNT(defending_champion) FROM table_19765685_2 WHERE country = "Thailand"
### Instruction: What party did incumbent Howard Coble belong to? ### Response:
SELECT "Party" FROM table_18216 WHERE "Incumbent" = 'Howard Coble'
### Instruction: When richmond was the Away team what was the score of the home team? ### Response:
SELECT home_team AS score FROM table_name_37 WHERE away_team = "richmond"
### Instruction: What's the power output for channel tv-29? ### Response:
SELECT "Power (kW)" FROM table_73763 WHERE "Channel" = 'TV-29'
### Instruction: What was the population of Minneapolis in 2012? ### Response:
SELECT MAX("Population") FROM table_22188 WHERE "City" = 'Minneapolis'
### Instruction: What's the predecessor of the Ekavian word vreme? ### Response:
SELECT predecessor FROM table_27730_9 WHERE ekavian = "vreme"
### Instruction: What round has a name of vladimir morozov? ### Response:
SELECT "Round" FROM table_44617 WHERE "Name" = 'vladimir morozov'
### Instruction: How many artists are above age 46 and joined after 1990? ### Response:
SELECT COUNT(*) FROM artist WHERE age > 46 AND year_join > 1990
### Instruction: How many weight stats are there for players from San Francisco, CA? ### Response:
SELECT COUNT("Weight") FROM table_25059 WHERE "Home Town" = 'San Francisco, CA'
### Instruction: Which Plautdietsch has Dutch of maken? ### Response:
SELECT "Plautdietsch" FROM table_59085 WHERE "Dutch" = 'maken'
### Instruction: What is the total population with less than 789 males? ### Response:
SELECT COUNT("Total Population") FROM table_65016 WHERE "Male" < '789'
### Instruction: When was the attendance 1,034? ### Response:
SELECT MIN("Date") FROM table_36162 WHERE "Attendance" = '1,034'
### Instruction: What was the average number of fastest laps with less than 0 poles? ### Response:
SELECT AVG(fastest_laps) FROM table_name_5 WHERE poles < 0
### Instruction: What ended up happening in the district Virginia 22? ### Response:
SELECT "Result" FROM table_28885 WHERE "District" = 'Virginia 22'
### Instruction: If the Position is Running Back what is the Total number of Pick #? ### Response:
SELECT COUNT("Pick #") FROM table_76148 WHERE "Position" = 'running back'
### Instruction: What tournament was played on May 29, 2010? ### Response:
SELECT tournament FROM table_name_8 WHERE date = "may 29, 2010"
### Instruction: In what year is the tenth position xghajra? ### Response:
SELECT "Year" FROM table_33624 WHERE "10th Position" = 'xghajra'
### Instruction: What is the total gold in Norway with more than 1 bronze? ### Response:
SELECT SUM(gold) FROM table_name_84 WHERE nation = "norway" AND bronze > 1
### Instruction: Prevalence of Database, Database Schema. ### Response:
SELECT COUNT(Id) FROM Posts WHERE (Tags LIKE '%database%' OR Tags LIKE '%database schema%' OR Tags LIKE '%schema%')
### Instruction: How many reg GP for mattias ohlund? ### Response:
SELECT COUNT("Reg GP") FROM table_57374 WHERE "Player" = 'mattias ohlund'
### Instruction: What is the Score, when the Venue is L bker Golf Resort? ### Response:
SELECT score FROM table_name_37 WHERE venue = "lübker golf resort"
### Instruction: What is the first elected for south carolina 4? ### Response:
SELECT "First elected" FROM table_18611 WHERE "District" = 'South Carolina 4'
### Instruction: What year was the player with the height 2.04 born? ### Response:
SELECT MIN("Year born") FROM table_598 WHERE "Height" = '2.04'
### Instruction: what is marital status of subject id 2560? ### Response:
SELECT demographic.marital_status FROM demographic WHERE demographic.subject_id = "2560"
### Instruction: how many innings had bbi 4/26? ### Response:
SELECT innings FROM table_28846752_5 WHERE bbi = "4/26"
### Instruction: What opponent has 8-10 as the record? ### Response:
SELECT "Opponent" FROM table_34986 WHERE "Record" = '8-10'
### Instruction: what is the total number of countries in this preliminary qualifying round ### Response:
SELECT COUNT("team 1") + COUNT("team 2") FROM table_204_324
### Instruction: WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA? ### Response:
SELECT transfer_window FROM table_name_12 WHERE country = "bra"
### Instruction: What's the money that Sam Snead won? ### Response:
SELECT "Money ( $ )" FROM table_78648 WHERE "Player" = 'sam snead'
### Instruction: What is the sum of attendance when the score was 2:0? ### Response:
SELECT SUM("Attendance") FROM table_5527 WHERE "Score" = '2:0'
### Instruction: what are the names of each of the australian competitors ? ### Response:
SELECT "name" FROM table_204_160 WHERE "nationality" = 'australia'
### Instruction: what is the total drivers with a ferrari chassis ? ### Response:
SELECT COUNT("driver") FROM table_204_378 WHERE "constructor" = 'ferrari'
### Instruction: what is admission location of subject id 3343? ### Response:
SELECT demographic.admission_location FROM demographic WHERE demographic.subject_id = "3343"
### Instruction: how many subdivisions have an English Name of jiyang? ### Response:
SELECT COUNT("Population") FROM table_47012 WHERE "English Name" = 'jiyang'
### Instruction: What was the Open Cup results for the year 2003? ### Response:
SELECT open_cup FROM table_2402864_1 WHERE year = 2003
### Instruction: What is the methyl red reading for the species that tests positive for indole? ### Response:
SELECT methyl_red FROM table_name_98 WHERE indole = "positive"
### Instruction: Find the semester and year which has the least number of student taking any class. ### Response:
SELECT semester, YEAR FROM takes GROUP BY semester, YEAR ORDER BY COUNT(*) LIMIT 1
### Instruction: Which team had a score of 103-96? ### Response:
SELECT "Team" FROM table_48542 WHERE "Score" = '103-96'
### Instruction: Show all document type codes, document type names, document type descriptions. ### Response:
SELECT document_type_code, document_type_name, document_type_description FROM Ref_document_types
### Instruction: What district is incumbent ike skelton from? ### Response:
SELECT "District" FROM table_717 WHERE "Incumbent" = 'Ike Skelton'
### Instruction: What was the numer of the game when the record was 4-0? ### Response:
SELECT MAX("Game") FROM table_24069 WHERE "Record" = '4-0'
### Instruction: Which Type has a Responsible of stavangerske? ### Response:
SELECT "Type:" FROM table_13285 WHERE "Responsible:" = 'stavangerske'
### Instruction: What is the tries against when the points are 475? ### Response:
SELECT "Tries against" FROM table_76616 WHERE "Points for" = '475'
### Instruction: What was the Score of the game with a Record of 0-1? ### Response:
SELECT "Score" FROM table_76422 WHERE "Record" = '0-1'
### Instruction: Name the innings for 5088 runs scored ### Response:
SELECT COUNT("Innings") FROM table_24406 WHERE "Runs scored" = '5088'
### Instruction: What is the minimum possible for the NJCAA championships? ### Response:
SELECT MIN(njcaa_championships) FROM table_22319599_1