instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: With a 2011 of 0 what was the 2006 result? ### Response:
SELECT 2006 FROM table_name_83 WHERE 2011 = "0"
### Instruction: What year does robin buck go 44 laps? ### Response:
SELECT year FROM table_name_78 WHERE distance_duration = "44 laps" AND driver = "robin buck"
### Instruction: Compare the number of winery of the wines whose price is bigger than 100. ### Response:
SELECT Winery, COUNT(Winery) FROM wine WHERE Price > 100 GROUP BY Winery
### Instruction: What was the maximum week that had attendance of 10738? ### Response:
SELECT MAX("Week") FROM table_27234 WHERE "Attendance" = '10738'
### Instruction: What leading man earlier than 1932 was directed by archie mayo? ### Response:
SELECT leading_man FROM table_name_1 WHERE year < 1932 AND director = "archie mayo"
### Instruction: What is the pinyin for the English name Wuping County? ### Response:
SELECT pinyin FROM table_1204998_2 WHERE english_name = "Wuping County"
### Instruction: What is the nickname of the institution that was founded in 1857? ### Response:
SELECT "Nickname" FROM table_3520 WHERE "Founded" = '1857'
### Instruction: Name the total number of peletier for shortscale comparison billion ### Response:
SELECT COUNT(peletier) FROM table_260938_1 WHERE shortscale_comparison = "Billion"
### Instruction: What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth? ### Response:
SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia"
### Instruction: What is Part 4, when Part 2 is 'hlj p'? ### Response:
SELECT "Part 4" FROM table_48530 WHERE "Part 2" = 'hljóp'
### Instruction: Which Socialist candidate ran against American Labor candidate Caroline O'Day? ### Response:
SELECT "Socialist ticket" FROM table_42090 WHERE "American Labor ticket" = 'caroline o''day'
### Instruction: Which player has a subtotal of more than 3 and more than 8 in round 1? ### Response:
SELECT player FROM table_name_59 WHERE subtotal > 3 AND round_1 > 8
### Instruction: What is the 1st leg result when team 1 is Gambia? ### Response:
SELECT "1st leg" FROM table_40569 WHERE "Team 1" = 'gambia'
### Instruction: What is the 1st leg of the team with a 2-1 agg.? ### Response:
SELECT 1 AS st_leg FROM table_name_13 WHERE agg = "2-1"
### Instruction: What is the protein name when aa length is 202 aa? ### Response:
SELECT "Protein Name" FROM table_28969 WHERE "AA Length" = '202 aa'
### Instruction: How many try bonuses were there when there were 64 tries for? ### Response:
SELECT try_bonus FROM table_12792876_2 WHERE tries_for = "64"
### Instruction: how many total points did the bombers score against the bc lions ? ### Response:
SELECT SUM("score") FROM table_204_227 WHERE "opponent" = 'bc lions'
### Instruction: how many country has moto3/125cc with 15 ### Response:
SELECT "Country" FROM table_4140 WHERE "Moto3/125cc" = '15'
### Instruction: Name the country for the 9th and sign of g e ### Response:
SELECT "Country" FROM table_56459 WHERE "Date" = '9th' AND "Sign" = 'g e'
### Instruction: What is the catalog number of the May 27, 2009 release? ### Response:
SELECT catalog FROM table_name_89 WHERE date = "may 27, 2009"
### Instruction: What music is in the film with an Uncut run time of 95 minutes? ### Response:
SELECT "Music" FROM table_55091 WHERE "Uncut run time" = '95 minutes'
### Instruction: what is minimum days of hospital stay of patients whose death status is 0? ### Response:
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.expire_flag = "0"
### Instruction: What is the first game played against the Chicago Black Hawks? ### Response:
SELECT MIN("Game") FROM table_37065 WHERE "Opponent" = 'chicago black hawks'
### Instruction: What is the density in Garran? ### Response:
SELECT MIN("Density (/km\u00b2)") FROM table_17160 WHERE "Suburb" = 'Garran'
### Instruction: What type of transfer window is winter in Ita? ### Response:
SELECT "Type" FROM table_43983 WHERE "Transfer window" = 'winter' AND "Nat." = 'ita'
### Instruction: When racing epsom is in division two how many seasons are there? ### Response:
SELECT COUNT("Season") FROM table_26980 WHERE "Division Two" = 'Racing Epsom'
### Instruction: Give the names of wines with prices above any wine produced in 2006. ### Response:
SELECT name FROM wine WHERE price > (SELECT MAX(price) FROM wine WHERE year = 2006)
### Instruction: Who was the loser at Municipal Stadium after 1970? ### Response:
SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970
### Instruction: What is listed in segment b when segment c is artificial flowers? ### Response:
SELECT segment_b FROM table_15187735_21 WHERE segment_c = "Artificial Flowers"
### Instruction: Downvoted, closed or deleted questions. ### Response:
SELECT * FROM Posts WHERE PostTypeId = 1 AND (Score < -1 OR NOT ClosedDate IS NULL OR NOT DeletionDate IS NULL)
### Instruction: was shinjuku triad society a film or tv release ? ### Response:
SELECT "type" FROM table_204_88 WHERE "english title" = 'shinjuku triad society'
### Instruction: What is the name of the episode that William M. Finkelstein wrote? ### Response:
SELECT "Title" FROM table_3319 WHERE "Written by" = 'William M. Finkelstein'
### Instruction: What is the average crowd size for the home team hawthorn? ### Response:
SELECT AVG("Crowd") FROM table_58561 WHERE "Home team" = 'hawthorn'
### Instruction: What is the latest task number for which Cathy is head of household? ### Response:
SELECT MAX(task_no) FROM table_name_16 WHERE head_of_household = "cathy"
### Instruction: What are the phone numbers of customers using the policy with the code 'Life Insurance'? ### Response:
SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"
### Instruction: How many schools have an enrollment of 850? ### Response:
SELECT COUNT(founded) FROM table_11318462_29 WHERE enrolment = 850
### Instruction: When the league is 84 (4) what is the Canadian Championship? ### Response:
SELECT "Canadian Championship" FROM table_42016 WHERE "League" = '84 (4)'
### Instruction: Which sign has a red border and a warning sign? ### Response:
SELECT "Text/Symbol" FROM table_57200 WHERE "Border" = 'red' AND "Type of sign" = 'warning'
### Instruction: What was the Week on October 18, 1992? ### Response:
SELECT SUM(week) FROM table_name_3 WHERE date = "october 18, 1992"
### Instruction: Which school did harold duvall attend? ### Response:
SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall"
### Instruction: What is the average number of base pairs with 784 genes? ### Response:
SELECT AVG("Base Pairs") FROM table_54521 WHERE "Genes" = '784'
### Instruction: What was the stadium in Adelaide, South Australia built for? ### Response:
SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
### Instruction: How long was the fight 'adrenaline mma 3'? ### Response:
SELECT "Time" FROM table_56625 WHERE "Event" = 'adrenaline mma 3'
### Instruction: What is the Worldwide Gross of the Film with a Rank of 16? ### Response:
SELECT "Worldwide Gross" FROM table_76241 WHERE "Rank" = '16'
### Instruction: what did he do more - win or finish as a runner up ? ### Response:
SELECT "outcome" FROM table_204_399 GROUP BY "outcome" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: When dxrt-tv is the callsign what is the power kw? ### Response:
SELECT power_kw FROM table_23394920_1 WHERE callsign = "DXRT-TV"
### Instruction: What is the percentage of this constellation abbreviated as 'nor'? ### Response:
SELECT per­cent­age FROM table_177766_1 WHERE abbre­viation = "Nor"
### Instruction: ratio of 16:13 has how many highest size (steps)? ### Response:
SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = "16:13"
### Instruction: What is the total number of Year(s), when Tournament is 'World Championships'? ### Response:
SELECT COUNT("Year") FROM table_49798 WHERE "Tournament" = 'world championships'
### Instruction: At what time is the shown? ### Response:
SELECT "Timeslot" FROM table_42886 WHERE "Translation" = 'ბრაზილიის უბანი'
### Instruction: What is the result of Comedian : II of Ali Asgar? ### Response:
SELECT "Place(Result)" FROM table_70254 WHERE "Comedian:II" = 'ali asgar'
### Instruction: What is the percent for when against prohibition is 2978? ### Response:
SELECT percent_for FROM table_120778_1 WHERE against_prohibition = 2978
### Instruction: Create a bar chart showing the total number across denomination, and could you show y-axis in ascending order? ### Response:
SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*)
### Instruction: How many current clubs have the player Aigars Vitols? ### Response:
SELECT COUNT(current_club) FROM table_23670057_7 WHERE player = "Aigars Vitols"
### Instruction: What is the result of the match with Jeff Monson as opponent? ### Response:
SELECT "Res." FROM table_45261 WHERE "Opponent" = 'jeff monson'
### Instruction: What is the speed of the model whose number is W3540? ### Response:
SELECT "Speed (GHz)" FROM table_29201 WHERE "model" = 'W3540'
### Instruction: What is the average year that the medical school in dominican republic was established? ### Response:
SELECT AVG(established) FROM table_name_86 WHERE country_territory = "dominican republic"
### Instruction: If the games won are 5, what is the best winning average? ### Response:
SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 5
### Instruction: What is the Standard cost (USD) of Kwin team creator? ### Response:
SELECT "Standard cost (USD)" FROM table_69084 WHERE "Creator" = 'kwin team'
### Instruction: At what tournament did pete sampras begin his lead? ### Response:
SELECT "Tournament at which lead began" FROM table_26049 WHERE "Player" = 'Pete Sampras'
### Instruction: Name the engine with rounds of 7 with geki driver ### Response:
SELECT "Engine" FROM table_58568 WHERE "Rounds" = '7' AND "Driver" = 'geki'
### Instruction: Who was the opponent with a score of 30-12? ### Response:
SELECT "Opponent" FROM table_56495 WHERE "Result" = '30-12'
### Instruction: Who played defensive when the rookie Craig Point was playing during week 6? ### Response:
SELECT defensive FROM table_name_97 WHERE rookie = "craig point" AND week = 6
### Instruction: Which BR number has an LMS number over 14768? ### Response:
SELECT "BR number" FROM table_63261 WHERE "LMS Number" > '14768'
### Instruction: What was the lowest wins of Larry Nelson, who ranked less than 5? ### Response:
SELECT MIN(wins) FROM table_name_8 WHERE player = "larry nelson" AND rank < 5
### Instruction: What is Television Service, when HDTV is No, and when Language is Italian? ### Response:
SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian"
### Instruction: Name the country for athlete of ziedonis za kalns ### Response:
SELECT "Country" FROM table_57664 WHERE "Athlete" = 'ziedonis zaļkalns'
### Instruction: Is there a lab required for the 518 course ? ### Response:
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 518
### Instruction: Bar chart x axis building y axis maximal capacity, I want to show in asc by the total number please. ### Response:
SELECT building, MAX(capacity) FROM classroom GROUP BY building ORDER BY MAX(capacity)
### Instruction: which cilvil parishes have areas of 405? ### Response:
SELECT civil_parish FROM table_30120560_1 WHERE area__acres__ = 405
### Instruction: Which heat, semifinal or final has a time of 48.97? ### Response:
SELECT heat_semifinal_final FROM table_name_41 WHERE time = "48.97"
### Instruction: What tournament was played 16 September 2012? ### Response:
SELECT "Tournament" FROM table_60564 WHERE "Date" = '16 september 2012'
### Instruction: Which team has a second qualification time of 1:01.936? ### Response:
SELECT team FROM table_name_40 WHERE qual_2 = "1:01.936"
### Instruction: What is the Elmers End with a 17:57 Selsdon time? ### Response:
SELECT elmers_end FROM table_name_30 WHERE selsdon = "17:57"
### Instruction: What is the largest Against with an Opposing Teams of wales? ### Response:
SELECT MAX("Against") FROM table_61812 WHERE "Opposing Teams" = 'wales'
### Instruction: What is the lead percentage when the socialist is at 35.5%? ### Response:
SELECT "Lead" FROM table_1183 WHERE "Socialist" = '35.5%'
### Instruction: Which country is ranked 56 overall and has a heat rank smaller than 8? ### Response:
SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56"
### Instruction: What race is on 26 June 2011? ### Response:
SELECT "Race" FROM table_43995 WHERE "Date" = '26 june 2011'
### Instruction: What was the Cowboys' record for Nov. 5, 1966? ### Response:
SELECT "Record" FROM table_73437 WHERE "Date" = 'Nov. 5'
### Instruction: What is the date of the finale where Holly Bell was runner-up? ### Response:
SELECT "Finale" FROM table_30850 WHERE "Runners-up" = 'Holly Bell'
### Instruction: In what Tournament was laura Gildemeister the Opponent? ### Response:
SELECT "Tournament" FROM table_5131 WHERE "Opponent" = 'laura gildemeister'
### Instruction: how many times were the dallas cowboys listed as an opponent ? ### Response:
SELECT COUNT(*) FROM table_203_405 WHERE "opponent" = 'dallas cowboys'
### Instruction: which player had the most receptions but no touchdowns ? ### Response:
SELECT "player" FROM table_203_8 WHERE "td's" = 0 ORDER BY "rec." DESC LIMIT 1
### Instruction: what was the most number of points scored in a game ? ### Response:
SELECT "score" + "score" FROM table_203_431 ORDER BY ("score" + "score") DESC LIMIT 1
### Instruction: What is the team sites entry that has a public entry of No and a developer entry of Yes? ### Response:
SELECT team_sites FROM table_name_53 WHERE public = "no" AND developer = "yes"
### Instruction: Name the 2011 for 2010 of olympic games ### Response:
SELECT 2011 FROM table_name_64 WHERE 2010 = "olympic games"
### Instruction: Which biggest interview score had an evening gown stat of 9.286? ### Response:
SELECT MAX(interview) FROM table_name_56 WHERE evening_gown = 9.286
### Instruction: What is the date when Lebron James (25) was the lead scorer? ### Response:
SELECT date FROM table_name_90 WHERE leading_scorer = "lebron james (25)"
### Instruction: What party has an incumbent of Stanyarne Wilson? ### Response:
SELECT "Party" FROM table_35754 WHERE "Incumbent" = 'stanyarne wilson'
### Instruction: What's the Proto-Germanic when the German is /t/? ### Response:
SELECT "Proto-Germanic" FROM table_66291 WHERE "German" = '/t/'
### Instruction: What sum of game has an attendance of 18,690? ### Response:
SELECT SUM(game) FROM table_name_40 WHERE attendance = 18 OFFSET 690
### Instruction: What is the IATA of Madrid-Barajas Airport? ### Response:
SELECT "IATA" FROM table_51594 WHERE "Airport" = 'madrid-barajas airport'
### Instruction: When did Shirley Fry Irvin win the US Open? ### Response:
SELECT MIN("US Open") FROM table_73242 WHERE "Player" = 'Shirley Fry Irvin'
### Instruction: What is the age of Fred Gibson? ### Response:
SELECT age__as_of_1_february_2014_ FROM table_name_15 WHERE name = "fred gibson"
### Instruction: what is the total number of medals that india won in the asian youth games ? ### Response:
SELECT "total" FROM table_203_747 WHERE "nation" = 'india'
### Instruction: Name the number of appearances for yugoslavia ### Response:
SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = "Yugoslavia"
### Instruction: Name the opponent for 12 may 2008 ### Response:
SELECT opponent FROM table_16776312_3 WHERE date = "12 May 2008"
### Instruction: Which Genre has a Developer(s) of naughty dog? ### Response:
SELECT "Genre" FROM table_14156 WHERE "Developer(s)" = 'naughty dog'
### Instruction: What is the age when the result is fired in week 8 ### Response:
SELECT MIN(age) FROM table_26263322_1 WHERE result = "Fired in week 8"
### Instruction: What CFL team did simeon rottier play for? ### Response:
SELECT cfl_team FROM table_20170644_1 WHERE player = "Simeon Rottier"