instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: How many episodes had 3.62 million viewers? ### Response:
SELECT COUNT(share) FROM table_22353769_3 WHERE viewers__millions_ = "3.62"
### Instruction: Did the legislation pass that had 42.87% yes votes? ### Response:
SELECT passed FROM table_256286_63 WHERE _percentage_yes = "42.87%"
### Instruction: How many laps were there when the Time/Retired was +14.403? ### Response:
SELECT laps FROM table_name_45 WHERE time_retired = "+14.403"
### Instruction: what is gender and religion of subject id 71798? ### Response:
SELECT demographic.gender, demographic.religion FROM demographic WHERE demographic.subject_id = "71798"
### Instruction: Tell me the result for 2008-12-23 ### Response:
SELECT "Result" FROM table_31808 WHERE "Date" = '2008-12-23'
### Instruction: How many runs are there when the highest score is 228*? ### Response:
SELECT MIN("Runs") FROM table_30784 WHERE "Highest Score" = '228*'
### Instruction: What are the classes for the circuit that has the Mazda Raceway Laguna Seca race. ### Response:
SELECT class_es_ FROM table_name_70 WHERE circuit = "mazda raceway laguna seca"
### Instruction: What's the lowest amount of 12 games and less than 48 rebounds? ### Response:
SELECT MIN(rank) FROM table_name_1 WHERE games = 12 AND rebounds < 48
### Instruction: What were the interview subjects on those occasions where Bai Ling was the cover model? ### Response:
SELECT interview_subject FROM table_1566852_6 WHERE cover_model = "Bai Ling"
### Instruction: When gniazdo is polish what is proto-slavic? ### Response:
SELECT "Proto-Slavic" FROM table_28988 WHERE "Polish" = 'gniazdo'
### Instruction: What is the number of bronze that silver is smaller than 1 and gold bigger than 0? ### Response:
SELECT AVG(bronze) FROM table_name_51 WHERE silver < 1 AND gold > 0
### Instruction: What is the season # where production code is k1505? ### Response:
SELECT MIN("Season #") FROM table_17274 WHERE "Production code" = 'K1505'
### Instruction: When the Home team of geelong played, what was their lowest Crowd number? ### Response:
SELECT MIN("Crowd") FROM table_11895 WHERE "Home team" = 'geelong'
### Instruction: What generation is the member born on 1996.04.17 in? ### Response:
SELECT generation FROM table_name_33 WHERE birthday = "1996.04.17"
### Instruction: how many years have the brewers competed in the nl ? ### Response:
SELECT COUNT(DISTINCT "mlb\nseason") FROM table_204_319 WHERE "league" = 'nl'
### Instruction: what is the diameter (km) of longitude 170.1e ### Response:
SELECT diameter__km_ FROM table_16799784_7 WHERE longitude = "170.1E"
### Instruction: find out the gender and status of death for patient estrella carroll. ### Response:
SELECT demographic.gender, demographic.expire_flag FROM demographic WHERE demographic.name = "Estrella Carroll"
### Instruction: Plot how many party by grouped by party as a bar graph, could you rank by the total number from low to high? ### Response:
SELECT Party, COUNT(Party) FROM representative GROUP BY Party ORDER BY COUNT(Party)
### Instruction: When rider John Hopkins had 21 laps, what was the grid? ### Response:
SELECT grid FROM table_name_20 WHERE laps = "21" AND rider = "john hopkins"
### Instruction: Show the maximum share count of transactions where the amount is smaller than 10000 ### Response:
SELECT MAX(share_count) FROM TRANSACTIONS WHERE amount_of_transaction < 10000
### Instruction: Which November has a Game smaller than 16, and Points larger than 22? ### Response:
SELECT SUM(november) FROM table_name_89 WHERE game < 16 AND points > 22
### Instruction: Name the CDP name for FIPS code of 3659708 ### Response:
SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708
### Instruction: Which republican ticket has stanley h. fuld as the Democratic ticket? ### Response:
SELECT republican_ticket FROM table_name_25 WHERE democratic_ticket = "stanley h. fuld"
### Instruction: Which venue had a match played on August 16, 2006? ### Response:
SELECT venue FROM table_name_90 WHERE date = "august 16, 2006"
### Instruction: Which athlete had a six month suspension from IIHF? ### Response:
SELECT "Athlete" FROM table_63333 WHERE "Punishment" = 'six month suspension from iihf'
### Instruction: What country is the film directed by Jean-Luc Godard in French from? ### Response:
SELECT country FROM table_name_19 WHERE language = "french" AND director = "jean-luc godard"
### Instruction: how many pick# does the chivas usa mls team have ### Response:
SELECT MAX(pick__number) FROM table_29626583_1 WHERE mls_team = "Chivas USA"
### Instruction: What was Jimmy Jones' rank when the matches were smaller than 285? ### Response:
SELECT MAX(rank) FROM table_name_4 WHERE name = "jimmy jones" AND matches < 285
### Instruction: When roxanne and daniel are the couple what is the highest rank? ### Response:
SELECT MAX(rank) FROM table_19744915_18 WHERE couple = "Roxanne and Daniel"
### Instruction: What were the notes of the All-Africa Games before 2007? ### Response:
SELECT notes FROM table_name_41 WHERE competition = "all-africa games" AND year < 2007
### Instruction: Return a scatter chart about the correlation between School_ID and ACC_Percent , and group by attribute All_Games. ### Response:
SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY All_Games
### Instruction: What is the pf for Rebecca Jean Macphee? ### Response:
SELECT MIN("PF") FROM table_73253 WHERE "Skip" = 'Rebecca Jean MacPhee'
### Instruction: Show different parties of people along with the number of people in each party with a bar chart, and I want to order by the X in ascending please. ### Response:
SELECT Party, COUNT(*) FROM people GROUP BY Party ORDER BY Party
### Instruction: How many master recordings are there for 'Famous for Nothing'? ### Response:
SELECT COUNT("Master recording ?") FROM table_17738 WHERE "Song title" = 'Famous For Nothing'
### Instruction: What is the least amount of prize money when there are 21 events? ### Response:
SELECT MIN("Prize money ( $ )") FROM table_36215 WHERE "Events" = '21'
### Instruction: Which Krypton has a Physical property of critical pressure (atm)? ### Response:
SELECT "Krypton" FROM table_59220 WHERE "Physical property" = 'critical pressure (atm)'
### Instruction: If the chief judge is Glen E. Conrad, what is the region? ### Response:
SELECT region FROM table_22901612_2 WHERE chief_judge = "Glen E. Conrad"
### Instruction: Which country had 1 Bronze, 1 Silver, with a total of 3 medals? ### Response:
SELECT nation FROM table_name_10 WHERE bronze = 1 AND total = 3 AND silver = 1
### Instruction: How many provinces have evening gown score of 8.49 ### Response:
SELECT COUNT(province) FROM table_15081939_4 WHERE evening_gown = "8.49"
### Instruction: What is the fewest number of wins in the chart for Ayrton Senna? ### Response:
SELECT MIN("Wins") FROM table_37130 WHERE "Driver" = 'ayrton senna'
### Instruction: What is the opponent with an opponents' points of 35? ### Response:
SELECT "Opponent" FROM table_9434 WHERE "Opponents' Points" = '35'
### Instruction: how many times was total considered when hancock # was 1394 ### Response:
SELECT COUNT(total) FROM table_19681738_1 WHERE hancock__number = 1394
### Instruction: Where was the home match against FK Rudar Ugljevik played? ### Response:
SELECT location FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"
### Instruction: What is the result for the Outer Critics Circle award earlier than 2004? ### Response:
SELECT result FROM table_name_6 WHERE award = "outer critics circle award" AND year < 2004
### Instruction: How many touchdowns were the when there was more than 1.0 extra point? ### Response:
SELECT touchdowns FROM table_25730123_2 WHERE extra_points > 1.0
### Instruction: Name the lessons taught for episode # 2/205 ### Response:
SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205"
### Instruction: Is wireless combo keyboard and mouse support part of the DDM class? ### Response:
SELECT "DDM Class" FROM table_251 WHERE "Comparisons" = 'Wireless Combo keyboard and mouse support'
### Instruction: What was the total with a score in set 3 of 13 25? ### Response:
SELECT "Total" FROM table_49826 WHERE "Set 3" = '13–25'
### Instruction: Can undergrads take the course 452 ? ### Response:
SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 452
### Instruction: What was the first year to have a Chassis of Jordan 193? ### Response:
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"
### Instruction: What is the catalog of the release from January 23, 2002? ### Response:
SELECT catalog FROM table_name_59 WHERE date = "january 23, 2002"
### Instruction: What is the Set 3 when the Total was 62 - 75? ### Response:
SELECT "Set 3" FROM table_43378 WHERE "Total" = '62 - 75'
### Instruction: what is gender and admission time of subject id 4589? ### Response:
SELECT demographic.gender, demographic.admittime FROM demographic WHERE demographic.subject_id = "4589"
### Instruction: What is the latest week with a game with a result of l 12 7? ### Response:
SELECT MAX("Week") FROM table_40705 WHERE "Result" = 'l 12–7'
### Instruction: What is the Total medals for the Nation ranking 33 with more than 1 Bronze? ### Response:
SELECT AVG(total) FROM table_name_5 WHERE rank = "33" AND bronze > 1
### Instruction: What is the record of the game on February 25, 2008? ### Response:
SELECT record FROM table_name_59 WHERE date = "february 25, 2008"
### Instruction: Are undergrads allowed to take 800 ? ### Response:
SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 800
### Instruction: What sport was played before 2006 with a loser of france b? ### Response:
SELECT sport FROM table_name_93 WHERE date < 2006 AND loser = "france b"
### Instruction: What competition had its first match on December 20, 2007? ### Response:
SELECT competition FROM table_name_15 WHERE first_match = "december 20, 2007"
### Instruction: What's the duration of the Archers with Norman Painting as an actor? ### Response:
SELECT duration FROM table_name_98 WHERE soap_opera = "the archers" AND actor = "norman painting"
### Instruction: what's the native american with es mulatto being 0.7% ### Response:
SELECT native_american FROM table_1333612_1 WHERE es_mulatto = "0.7%"
### Instruction: How many rounds did Patrick Tambay record the fastest lap? ### Response:
SELECT COUNT(rnd) FROM table_1140073_2 WHERE fastest_lap = "Patrick Tambay"
### Instruction: What is the ticket price at Canadian National Exhibition Stadium? ### Response:
SELECT "Ticket price(s)" FROM table_64441 WHERE "Venue" = 'canadian national exhibition stadium'
### Instruction: What is the census ranking when the area is 78.67 ? ### Response:
SELECT "Census Ranking" FROM table_1602 WHERE "Area km 2" = '78.67'
### Instruction: What is the total number of Goals For, when Points 1 is '41'? ### Response:
SELECT COUNT(goals_for) FROM table_name_68 WHERE points_1 = "41"
### Instruction: With a Type of 4-6-4t, what is the sum Withdrawn? ### Response:
SELECT SUM(withdrawn) FROM table_name_43 WHERE type = "4-6-4t"
### Instruction: What is the name of the winner when the sprints classification is no award? ### Response:
SELECT winner FROM table_22941863_19 WHERE sprints_classification = "no award"
### Instruction: Who is the second member when RT Hon. Edward Stanley is the first member? ### Response:
SELECT "Second member" FROM table_60787 WHERE "First member" = 'rt hon. edward stanley'
### Instruction: How many f/laps did Pedro Nunes have when he was at the gp3 series? ### Response:
SELECT f_laps FROM table_25386974_1 WHERE series = "GP3 series"
### Instruction: Which stage had suhardi hassan in the Malaysian rider classification? ### Response:
SELECT stage FROM table_name_59 WHERE malaysian_rider_classification = "suhardi hassan"
### Instruction: What is the round for the opponent CSKA Sofia in Venue A? ### Response:
SELECT round FROM table_name_67 WHERE opponent = "cska sofia" AND venue = "a"
### Instruction: How many distance places have brisbane at $3.80? ### Response:
SELECT COUNT(distance) FROM table_2923917_4 WHERE brisbane = "$3.80"
### Instruction: What is the original air date for 'Oliver's Jaded Past'? ### Response:
SELECT "Original air date" FROM table_17551 WHERE "Title" = 'Oliver''s Jaded Past'
### Instruction: What team did the Chicago Black Hawks visit on April 20? ### Response:
SELECT home FROM table_name_92 WHERE visitor = "chicago black hawks" AND date = "april 20"
### Instruction: what are all the date withdrawn for koningin beatrix ### Response:
SELECT date_withdrawn FROM table_11662133_3 WHERE ships_name = "Koningin Beatrix"
### Instruction: Return the apartment number and the number of rooms for each apartment, and I want to sort in asc by the y axis please. ### Response:
SELECT apt_number, room_count FROM Apartments ORDER BY room_count
### Instruction: which artist has the most album ### Response:
SELECT "artist(s)" FROM table_204_697 GROUP BY "artist(s)" ORDER BY SUM("1978 album") DESC LIMIT 1
### Instruction: What is the Hanyu Pinyin with an area of 400? ### Response:
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400"
### Instruction: Who was eliminated when immunity went to kent (j rgen)? ### Response:
SELECT "Eliminated" FROM table_27262 WHERE "Immunity" = 'Kent (Jürgen)'
### Instruction: What is the 2004 tournament that has a Q1 of 2011? ### Response:
SELECT 2004 FROM table_name_10 WHERE 2011 = "q1"
### Instruction: Tell me the result for warsaw 1929 ### Response:
SELECT "Result" FROM table_31996 WHERE "Location" = 'warsaw' AND "Year" = '1929'
### Instruction: How many platforms have celsius calibur as mystic arte? ### Response:
SELECT COUNT("Platform") FROM table_30343 WHERE "Mystic Arte" = 'Celsius Calibur'
### Instruction: What is the total round for a wide receiver with an overall of more than 145? ### Response:
SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145
### Instruction: What is Score, when Date is May 7, 2006? ### Response:
SELECT "Score" FROM table_7948 WHERE "Date" = 'may 7, 2006'
### Instruction: What is Name, when Royal House is 'Ji', and when State is 'Cai'? ### Response:
SELECT name FROM table_name_93 WHERE royal_house = "ji" AND state = "cai"
### Instruction: when was the benetton b198 chassis used ? ### Response:
SELECT "year" FROM table_202_294 WHERE "chassis" = 'benetton b198'
### Instruction: What class has nsr250 as the machine, with points greater than 97? ### Response:
SELECT class FROM table_name_45 WHERE machine = "nsr250" AND points > 97
### Instruction: What is the build date of the model with a PRR Class of brs24? ### Response:
SELECT "Build date" FROM table_54317 WHERE "PRR Class" = 'brs24'
### Instruction: Round of 1r, and an away result of 7 1 is what season? ### Response:
SELECT season FROM table_name_65 WHERE round = "1r" AND away_result = "7–1"
### Instruction: What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate? ### Response:
SELECT support_rate, consider_rate, oppose_rate FROM candidate ORDER BY unsure_rate
### Instruction: Name th epopulation may for general terrero ### Response:
SELECT "Population (May 1, 2000)" FROM table_23821 WHERE "Barangay" = 'General Terrero'
### Instruction: How many different directors are associated with the writer Gaby Chiappe? ### Response:
SELECT COUNT(director) FROM table_15026994_2 WHERE writer = "Gaby Chiappe"
### Instruction: Who won the election of 1942 in the district Illinois 13? ### Response:
SELECT incumbent FROM table_1342256_13 WHERE district = "Illinois 13"
### Instruction: How many architects haven't built a mill before year 1850? ### Response:
SELECT COUNT(*) FROM architect WHERE NOT id IN (SELECT architect_id FROM mill WHERE built_year < 1850)
### Instruction: Who was the opponent when the record was 11-6-2? ### Response:
SELECT "Opponent" FROM table_49563 WHERE "Record" = '11-6-2'
### Instruction: which was the first location to uses a grass surface ? ### Response:
SELECT "championship" FROM table_204_651 WHERE "surface" = 'grass' ORDER BY "date" LIMIT 1
### Instruction: Given a line chart about the maximum price of wines for each year, I want to show in descending by the x-axis please. ### Response:
SELECT Year, MAX(Price) FROM wine GROUP BY Year ORDER BY Year DESC
### Instruction: Jeff Staples player for which College, Junior or Club league? ### Response:
SELECT college_junior_club_team__league_ FROM table_name_28 WHERE player = "jeff staples"
### Instruction: Who was the week 1 nomination when the week 2 nomination was Piia Jarkko? ### Response:
SELECT week_1 FROM table_name_35 WHERE week_2 = "piia jarkko"
### Instruction: What is the 2006 value with a 1r in 2011? ### Response:
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"