instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: On what date did Dick Johnson with at Calder? ### Response:
SELECT date FROM table_name_10 WHERE winner = "dick johnson" AND race_title = "calder"
### Instruction: How many titles does the episode written by Joe Toplyn have? ### Response:
SELECT COUNT("Title") FROM table_28048 WHERE "Written by" = 'Joe Toplyn'
### Instruction: how many years has been nominated? ### Response:
SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"
### Instruction: known hypersensitivity to perflutren ( contained in definity ) ### Response:
SELECT * FROM table_train_195 WHERE allergy_to_perflutren = 1
### Instruction: the number of runways at shayrat air base ? ### Response:
SELECT "runways" FROM table_204_102 WHERE "name" = 'shayrat air base'
### Instruction: What is the average year of the games with the date December 26? ### Response:
SELECT AVG(year) FROM table_name_84 WHERE date = "december 26"
### Instruction: what are all the record where date is january 21 ### Response:
SELECT record FROM table_13480122_5 WHERE date = "January 21"
### Instruction: How much Preston North End has a Blackpool smaller than 0? ### Response:
SELECT COUNT(preston_north_end) FROM table_name_90 WHERE blackpool < 0
### Instruction: Which incumbent was first elected in 1972? ### Response:
SELECT "Incumbent" FROM table_683 WHERE "First elected" = '1972'
### Instruction: What day had a time of 29.816? ### Response:
SELECT "Date" FROM table_53907 WHERE "Time" = '29.816'
### Instruction: what is the total number of standard and broad gauges ? ### Response:
SELECT COUNT(*) FROM table_204_816 WHERE "gauge" IN ('standard', 'broad')
### Instruction: Name the city of license for call sign of k215es ### Response:
SELECT city_of_license FROM table_name_7 WHERE call_sign = "k215es"
### Instruction: Who had the high rebounds when the team played Sacramento? ### Response:
SELECT "High rebounds" FROM table_21602 WHERE "Team" = 'Sacramento'
### Instruction: Plot the total number by grouped by nationality as a bar graph, rank bar from high to low order. ### Response:
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC
### Instruction: what was the venue where the date was the 22nd? ### Response:
SELECT venue FROM table_17120964_9 WHERE date = "22nd"
### Instruction: Which Sydney has Auckland cancelled and Perth yes? ### Response:
SELECT sydney FROM table_name_73 WHERE auckland = "cancelled" AND perth = "yes"
### Instruction: What power plant was commissioned in 2008? ### Response:
SELECT "Power Plant" FROM table_62398 WHERE "year of commission" = '2008'
### Instruction: what's the domestic freight with change being +8.0% ### Response:
SELECT domestic_freight FROM table_141541_5 WHERE change = "+8.0%"
### Instruction: in 1906 , how many total rolling stock vehicles were in service ? ### Response:
SELECT COUNT(*) FROM table_203_19 WHERE "date" <= 1906
### Instruction: What team played in the 1964 Tokyo Games? ### Response:
SELECT "Name" FROM table_6154 WHERE "Games" = '1964 tokyo'
### Instruction: Where the week # is Top 12, what is the result? ### Response:
SELECT "Result" FROM table_28502 WHERE "Week #" = 'Top 12'
### Instruction: what is maximum days of hospital stay of patients whose insurance is private? ### Response:
SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.insurance = "Private"
### Instruction: Which road team has a result of 117-114? ### Response:
SELECT road_team FROM table_name_61 WHERE result = "117-114"
### Instruction: Find the name of dorms that do not have any amenity ### Response:
SELECT dorm_name FROM dorm WHERE NOT dormid IN (SELECT dormid FROM has_amenity)
### Instruction: What is the name of the non mammal of the unit vyazniki assemblage? ### Response:
SELECT name FROM table_name_3 WHERE unit = "vyazniki assemblage"
### Instruction: What player's original team are the Oakland Raiders? ### Response:
SELECT "Player" FROM table_80251 WHERE "Original NFL team" = 'oakland raiders'
### Instruction: Which Set 3 has a Set 1 of 25 20? ### Response:
SELECT set_3 FROM table_name_9 WHERE set_1 = "25–20"
### Instruction: who are the writer of the series episode number 170? ### Response:
SELECT "Written by" FROM table_73412 WHERE "Series no." = '170'
### Instruction: Which city and state hosted the adelaide street circuit? ### Response:
SELECT city___state FROM table_26686908_2 WHERE circuit = "Adelaide Street circuit"
### Instruction: Who was the away team when the attendance was 7,891? ### Response:
SELECT away_team FROM table_name_28 WHERE attendance = "7,891"
### Instruction: Find the number of students in each department with a bar chart. ### Response:
SELECT dept_name, COUNT(dept_name) FROM student GROUP BY dept_name ORDER BY tot_cred
### Instruction: what is the space where the next one was mike turnesa ### Response:
SELECT margin FROM table_262383_1 WHERE runner_s__up = "Mike Turnesa"
### Instruction: how many number of 1 acts were there ? ### Response:
SELECT COUNT(*) FROM table_203_501 WHERE "sub\u00addivisions" = '1 act'
### Instruction: When is the French Open when serena williams is the player? ### Response:
SELECT MIN("French Open") FROM table_2164 WHERE "Player" = 'Serena Williams'
### Instruction: Which is the charity that the background of the celebrity is heavyweight champion? ### Response:
SELECT "Charity" FROM table_488 WHERE "Background" = 'Heavyweight Champion'
### Instruction: What is the highest Taper (in/ft), when Size is 8? ### Response:
SELECT MAX(taper__in_ft_) FROM table_name_20 WHERE size = 8
### Instruction: what is diagnoses short title of subject id 3343? ### Response:
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "3343"
### Instruction: What was the away team score when the home team essendon was playing? ### Response:
SELECT away_team AS score FROM table_name_63 WHERE home_team = "essendon"
### Instruction: Which supercentenarians were born in Manitoba? ### Response:
SELECT name FROM table_name_52 WHERE province_or_country_of_birth = "manitoba"
### Instruction: Who had the high rebounds, and how many, when they played Denver? ### Response:
SELECT "High rebounds" FROM table_8858 WHERE "Team" = 'denver'
### Instruction: The episode where the director is Gene Reynolds has who as the writer? ### Response:
SELECT writer FROM table_26866233_1 WHERE director = "Gene Reynolds"
### Instruction: If seed number is 2, what is the maximum amount of points? ### Response:
SELECT MAX(points) FROM table_23501776_18 WHERE seed = 2
### Instruction: Name the percentage change yoy for presbyterian college ### Response:
SELECT percentage_change_yoy FROM table_27956_3 WHERE institution = "Presbyterian College"
### Instruction: What is the frequency where the power is 25kw? ### Response:
SELECT "Frequency" FROM table_12657 WHERE "Power (kW)" = '25kw'
### Instruction: Which category was Dev Patel nominated for? ### Response:
SELECT "Category" FROM table_69184 WHERE "Winner/Nominee(s)" = 'dev patel'
### Instruction: Draw a bar chart of date versus how many date, and could you display by the Y-axis in desc? ### Response:
SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date) DESC
### Instruction: What is the away team score of the game that was played at princes park? ### Response:
SELECT away_team AS score FROM table_name_47 WHERE venue = "princes park"
### Instruction: Name the first elected for jacob markell ### Response:
SELECT first_elected FROM table_2668352_11 WHERE incumbent = "Jacob Markell"
### Instruction: What is the number of names for each product in the store?, and sort by the Name in descending. ### Response:
SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name DESC
### Instruction: What date was the U21 pennant laid down? ### Response:
SELECT "Laid Down" FROM table_70044 WHERE "Pennant" = 'u21'
### Instruction: How many games had red star as the runner up? ### Response:
SELECT COUNT(attendance) FROM table_26455614_1 WHERE runner_up = "Red Star"
### Instruction: What kind of food has been tested 'detect' most? ### Response:
SELECT commod FROM resultsdata15 WHERE mean = "A" GROUP BY commod ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: When the position is less than 7, what is the appeared on album? ### Response:
SELECT "Appeared on album" FROM table_78571 WHERE "Position" < '7'
### Instruction: Which player is from Joliet Catholic HIgh School? ### Response:
SELECT player FROM table_11677691_7 WHERE school = "Joliet Catholic High school"
### Instruction: Which championship was the 100m backstroke performed? ### Response:
SELECT "Meet" FROM table_33517 WHERE "Event" = '100m backstroke'
### Instruction: What episode was written by jonathan lewis? ### Response:
SELECT "Episode" FROM table_36050 WHERE "Writer(s)" = 'jonathan lewis'
### Instruction: Plot the number of phone by grouped by phone as a bar graph, could you list bar in descending order? ### Response:
SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY Phone DESC
### Instruction: How many extra points did Germany Schultz score? ### Response:
SELECT "Extra points 1 point" FROM table_3397 WHERE "Player" = 'Germany Schultz'
### Instruction: What was the original air date of the episode 'Quarry'? ### Response:
SELECT "Original air date" FROM table_16363 WHERE "Title" = 'Quarry'
### Instruction: Name the total number of outgoing manager for villarreal b ### Response:
SELECT COUNT("Outgoing manager") FROM table_3820 WHERE "Team" = 'Villarreal B'
### Instruction: Who was ashley sampi's opponent? ### Response:
SELECT "Opponent" FROM table_51309 WHERE "Player" = 'ashley sampi'
### Instruction: How many times was iran barkley an opponent? ### Response:
SELECT number FROM table_12206918_2 WHERE opponent = "Iran Barkley"
### Instruction: What is listed for the High rebounds on the Date of March 31? ### Response:
SELECT high_rebounds FROM table_name_34 WHERE date = "march 31"
### Instruction: What is the country of the Representative that left office as incumbent? ### Response:
SELECT "Country" FROM table_41065 WHERE "Left Office" = 'incumbent'
### Instruction: What was the latest release date for Ariola in Spain? ### Response:
SELECT MAX(release_date) FROM table_name_3 WHERE label = "ariola" AND country = "spain"
### Instruction: What ranking is the structure with 01.0 87 floors? ### Response:
SELECT rank FROM table_name_51 WHERE floors = "01.0 87"
### Instruction: What is Country , when Rider is Lindsay Porter? ### Response:
SELECT "Country" FROM table_41043 WHERE "Rider" = 'lindsay porter'
### Instruction: What is the weight of the bullet used in a Weatherby? ### Response:
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Weatherby"
### Instruction: who was the only athlete to throw more than 18 meters ? ### Response:
SELECT "athlete" FROM table_203_865 WHERE "best mark" > 18
### Instruction: How many episodes were directed by Michael McCullers? ### Response:
SELECT COUNT("Original air date") FROM table_27558 WHERE "Directed by" = 'Michael McCullers'
### Instruction: What is the venue of the match with a score of 33-22? ### Response:
SELECT venue FROM table_name_45 WHERE score = "33-22"
### Instruction: How many players were awarded more than ten times? ### Response:
SELECT COUNT(*) FROM (SELECT player_id FROM player_award GROUP BY player_id HAVING COUNT(*) > 10)
### Instruction: How many themes have the original artist of Judy Garland? ### Response:
SELECT COUNT("Theme") FROM table_1336 WHERE "Original artist" = 'Judy Garland'
### Instruction: What is the time for when cornelio velasquez was the jockey? ### Response:
SELECT time FROM table_name_12 WHERE jockey = "cornelio velasquez"
### Instruction: What other venue was a runner up to Hawthorn? ### Response:
SELECT venue FROM table_1139835_9 WHERE runner_up = "Hawthorn"
### Instruction: What was the sanction of the event at Nashville, Illinois? ### Response:
SELECT "Sanction" FROM table_8593 WHERE "Location" = 'nashville, illinois'
### Instruction: What is the most current year that had a BB CW of 78? ### Response:
SELECT MAX(year) FROM table_name_8 WHERE bb_cw = "78"
### Instruction: What is every prefix class for the equivalent of NTE101? ### Response:
SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE101"
### Instruction: What is the entered office that has 1337 as the left office? ### Response:
SELECT entered_office FROM table_name_74 WHERE left_office = "1337"
### Instruction: What is the career SR when 1985 is Grand Slams? ### Response:
SELECT career_sr FROM table_name_16 WHERE 1985 = "grand slams"
### Instruction: How many goals did sture m rtensson score? ### Response:
SELECT "goals" FROM table_32939 WHERE "name" = 'sture mårtensson'
### Instruction: What is the Label of the release with Catalog number LPM-2899? ### Response:
SELECT label FROM table_name_87 WHERE catalog = "lpm-2899"
### Instruction: In what year was Lindenwood University founded? ### Response:
SELECT MIN(founded) FROM table_10082596_1 WHERE school = "Lindenwood University"
### Instruction: What year did the term end for those elected in 1990 ### Response:
SELECT term_ended FROM table_1602620_1 WHERE elected = 1990
### Instruction: what was the last year mario an i had an atp win ? ### Response:
SELECT MAX("year") FROM table_203_203 WHERE "atp wins" > 0
### Instruction: what is the number of teams located in bobruisk ? ### Response:
SELECT COUNT("team") FROM table_203_208 WHERE "location" = 'bobruisk'
### Instruction: Who was the winner of the race at barbagallo raceway? ### Response:
SELECT winner FROM table_20884160_1 WHERE circuit = "Barbagallo Raceway"
### Instruction: Which date has a Score of 4 6, 2 6? ### Response:
SELECT date FROM table_name_92 WHERE score = "4–6, 2–6"
### Instruction: Return a bar chart showing how many shops in each location, and order in ascending by the x-axis. ### Response:
SELECT Location, COUNT(Location) FROM shop GROUP BY Location ORDER BY Location
### Instruction: What was the won when the points for was 496? ### Response:
SELECT won FROM table_12792876_3 WHERE points_for = "496"
### Instruction: For the vessel with a listed In service of 1, what is the origin given? ### Response:
SELECT "Origin" FROM table_65331 WHERE "In service" = '1'
### Instruction: Name the speed for 1:36.46.93 ### Response:
SELECT speed FROM table_name_13 WHERE time = "1:36.46.93"
### Instruction: Name the venue for 23 january 2009 ### Response:
SELECT venue FROM table_name_88 WHERE date = "23 january 2009"
### Instruction: How many directors worked on #158? ### Response:
SELECT COUNT(director) FROM table_25800134_4 WHERE series__number = 158
### Instruction: What candidates were featured in the 1974 election? ### Response:
SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974
### Instruction: What is the name of the second who has Caroline Reed as third? ### Response:
SELECT "Second" FROM table_75264 WHERE "Third" = 'caroline reed'
### Instruction: What is the age and gender of Martin Norvell? ### Response:
SELECT demographic.age, demographic.gender FROM demographic WHERE demographic.name = "Marilyn Norvell"
### Instruction: What is the party for the candidates edwin gray (dr)? ### Response:
SELECT "Party" FROM table_3627 WHERE "Candidates" = 'Edwin Gray (DR)'
### Instruction: What is every weekly schedule in the country of Norway? ### Response:
SELECT weekly_schedule FROM table_18821196_1 WHERE country = "Norway"
### Instruction: Name the location for abraham baldwin agricultural college ### Response:
SELECT location FROM table_16734640_1 WHERE institution = "Abraham Baldwin Agricultural College"