instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What is the platform(s) for the year 2006 (10th)? ### Response:
SELECT platform_s_ FROM table_name_78 WHERE year = "2006 (10th)"
### Instruction: What identifier has 100000 watts as the power? ### Response:
SELECT "Identifier" FROM table_66477 WHERE "Power" = '100000 watts'
### Instruction: What format is dated October 29, 2004? ### Response:
SELECT "Format" FROM table_39022 WHERE "Date" = 'october 29, 2004'
### Instruction: In district New York 10th, what was the reason for change? ### Response:
SELECT reason_for_change FROM table_1694492_2 WHERE district = "New York 10th"
### Instruction: What are the names and seatings for all tracks opened after 2000, ordered by seating? ### Response:
SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating
### Instruction: What is Date, when Winner is 'Murilo Figueiredo'? ### Response:
SELECT "Date" FROM table_51052 WHERE "Winner" = 'murilo figueiredo'
### Instruction: What horse did not start and had a total of over 16.16? ### Response:
SELECT horse FROM table_name_10 WHERE faults = "did not start" AND total > 16.16
### Instruction: How many number in series's are written by Greg Haddrick? ### Response:
SELECT COUNT("No. in series") FROM table_24535 WHERE "Written by" = 'Greg Haddrick'
### Instruction: What's the most points for Ea Schongau with more than 1 drawn? ### Response:
SELECT MAX(points) FROM table_name_38 WHERE name = "ea schongau" AND drawn > 1
### Instruction: which team had the highest number of inductees ? ### Response:
SELECT "team inducted as" FROM table_203_697 GROUP BY "team inducted as" ORDER BY COUNT("player") DESC LIMIT 1
### Instruction: How many names correspond to an area of 8.12? ### Response:
SELECT COUNT(name) FROM table_26321719_1 WHERE area__km²_ = "8.12"
### Instruction: Who are the semifinalists of the tournament with magnus gustafsson as the finalist? ### Response:
SELECT semifinalists FROM table_name_90 WHERE finalist = "magnus gustafsson"
### Instruction: When bergen is 88, what is the alesund? ### Response:
SELECT MIN("\u00c5lesund") FROM table_73111 WHERE "Bergen" = '88'
### Instruction: What Country scored 70-68-70=208? ### Response:
SELECT country FROM table_name_67 WHERE score = 70 - 68 - 70 = 208
### Instruction: How many total number of attendance were there when the game was held in Anaheim Stadium? ### Response:
SELECT COUNT("Attendance") FROM table_22060 WHERE "Game site" = 'Anaheim Stadium'
### Instruction: Who is the leading scorer of the game on 20 November 2007? ### Response:
SELECT leading_scorer FROM table_name_61 WHERE date = "20 november 2007"
### Instruction: What is the model number for the GPU and 320 mhz? ### Response:
SELECT "Model number" FROM table_44059 WHERE "GPU frequency" = '320 mhz'
### Instruction: Name the Rank of Rank Mountain Peak of crested butte pb? ### Response:
SELECT "Rank" FROM table_78853 WHERE "Mountain Peak" = 'crested butte pb'
### Instruction: Which Third has a Champion of metalurh novomoskovsk? ### Response:
SELECT "Third" FROM table_44581 WHERE "Champion" = 'metalurh novomoskovsk'
### Instruction: What is the result of the game on April 17 against Los Angeles? ### Response:
SELECT result FROM table_name_42 WHERE road_team = "los angeles" AND date = "april 17"
### Instruction: When has a surface of road and an event of half marathon? ### Response:
SELECT "Date" FROM table_70151 WHERE "Surface" = 'road' AND "Event" = 'half marathon'
### Instruction: Return a bar chart on how many wines are there for each grape?, and I want to list the total number in desc order. ### Response:
SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) DESC
### Instruction: Visualize a bar chart about the distribution of Sex and the average of Height , and group by attribute Sex, list in asc by the X. ### Response:
SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY Sex
### Instruction: Name the played with try bonus of 6 and drawn of 0 ### Response:
SELECT "Played" FROM table_14363 WHERE "Try bonus" = '6' AND "Drawn" = '0'
### Instruction: What is the total number of losses with less than 6 wins and less than 0 draws? ### Response:
SELECT COUNT(losses) FROM table_name_94 WHERE wins < 6 AND draws < 0
### Instruction: What the number of matches when the BBI is 3/27? ### Response:
SELECT MIN(matches) FROM table_28846752_9 WHERE bbi = "3/27"
### Instruction: What is Tournament, when Date is 'Sep 25, 1977'? ### Response:
SELECT tournament FROM table_name_61 WHERE date = "sep 25, 1977"
### Instruction: When 90.7 fm is the frequency who is the licensee? ### Response:
SELECT "Licensee" FROM table_23018 WHERE "Frequency" = '90.7 FM'
### Instruction: The 2nd leg is what for the Atl tico Madrid as Team 1? ### Response:
SELECT "2nd leg" FROM table_8439 WHERE "Team 1" = 'atlético madrid'
### Instruction: How many directors were there for the film Course Completed? ### Response:
SELECT COUNT("Director") FROM table_16303 WHERE "Film title used in nomination" = 'Course Completed'
### Instruction: What year gave a nominated result for the room 222 series? ### Response:
SELECT COUNT(year) FROM table_name_66 WHERE result = "nominated" AND series = "room 222"
### Instruction: Which rider has the time of +31.426? ### Response:
SELECT "Rider" FROM table_67196 WHERE "Time/Retired" = '+31.426'
### Instruction: What was the title for the Undercard of Stevenson/Bellew? ### Response:
SELECT titles FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew"
### Instruction: Name the least week for l 26 42 ### Response:
SELECT MIN(week) FROM table_26401898_2 WHERE final_score = "L 26–42"
### Instruction: What shows for Tie no when Sheffield United was the Away team? ### Response:
SELECT "Tie no" FROM table_42787 WHERE "Away team" = 'sheffield united'
### Instruction: Name the english name for orach, zarev ### Response:
SELECT "English name" FROM table_19975 WHERE "Old Bulgarian name (Transliteration)" = 'Orach, Zarev'
### Instruction: Party of republican, and a District of 5th is what highest elected? ### Response:
SELECT MAX(elected) FROM table_name_39 WHERE party = "republican" AND district = "5th"
### Instruction: Name the most points with lost of 2 and games more than 7 ### Response:
SELECT MAX("Points") FROM table_5925 WHERE "Lost" = '2' AND "Games" > '7'
### Instruction: Can you tell me the average Total votes that has the # of seats won smaller than 0? ### Response:
SELECT AVG("Total votes") FROM table_45695 WHERE "# of seats won" < '0'
### Instruction: What are the games behind for the Oklahoma City Thunder division? ### Response:
SELECT "Games behind (GB)" FROM table_63624 WHERE "Division (Div.)" = 'oklahoma city thunder'
### Instruction: What player has a 3-dart average of 75.76? ### Response:
SELECT "Player" FROM table_23666 WHERE "3-dart Average" = '75.76'
### Instruction: What is the status in those places where the poverty rate is 8.6%? ### Response:
SELECT status FROM table_22815568_7 WHERE poverty_rate = "8.6%"
### Instruction: On November 20, 1994, what was the result of the game? ### Response:
SELECT result FROM table_name_65 WHERE date = "november 20, 1994"
### Instruction: Name the nicky for ' take a chance on me ' abba ### Response:
SELECT "Nicky" FROM table_24209 WHERE "Song" = ' Take a Chance on Me "– ABBA'
### Instruction: in the ft pct .667 what is the number of gp-gs ### Response:
SELECT COUNT("GP-GS") FROM table_26337 WHERE "FT Pct" = '.667'
### Instruction: Name the total number of season for production code 3m17 ### Response:
SELECT COUNT(season__number) FROM table_23286722_1 WHERE production_code = "3M17"
### Instruction: were there more than four episodes that featured cynthia ? ### Response:
SELECT (SELECT "episodes" FROM table_204_903 WHERE "character" = 'cynthia') > 4
### Instruction: What is the total number of Year with Wins of 1, and Losses smaller than 1? ### Response:
SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1
### Instruction: Who were the semifinalists when the runner-up was Pat Du Pr ? ### Response:
SELECT semifinalists FROM table_29302781_12 WHERE runner_up = "Pat Du Pré"
### Instruction: When is The Opponents of lincoln city and a H / A of a? ### Response:
SELECT date FROM table_name_31 WHERE opponents = "lincoln city" AND h___a = "a"
### Instruction: Which Drama courses have 10 credits ? ### Response:
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Drama%' OR name LIKE '%Drama%') AND credits = 10
### Instruction: What is Record, when Method is KO, and when Opponent is Rich Guerin? ### Response:
SELECT record FROM table_name_99 WHERE method = "ko" AND opponent = "rich guerin"
### Instruction: What number episode in the series had a production code of 111? ### Response:
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111"
### Instruction: How many fastest laps did I.C. Team have? ### Response:
SELECT COUNT(fastest_laps) FROM table_20016339_1 WHERE team = "I.C. team"
### Instruction: For each payment method, return how many customers use it, list by the y axis in desc please. ### Response:
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY COUNT(*) DESC
### Instruction: What Race has a Purse of $300,000? ### Response:
SELECT "Race" FROM table_59685 WHERE "Purse" = '$300,000'
### Instruction: look for the birth date and ethnic background of patient jerry deberry. ### Response:
SELECT demographic.dob, demographic.ethnicity FROM demographic WHERE demographic.name = "Jerry Deberry"
### Instruction: What is the score of the Devil Rays on April 24? ### Response:
SELECT score FROM table_name_28 WHERE opponent = "devil rays" AND date = "april 24"
### Instruction: What was the payout in US dollars at the Insight Bowl? ### Response:
SELECT "Payout ( US$ )" FROM table_41012 WHERE "Bowl Game" = 'insight bowl'
### Instruction: What is the population for the Irish Name Leitir meall in? ### Response:
SELECT "Population" FROM table_15929 WHERE "Irish name" = 'Leitir Mealláin'
### Instruction: What's the 1st leg score when Team 1 was Gor Mahia? ### Response:
SELECT "1st leg" FROM table_68476 WHERE "Team 1" = 'gor mahia'
### Instruction: Name the wicket for 19-03-2007 ### Response:
SELECT "Wicket" FROM table_4452 WHERE "Date" = '19-03-2007'
### Instruction: What is the to par for the score 73-71=144? ### Response:
SELECT to_par FROM table_name_71 WHERE score = 73 - 71 = 144
### Instruction: Which Away has an Opponent of slavia prague? ### Response:
SELECT "Away" FROM table_6713 WHERE "Opponent" = 'slavia prague'
### Instruction: Who is the GamePlan when Arabella Lazenby is the RolePlay actor? ### Response:
SELECT "GamePlan" FROM table_62573 WHERE "RolePlay" = 'arabella lazenby'
### Instruction: How many games had a score of l 91 95 (ot)? ### Response:
SELECT COUNT("Game") FROM table_6807 WHERE "Score" = 'l 91–95 (ot)'
### Instruction: Return a line chart on how many players enter hall of fame each year?, display by the X-axis in asc. ### Response:
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid ORDER BY yearid
### Instruction: How many in total were in attendance at games where Chelsea was the away team? ### Response:
SELECT SUM("Attendance") FROM table_43595 WHERE "Away team" = 'chelsea'
### Instruction: Name the total number of rank for 348cc petty manx ### Response:
SELECT COUNT("Rank") FROM table_57295 WHERE "Team" = '348cc petty manx'
### Instruction: What is the Winning Team, when Losing Team is South Sydney Rabbitohs? ### Response:
SELECT winning_team FROM table_name_50 WHERE losing_team = "south sydney rabbitohs"
### Instruction: What is the 1995 when the 1991 is Grand Slams? ### Response:
SELECT 1995 FROM table_name_77 WHERE 1991 = "grand slams"
### Instruction: What is the highest value for multi lane if category wise is major district roads? ### Response:
SELECT MAX("Multi lane") FROM table_30710 WHERE "Category wise" = 'Major district roads'
### Instruction: What is the Lost with Against smaller than 25, and Played smaller than 1? ### Response:
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1
### Instruction: What is the D 42 figure when D 46 is r 6? ### Response:
SELECT d_42_√ FROM table_name_77 WHERE d_46_√ = "r 6"
### Instruction: what is diagnoses short title of diagnoses icd9 code 2875? ### Response:
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "2875"
### Instruction: What papers has adam chlipala written ? ### Response:
SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'adam chlipala' AND writes.authorid = author.authorid
### Instruction: What is the year when the spoksperson is Ruslana? ### Response:
SELECT MIN("Year(s)") FROM table_23461 WHERE "Spokesperson" = 'Ruslana'
### Instruction: Which Tournament has a 2002 of grand slam tournaments? ### Response:
SELECT "Tournament" FROM table_37737 WHERE "2002" = 'grand slam tournaments'
### Instruction: What player from the United States played in the western collegiate hockey association? ### Response:
SELECT player FROM table_name_40 WHERE nationality = "united states" AND league_from = "western collegiate hockey association"
### Instruction: What was the position of the team with an average finish of 21.5? ### Response:
SELECT position FROM table_2182562_2 WHERE avg_finish = "21.5"
### Instruction: What was Herdez Competition's total points with a grid larger than 1? ### Response:
SELECT COUNT(points) FROM table_name_39 WHERE team = "herdez competition" AND grid > 1
### Instruction: How many goals were scored on November 22, 1994? ### Response:
SELECT SUM(goal) FROM table_name_13 WHERE date = "november 22, 1994"
### Instruction: What was the result of the election in which the incumbent was first elected in 1984? ### Response:
SELECT "Results" FROM table_682 WHERE "First elected" = '1984'
### Instruction: What was the position of the Slavia team in 1998? ### Response:
SELECT "Position in 1998" FROM table_37124 WHERE "Team" = 'slavia'
### Instruction: What was the date of the home game against Accrington? ### Response:
SELECT "Date" FROM table_69081 WHERE "Team" = 'accrington' AND "Venue" = 'home'
### Instruction: Name the frequency mhz for ERP W of 850 watts ### Response:
SELECT frequency_mhz FROM table_name_44 WHERE erp_w = "850 watts"
### Instruction: What shows for Set 5 when the Total was 77 - 65? ### Response:
SELECT "Set 5" FROM table_43375 WHERE "Total" = '77 - 65'
### Instruction: Do other leagues have referee name records outside of Scotland and England? ### Response:
SELECT COUNT(league) FROM football_data WHERE country <> "Scotland" AND country <> "England" AND referee <> ""
### Instruction: how many laetare medalists were philantrohpists ? ### Response:
SELECT COUNT("laetare medalist") FROM table_203_509 WHERE "position" = 'philanthropist'
### Instruction: Bar chart of department_id from each first name, could you show total number from high to low order please? ### Response:
SELECT FIRST_NAME, DEPARTMENT_ID FROM employees ORDER BY DEPARTMENT_ID DESC
### Instruction: which live action american superhero movie was released before the 1966 batman movie ? ### Response:
SELECT "film" FROM table_203_79 WHERE "year" < 1966
### Instruction: What is the averag weights for people of each sex? Show a bar chart, I want to sort by the X from low to high. ### Response:
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY Sex
### Instruction: What is every year when the reporters were Lesley Visser and Robin Roberts? ### Response:
SELECT "Year" FROM table_2672 WHERE "Reporters" = 'Lesley Visser and Robin Roberts'
### Instruction: Was the constitution amended with a 57.91% vote of yes? ### Response:
SELECT "Const. Amd.?" FROM table_3360 WHERE "% YES" = '57.91%'
### Instruction: how many parts had a release date in 2003 ? ### Response:
SELECT COUNT("part") FROM table_203_679 WHERE "first public release date (first edition)" = 2003
### Instruction: What is Driver, when Position is 2nd, and when Season is 2001? ### Response:
SELECT driver FROM table_name_77 WHERE position = "2nd" AND season = 2001
### Instruction: how many tracks were produced by milanna miles and rick long ? ### Response:
SELECT COUNT("title") FROM table_203_37 WHERE "producer(s)" = 'milann miles, rick long'
### Instruction: What was the losing bonus when the points against was 445? ### Response:
SELECT losing_bonus FROM table_12792876_3 WHERE points_against = "445"
### Instruction: How many Bronze medals did Switzerland with less than 3 Silver medals receive? ### Response:
SELECT MIN(bronze) FROM table_name_75 WHERE nation = "switzerland" AND silver < 3
### Instruction: Show the party and the number of drivers in each party with a bar chart, and I want to order in desc by the the total number please. ### Response:
SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY COUNT(*) DESC