instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: serum calcium > 10.5 mg / dl ### Response:
SELECT * FROM table_train_210 WHERE serum_calcium > 10.5
### Instruction: What Runners-up have a Venue in Broadwood Stadium? ### Response:
SELECT runners_up FROM table_name_75 WHERE venue = "broadwood stadium"
### Instruction: Who had the highest points of the game on May 27? ### Response:
SELECT "High points" FROM table_45570 WHERE "Date" = 'may 27'
### Instruction: List the number of the name of all playlist, display Y-axis in asc order. ### Response:
SELECT name, COUNT(name) FROM playlists GROUP BY name ORDER BY COUNT(name)
### Instruction: How many items appear in the viewers column when the draw is 2? ### Response:
SELECT COUNT("Viewers") FROM table_30212 WHERE "Draw" = '2'
### Instruction: Which party had an incumbent of W. Jasper Talbert? ### Response:
SELECT party FROM table_name_70 WHERE incumbent = "w. jasper talbert"
### Instruction: Which chassis was made in 1993? ### Response:
SELECT "Chassis" FROM table_69578 WHERE "Year" = '1993'
### Instruction: What number in the series episode was titled 'Puppy Love'? ### Response:
SELECT "Series #" FROM table_3484 WHERE "Title" = 'Puppy Love'
### Instruction: What's the earliest year the philippines won? ### Response:
SELECT MIN(year) FROM table_name_6 WHERE country_territory = "philippines"
### Instruction: Which championship was established after 2005? ### Response:
SELECT "Championships" FROM table_54267 WHERE "Established" > '2005'
### Instruction: What are Andrew McNamara's colors? ### Response:
SELECT colours FROM table_20095300_1 WHERE jockey = "Andrew McNamara"
### Instruction: what is date of birth of subject id 65652? ### Response:
SELECT demographic.dob FROM demographic WHERE demographic.subject_id = "65652"
### Instruction: What is the usual attendance for july 2? ### Response:
SELECT AVG("Attendance") FROM table_67771 WHERE "Date" = 'july 2'
### Instruction: What is the date of the game with a score of 4-2? ### Response:
SELECT "Date" FROM table_35563 WHERE "Score" = '4-2'
### Instruction: What is Date, when Catalog is EPC 81436? ### Response:
SELECT date FROM table_name_97 WHERE catalog = "epc 81436"
### Instruction: Which Brilliance Grade has a Benchmark of practical fine cut? ### Response:
SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut"
### Instruction: Show the party and the number of drivers in each party with a bar chart, and sort bars in descending order. ### Response:
SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY Party DESC
### Instruction: Which authority has a Name of tamatea high school? ### Response:
SELECT "Authority" FROM table_69718 WHERE "Name" = 'tamatea high school'
### Instruction: WHAT IS THE RESULT OF THE GAME ON APRIL 23? ### Response:
SELECT result FROM table_name_60 WHERE date = "april 23"
### Instruction: Deepak Vaid's Physics.SE posts. ### Response:
SELECT p.Id AS "post_link" FROM Posts AS p WHERE OwnerDisplayName = 'user346'
### Instruction: How many High schools in the Region with 8 Cemeteries? ### Response:
SELECT SUM(high_schools) FROM table_name_38 WHERE cemeteries = 8
### Instruction: Which 2nd day has a year prior to 2009? ### Response:
SELECT 2 AS nd_day FROM table_name_4 WHERE year < 2009
### Instruction: What is the highest weight of the position scrum half? ### Response:
SELECT MAX("Weight (Kg)") FROM table_35792 WHERE "Position" = 'scrum half'
### Instruction: Which event led to a loss against Josh Diekman? ### Response:
SELECT event FROM table_name_37 WHERE res = "loss" AND opponent = "josh diekman"
### Instruction: What tournament was played on Feb 3, 1991? ### Response:
SELECT tournament FROM table_name_5 WHERE date = "feb 3, 1991"
### Instruction: How many people voted in Cabarrus county? ### Response:
SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus"
### Instruction: what's the won with points for being 643 ### Response:
SELECT won FROM table_14058433_5 WHERE points_for = "643"
### Instruction: For what year is the SAR no. 874? ### Response:
SELECT year FROM table_29753553_1 WHERE sar_no = 874
### Instruction: What is the Score for the Date of April 23? ### Response:
SELECT "Score" FROM table_58252 WHERE "Date" = 'april 23'
### Instruction: what's the district with result being new seat democratic gain ### Response:
SELECT district FROM table_1341604_10 WHERE result = "New seat Democratic gain"
### Instruction: Name the mountains classification for bradley white ### Response:
SELECT "Mountains Classification" FROM table_26426 WHERE "Aggressive Rider" = 'Bradley White'
### Instruction: Name the falcons points for record of 3-2 ### Response:
SELECT falcons_points FROM table_16710829_2 WHERE record = "3-2"
### Instruction: What is the date of the that was played with the Baltimore Colts at home? ### Response:
SELECT date FROM table_name_94 WHERE home_team = "baltimore colts"
### Instruction: What was the attendance of the game that had an away team of FK Mogren? ### Response:
SELECT attendance FROM table_name_89 WHERE guest = "fk mogren"
### Instruction: What was the date of release for the episode sorted value of 6Y/AA? ### Response:
SELECT released FROM table_name_13 WHERE series_sorted = "6y/aa"
### Instruction: How many years was the building with 24 floors the tallest? ### Response:
SELECT years_as_tallest FROM table_name_14 WHERE floors = 24
### Instruction: Who wrote the sorry of the episode directed by Dan Attias? ### Response:
SELECT "Story by" FROM table_18968 WHERE "Directed by" = 'Dan Attias'
### Instruction: tell me whether patient jerry deberry is married or not. ### Response:
SELECT demographic.marital_status FROM demographic WHERE demographic.name = "Jerry Deberry"
### Instruction: Who was the opponent of the game at Homewood field? ### Response:
SELECT "Opponent" FROM table_53242 WHERE "Field" = 'homewood field'
### Instruction: Which Game has a Series of bruins lead 3 1? ### Response:
SELECT SUM(game) FROM table_name_30 WHERE series = "bruins lead 3–1"
### Instruction: What candidate is associated with the Georgia 4 district? ### Response:
SELECT "Candidates" FROM table_18566 WHERE "District" = 'Georgia 4'
### Instruction: What is the average total in 1969? ### Response:
SELECT AVG(total) FROM table_name_27 WHERE year_s__won = "1969"
### Instruction: What is the highest number of goals associated with 39 caps? ### Response:
SELECT MAX("Goals") FROM table_38043 WHERE "Caps" = '39'
### Instruction: Name the tournament for may 18, 1997 ### Response:
SELECT tournament FROM table_name_90 WHERE date = "may 18, 1997"
### Instruction: List all dates where South Florida was a visiting team. ### Response:
SELECT date FROM table_26842217_6 WHERE visiting_team = "South Florida"
### Instruction: When was the train 2053 built? ### Response:
SELECT build_date FROM table_1057316_1 WHERE serial_number = "2053"
### Instruction: what was the most reason given in the notes column ? ### Response:
SELECT "notes" FROM table_204_882 GROUP BY "notes" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: Can you tell me the Score that has the December of 10? ### Response:
SELECT "Score" FROM table_49875 WHERE "December" = '10'
### Instruction: Who is every driver for the location of Estoril Circuit? ### Response:
SELECT "Driver" FROM table_25942 WHERE "Location" = 'Estoril Circuit'
### Instruction: What does the non-present stem -erama- mean? ### Response:
SELECT "Meaning" FROM table_555 WHERE "Non-present stem" = '-erama-'
### Instruction: List the numer of miles for 2010. ### Response:
SELECT "Miles (km)" FROM table_30357 WHERE "Year" = '2010'
### Instruction: Which away team has a Tie no of 14? ### Response:
SELECT "Away team" FROM table_59165 WHERE "Tie no" = '14'
### Instruction: What is the title of the episode directed by William Webb? ### Response:
SELECT "Title" FROM table_24769 WHERE "Directed by" = 'William Webb'
### Instruction: Who are the candidates in Florida 13 district? ### Response:
SELECT candidates FROM table_19753079_12 WHERE district = "Florida 13"
### Instruction: What is the average attendance of the game where the home team was the Blues? ### Response:
SELECT AVG(attendance) FROM table_name_40 WHERE home = "blues"
### Instruction: What year was trio brdeact wind allass the entrant? ### Response:
SELECT year FROM table_name_16 WHERE entrant = "trio brdeact wind allass"
### Instruction: Who was the runner-up when the year was 2008? ### Response:
SELECT runner_s__up FROM table_name_58 WHERE year = "2008"
### Instruction: Who has won $98,860? ### Response:
SELECT "Driver" FROM table_32886 WHERE "Winnings" = '$98,860'
### Instruction: Which Home has a Series of series tied 3 3? ### Response:
SELECT "Home" FROM table_38141 WHERE "Series" = 'series tied 3–3'
### Instruction: Who was the winner in the event with a runner-up of Alberto Mancini? ### Response:
SELECT winner FROM table_name_1 WHERE runner_up = "alberto mancini"
### Instruction: Tell me the overall rank for roland schoeman ### Response:
SELECT "Overall Rank" FROM table_32000 WHERE "Swimmer" = 'roland schoeman'
### Instruction: What is the first elected for Jo Bonner? ### Response:
SELECT MIN("First elected") FROM table_12525 WHERE "Incumbent" = 'jo bonner'
### Instruction: Who is the original artist for the theme 'Year they were born? ### Response:
SELECT "Original artist" FROM table_1334 WHERE "Theme" = 'Year They Were Born'
### Instruction: Show the number of brand from each brand, order total number in ascending order. ### Response:
SELECT brand, COUNT(brand) FROM camera_lens GROUP BY brand ORDER BY COUNT(brand)
### Instruction: Who is second on the team with Euan Byers at lead? ### Response:
SELECT "Second" FROM table_62758 WHERE "Lead" = 'euan byers'
### Instruction: how many license plates were issued before 1960 ? ### Response:
SELECT COUNT(*) FROM table_203_379 WHERE "first issued" < 1960
### Instruction: What was the record when the Bruins had 41 points? ### Response:
SELECT "Record" FROM table_23880 WHERE "Bruins points" = '41'
### Instruction: Name the least matches for not out being 44 ### Response:
SELECT MIN(matches) FROM table_21486890_1 WHERE not_out = 44
### Instruction: Who was the home team that played at Moorabbin Oval? ### Response:
SELECT home_team FROM table_name_17 WHERE venue = "moorabbin oval"
### Instruction: which was the only team with less than 20 wins ? ### Response:
SELECT "school" FROM table_203_412 WHERE "record (conference)" < 20
### Instruction: How many directors were there for series # 431? ### Response:
SELECT COUNT("Director") FROM table_3430 WHERE "Series #" = '431'
### Instruction: Name the rank on channel mooning and crooning ### Response:
SELECT "Rank on channel" FROM table_26687 WHERE "Title" = 'Mooning and Crooning'
### Instruction: What's the Time/Retired of Ivan Capelli? ### Response:
SELECT "Time/Retired" FROM table_11665 WHERE "Driver" = 'ivan capelli'
### Instruction: For the week of August 6, who is the finalist? ### Response:
SELECT "Finalist" FROM table_49233 WHERE "Week" = 'august 6'
### Instruction: what is the number of points that chris amon earned ? ### Response:
SELECT "points" FROM table_204_641 WHERE "driver" = 'chris amon'
### Instruction: who is the the opponent with district being ohio12 ### Response:
SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12"
### Instruction: after 1940 , how many steam locomotives were built ? ### Response:
SELECT COUNT(*) FROM table_204_30 WHERE "year built" > 1940
### Instruction: What was the score on 24 February 2013? ### Response:
SELECT score FROM table_name_32 WHERE date = "24 february 2013"
### Instruction: What is the finishing position for the person who had a grid of 3? ### Response:
SELECT "Fin. Pos" FROM table_47087 WHERE "Grid" = '3'
### Instruction: Who was the winner in the Louisiana 7 district? ### Response:
SELECT "Incumbent" FROM table_18405 WHERE "District" = 'Louisiana 7'
### Instruction: What did the home team score when the away team was South Melbourne? ### Response:
SELECT home_team AS score FROM table_name_31 WHERE away_team = "south melbourne"
### Instruction: Name the party for pennsylvania 10 ### Response:
SELECT "Party" FROM table_27308 WHERE "District" = 'Pennsylvania 10'
### Instruction: Name the replaced by for slaven belupo ### Response:
SELECT replaced_by FROM table_27225944_3 WHERE team = "Slaven Belupo"
### Instruction: What date is the z rich, switzerland tournament? ### Response:
SELECT "Date" FROM table_38731 WHERE "Tournament" = 'zürich, switzerland'
### Instruction: On what date was the result Eng by 1 wkt? ### Response:
SELECT "Date" FROM table_40015 WHERE "Result" = 'eng by 1 wkt'
### Instruction: how many municipalities exist in the province of cadiz ? ### Response:
SELECT "municipalities" FROM table_203_3 WHERE "province" = 'cadiz'
### Instruction: A bar chart for listing the number of the description of all aircrafts, and order bars in ascending order. ### Response:
SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY Description
### Instruction: What is the European competition when the tier is more than 2? ### Response:
SELECT "European competitions" FROM table_42431 WHERE "Tier" > '2'
### Instruction: What was event 2 when event 1 was Atlasphere? ### Response:
SELECT "Event 2" FROM table_21435 WHERE "Event 1" = 'Atlasphere'
### Instruction: Show all sport name and the number of students Show bar chart, and sort in asc by the bar. ### Response:
SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY SportName
### Instruction: How much did the away team St Kilda score? ### Response:
SELECT "Away team score" FROM table_55170 WHERE "Away team" = 'st kilda'
### Instruction: What's the average Round of Pete Laframboise? ### Response:
SELECT AVG(round) FROM table_name_59 WHERE player = "pete laframboise"
### Instruction: What year was the championship in Wimbledon (2)? ### Response:
SELECT year FROM table_1028356_3 WHERE championship = "Wimbledon (2)"
### Instruction: What is the value for New entries, when the value for Fixtures is 2? ### Response:
SELECT new_entries FROM table_name_71 WHERE fixtures = 2
### Instruction: What was the pick number when Paul Krake was selected? ### Response:
SELECT MIN("Pick #") FROM table_30866 WHERE "Player" = 'Paul Krake'
### Instruction: how many aerial tramways are located in france ? ### Response:
SELECT COUNT("tramway") FROM table_203_457 WHERE "country" = 'france'
### Instruction: What is the average decile of Westport South School? ### Response:
SELECT AVG("Decile") FROM table_14696 WHERE "Name" = 'westport south school'
### Instruction: Name the order in office for spiro agnew ### Response:
SELECT "Order in office" FROM table_23635 WHERE "Vice President" = 'Spiro Agnew'
### Instruction: What is the transfer fee for the country that has the name McCartney listed? ### Response:
SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney"
### Instruction: How many players played each position Plot them as bar chart, and rank in asc by the y-axis. ### Response:
SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*)