,text 0,"###HUMAN: Name the home team for carlton away team, ###ASSISTANT: SELECT home_team FROM table_name_77 WHERE away_team = ""carlton""" 1,"###HUMAN: what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?, ###ASSISTANT: SELECT ""Asia"" FROM table_22767 WHERE ""Latin America/Caribbean"" = '783 (7.5%)'" 2,"###HUMAN: How many faculty members do we have for each gender? Draw a bar chart, order by the Y-axis in descending., ###ASSISTANT: SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY COUNT(*) DESC" 3,"###HUMAN: List the record of 0-1 from the table?, ###ASSISTANT: SELECT week FROM table_14656147_2 WHERE record = ""0-1""" 4,"###HUMAN: Which silver has a Gold smaller than 12, a Rank smaller than 5, and a Bronze of 5?, ###ASSISTANT: SELECT silver FROM table_name_24 WHERE gold < 12 AND rank < 5 AND bronze = 5" 5,"###HUMAN: When did Samsung Electronics Co LTD make the GT-i9100?, ###ASSISTANT: SELECT ""Date"" FROM table_47482 WHERE ""Company name"" = 'samsung electronics co ltd' AND ""Hardware Model"" = 'gt-i9100'" 6,"###HUMAN: what are the early morning flights from BOSTON to DENVER, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time BETWEEN 0 AND 800" 7,"###HUMAN: Name the most 3 credits, ###ASSISTANT: SELECT MIN(3 AS _credits) FROM table_148535_2" 8,"###HUMAN: What is every yellow jersey entry for the distance 125?, ###ASSISTANT: SELECT ""Yellow jersey"" FROM table_3791 WHERE ""Distance (km)"" = '125'" 9,"###HUMAN: In what years was there a rank lower than 9, under 84 goals, and more than 158 matches?, ###ASSISTANT: SELECT years FROM table_name_63 WHERE matches > 158 AND rank > 9 AND goals < 84" 10,"###HUMAN: What aired at 10:00 when Flashpoint aired at 9:30?, ###ASSISTANT: SELECT ""10:00"" FROM table_43208 WHERE ""9:30"" = 'flashpoint'" 11,"###HUMAN: count the number of patients whose insurance is government and procedure short title is rt/left heart card cath?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = ""Government"" AND procedures.short_title = ""Rt/left heart card cath""" 12,"###HUMAN: What was the record of the game in which Dydek (10) did the most high rebounds?, ###ASSISTANT: SELECT record FROM table_18904831_5 WHERE high_rebounds = ""Dydek (10)""" 13,"###HUMAN: When was the game played at glenferrie oval?, ###ASSISTANT: SELECT ""Date"" FROM table_10130 WHERE ""Venue"" = 'glenferrie oval'" 14,"###HUMAN: What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62?, ###ASSISTANT: SELECT MAX(""K 2 O"") FROM table_7207 WHERE ""Na 2 O"" > '1.87' AND ""Fe 2 O 3"" > '0.07' AND ""Objects"" = 'ritual disk' AND ""Al 2 O 3"" < '0.62'" 15,"###HUMAN: what is the total number of patients diagnosed with icd9 code 45620 who had a blood test., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = ""45620"" AND lab.fluid = ""Blood""" 16,"###HUMAN: count the number of patients whose primary disease is pneumonia;human immunodefiency virus;rule out tuberculosis and year of death is less than or equal to 2168?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS"" AND demographic.dod_year <= ""2168.0""" 17,"###HUMAN: Which section is in the 6th position?, ###ASSISTANT: SELECT ""Section"" FROM table_72013 WHERE ""Position"" = '6th'" 18,"###HUMAN: What is the area of the coed school with a state authority and a roll number of 122?, ###ASSISTANT: SELECT ""Area"" FROM table_69300 WHERE ""Authority"" = 'state' AND ""Gender"" = 'coed' AND ""Roll"" = '122'" 19,"###HUMAN: Which type of institution is in Amherst, MA?, ###ASSISTANT: SELECT type FROM table_name_1 WHERE location = ""amherst, ma""" 20,"###HUMAN: What years did Birger Ruud win the FIS Nordic World Ski Championships?, ###ASSISTANT: SELECT ""FIS Nordic World Ski Championships"" FROM table_21696 WHERE ""Winner"" = 'Birger Ruud'" 21,"###HUMAN: how many members of estonia 's men 's national volleyball team were born in 1988 ?, ###ASSISTANT: SELECT COUNT(""player"") FROM table_203_116 WHERE ""birth date"" = 1988" 22,"###HUMAN: What episoe number in the season originally aired on February 11, 1988?, ###ASSISTANT: SELECT no_in_season FROM table_2818164_5 WHERE original_air_date = ""February 11, 1988""" 23,"###HUMAN: What date was the match against adri n men ndez-maceiras?, ###ASSISTANT: SELECT ""Date"" FROM table_60686 WHERE ""Opponent"" = 'adrián menéndez-maceiras'" 24,"###HUMAN: did shoko goto make more films in 2004 or 2005 ?, ###ASSISTANT: SELECT ""released"" FROM table_203_365 WHERE ""released"" IN (2004, 2005) GROUP BY ""released"" ORDER BY COUNT(""video title"") DESC LIMIT 1" 25,"###HUMAN: What venue listed is dated February 22, 2003?, ###ASSISTANT: SELECT ""Venue"" FROM table_65116 WHERE ""Date"" = 'february 22, 2003'" 26,"###HUMAN: provide the number of patients whose admission type is emergency and lab test name is rbc, csf?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = ""EMERGENCY"" AND lab.label = ""RBC, CSF""" 27,"###HUMAN: How often does the course POLSCI 659 meet ?, ###ASSISTANT: SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'POLSCI' AND course.number = 659 AND semester.semester = 'WN' AND semester.year = 2016" 28,"###HUMAN: Which couple participated in the Contemporary style of dance?, ###ASSISTANT: SELECT ""Couple"" FROM table_40395 WHERE ""Style"" = 'contemporary'" 29,"###HUMAN: Name the metrical equivalence for linha, ###ASSISTANT: SELECT ""Metrical equivalence"" FROM table_28772 WHERE ""Portuguese name"" = 'Linha'" 30,"###HUMAN: If the college is SMU, what is the position?, ###ASSISTANT: SELECT position FROM table_27132791_3 WHERE college = ""SMU""" 31,"###HUMAN: What was the represented team on June 27?, ###ASSISTANT: SELECT ""Team"" FROM table_21876 WHERE ""Date"" = 'June 27'" 32,"###HUMAN: Please show the songs that have result 'nominated' at music festivals., ###ASSISTANT: SELECT T2.song FROM music_festival AS T1 JOIN volume AS T2 ON T1.volume = T2.volume_id WHERE T1.result = ""Nominated""" 33,"###HUMAN: Which teams had more than 3 eliminations?, ###ASSISTANT: SELECT team FROM elimination GROUP BY team HAVING COUNT(*) > 3" 34,"###HUMAN: how many athletes had a better result than tatyana bocharova ?, ###ASSISTANT: SELECT COUNT(""name"") FROM table_204_910 WHERE ""result"" > (SELECT ""result"" FROM table_204_910 WHERE ""name"" = 'tatyana bocharova')" 35,"###HUMAN: Which Type has a Capacity of 28 passengers, and a Number of 16?, ###ASSISTANT: SELECT ""Type"" FROM table_8430 WHERE ""Capacity"" = '28 passengers' AND ""Number"" = '16'" 36,"###HUMAN: Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name., ###ASSISTANT: SELECT T3.name, T2.date, T2.venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.debate_id = T2.debate_id JOIN people AS T3 ON T1.negative = T3.people_id ORDER BY T3.name" 37,"###HUMAN: is a 2 credit full house the same as a 5 credit three of a kind ?, ###ASSISTANT: SELECT (SELECT ""2 credits"" FROM table_203_564 WHERE ""hand"" = 'full house') = (SELECT ""5 credits"" FROM table_203_564 WHERE ""hand"" = 'three of a kind')" 38,"###HUMAN: Next semester , what time does the EDUC 510 lecture begin ?, ###ASSISTANT: SELECT DISTINCT course_offering.start_time FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'EDUC' AND course.number = 510 AND semester.semester = 'FA' AND semester.year = 2016" 39,"###HUMAN: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of code , and group by attribute name, sort total number of code in asc order., ###ASSISTANT: SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code" 40,"###HUMAN: What was the highest round that had northwestern?, ###ASSISTANT: SELECT MAX(round) FROM table_name_18 WHERE school = ""northwestern""" 41,"###HUMAN: What is the smallest Wins with a Position of 20th, and Poles smaller than 0?, ###ASSISTANT: SELECT MIN(wins) FROM table_name_19 WHERE position = ""20th"" AND poles < 0" 42,"###HUMAN: Who is listed under mens singles when womens has wang nan zhang yining?, ###ASSISTANT: SELECT ""Mens Singles"" FROM table_30306 WHERE ""Womens Doubles"" = 'Wang Nan Zhang Yining'" 43,"###HUMAN: What are the start and end dates for incidents with incident type code 'NOISE'?, ###ASSISTANT: SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = ""NOISE""" 44,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, display by the the average of manager id in ascending please., ###ASSISTANT: SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID)" 45,"###HUMAN: who is listed as the last responsible mister -lrb- s -rrb- on this chart ?, ###ASSISTANT: SELECT ""responsible minister(s)"" FROM table_204_988 ORDER BY id DESC LIMIT 1" 46,"###HUMAN: Users with highest reputation both in SO and Math ( geometric mean = average digits)., ###ASSISTANT: SELECT s.DisplayName, s.Reputation AS RepSO, m.Reputation AS RepMath, (LOG10(s.Reputation) + LOG10(m.Reputation)) / 2 AS RepAvDigits FROM ""stackexchange.math"".Users AS m, ""stackoverflow"".Users AS s WHERE s.Reputation > 10000 AND m.Reputation > 10000 AND s.AccountId = m.AccountId ORDER BY 4 DESC" 47,"###HUMAN: What is the series # when the director is john showalter?, ###ASSISTANT: SELECT series__number FROM table_29747178_2 WHERE directed_by = ""John Showalter""" 48,"###HUMAN: provide the number of patients whose admission type is emergency and diagnosis long title is other drugs and medicinal substances causing adverse effects in therapeutic use., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = ""EMERGENCY"" AND diagnoses.long_title = ""Other drugs and medicinal substances causing adverse effects in therapeutic use""" 49,"###HUMAN: What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup?, ###ASSISTANT: SELECT ""Reg. Season"" FROM table_19191 WHERE ""Playoffs"" = 'Conference Semifinals' AND ""US Open Cup"" = 'Did not qualify'" 50,"###HUMAN: How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?, ###ASSISTANT: SELECT SUM(""Long"") FROM table_37490 WHERE ""Loss"" > '2' AND ""Gain"" = '157' AND ""Avg/G"" < '129'" 51,"###HUMAN: How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have?, ###ASSISTANT: SELECT SUM(""Pages"") FROM table_7363 WHERE ""Vol. #"" < '8' AND ""ISBN"" = '1-40122-892-5'" 52,"###HUMAN: Ranking of questions by score., ###ASSISTANT: SELECT Posts.Id AS ""post_link"", Posts.Title, Posts.Score AS Score FROM Posts ORDER BY Posts.Score DESC LIMIT 100" 53,"###HUMAN: Which Game has a Score of w 90 82 (ot)?, ###ASSISTANT: SELECT game FROM table_name_40 WHERE score = ""w 90–82 (ot)""" 54,"###HUMAN: What was the largest crowd when Collingwood was the away team?, ###ASSISTANT: SELECT MAX(crowd) FROM table_name_67 WHERE away_team = ""collingwood""" 55,"###HUMAN: Name the number of cancelled for turnham green, ###ASSISTANT: SELECT COUNT(""Cancelled"") FROM table_24185 WHERE ""Station"" = 'Turnham Green'" 56,"###HUMAN: What is the highest attendance of the match with a 2:0 score and vida as the away team?, ###ASSISTANT: SELECT MAX(attendance) FROM table_name_59 WHERE score = ""2:0"" AND away = ""vida""" 57,"###HUMAN: Visualize a pie chart with what are the names and seatings for all tracks opened after 2000?, ###ASSISTANT: SELECT Name, Seating FROM track WHERE Year_Opened > 2000" 58,"###HUMAN: Show the name for regions and the number of storms for each region by a bar chart, and sort from high to low by the X-axis., ###ASSISTANT: SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name DESC" 59,"###HUMAN: What is the Attendance of the game with a Record of 37 21 12 and less than 86 Points?, ###ASSISTANT: SELECT AVG(attendance) FROM table_name_44 WHERE record = ""37–21–12"" AND points < 86" 60,"###HUMAN: How many yards per attempt have net yards greater than 631?, ###ASSISTANT: SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631" 61,"###HUMAN: What is the primary disease and diagnosis icd9 code of Josette Orr?, ###ASSISTANT: SELECT demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = ""Josette Orr""" 62,"###HUMAN: Name the scores for david baddiel and maureen lipman, ###ASSISTANT: SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = ""David Baddiel and Maureen Lipman""" 63,"###HUMAN: Name the role for mono studio and title of paradise canyon, ###ASSISTANT: SELECT role FROM table_name_62 WHERE studio = ""mono"" AND title = ""paradise canyon""" 64,"###HUMAN: Name the total with finish of t22, ###ASSISTANT: SELECT total FROM table_name_24 WHERE finish = ""t22""" 65,"###HUMAN: If the opponent was @ Boston Bruins, what was the Location/Attendance?, ###ASSISTANT: SELECT ""Location/Attendance"" FROM table_3782 WHERE ""Opponent"" = '@ Boston Bruins'" 66,"###HUMAN: What was the ticket price on September 16, 1986?, ###ASSISTANT: SELECT ""Ticket price(s)"" FROM table_64443 WHERE ""Date(s)"" = 'september 16, 1986'" 67,"###HUMAN: Name the high rebounds for memphis, ###ASSISTANT: SELECT high_rebounds FROM table_17060277_7 WHERE team = ""Memphis""" 68,"###HUMAN: Tell me the the date when the first claim was made., ###ASSISTANT: SELECT date_claim_made FROM claims ORDER BY date_claim_made LIMIT 1" 69,"###HUMAN: Tell me the outgoing manager for 22 november date of vacancy, ###ASSISTANT: SELECT ""Outgoing manager"" FROM table_77878 WHERE ""Date of vacancy"" = '22 november'" 70,"###HUMAN: For those products with a price between 60 and 120, return a bar chart about the distribution of name and manufacturer , and sort in desc by the y-axis., ###ASSISTANT: SELECT Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Manufacturer DESC" 71,"###HUMAN: Who won the FIS Nordic World Ski Championships in 1972?, ###ASSISTANT: SELECT ""Winner"" FROM table_50927 WHERE ""FIS Nordic World Ski Championships"" = '1972'" 72,"###HUMAN: For those employees who was hired before 2002-06-21, give me the comparison about the average of department_id over the job_id , and group by attribute job_id, show x-axis in descending order., ###ASSISTANT: SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC" 73,"###HUMAN: Name the listed owners for brevak racing, ###ASSISTANT: SELECT listed_owner_s_ FROM table_2187178_1 WHERE team = ""Brevak Racing""" 74,"###HUMAN: What is the sum total of all the years with a bell that weighed 857 kilograms?, ###ASSISTANT: SELECT SUM(""Year"") FROM table_7061 WHERE ""Weight (kg)"" = '857'" 75,"###HUMAN: Questions with 'Magento' in title., ###ASSISTANT: SELECT Id AS ""post_link"" FROM Posts WHERE Title LIKE '%Magento%'" 76,"###HUMAN: What is Chris Riley's Money?, ###ASSISTANT: SELECT money___$__ FROM table_name_46 WHERE player = ""chris riley""" 77,"###HUMAN: What are the speeds of the longest roller coaster?, ###ASSISTANT: SELECT speed FROM roller_coaster ORDER BY length DESC LIMIT 1" 78,"###HUMAN: What are the lowest points with 2013 as the year, and goals less than 0?, ###ASSISTANT: SELECT MIN(points) FROM table_name_48 WHERE year = ""2013"" AND goals < 0" 79,"###HUMAN: Who were the runner(s)-up when Tiger won by 11 strokes?, ###ASSISTANT: SELECT ""Runner(s)-up"" FROM table_16888 WHERE ""Margin of victory"" = '11 strokes'" 80,"###HUMAN: Name the segment a for 8-08, ###ASSISTANT: SELECT segment_a FROM table_15187735_8 WHERE series_ep = ""8-08""" 81,"###HUMAN: How many outputs are there for solid state, battery operated for portable use listed in notes?, ###ASSISTANT: SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = ""Solid state, battery operated for portable use""" 82,"###HUMAN: If the rank is 17, what are the names?, ###ASSISTANT: SELECT name FROM table_24990183_7 WHERE rank = 17" 83,"###HUMAN: What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9?, ###ASSISTANT: SELECT SUM(1979) FROM table_name_51 WHERE reservation = ""standing rock indian reservation"" AND 1989 < 54.9" 84,"###HUMAN: What is Opponent, when Attendance is 58,836?, ###ASSISTANT: SELECT ""Opponent"" FROM table_49308 WHERE ""Attendance"" = '58,836'" 85,"###HUMAN: What is the mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels?, ###ASSISTANT: SELECT AVG(""Example code (HUC)"") FROM table_41893 WHERE ""Example name"" = 'lower snake' AND ""Digits"" = '6' AND ""Level"" < '3'" 86,"###HUMAN: What is the quarterfinal week for Austin Anderson?, ###ASSISTANT: SELECT MIN(""Qtr. Final (Week)"") FROM table_29572 WHERE ""Name/Name of Act"" = 'Austin Anderson'" 87,"###HUMAN: What is the volume when the resrvoir is Tanes?, ###ASSISTANT: SELECT ""Volume (hm\u00b3)"" FROM table_30696 WHERE ""Reservoir"" = 'Tanes'" 88,"###HUMAN: provide the number of patients whose days of hospital stay is greater than 23 and drug code is acyc400?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > ""23"" AND prescriptions.formulary_drug_cd = ""ACYC400""" 89,"###HUMAN: What's the title of the audio book with story number 91?, ###ASSISTANT: SELECT ""Title"" FROM table_23576 WHERE ""Story #"" = '91'" 90,"###HUMAN: What class is ERP W of 800?, ###ASSISTANT: SELECT class FROM table_name_9 WHERE erp_w = 800" 91,"###HUMAN: tell me the cost of the diagnosis for smoking cessation counseling given?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'smoking cessation counseling given')" 92,"###HUMAN: what is the total number of patients who were diagnosed with icd9 code 2254?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = ""2254""" 93,"###HUMAN: Give me the maximum low temperature and average precipitation at the Amersham station., ###ASSISTANT: SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = ""Amersham""" 94,"###HUMAN: Which event was held at Manly Beach?, ###ASSISTANT: SELECT event FROM table_name_20 WHERE location = ""manly beach""" 95,"###HUMAN: Who was the home team against the Bolton Wanderers?, ###ASSISTANT: SELECT ""Home team"" FROM table_43959 WHERE ""Away team"" = 'bolton wanderers'" 96,"###HUMAN: All Info About Mobile Android Testing., ###ASSISTANT: SELECT P.OwnerUserId, P.Title, P.Tags, P.ViewCount, P.Score, P.AnswerCount, P.CreationDate FROM Posts AS P WHERE (P.Tags LIKE '%android-testing%') OR (P.Tags LIKE '%robotium%') OR (P.Tags LIKE '%androidviewclient%') OR (P.Tags LIKE '%monkeyrunner%') OR (P.Tags LIKE '%android-espresso%') OR (P.Tags LIKE '%android-emulator%') OR (P.Tags LIKE '%android%' AND P.Tags LIKE '%uiautomator%') OR (P.Tags LIKE '%android%' AND P.Tags LIKE '%appium%') OR (P.Tags LIKE '%android%' AND P.Tags LIKE '%calabash%') OR (P.Tags LIKE '%android%' AND P.Tags LIKE '%test%') ORDER BY P.Score DESC" 97,"###HUMAN: Tell me the away team score for away team of south melbourne, ###ASSISTANT: SELECT ""Away team score"" FROM table_51600 WHERE ""Away team"" = 'south melbourne'" 98,"###HUMAN: What year was the downy woodpecker coin created?, ###ASSISTANT: SELECT SUM(""Year"") FROM table_55306 WHERE ""Animal"" = 'downy woodpecker'" 99,"###HUMAN: What model has a launch of September 3, 2010?, ###ASSISTANT: SELECT ""Model"" FROM table_28269 WHERE ""Launch"" = 'September 3, 2010'" 100,"###HUMAN: Which opponent has a save of smith (22)?, ###ASSISTANT: SELECT opponent FROM table_name_65 WHERE save = ""smith (22)""" 101,"###HUMAN: What was the result of the home game against Derby County?, ###ASSISTANT: SELECT win_draw_lose FROM table_name_71 WHERE venue = ""home"" AND team = ""derby county""" 102,"###HUMAN: tell me the average arterial bp [systolic] of patient 16472 until 08/15/2105?, ###ASSISTANT: SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16472)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systolic]' AND d_items.linksto = 'chartevents') AND STRFTIME('%y-%m-%d', chartevents.charttime) <= '2105-08-15'" 103,"###HUMAN: Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1?, ###ASSISTANT: SELECT SUM(""Total"") FROM table_43812 WHERE ""Club"" = 'darlington' AND ""League goals"" = '13' AND ""League Cup goals"" = '1'" 104,"###HUMAN: Top SO users from germany., ###ASSISTANT: SELECT DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%germany%' OR Location LIKE '%Germany%' OR Location LIKE N'%DE%' OR Location LIKE N'%de%' OR Location LIKE N'%deutschland%' ORDER BY Reputation DESC LIMIT 3000" 105,"###HUMAN: age 65 years and older, ###ASSISTANT: SELECT * FROM table_train_103 WHERE age >= 65" 106,"###HUMAN: Which Location has a Frequency of 102.5 fm?, ###ASSISTANT: SELECT location FROM table_name_4 WHERE frequency = ""102.5 fm""" 107,"###HUMAN: What is the smallest crowd for victoria park?, ###ASSISTANT: SELECT MIN(crowd) FROM table_name_89 WHERE venue = ""victoria park""" 108,"###HUMAN: What episode number in the season is titled 'stray'?, ###ASSISTANT: SELECT MAX(""Season no."") FROM table_73846 WHERE ""Title"" = 'Stray'" 109,"###HUMAN: What is the position for the pick number 17?, ###ASSISTANT: SELECT ""Position"" FROM table_439 WHERE ""Overall Pick #"" = '17'" 110,"###HUMAN: WHAT WAS THE NUMBER OF THE ONLY FORWARD-CENTER TO MAKE THE ROSTER?, ###ASSISTANT: SELECT MIN(no) FROM table_15621965_18 WHERE position = ""Forward-Center""" 111,"###HUMAN: What was the class position of the team that was in the 4th position?, ###ASSISTANT: SELECT ""Class Pos."" FROM table_77295 WHERE ""Pos."" = '4th'" 112,"###HUMAN: How many accounts for each customer? Show a bar chart that groups by customer's last name., ###ASSISTANT: SELECT customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" 113,"###HUMAN: Name the date for eastern creek raceway, ###ASSISTANT: SELECT date FROM table_2446333_2 WHERE circuit = ""Eastern Creek Raceway""" 114,"###HUMAN: Name the least total kurdistan list, ###ASSISTANT: SELECT MIN(""Total Kurdistan List"") FROM table_26850" 115,"###HUMAN: What is the earliest week that shows a record of 8 5?, ###ASSISTANT: SELECT MIN(week) FROM table_name_40 WHERE record = ""8–5""" 116,"###HUMAN: Create a pie chart showing the number of carrier across carrier., ###ASSISTANT: SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier" 117,"###HUMAN: how many patients whose admission type is emergency and diagnoses icd9 code is 56210?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = ""EMERGENCY"" AND diagnoses.icd9_code = ""56210""" 118,"###HUMAN: How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013?, ###ASSISTANT: SELECT COUNT(""Series Number"") FROM table_45278 WHERE ""Original Air Date"" < '1999' AND ""Number of Episodes"" > '7' AND ""DVD Region 1 release date"" = '16 april 2013'" 119,"###HUMAN: What away is there for the q3 round?, ###ASSISTANT: SELECT away FROM table_name_68 WHERE round = ""q3""" 120,"###HUMAN: how many competitions had a score of 1-0 at most ?, ###ASSISTANT: SELECT COUNT(*) FROM table_203_652 WHERE ""score"" = '1-0'" 121,"###HUMAN: What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5?, ###ASSISTANT: SELECT COUNT(""Silver"") FROM table_66695 WHERE ""Bronze"" > '1' AND ""Rank"" < '5'" 122,"###HUMAN: who was the sooners opponent after usc ?, ###ASSISTANT: SELECT ""opponent#"" FROM table_204_617 WHERE ""date"" > (SELECT ""date"" FROM table_204_617 WHERE ""opponent#"" = 'usc') ORDER BY ""date"" LIMIT 1" 123,"###HUMAN: list the top five most common drugs that patients were prescribed within 2 months after being prescribed oxycodone (sustained release) since 1 year ago., ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'oxycodone (sustained release)' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.startdate < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.startdate) AND DATETIME(t1.startdate, '+2 month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 5" 124,"###HUMAN: list all flights on sunday from SAN FRANCISCO to PITTSBURGH nonstop, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((flight.stops = 0) AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 125,"###HUMAN: How many times was the high rebounds by marcus camby (18)?, ###ASSISTANT: SELECT COUNT(""Date"") FROM table_29902 WHERE ""High rebounds"" = 'Marcus Camby (18)'" 126,"###HUMAN: What sponsor has the head coach Samad Marfavi?, ###ASSISTANT: SELECT ""Shirt sponsor"" FROM table_29469 WHERE ""Head coach"" = 'Samad Marfavi'" 127,"###HUMAN: what is date of birth and primary disease of subject name brian brock?, ###ASSISTANT: SELECT demographic.dob, demographic.diagnosis FROM demographic WHERE demographic.name = ""Brian Brock""" 128,"###HUMAN: Find the number of the enrollment date for all the tests that have 'Pass' result, and could you order x axis from high to low order please?, ###ASSISTANT: SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass"" GROUP BY date_of_enrolment ORDER BY date_of_enrolment DESC" 129,"###HUMAN: What is the Opponent at the Honda Center on March 29?, ###ASSISTANT: SELECT ""Opponent"" FROM table_61636 WHERE ""Arena"" = 'honda center' AND ""Date"" = 'march 29'" 130,"###HUMAN: Which team drafted Ron Annear?, ###ASSISTANT: SELECT nhl_team FROM table_2850912_10 WHERE player = ""Ron Annear""" 131,"###HUMAN: How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?, ###ASSISTANT: SELECT COUNT(wins) FROM table_name_13 WHERE podiums > 1 AND races = 9 AND season > 1984" 132,"###HUMAN: how many album entries are there ?, ###ASSISTANT: SELECT COUNT(""album"") FROM table_204_244" 133,"###HUMAN: What is the highest value for col(m) when prominence(m) is 3755?, ###ASSISTANT: SELECT MAX(""Col (m)"") FROM table_22713 WHERE ""Prominence (m)"" = '3755'" 134,"###HUMAN: what is the monthly minimum output (ml)-closed/suction drain right abdomen bulb 19 fr. output that patient 027-203413 has had since 11/07/2104?, ###ASSISTANT: SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-203413')) AND intakeoutput.celllabel = 'output (ml)-closed/suction drain right abdomen bulb 19 fr.' AND intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) >= '2104-11-07' GROUP BY STRFTIME('%y-%m', intakeoutput.intakeoutputtime)" 135,"###HUMAN: How many times is the ethnic group other: total?, ###ASSISTANT: SELECT COUNT(2001 AS __percentage) FROM table_282413_3 WHERE ethnic_group = ""Other: Total""" 136,"###HUMAN: Where is bobby jones (a)?, ###ASSISTANT: SELECT ""Place"" FROM table_50184 WHERE ""Player"" = 'bobby jones (a)'" 137,"###HUMAN: Find the number of students whose age is younger than the average age and group by students' last name in a bar chart, could you display by the x-axis from high to low?, ###ASSISTANT: SELECT LName, COUNT(LName) FROM Student WHERE Age < (SELECT AVG(Age) FROM Student) GROUP BY LName ORDER BY LName DESC" 138,"###HUMAN: What is Goals, when Assists is greater than 28, and when Player is Steve Walker?, ###ASSISTANT: SELECT goals FROM table_name_89 WHERE assists > 28 AND player = ""steve walker""" 139,"###HUMAN: What is the average Byes that has Ballarat FL of Sunbury against more than 1167?, ###ASSISTANT: SELECT AVG(byes) FROM table_name_70 WHERE ballarat_fl = ""sunbury"" AND against > 1167" 140,"###HUMAN: Name the gdp world rank for asian rank being 20, ###ASSISTANT: SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 20" 141,"###HUMAN: List all the MCs with 5 appearances who were inducted in 2007?, ###ASSISTANT: SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007" 142,"###HUMAN: what comes after fiskeby if, ###ASSISTANT: SELECT ""home team"" FROM table_204_361 WHERE id = (SELECT id FROM table_204_361 WHERE ""home team"" = 'fiskeby if') + 1" 143,"###HUMAN: since 1 year ago what were the three most frequent medications prescribed during the same hospital visit to the patients of age 40s after they had been diagnosed with alcohol withdrawal?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'alcohol withdrawal') AND DATETIME(diagnoses_icd.charttime) >= DATETIME(CURRENT_TIME(), '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.age BETWEEN 40 AND 49 AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3" 144,"###HUMAN: For what country does the golfer play who has a score of 72-65=137?, ###ASSISTANT: SELECT country FROM table_name_47 WHERE score = 72 - 65 = 137" 145,"###HUMAN: When was the runner-up Jane Geddes?, ###ASSISTANT: SELECT year FROM table_name_35 WHERE runner_up = ""jane geddes""" 146,"###HUMAN: what is the nationality when the ship is willerby?, ###ASSISTANT: SELECT ""Nationality"" FROM table_45309 WHERE ""Ship"" = 'willerby'" 147,"###HUMAN: What are the examples for the Australian ?, ###ASSISTANT: SELECT ""Examples"" FROM table_60037 WHERE ""Australian"" = 'æ'" 148,"###HUMAN: What is the Date with a Leading scorer with maurice williams (25), and a Score with 102 105?, ###ASSISTANT: SELECT ""Date"" FROM table_57891 WHERE ""Leading scorer"" = 'maurice williams (25)' AND ""Score"" = '102–105'" 149,"###HUMAN: when was patient 030-52395 received an intake for the first time since 03/26/2102., ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52395')) AND intakeoutput.cellpath LIKE '%intake%' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) >= '2102-03-26' ORDER BY intakeoutput.intakeoutputtime LIMIT 1" 150,"###HUMAN: What's the highest capacity for a position of 5 in 2004?, ###ASSISTANT: SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = ""5""" 151,"###HUMAN: what is discharge time of subject id 6983?, ###ASSISTANT: SELECT demographic.dischtime FROM demographic WHERE demographic.subject_id = ""6983""" 152,"###HUMAN: What is the NBA draft for ohio state?, ###ASSISTANT: SELECT ""NBA Draft"" FROM table_51428 WHERE ""College"" = 'ohio state'" 153,"###HUMAN: what country won the same number of bronze as great britain , yet did not win a gold medal ?, ###ASSISTANT: SELECT ""nation"" FROM table_203_206 WHERE ""nation"" <> 'great britain' AND ""bronze"" = (SELECT ""bronze"" FROM table_203_206 WHERE ""nation"" = 'great britain') AND ""gold"" = 0" 154,"###HUMAN: when was patient 015-96048 last prescribed for tylenol on their last hospital visit?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND medication.drugname = 'tylenol' ORDER BY medication.drugstarttime DESC LIMIT 1" 155,"###HUMAN: What is the incumbent for pennsylvania 15, ###ASSISTANT: SELECT incumbent FROM table_1342013_37 WHERE district = ""Pennsylvania 15""" 156,"###HUMAN: At what Venue was the Home team score 17.19 (121)?, ###ASSISTANT: SELECT ""Venue"" FROM table_55019 WHERE ""Home team score"" = '17.19 (121)'" 157,"###HUMAN: What was the playoff result where the league did not qualify in the Open Cup in 1998?, ###ASSISTANT: SELECT playoffs FROM table_2402864_1 WHERE open_cup = ""Did not qualify"" AND year = 1998" 158,"###HUMAN: Who was the driver in 1964?, ###ASSISTANT: SELECT driver FROM table_name_83 WHERE year = ""1964""" 159,"###HUMAN: which is the first church located in los angeles ?, ###ASSISTANT: SELECT ""church name"" FROM table_203_274 WHERE ""community"" = 'los angeles' ORDER BY id LIMIT 1" 160,"###HUMAN: what is the lowest round2 when round5 is 71 and round4 is more than 64?, ###ASSISTANT: SELECT MIN(""Round2"") FROM table_8511 WHERE ""Round5"" = '71' AND ""Round4"" > '64'" 161,"###HUMAN: What was the attendance for the game against miami dolphins?, ###ASSISTANT: SELECT ""Attendance"" FROM table_66129 WHERE ""Opponent"" = 'miami dolphins'" 162,"###HUMAN: What was the score of the game on December 11?, ###ASSISTANT: SELECT score FROM table_17360840_6 WHERE date = ""December 11""" 163,"###HUMAN: What is the date they played against fitzroy?, ###ASSISTANT: SELECT date FROM table_name_10 WHERE away_team = ""fitzroy""" 164,"###HUMAN: What is the place of the song 'Never Change'?, ###ASSISTANT: SELECT SUM(""Place"") FROM table_40447 WHERE ""Song"" = 'never change'" 165,"###HUMAN: For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, rank in descending by the the number of job id., ###ASSISTANT: SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC" 166,"###HUMAN: Show the number of companies whose headquarters are not from USA fpr each main industry in a bar chart, show X-axis in ascending order please., ###ASSISTANT: SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE Headquarters <> 'USA' GROUP BY Main_Industry ORDER BY Main_Industry" 167,"###HUMAN: What song placed higher than#4?, ###ASSISTANT: SELECT ""Song"" FROM table_64035 WHERE ""Place"" > '4'" 168,"###HUMAN: What year was the Beaudesert suburb club founded, ###ASSISTANT: SELECT founded FROM table_name_95 WHERE suburb = ""beaudesert""" 169,"###HUMAN: Visualize a bar chart about the distribution of date_address_to and the amount of date_address_to , and group by attribute other_details and bin date_address_to by weekday., ###ASSISTANT: SELECT date_address_to, COUNT(date_address_to) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC" 170,"###HUMAN: How was the player in the position of Center acquired?, ###ASSISTANT: SELECT ""Acquisition via"" FROM table_41725 WHERE ""Position"" = 'center'" 171,"###HUMAN: Catalog Nebdj068 was released when?, ###ASSISTANT: SELECT ""Date"" FROM table_39879 WHERE ""Catalog"" = 'nebdj068'" 172,"###HUMAN: What is average age for different job title Visualize by bar chart, I want to rank by the bars from low to high., ###ASSISTANT: SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job" 173,"###HUMAN: What was the To par score for the tournament with a margin of victory of 1 stroke?, ###ASSISTANT: SELECT ""To par"" FROM table_40653 WHERE ""Margin of victory"" = '1 stroke'" 174,"###HUMAN: On what date did the Brisbane Lions (1) win?, ###ASSISTANT: SELECT ""Cup FinalDate"" FROM table_56418 WHERE ""WinningTeam"" = 'brisbane lions (1)'" 175,"###HUMAN: What is the winning span for the name of bernard gallacher?, ###ASSISTANT: SELECT ""Winning span"" FROM table_23078 WHERE ""Name"" = 'Bernard Gallacher'" 176,"###HUMAN: count the number of patients whose ethnicity is black/african american and year of birth is less than 2076?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""BLACK/AFRICAN AMERICAN"" AND demographic.dob_year < ""2076""" 177,"###HUMAN: What is every year where opponent in the final is John Mcenroe at Wimbledon?, ###ASSISTANT: SELECT year FROM table_23235767_1 WHERE opponent_in_the_final = ""John McEnroe"" AND championship = ""Wimbledon""" 178,"###HUMAN: What was the home team for the game with more than 25,000 crowd?, ###ASSISTANT: SELECT ""Home team"" FROM table_33727 WHERE ""Crowd"" > '25,000'" 179,"###HUMAN: What's the performance of Dire Tune?, ###ASSISTANT: SELECT performance FROM table_name_89 WHERE athlete = ""dire tune""" 180,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of last_name and salary , show in descending by the X., ###ASSISTANT: SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME DESC" 181,"###HUMAN: What circuit had rnd 3?, ###ASSISTANT: SELECT ""Circuit"" FROM table_26503 WHERE ""Rnd"" = '3'" 182,"###HUMAN: Which date released had a Democratic Alternative value of 1% and Labour of 34%?, ###ASSISTANT: SELECT ""Date(s) Released"" FROM table_66678 WHERE ""Democratic Alternative"" = '1%' AND ""Labour"" = '34%'" 183,"###HUMAN: What was the score in the match against Kim Tiilikainen?, ###ASSISTANT: SELECT ""Score"" FROM table_68453 WHERE ""Opponent"" = 'kim tiilikainen'" 184,"###HUMAN: What is the wattage/TDP associated with model name 4x0?, ###ASSISTANT: SELECT ""TDP"" FROM table_26575 WHERE ""Model (list)"" = '4x0'" 185,"###HUMAN: Name a music director, belonging to a year after 2003?, ###ASSISTANT: SELECT music_director FROM table_name_86 WHERE year > 2003" 186,"###HUMAN: Find the average age of students living in each city with a bar chart., ###ASSISTANT: SELECT city_code, AVG(Age) FROM Student GROUP BY city_code" 187,"###HUMAN: What are the reigns and days held of all wrestlers?, ###ASSISTANT: SELECT reign, days_held FROM wrestler" 188,"###HUMAN: what was the first drug that was prescribed to patient 030-56105 through im route in 03/last year?, ###ASSISTANT: SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-56105')) AND medication.routeadmin = 'im' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', medication.drugstarttime) = '03' ORDER BY medication.drugstarttime LIMIT 1" 189,"###HUMAN: how many days has passed since patient 14671 had a creatinine laboratory test for the last time in the current hospital encounter?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', labevents.charttime)) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'creatinine') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14671 AND admissions.dischtime IS NULL) ORDER BY labevents.charttime DESC LIMIT 1" 190,"###HUMAN: what was the prescription drug that patient 27172 had received two or more times in 10/this year?, ###ASSISTANT: SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27172) AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', prescriptions.startdate) = '10' GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 >= 2" 191,"###HUMAN: What is the verb meaning for Saugen in part 1?, ###ASSISTANT: SELECT ""Verb meaning"" FROM table_44583 WHERE ""Part 1"" = 'saugen'" 192,"###HUMAN: What date did the away team Mansfield Town play?, ###ASSISTANT: SELECT date FROM table_name_56 WHERE away_team = ""mansfield town""" 193,"###HUMAN: count the number of patients who were diagnosed with valvular stenosis - aortic but did not come back to hospital within 2 months until 1 year ago., ###ASSISTANT: SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'valvular stenosis - aortic' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t1) - (SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'valvular stenosis - aortic' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t2 JOIN patient ON t2.uniquepid = patient.uniquepid WHERE t2.diagnosistime < patient.hospitaladmittime AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-1 year') AND DATETIME(patient.hospitaladmittime) BETWEEN DATETIME(t2.diagnosistime) AND DATETIME(t2.diagnosistime, '+2 month'))" 194,"###HUMAN: When was the team, whose captain is Matt Smith, founded?, ###ASSISTANT: SELECT ""Founded"" FROM table_17914 WHERE ""Captain"" = 'Matt Smith'" 195,"###HUMAN: List the physicians' employee ids together with their primary affiliation departments' ids. Plot them as scatter chart., ###ASSISTANT: SELECT Physician, Department FROM Affiliated_With WHERE PrimaryAffiliation = 1" 196,"###HUMAN: What is the lowest number of three pointers in games where the number of rebounds was 178?, ###ASSISTANT: SELECT MIN(three_pointers) FROM table_22824324_2 WHERE rebounds = 178" 197,"###HUMAN: What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?, ###ASSISTANT: SELECT ""Grand Slam"" FROM table_62130 WHERE ""Year"" = '1987' AND ""Round"" = 'first round' AND ""Winner"" = 'ivan lendl'" 198,"###HUMAN: How many faculty is there in total in the year of 2002?, ###ASSISTANT: SELECT SUM(faculty) FROM faculty WHERE YEAR = 2002" 199,"###HUMAN: What is the traffic direction of 70th street?, ###ASSISTANT: SELECT ""Traffic direction"" FROM table_56945 WHERE ""Street"" = '70th street'" 200,"###HUMAN: show me all flights from TORONTO, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'TORONTO' AND flight.from_airport = airport_service.airport_code" 201,"###HUMAN: Find Answer by Text and UserId., ###ASSISTANT: SELECT * FROM Posts WHERE OwnerUserId = '##UserId##' AND ParentId > 0 AND Body LIKE '%##Text##%'" 202,"###HUMAN: What school had a team name of the Trojans?, ###ASSISTANT: SELECT ""School"" FROM table_37988 WHERE ""Team Name"" = 'trojans'" 203,"###HUMAN: how many patients whose admission year is less than 2166 and drug name is loperamide?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < ""2166"" AND prescriptions.drug = ""Loperamide""" 204,"###HUMAN: How many tree species are in the kitechura reserve?, ###ASSISTANT: SELECT tree_species FROM table_16577990_1 WHERE central_forest_reserve = ""Kitechura""" 205,"###HUMAN: Tell me the horse when the faults are 9 and the total is 46.36, ###ASSISTANT: SELECT ""Horse"" FROM table_12013 WHERE ""Faults"" = '9' AND ""Total"" = '46.36'" 206,"###HUMAN: What average total has 0 as the gold, with 6 as the rank?, ###ASSISTANT: SELECT AVG(total) FROM table_name_69 WHERE gold = 0 AND rank = ""6""" 207,"###HUMAN: does patient 85169 had any drain out #1 jackson pratt output?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85169)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'drain out #1 jackson pratt' AND d_items.linksto = 'outputevents')" 208,"###HUMAN: What are the different names of the colleges involved in the tryout in alphabetical order?, ###ASSISTANT: SELECT DISTINCT cname FROM tryout ORDER BY cname" 209,"###HUMAN: what is the place when the score is 68-70-68=206?, ###ASSISTANT: SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206" 210,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and commission_pct , order in ascending by the total number., ###ASSISTANT: SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT" 211,"###HUMAN: what year did the rush allow the most goals ?, ###ASSISTANT: SELECT ""season"" FROM table_204_32 ORDER BY ""ga"" DESC LIMIT 1" 212,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, and I want to order from low to high by the y axis., ###ASSISTANT: SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID)" 213,"###HUMAN: How many of the female patients belonged to a black/cape verdean ethnic origin?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = ""F"" AND demographic.ethnicity = ""BLACK/CAPE VERDEAN""" 214,"###HUMAN: what are the five most frequently prescribed drugs in 2101 for patients prescribed with dexmedetomidine hcl at the same time?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'dexmedetomidine hcl' AND STRFTIME('%y', prescriptions.startdate) = '2101') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', prescriptions.startdate) = '2101') AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 5" 215,"###HUMAN: Return a bar chart on how many movie reviews does each director get?, and order in asc by the bars., ###ASSISTANT: SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director" 216,"###HUMAN: Total weeks of 49,980 attendance?, ###ASSISTANT: SELECT SUM(week) FROM table_name_55 WHERE attendance = 49 OFFSET 980" 217,"###HUMAN: Name the 2008 for 2012 of sf, ###ASSISTANT: SELECT 2008 FROM table_name_41 WHERE 2012 = ""sf""" 218,"###HUMAN: nejat konuk and dervi ş ero ğ lu are from which party ?, ###ASSISTANT: SELECT ""party"" FROM table_203_694 WHERE ""name"" IN ('nejat konuk', 'dervis eroglu')" 219,"###HUMAN: How many ansi codes are there for longitude 46.415037?, ###ASSISTANT: SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = ""46.415037""" 220,"###HUMAN: What's the railway number of a D(rebuild) class?, ###ASSISTANT: SELECT railway_number_s_ FROM table_name_28 WHERE class = ""d(rebuild)""" 221,"###HUMAN: screening egfr < 60 ml / min / 1.73 m2, ###ASSISTANT: SELECT * FROM table_train_169 WHERE estimated_glomerular_filtration_rate_egfr < 60" 222,"###HUMAN: what is the name of the drug that patient 002-41152 has been prescribed two or more times last month?, ###ASSISTANT: SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-41152')) AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') GROUP BY medication.drugname) AS t1 WHERE t1.c1 >= 2" 223,"###HUMAN: What is the average number lost when the PCT is more than 0.7334 and the total number of games is larger than 48?, ###ASSISTANT: SELECT AVG(""Lost"") FROM table_10468 WHERE ""Pct."" > '0.7334' AND ""Total Games"" > '48'" 224,"###HUMAN: how many times did patient 010-6098 since 128 months ago receive crystalloids?, ###ASSISTANT: SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-6098')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'crystalloids' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-128 month')" 225,"###HUMAN: how much does the minimum hospital cost including a procedure called hypotonic fluid administration - d5w until 1 year ago?, ###ASSISTANT: SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'hypotonic fluid administration - d5w')) AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY cost.patienthealthsystemstayid) AS t1" 226,"###HUMAN: How much is the lowest Operating Expenditures when Contributions are more than 8,245,241?, ###ASSISTANT: SELECT MIN(""Operating Expenditures"") FROM table_54361 WHERE ""Contributions"" > '8,245,241'" 227,"###HUMAN: what is the daily maximum amount of the foley of patient 14458 during their first hospital visit?, ###ASSISTANT: SELECT MAX(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14458 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'foley' AND d_items.linksto = 'outputevents') GROUP BY STRFTIME('%y-%m-%d', outputevents.charttime)" 228,"###HUMAN: How many gold medals does the country ranked higher than 2 with more than 8 bronze have?, ###ASSISTANT: SELECT SUM(""Gold"") FROM table_70723 WHERE ""Rank"" < '2' AND ""Bronze"" > '8'" 229,"###HUMAN: total number of models created ., ###ASSISTANT: SELECT COUNT(DISTINCT ""model name"") FROM table_203_873" 230,"###HUMAN: Which engine has a Year larger than 1969?, ###ASSISTANT: SELECT engine FROM table_name_7 WHERE year > 1969" 231,"###HUMAN: Who was the home team when the away team was Footscray?, ###ASSISTANT: SELECT ""Home team"" FROM table_53738 WHERE ""Away team"" = 'footscray'" 232,"###HUMAN: Which position was active in Jazz in 2002-03?, ###ASSISTANT: SELECT position FROM table_name_59 WHERE years_for_jazz = ""2002-03""" 233,"###HUMAN: on this month/27 what was the respiration minimum value of patient 005-87465?, ###ASSISTANT: SELECT MIN(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-87465')) AND NOT vitalperiodic.respiration IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', vitalperiodic.observationtime) = '27'" 234,"###HUMAN: Which actor won in 1966?, ###ASSISTANT: SELECT actor FROM table_name_43 WHERE year = 1966" 235,"###HUMAN: i would like the earliest morning flight from ATLANTA to PHILADELPHIA on wednesday morning, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 0 AND 1200) AND flight.departure_time = (SELECT MIN(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, date_day AS DATE_DAYalias1, days AS DAYSalias1, flight AS FLIGHTalias1 WHERE ((CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'PHILADELPHIA' AND DATE_DAYalias1.day_number = 23 AND DATE_DAYalias1.month_number = 4 AND DATE_DAYalias1.year = 1991 AND DAYSalias1.day_name = DATE_DAYalias1.day_name AND FLIGHTalias1.flight_days = DAYSalias1.days_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'ATLANTA' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code) AND FLIGHTalias1.departure_time BETWEEN 0 AND 1200)" 236,"###HUMAN: For outgoing manager is alberto malesani mention all the applicable replaced by person, ###ASSISTANT: SELECT ""Replaced by"" FROM table_3703 WHERE ""Outgoing manager"" = 'Alberto Malesani'" 237,"###HUMAN: How many losses are there for team tembetary?, ###ASSISTANT: SELECT losses FROM table_18703133_6 WHERE team = ""Tembetary""" 238,"###HUMAN: What is the main presenter of bulgaria?, ###ASSISTANT: SELECT main_presenters FROM table_1053802_1 WHERE region_country = ""Bulgaria""" 239,"###HUMAN: What is the original artist when the vocal percussionist is Alexei Kalveks?, ###ASSISTANT: SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = ""Alexei Kalveks""" 240,"###HUMAN: How many documents in different ending date? Return a line chart grouping by ending date., ###ASSISTANT: SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Date_in_Locaton_To" 241,"###HUMAN: What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?, ###ASSISTANT: SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = ""united states"" AND gold > 1" 242,"###HUMAN: What was the winning score of the Buy.com Siouxland Open?, ###ASSISTANT: SELECT ""Winning score"" FROM table_70472 WHERE ""Tournament"" = 'buy.com siouxland open'" 243,"###HUMAN: Provide me the number of patients born before 1846 who have an abnormal lab test status., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < ""1846"" AND lab.flag = ""abnormal""" 244,"###HUMAN: What is Country, when Previous Team (League) is 'Kingston Frontenacs ( OHL )', and when Player is 'Anthony Stewart Category:Articles with hCards'?, ###ASSISTANT: SELECT ""Country"" FROM table_59768 WHERE ""Previous team (League)"" = 'kingston frontenacs ( ohl )' AND ""Player"" = 'anthony stewart category:articles with hcards'" 245,"###HUMAN: Find the title and star rating of the movie that got the least rating star for each reviewer., ###ASSISTANT: SELECT T2.title, T1.rid, T1.stars, MIN(T1.stars) FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid GROUP BY T1.rid" 246,"###HUMAN: List roles that have more than one employee. List the role description and number of employees., ###ASSISTANT: SELECT roles.role_description, COUNT(employees.employee_id) FROM roles JOIN employees ON employees.role_code = roles.role_code GROUP BY employees.role_code HAVING COUNT(employees.employee_id) > 1" 247,"###HUMAN: What nations participated in 2007?, ###ASSISTANT: SELECT ""Nations"" FROM table_66466 WHERE ""Year"" = '2007'" 248,"###HUMAN: How many tourists visited the country that had 2.5 million tourists in 2011?, ###ASSISTANT: SELECT ""International tourist arrivals (2012)"" FROM table_34550 WHERE ""International tourist arrivals (2011)"" = '2.5 million'" 249,"###HUMAN: What stage did team Carrera Jeans-Tassoni have when Mario Cipollini won and Claudio Chiappucci had the points?, ###ASSISTANT: SELECT ""Stage"" FROM table_11219 WHERE ""Trofeo Fast Team"" = 'carrera jeans-tassoni' AND ""Winner"" = 'mario cipollini' AND ""Points classification"" = 'claudio chiappucci'" 250,"###HUMAN: Name the replaced by for august 9, ###ASSISTANT: SELECT ""Replaced by"" FROM table_27597 WHERE ""Date of vacancy"" = 'August 9' AND ""Date of appointment"" = 'August 9'" 251,"###HUMAN: What venue was on 27 May 2000?, ###ASSISTANT: SELECT venue FROM table_name_81 WHERE date = ""27 may 2000""" 252,"###HUMAN: has patient 029-584 ever had a medication prescribed the last year?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-584')) AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')" 253,"###HUMAN: What is Socket, when Part Number(s) is au80610003495aa?, ###ASSISTANT: SELECT ""Socket"" FROM table_9828 WHERE ""Part number(s)"" = 'au80610003495aa'" 254,"###HUMAN: how many hours have passed since the patient 95057 was admitted to the hospital?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 95057 AND admissions.dischtime IS NULL" 255,"###HUMAN: how many of the patients aged below 76 had migraine unspecified w/o ntrc mgrn?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < ""76"" AND diagnoses.short_title = ""Migrne unsp wo ntrc mgrn""" 256,"###HUMAN: Which To par has a Year of 1994?, ###ASSISTANT: SELECT to_par FROM table_name_24 WHERE year = 1994" 257,"###HUMAN: Draw a bar chart about the distribution of meter_700 and ID , and rank meter_700 in desc order., ###ASSISTANT: SELECT meter_700, ID FROM swimmer ORDER BY meter_700 DESC" 258,"###HUMAN: Which year was the peter jackson classic?, ###ASSISTANT: SELECT year FROM table_name_36 WHERE championship = ""peter jackson classic""" 259,"###HUMAN: TOTAL number of SUCCESSFUL questions., ###ASSISTANT: SELECT COUNT(DISTINCT p.Id) FROM Posts AS p WHERE p.PostTypeId = 1 AND NOT p.AcceptedAnswerId IS NULL" 260,"###HUMAN: when did patient 19040 first get a procedure on their first hospital visit?, ###ASSISTANT: SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19040 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY procedures_icd.charttime LIMIT 1" 261,"###HUMAN: what are the procedures that are the top four most commonly received?, ###ASSISTANT: SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4" 262,"###HUMAN: what is the number of patients whose gender is f and primary disease is st elevated myocardial infarction\cardiac cath?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = ""F"" AND demographic.diagnosis = ""ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH""" 263,"###HUMAN: give me the number of patients whose diagnoses short title is enterococcus group d?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = ""Enterococcus group d""" 264,"###HUMAN: What district has a constituency of 60?, ###ASSISTANT: SELECT district FROM table_name_27 WHERE constituency_number = ""60""" 265,"###HUMAN: When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?, ###ASSISTANT: SELECT ""Year"" FROM table_14553 WHERE ""Points"" < '1' AND ""Engine"" = 'cosworth v8' AND ""Entrant"" = 'jolly club switzerland'" 266,"###HUMAN: For the flyers, what's the minimum capacity?, ###ASSISTANT: SELECT MIN(""Capacity"") FROM table_20718 WHERE ""Team Nickname"" = 'Flyers'" 267,"###HUMAN: give the number of patients who are born before 2180 with a ivpca drug route., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < ""2180"" AND prescriptions.route = ""IVPCA""" 268,"###HUMAN: You can return a bar chart with employees' first names and their salaries, display by the y axis from high to low., ###ASSISTANT: SELECT FIRST_NAME, SALARY FROM employees ORDER BY SALARY DESC" 269,"###HUMAN: Name the scores for chris ramsey and carol vorderman, ###ASSISTANT: SELECT scores FROM table_23292220_17 WHERE seans_team = ""Chris Ramsey and Carol Vorderman""" 270,"###HUMAN: What is the number of games for the season with 10 ties?, ###ASSISTANT: SELECT games FROM table_name_86 WHERE tied = 10" 271,"###HUMAN: What year did she place 8th in the junior race?, ###ASSISTANT: SELECT year FROM table_name_9 WHERE event = ""junior race"" AND position = ""8th""" 272,"###HUMAN: A bar chart for what are the number of the descriptions of the categories that products with product descriptions that contain the letter t are in?, and rank y-axis in ascending order., ###ASSISTANT: SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY COUNT(product_category_description)" 273,"###HUMAN: What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?, ###ASSISTANT: SELECT MIN(""Earnings ($)"") FROM table_56530 WHERE ""Money list rank"" = '6' AND ""Starts"" < '22'" 274,"###HUMAN: What year had 32 moves?, ###ASSISTANT: SELECT SUM(""Year"") FROM table_8509 WHERE ""Moves"" = '32'" 275,"###HUMAN: how long was the m1894 rifle 's barrel ?, ###ASSISTANT: SELECT ""barrel length"" FROM table_204_343 WHERE ""model"" = 'm1894 rifle'" 276,"###HUMAN: How many Atts that have Yards of 43 and a Long larger than 43?, ###ASSISTANT: SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43" 277,"###HUMAN: How many times are listed for 31 May for the rider ranked 5?, ###ASSISTANT: SELECT COUNT(mon_31_may) FROM table_25220821_4 WHERE rank = 5" 278,"###HUMAN: Plot how many name by grouped by name as a bar graph, and sort by the total number in descending., ###ASSISTANT: SELECT name, COUNT(name) FROM train GROUP BY name ORDER BY COUNT(name) DESC" 279,"###HUMAN: Which constructor has a Time/Retired of +37.311?, ###ASSISTANT: SELECT ""Constructor"" FROM table_56316 WHERE ""Time/Retired"" = '+37.311'" 280,"###HUMAN: What is the 2007 result when the 2010 result was 2r, at the US Open?, ###ASSISTANT: SELECT 2007 FROM table_name_91 WHERE 2010 = ""2r"" AND tournament = ""us open""" 281,"###HUMAN: when does the train arriving at bourne at 11.45 departure, ###ASSISTANT: SELECT ""Departure"" FROM table_22277 WHERE ""Going to"" = 'Bourne' AND ""Arrival"" = '11.45'" 282,"###HUMAN: Users with close-vote privileges ordered by last access date.., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY LastAccessDate DESC) AS "" "", Id AS ""user_link"", LastAccessDate FROM Users WHERE Reputation > 3000 ORDER BY LastAccessDate DESC" 283,"###HUMAN: Which Time/Retired has a Grid smaller than 3, and a Driver of mika h kkinen?, ###ASSISTANT: SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = ""mika häkkinen""" 284,"###HUMAN: What was the higest attendance on November 9, 1958?, ###ASSISTANT: SELECT MAX(attendance) FROM table_name_4 WHERE date = ""november 9, 1958""" 285,"###HUMAN: How many losses did the team with 22 goals for andmore than 8 games played have?, ###ASSISTANT: SELECT COUNT(""Losses"") FROM table_78521 WHERE ""Goals For"" = '22' AND ""Games Played"" > '8'" 286,"###HUMAN: What is the largest overall number of major hurricanes?, ###ASSISTANT: SELECT MAX(number_of_major_hurricanes) FROM table_2930244_3" 287,"###HUMAN: count the number of patients whose primary disease is morbid obesity/sda and drug name is soln.?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = ""MORBID OBESITY/SDA"" AND prescriptions.drug = ""Soln.""" 288,"###HUMAN: What is Position, when Caps is Example, and When Player is Shane Kelly?, ###ASSISTANT: SELECT ""Position"" FROM table_41531 WHERE ""Caps"" = 'example' AND ""Player"" = 'shane kelly'" 289,"###HUMAN: Which Proto-Austronesian has a Proto-Oceanic of *lima?, ###ASSISTANT: SELECT proto_austronesian FROM table_name_97 WHERE proto_oceanic = ""*lima""" 290,"###HUMAN: What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2 0?, ###ASSISTANT: SELECT ""Away team"" FROM table_60349 WHERE ""Score"" = '2–0' AND ""Home team"" = 'wolverhampton wanderers'" 291,"###HUMAN: The match against Oleg Taktarov had what result?, ###ASSISTANT: SELECT res FROM table_name_19 WHERE opponent = ""oleg taktarov""" 292,"###HUMAN: what is the four most frequently ordered procedure for a patient with an age 40s?, ###ASSISTANT: SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4" 293,"###HUMAN: What was the featured in Engine through rounds 10-13?, ###ASSISTANT: SELECT ""Engine"" FROM table_55779 WHERE ""Rounds"" = '10-13'" 294,"###HUMAN: What was Laurel's division record?, ###ASSISTANT: SELECT ""Division Record"" FROM table_67113 WHERE ""School"" = 'laurel'" 295,"###HUMAN: What is the lowest Games, when Name is Jeremiah Massey, and when Points is less than 340?, ###ASSISTANT: SELECT MIN(games) FROM table_name_91 WHERE name = ""jeremiah massey"" AND points < 340" 296,"###HUMAN: How many people wrote the episode directed by Arvin Brown?, ###ASSISTANT: SELECT COUNT(written_by) FROM table_30030227_1 WHERE directed_by = ""Arvin Brown""" 297,"###HUMAN: How many years was ensign n180b a Chassis with 4 points?, ###ASSISTANT: SELECT SUM(""Year"") FROM table_70406 WHERE ""Points"" = '4' AND ""Chassis"" = 'ensign n180b'" 298,"###HUMAN: among patients who were diagnosed with routine circumcision during a year before, what are the top three most frequent procedures that followed afterwards within 2 months?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'routine circumcision') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3)" 299,"###HUMAN: Which Opponent has an Away of 1 1, and a Home of 3 3?, ###ASSISTANT: SELECT ""Opponent"" FROM table_75827 WHERE ""Away"" = '1–1' AND ""Home"" = '3–3'" 300,"###HUMAN: what is marital status and primary disease of subject id 74032?, ###ASSISTANT: SELECT demographic.marital_status, demographic.diagnosis FROM demographic WHERE demographic.subject_id = ""74032""" 301,"###HUMAN: What was the venue that had a friendly match competition?, ###ASSISTANT: SELECT venue FROM table_name_49 WHERE competition = ""friendly match""" 302,"###HUMAN: count the number of patients diagnosed with acute respiratory failure who did not come back to the hospital within 2 months of the diagnosis., ###ASSISTANT: SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute respiratory failure') AS t1) - (SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute respiratory failure') AS t2 JOIN patient ON t2.uniquepid = patient.uniquepid WHERE t2.diagnosistime < patient.hospitaladmittime AND DATETIME(patient.hospitaladmittime) BETWEEN DATETIME(t2.diagnosistime) AND DATETIME(t2.diagnosistime, '+2 month'))" 303,"###HUMAN: A bar chart shows the distribution of All_Games and School_ID , and could you list by the bars in desc?, ###ASSISTANT: SELECT All_Games, School_ID FROM basketball_match ORDER BY All_Games DESC" 304,"###HUMAN: How many faculty members participate in each activity? Return the activity names and the number of faculty members by a bar chart, and display Y-axis in asc order., ###ASSISTANT: SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*)" 305,"###HUMAN: what is the population where municipality is san jacinto?, ###ASSISTANT: SELECT population__2010_ FROM table_1691800_2 WHERE municipality = ""San Jacinto""" 306,"###HUMAN: What is the NBA Draft for the School Bishop O'Connell High School?, ###ASSISTANT: SELECT nba_draft FROM table_name_10 WHERE school = ""bishop o'connell high school""" 307,"###HUMAN: What is the average round in which a Safety with an overall rank higher than 89 was drafted?, ###ASSISTANT: SELECT AVG(""Round"") FROM table_33305 WHERE ""Position"" = 'safety' AND ""Overall"" > '89'" 308,"###HUMAN: What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance?, ###ASSISTANT: SELECT AVG(""Worst score"") FROM table_33270 WHERE ""Best dancer"" = 'mario lopez' AND ""Dance"" = 'tango'" 309,"###HUMAN: what lab test did patient 006-207754 last receive since 97 months ago?, ###ASSISTANT: SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-207754')) AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-97 month') ORDER BY lab.labresulttime DESC LIMIT 1" 310,"###HUMAN: Show the different statuses and the numbers of roller coasters for each status., ###ASSISTANT: SELECT Status, COUNT(*) FROM roller_coaster GROUP BY Status" 311,"###HUMAN: Which character was nominated in the 2010 Indian Television Academy Awards?, ###ASSISTANT: SELECT character FROM table_name_1 WHERE year = 2010 AND award_ceremony = ""indian television academy awards""" 312,"###HUMAN: What was the score on May 3?, ###ASSISTANT: SELECT score FROM table_name_35 WHERE date = ""may 3""" 313,"###HUMAN: which rider completed all 21 laps of the 2008 malaysian motorcycle grand prixwith the longest time ?, ###ASSISTANT: SELECT ""rider"" FROM table_203_166 WHERE ""laps"" = 21 ORDER BY ""pos"" DESC LIMIT 1" 314,"###HUMAN: Who directed the episode with the production code 176252?, ###ASSISTANT: SELECT ""Directed by"" FROM table_19654 WHERE ""Production code"" = '176252'" 315,"###HUMAN: who won more gold medals , brazil or china ?, ###ASSISTANT: SELECT ""nation"" FROM table_203_630 WHERE ""nation"" IN ('brazil', 'china') ORDER BY ""gold"" DESC LIMIT 1" 316,"###HUMAN: New answers or questions from specific period., ###ASSISTANT: SELECT Q.Id AS ""post_link"", Q.LastActivityDate FROM Posts AS Q WHERE Q.PostTypeId = 1 AND NOT Q.Tags LIKE @Pattern AND Q.LastActivityDate BETWEEN @SubFrom AND @SubTo AND (Q.CreationDate BETWEEN @From AND @To OR EXISTS(SELECT * FROM Posts AS A WHERE A.PostTypeId = 2 AND A.ParentId = Q.Id AND A.CreationDate BETWEEN @From AND @To)) ORDER BY Q.LastActivityDate" 317,"###HUMAN: Find the name of female patients who had a granular casts lab test., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = ""F"" AND lab.label = ""Granular Casts""" 318,"###HUMAN: What date was the game played at Punt Road Oval?, ###ASSISTANT: SELECT ""Date"" FROM table_53058 WHERE ""Venue"" = 'punt road oval'" 319,"###HUMAN: What is the series number when al horford (10) had the high rebounds?, ###ASSISTANT: SELECT ""Series"" FROM table_3873 WHERE ""High rebounds"" = 'Al Horford (10)'" 320,"###HUMAN: what is ethnicity of subject id 16438?, ###ASSISTANT: SELECT demographic.ethnicity FROM demographic WHERE demographic.subject_id = ""16438""" 321,"###HUMAN: what is the name of the drug which patient 004-29334 was allergic to since 03/2104?, ###ASSISTANT: SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-29334')) AND STRFTIME('%y-%m', allergy.allergytime) >= '2104-03'" 322,"###HUMAN: What was the manner of departure for notts county with an incoming manager of martin allen, ###ASSISTANT: SELECT manner_of_departure FROM table_26914759_3 WHERE team = ""Notts County"" AND incoming_manager = ""Martin Allen""" 323,"###HUMAN: which player had the status to the fourth round lost to tsvetana pironkova [32] Answers:, ###ASSISTANT: SELECT player FROM table_29572583_20 WHERE status = ""Fourth round lost to Tsvetana Pironkova [32]""" 324,"###HUMAN: What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?, ###ASSISTANT: SELECT home FROM table_name_44 WHERE visitor = ""modo hockey"" AND date = ""thursday, december 11""" 325,"###HUMAN: What is the lowest round for an overall pick of 349 with a pick number in the round over 11?, ###ASSISTANT: SELECT MIN(""Round"") FROM table_76383 WHERE ""Overall"" = '349' AND ""Pick"" > '11'" 326,"###HUMAN: Which team has a qualifying 2 time under 59.612 and a best of 59.14?, ###ASSISTANT: SELECT ""Team"" FROM table_38485 WHERE ""Qual 2"" < '59.612' AND ""Best"" = '59.14'" 327,"###HUMAN: What is the title of the production code 1acx09?, ###ASSISTANT: SELECT title FROM table_18734298_1 WHERE production_code = ""1ACX09""" 328,"###HUMAN: what type of airplane is an M80, ###ASSISTANT: SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = 'M80'" 329,"###HUMAN: Show me a line chart to show the change of salary for those employees whose first name does not containing the letter M over the corresponding hire date., ###ASSISTANT: SELECT HIRE_DATE, SALARY FROM employees WHERE NOT FIRST_NAME LIKE '%M%'" 330,"###HUMAN: calculate the number of patients admitted to emergency who had colostomy, not otherwise specified., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = ""EMERGENCY"" AND procedures.long_title = ""Colostomy, not otherwise specified""" 331,"###HUMAN: The home team has a score of 12.9 (81) what is the score of the away team?, ###ASSISTANT: SELECT ""Away team score"" FROM table_56896 WHERE ""Home team score"" = '12.9 (81)'" 332,"###HUMAN: What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?, ###ASSISTANT: SELECT AVG(""Goals Conceded (GC)"") FROM table_53653 WHERE ""Goals Scored (GF)"" > '19' AND ""Points (Pts.)"" = '31' AND ""Draw (PE)"" > '7'" 333,"###HUMAN: what measurement does the contestant from sindelfingen have?, ###ASSISTANT: SELECT ""Measurements (in cm)"" FROM table_3565 WHERE ""City"" = 'Sindelfingen'" 334,"###HUMAN: has the 'arterial bp mean' level of patient 433 remained normal since 10/23/2105?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 433)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND chartevents.valuenum BETWEEN mean_bp_lower AND mean_bp_upper AND STRFTIME('%y-%m-%d', chartevents.charttime) >= '2105-10-23'" 335,"###HUMAN: provide the number of patients whose discharge location is short term hospital and admission year is before 2198, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""SHORT TERM HOSPITAL"" AND demographic.admityear < ""2198""" 336,"###HUMAN: Find the name of the ships that have more than one captain., ###ASSISTANT: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1" 337,"###HUMAN: Which Runner-up has a Winning score of 20 (70-69-64-65=268)?, ###ASSISTANT: SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268)" 338,"###HUMAN: what is the game where the high points is by manu gin bili (26)?, ###ASSISTANT: SELECT game FROM table_27715173_8 WHERE high_points = ""Manu Ginóbili (26)""" 339,"###HUMAN: What are the average Laps on Grid 15?, ###ASSISTANT: SELECT AVG(""Laps"") FROM table_50944 WHERE ""Grid"" = '15'" 340,"###HUMAN: What event was in a year later than 2007 and in the 88th position?, ###ASSISTANT: SELECT ""Event"" FROM table_66598 WHERE ""Year"" > '2007' AND ""Position"" = '88th'" 341,"###HUMAN: Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53?, ###ASSISTANT: SELECT MAX(""Goals against"") FROM table_53525 WHERE ""Wins"" = '19' AND ""Goals for"" > '53'" 342,"###HUMAN: what is the name of the first player on this list ?, ###ASSISTANT: SELECT ""player"" FROM table_203_871 WHERE id = 1" 343,"###HUMAN: What inverse subjunctive has as the imperative and a subjunctive of se m chadn?, ###ASSISTANT: SELECT ""inverse subjunctive"" FROM table_42917 WHERE ""imperative"" = '—' AND ""subjunctive"" = 'se måchadn'" 344,"###HUMAN: Which term in office has a qld state, a Party of labor, and an Electorate of fisher?, ###ASSISTANT: SELECT term_in_office FROM table_name_76 WHERE state = ""qld"" AND party = ""labor"" AND electorate = ""fisher""" 345,"###HUMAN: A bar chart for what are the number of the descriptions of all the project outcomes?, and show X in desc order., ###ASSISTANT: SELECT outcome_description, COUNT(outcome_description) FROM Research_Outcomes AS T1 JOIN Project_Outcomes AS T2 ON T1.outcome_code = T2.outcome_code GROUP BY outcome_description ORDER BY outcome_description DESC" 346,"###HUMAN: users with my same first name who have twitter in their about me., ###ASSISTANT: SELECT COUNT(*) FROM Users WHERE DisplayName LIKE 'Abby %' AND WebsiteUrl LIKE '%twitter%'" 347,"###HUMAN: What is the score for the player who won $3,600?, ###ASSISTANT: SELECT score FROM table_name_40 WHERE money___$__ = ""3,600""" 348,"###HUMAN: Name the most field goals, ###ASSISTANT: SELECT MAX(""Field goals"") FROM table_72533" 349,"###HUMAN: What year did jockey Ramon Dominguez have a distance of 1-1/16?, ###ASSISTANT: SELECT ""Year"" FROM table_53833 WHERE ""Distance"" = '1-1/16' AND ""Jockey"" = 'ramon dominguez'" 350,"###HUMAN: What is the largest vote result if loss/gain is -0.5%?, ###ASSISTANT: SELECT MAX(""Result - votes"") FROM table_73867 WHERE ""Loss/gain"" = '-0.5%'" 351,"###HUMAN: What is the sum for December when the record was 22-12-5?, ###ASSISTANT: SELECT SUM(""December"") FROM table_36845 WHERE ""Record"" = '22-12-5'" 352,"###HUMAN: Find the number of professors in each office with a bar chart, and order y axis in descending order., ###ASSISTANT: SELECT PROF_OFFICE, COUNT(PROF_OFFICE) FROM PROFESSOR AS T1 JOIN EMPLOYEE AS T2 ON T1.EMP_NUM = T2.EMP_NUM GROUP BY PROF_OFFICE ORDER BY COUNT(PROF_OFFICE) DESC" 353,"###HUMAN: How many members did Africa have the year that Australia had 94615?, ###ASSISTANT: SELECT ""Africa"" FROM table_22851 WHERE ""Australia"" = '94615'" 354,"###HUMAN: List the total number of years that have a score of 3 6, 4 6, 2 6., ###ASSISTANT: SELECT COUNT(""Year"") FROM table_2533 WHERE ""Score in the final"" = '3–6, 4–6, 2–6'" 355,"###HUMAN: What is the result when the Indianapolis Colts are the opponents?, ###ASSISTANT: SELECT ""Result"" FROM table_55184 WHERE ""Opponent"" = 'indianapolis colts'" 356,"###HUMAN: Which country does FC Atyrau represent after the 2006 season?, ###ASSISTANT: SELECT country FROM table_name_67 WHERE season > 2006 AND team = ""fc atyrau""" 357,"###HUMAN: Who played in the Toronto Raptors from 1995-96?, ###ASSISTANT: SELECT ""Player"" FROM table_15857 WHERE ""Years in Toronto"" = '1995-96'" 358,"###HUMAN: What's the sub-parish (sokn) of Eikefjord?, ###ASSISTANT: SELECT ""Sub-Parish (Sokn)"" FROM table_21949 WHERE ""Location of the Church"" = 'Eikefjord'" 359,"###HUMAN: what's the first elected with district illinois 18, ###ASSISTANT: SELECT first_elected FROM table_1341472_15 WHERE district = ""Illinois 18""" 360,"###HUMAN: What is the highest production number released on 1955-04-02 with i. freleng as the director?, ###ASSISTANT: SELECT MAX(""Production Number"") FROM table_79458 WHERE ""Director"" = 'i. freleng' AND ""Release date"" = '1955-04-02'" 361,"###HUMAN: Orphan questions that were migrated from another site. Questions that were migrated and have no owner, ###ASSISTANT: SELECT p.Id AS ""post_link"", p.CreationDate AS ""date"", p.OwnerDisplayName AS ""current_user_name"", ph.Comment AS ""comment"" FROM Posts AS p INNER JOIN PostHistory AS ph ON ph.PostId = p.Id WHERE ph.PostHistoryTypeId = 17 AND p.PostTypeId = 1 AND p.OwnerUserId IS NULL ORDER BY p.Id DESC LIMIT 1000" 362,"###HUMAN: For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time, and I want to sort y-axis from low to high order., ###ASSISTANT: SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(EMPLOYEE_ID)" 363,"###HUMAN: What is the Skip when the Third was john morris?, ###ASSISTANT: SELECT skip FROM table_name_61 WHERE third = ""john morris""" 364,"###HUMAN: Show the number of documents for each location code in a bar chart., ###ASSISTANT: SELECT Location_Code, COUNT(Location_Code) FROM Document_Locations GROUP BY Location_Code" 365,"###HUMAN: What is the 3rd largest when 2nd largest in Minab?, ###ASSISTANT: SELECT ""3rd Largest"" FROM table_48113 WHERE ""2nd Largest"" = 'minab'" 366,"###HUMAN: What type of game was held against France with the results of 3:1?, ###ASSISTANT: SELECT ""Type of game"" FROM table_6658 WHERE ""Results\u00b9"" = '3:1' AND ""Opponent"" = 'france'" 367,"###HUMAN: Give the number of patients that died with a drug named pneumococcal vac polyvalent., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = ""1"" AND prescriptions.drug = ""PNEUMOcoccal Vac Polyvalent""" 368,"###HUMAN: Which song had Central Station as a label and whose album was Various - Wild Nights 4?, ###ASSISTANT: SELECT ""Song"" FROM table_31987 WHERE ""Label"" = 'central station' AND ""Album"" = 'various - wild nights 4'" 369,"###HUMAN: Who had more than 3 wins?, ###ASSISTANT: SELECT ""Winner"" FROM table_10510 WHERE ""Win #"" > '3'" 370,"###HUMAN: how many times was the televote/sms 2.39% and the place more than 9?, ###ASSISTANT: SELECT COUNT(""Draw"") FROM table_66500 WHERE ""Televote/SMS"" = '2.39%' AND ""Place"" > '9'" 371,"###HUMAN: from WASHINGTON to ATLANTA, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 372,"###HUMAN: plasma creatinine > 2 mg / dl., ###ASSISTANT: SELECT * FROM table_train_119 WHERE plasma_creatinine > 2" 373,"###HUMAN: how many years did an jae sung play ?, ###ASSISTANT: SELECT ""years played"" FROM table_204_177 WHERE ""player"" = 'an jae-sung'" 374,"###HUMAN: Name the week for date of bye, ###ASSISTANT: SELECT ""Week"" FROM table_39203 WHERE ""Date"" = 'bye'" 375,"###HUMAN: A bar chart for what are the number of the names of the workshop groups that have bookings with status code 'stop'?, I want to list by the Y in asc., ###ASSISTANT: SELECT Store_Name, COUNT(Store_Name) FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop"" GROUP BY Store_Name ORDER BY COUNT(Store_Name)" 376,"###HUMAN: What is the sum of the drawn values for teams with 2 losses?, ###ASSISTANT: SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2" 377,"###HUMAN: What is the average rating of songs for each language. Plot them as pie chart., ###ASSISTANT: SELECT languages, AVG(rating) FROM song GROUP BY languages" 378,"###HUMAN: What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?, ###ASSISTANT: SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 1" 379,"###HUMAN: How many patients of black/cape verdean ethnicity were primarily diagnosed with the disease colangitis, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""BLACK/CAPE VERDEAN"" AND demographic.diagnosis = ""COLANGITIS""" 380,"###HUMAN: What is the proportion of each customer's move in date? Show me the bar chart., ###ASSISTANT: SELECT date_moved_in, COUNT(date_moved_in) FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY date_moved_in" 381,"###HUMAN: Can you draw the trend of sum attendance over the binning year?, show by the X-axis in descending., ###ASSISTANT: SELECT year, SUM(attendance) FROM home_game ORDER BY year DESC" 382,"###HUMAN: What are the vocal types used in song 'Le Pop'?, ###ASSISTANT: SELECT type FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" 383,"###HUMAN: what is the most weeks on chart when the peak position is less than 5 and from Sweden?, ###ASSISTANT: SELECT MAX(""Weeks on chart"") FROM table_79845 WHERE ""Peak position"" < '5' AND ""Country"" = 'sweden'" 384,"###HUMAN: Count the number of patients died in or before year 2111 whose lab test fluid is ascites., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= ""2111.0"" AND lab.fluid = ""Ascites""" 385,"###HUMAN: What was the series in season 2009?, ###ASSISTANT: SELECT series FROM table_name_61 WHERE season = 2009" 386,"###HUMAN: What is the maximum pesticide concentration ever found in a commodity?, ###ASSISTANT: SELECT MAX(concen) FROM resultsdata15" 387,"###HUMAN: What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?, ###ASSISTANT: SELECT MAX(""International mail"") FROM table_45338 WHERE ""Change"" = '+0,2%' AND ""Domestic mail"" < '0'" 388,"###HUMAN: What is the park & ride lot for the Temple Square station?, ###ASSISTANT: SELECT park_and_ride_lot FROM table_name_97 WHERE station_name = ""temple square""" 389,"###HUMAN: Name the total number of player for 51 points, ###ASSISTANT: SELECT COUNT(player) FROM table_22824319_3 WHERE points = 51" 390,"###HUMAN: Name of David Kimball, and an Overall smaller than 229 is what highest round?, ###ASSISTANT: SELECT MAX(round) FROM table_name_51 WHERE name = ""david kimball"" AND overall < 229" 391,"###HUMAN: How is the crowd of the team Geelong?, ###ASSISTANT: SELECT AVG(""Crowd"") FROM table_53964 WHERE ""Away team"" = 'geelong'" 392,"###HUMAN: flights from MILWAUKEE to PHOENIX on saturday or sunday AA, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, flight WHERE (((flight.airline_code = 'AA') AND ((flight.flight_days = DAYS_0.days_code AND DAYS_0.day_name = DATE_DAY_0.day_name AND DATE_DAY_0.year = 1991 AND DATE_DAY_0.month_number = 7 AND DATE_DAY_0.day_number = 26) OR (flight.flight_days = DAYS_1.days_code AND DAYS_1.day_name = DATE_DAY_1.day_name AND DATE_DAY_1.year = 1991 AND DATE_DAY_1.month_number = 7 AND DATE_DAY_1.day_number = 26))) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHOENIX' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MILWAUKEE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 393,"###HUMAN: provide the number of patients whose discharge location is snf and days of hospital stay is greater than 13?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""SNF"" AND demographic.days_stay > ""13""" 394,"###HUMAN: For each team, how many technicians are there, and sort from high to low by the y axis., ###ASSISTANT: SELECT Team, COUNT(*) FROM technician GROUP BY Team ORDER BY COUNT(*) DESC" 395,"###HUMAN: what is average age of patients whose marital status is married and discharge location is home health care?, ###ASSISTANT: SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = ""MARRIED"" AND demographic.discharge_location = ""HOME HEALTH CARE""" 396,"###HUMAN: September 23, 1973 landed on which week of the season?, ###ASSISTANT: SELECT ""Week"" FROM table_70568 WHERE ""Date"" = 'september 23, 1973'" 397,"###HUMAN: Where was the method of tko?, ###ASSISTANT: SELECT location FROM table_name_34 WHERE method = ""tko""" 398,"###HUMAN: What Partner has a Construction Start of 2008 january?, ###ASSISTANT: SELECT partner FROM table_name_2 WHERE construction_start = ""2008 january""" 399,"###HUMAN: calculate the number of medications that patient 52898 has been prescribed in 2105., ###ASSISTANT: SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52898) AND STRFTIME('%y', prescriptions.startdate) = '2105'" 400,"###HUMAN: what are the top three most frequently used specimen tests given to patients in the same hospital visit after being diagnosed with poison-medicinal agt nos?, ###ASSISTANT: SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'poison-medicinal agt nos')) AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime, admissions.hadm_id FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND t1.hadm_id = t2.hadm_id GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 3" 401,"###HUMAN: what are the five most frequently prescribed drugs since 5 years ago for patients prescribed with atropine 0.1 mg/ml inj syringe at the same time?, ###ASSISTANT: SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'atropine 0.1 mg/ml inj syringe' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-5 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-5 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE DATETIME(t1.drugstarttime) = DATETIME(t2.drugstarttime) GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5" 402,"###HUMAN: When was the date of death for the person married to Charles II?, ###ASSISTANT: SELECT death FROM table_name_86 WHERE spouse = ""charles ii""" 403,"###HUMAN: count the number of patients whose gender is f and procedure icd9 code is 4610?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = ""F"" AND procedures.icd9_code = ""4610""" 404,"###HUMAN: How many points did Carlin have when they had 3 wins?, ###ASSISTANT: SELECT points FROM table_name_90 WHERE wins = ""3"" AND team = ""carlin""" 405,"###HUMAN: In the final, who are the opponents of partner Simon Aspelin?, ###ASSISTANT: SELECT ""Opponents in the final"" FROM table_35942 WHERE ""Partner"" = 'simon aspelin'" 406,"###HUMAN: how much does the arterial bp [systolic] of patient 8116 vary second measured on the current intensive care unit visit compared to the first value measured on the current intensive care unit visit?, ###ASSISTANT: SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1 OFFSET 1) - (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1)" 407,"###HUMAN: Name the representative for party of whig, ###ASSISTANT: SELECT ""Representative"" FROM table_69618 WHERE ""Party"" = 'whig'" 408,"###HUMAN: What is the status of the district where the result is 63% 37%?, ###ASSISTANT: SELECT status FROM table_16185956_1 WHERE results = ""63% 37%""" 409,"###HUMAN: What is the Kashmiri word for the Indonesian word senin?, ###ASSISTANT: SELECT kashmiri FROM table_name_90 WHERE indonesian = ""senin""" 410,"###HUMAN: how many female patients followed the procedure ven cath renal dialysis?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = ""F"" AND procedures.short_title = ""Ven cath renal dialysis""" 411,"###HUMAN: Which City of license has a Call sign of k241an?, ###ASSISTANT: SELECT city_of_license FROM table_name_68 WHERE call_sign = ""k241an""" 412,"###HUMAN: Where is the orchestra when the year of recording is 1934?, ###ASSISTANT: SELECT ""Orchestra"" FROM table_73366 WHERE ""Year of Recording"" = '1934'" 413,"###HUMAN: How many number of site have May 1, 2004 as the date?, ###ASSISTANT: SELECT COUNT(site) FROM table_22098274_1 WHERE date = ""May 1, 2004""" 414,"###HUMAN: how many times has patient 015-56390 recieved a enteral tube intake: nasoduodenal nostril, r 10f intake in 12/last year?, ###ASSISTANT: SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-56390')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'enteral tube intake: nasoduodenal nostril, r 10f' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', intakeoutput.intakeoutputtime) = '12'" 415,"###HUMAN: What is Current Rank, when Ring Name is Kimurayama Mamoru?, ###ASSISTANT: SELECT ""Current rank"" FROM table_40076 WHERE ""Ring name"" = 'kimurayama mamoru'" 416,"###HUMAN: What was the nationality of the skater with 108.8 points?, ###ASSISTANT: SELECT nation FROM table_name_52 WHERE points = 108.8" 417,"###HUMAN: what are the top four most frequently diagnosed diagnoses among the patients in the 20s since 1 year ago?, ###ASSISTANT: SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4" 418,"###HUMAN: What is the total number of To Par, when Score is '70-75-76=221'?, ###ASSISTANT: SELECT COUNT(""To par"") FROM table_45574 WHERE ""Score"" = '70-75-76=221'" 419,"###HUMAN: For CS , are there any upper elective courses offered ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id" 420,"###HUMAN: Number of unanswered question (zero answers) per month., ###ASSISTANT: SELECT LAST_DATE_OF_MONTH(q.CreationDate), COUNT(q.Id) AS Count FROM Posts AS q WHERE (q.PostTypeId = 1) AND (q.AnswerCount = 0) GROUP BY LAST_DATE_OF_MONTH(q.CreationDate) ORDER BY LAST_DATE_OF_MONTH(q.CreationDate)" 421,"###HUMAN: flights from KANSAS CITY to CLEVELAND on wednesday before 1700, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time < 1700 AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CLEVELAND' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'KANSAS CITY' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 422,"###HUMAN: What is the total number of 2012 Employees (Total) when 2007 Employees (Total) is 8,985, and rank (2010) is smaller than 9?, ###ASSISTANT: SELECT COUNT(""2012 Employees (Total)"") FROM table_63078 WHERE ""2007 Employees (Total)"" = '8,985' AND ""Rank (2010)"" < '9'" 423,"###HUMAN: With a rank of 2 what is the second quarter?, ###ASSISTANT: SELECT ""Second quarter"" FROM table_36998 WHERE ""Rank"" = '2'" 424,"###HUMAN: What party did hilda solis represent?, ###ASSISTANT: SELECT ""Party"" FROM table_22126 WHERE ""Incumbent"" = 'Hilda Solis'" 425,"###HUMAN: what was the last height of patient 005-73237 in the last month., ###ASSISTANT: SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-73237') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY patient.unitadmittime DESC LIMIT 1" 426,"###HUMAN: how old was patient 035-18528's age during the first hospital visit?, ###ASSISTANT: SELECT patient.age FROM patient WHERE patient.uniquepid = '035-18528' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1" 427,"###HUMAN: What is the score for Greg Norman, ###ASSISTANT: SELECT ""Score"" FROM table_12721 WHERE ""Player"" = 'greg norman'" 428,"###HUMAN: What is the Artist with a Date that is june 1979?, ###ASSISTANT: SELECT ""Artist"" FROM table_40579 WHERE ""Date"" = 'june 1979'" 429,"###HUMAN: how many married patients have lab test item id 51214?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = ""MARRIED"" AND lab.itemid = ""51214""" 430,"###HUMAN: Name the total number of series for march 19, 2000, ###ASSISTANT: SELECT COUNT(""No. in series"") FROM table_22590 WHERE ""Original air date"" = 'March 19, 2000'" 431,"###HUMAN: What is the line of the station in Toolamba that is currently demolished and closed in the late 1970s?, ###ASSISTANT: SELECT ""Line"" FROM table_14710 WHERE ""Current Status"" = 'demolished' AND ""Closed"" = 'late 1970s' AND ""Location"" = 'toolamba'" 432,"###HUMAN: What is every value on Thursday August 25 for rank 3?, ###ASSISTANT: SELECT thurs_25_aug FROM table_30058355_3 WHERE rank = 3" 433,"###HUMAN: what diagnosis did patient 025-53910 receive last?, ###ASSISTANT: SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-53910')) ORDER BY diagnosis.diagnosistime DESC LIMIT 1" 434,"###HUMAN: What is the location for the club trophy?, ###ASSISTANT: SELECT location FROM table_name_69 WHERE type = ""club trophy""" 435,"###HUMAN: How many values of total top 3 placements does Taiwan have?, ###ASSISTANT: SELECT COUNT(total_top_3_placements) FROM table_2876467_3 WHERE region_represented = ""Taiwan""" 436,"###HUMAN: What are the names of the airports in the city of Goroka?, ###ASSISTANT: SELECT name FROM airports WHERE city = 'Goroka'" 437,"###HUMAN: Questions by date - backwards., ###ASSISTANT: SELECT Id, Score, ViewCount, Title, Tags, LastActivityDate, CreationDate FROM Posts WHERE PostTypeId = 1 ORDER BY CreationDate LIMIT 50" 438,"###HUMAN: What is the Date for the game at michie stadium west point, ny?, ###ASSISTANT: SELECT date FROM table_name_80 WHERE location = ""michie stadium • west point, ny""" 439,"###HUMAN: Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0?, ###ASSISTANT: SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0" 440,"###HUMAN: When is a Type of tko, and an Opponent of jesse brinkley, ###ASSISTANT: SELECT date FROM table_name_53 WHERE type = ""tko"" AND opponent = ""jesse brinkley""" 441,"###HUMAN: What was Shaun Murphy's outcome in the Premier League Snooker championship held before 2010?, ###ASSISTANT: SELECT outcome FROM table_name_1 WHERE championship = ""premier league snooker"" AND year < 2010" 442,"###HUMAN: Which commission was launched 28 june 1934, and has a Pennant number of h.78?, ###ASSISTANT: SELECT commissioned FROM table_name_40 WHERE launched = ""28 june 1934"" AND pennant_number = ""h.78""" 443,"###HUMAN: Which Total Pts have a 2001 02 Pts smaller than 38?, ###ASSISTANT: SELECT MIN(""Total Pts"") FROM table_78639 WHERE ""2001\u201302 Pts"" < '38'" 444,"###HUMAN: give me the difference between the total of the input and the output of patient 26057 on 12/27/this year., ###ASSISTANT: SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26057)) AND DATETIME(inputevents_cv.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m-%d', inputevents_cv.charttime) = '12-27') - (SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26057)) AND DATETIME(outputevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m-%d', outputevents.charttime) = '12-27')" 445,"###HUMAN: Find the dates on which more than one revisions were made, and the bin the date of latest revision into weekday interval and count them as a line chart., ###ASSISTANT: SELECT date_of_latest_revision, COUNT(date_of_latest_revision) FROM Catalogs" 446,"###HUMAN: What is the acronym for the name Malay of Kolej Komuniti Sungai Petani?, ###ASSISTANT: SELECT ""Acronym"" FROM table_61910 WHERE ""Name in Malay"" = 'kolej komuniti sungai petani'" 447,"###HUMAN: What year has earnings of $557,158?, ###ASSISTANT: SELECT MAX(""Year"") FROM table_35365 WHERE ""Earnings ($)"" = '557,158'" 448,"###HUMAN: what's the points against with won being 11, ###ASSISTANT: SELECT points_against FROM table_14058433_4 WHERE won = ""11""" 449,"###HUMAN: What was the team score when Tim Duncan (12) got the high rebounds?, ###ASSISTANT: SELECT ""Score"" FROM table_29788 WHERE ""High rebounds"" = 'Tim Duncan (12)'" 450,"###HUMAN: what was the name of the drug that patient 433 had been prescribed two or more times?, ###ASSISTANT: SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 433) GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 >= 2" 451,"###HUMAN: did patient 027-151154 receive angiogram - with coiling at other hospitals?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '027-151154' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '027-151154' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'angiogram - with coiling'" 452,"###HUMAN: Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777, ###ASSISTANT: SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777" 453,"###HUMAN: until 95 months ago, had entacapone ever been prescribed to patient 7241?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7241) AND prescriptions.drug = 'entacapone' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-95 month')" 454,"###HUMAN: what was last value of heart rate of patient 14467 today?, ###ASSISTANT: SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14467)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') ORDER BY chartevents.charttime DESC LIMIT 1" 455,"###HUMAN: What is the place of the Pinyin transcription Xi Wangri?, ###ASSISTANT: SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = ""Xi Wangri""" 456,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the average of salary bin hire_date by weekday., ###ASSISTANT: SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)" 457,"###HUMAN: Count the number of patients on a main drug type prescription with diagnoses icd9 code 41512., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = ""41512"" AND prescriptions.drug_type = ""MAIN""" 458,"###HUMAN: Name the least game for score of l 93 109 (ot), ###ASSISTANT: SELECT MIN(game) FROM table_23186738_9 WHERE score = ""L 93–109 (OT)""" 459,"###HUMAN: Top 10 Users from India by Reputation., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS ""#"", Id AS ""user_link"", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC LIMIT 100" 460,"###HUMAN: Show me about the distribution of meter_300 and meter_100 in a bar chart, and I want to show Y from low to high order., ###ASSISTANT: SELECT meter_300, meter_100 FROM swimmer ORDER BY meter_100" 461,"###HUMAN: How many completion students in each day? Return a bar chart binning date of completion by weekday, and I want to sort y-axis in asc order., ###ASSISTANT: SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment ORDER BY COUNT(date_of_completion)" 462,"###HUMAN: had patient 016-9636 excreted output amt-chest tube a in 12/this year?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-9636')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'output amt-chest tube a' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', intakeoutput.intakeoutputtime) = '12'" 463,"###HUMAN: Count the names of all the products in the store and return me a bar chart, could you order Name in asc order?, ###ASSISTANT: SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name" 464,"###HUMAN: who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989, ###ASSISTANT: SELECT pitcher FROM table_19864214_3 WHERE seasons = ""1982, 1984, 1985, 1987, 1988, 1989""" 465,"###HUMAN: List first name and last name of customers that have more than 2 payments., ###ASSISTANT: SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2" 466,"###HUMAN: what was the number of patients that were tested since 5 years ago for sputum, tracheal specimen microbiology?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'sputum, tracheal specimen' AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-5 year'))" 467,"###HUMAN: What is the player listed when the score is 68-70-68-69=275, ###ASSISTANT: SELECT player FROM table_28498999_5 WHERE score = 68 - 70 - 68 - 69 = 275" 468,"###HUMAN: what's the name of the specimen test that was first given to patient 40967 during the last hospital encounter?, ###ASSISTANT: SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40967 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) ORDER BY microbiologyevents.charttime LIMIT 1" 469,"###HUMAN: What is the Loan Club from Eng that ended on 22 February?, ###ASSISTANT: SELECT loan_club FROM table_name_57 WHERE country = ""eng"" AND ended = ""22 february""" 470,"###HUMAN: What is the maximum renewable energy (gw h) for the state of Delaware?, ###ASSISTANT: SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = ""Delaware""" 471,"###HUMAN: How many competitions in each competition type? And split them by country, show in desc by the x-axis., ###ASSISTANT: SELECT Country, COUNT(Country) FROM competition GROUP BY Competition_type, Country ORDER BY Country DESC" 472,"###HUMAN: Which game had a result of 126-95?, ###ASSISTANT: SELECT ""Game"" FROM table_75338 WHERE ""Result"" = '126-95'" 473,"###HUMAN: All posts of a user., ###ASSISTANT: SELECT OwnerUserId AS ""user_link"", u.DisplayName, p.Id AS ""post_link"", ParentId AS ""post_link"", Title FROM Posts AS p LEFT OUTER JOIN Users AS u ON u.Id = OwnerUserId WHERE OwnerUserId = 65889" 474,"###HUMAN: In which club is Ledley King a captain?, ###ASSISTANT: SELECT club FROM table_name_3 WHERE captain = ""ledley king""" 475,"###HUMAN: Which team had 21 points?, ###ASSISTANT: SELECT ""Team"" FROM table_20007 WHERE ""Points"" = '21'" 476,"###HUMAN: With Round 3 and Pick # over 10, what is the higher Overall number?, ###ASSISTANT: SELECT MAX(overall) FROM table_name_38 WHERE round = 3 AND pick__number > 10" 477,"###HUMAN: Who is the tournament winner in the Atlantic Coast Conference?, ###ASSISTANT: SELECT tournament_winner FROM table_22779004_1 WHERE conference = ""Atlantic Coast conference""" 478,"###HUMAN: what is the latest FIRST class flight of the day leaving DALLAS for SAN FRANCISCO, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'FIRST' AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time = (SELECT MAX(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, fare_basis AS FARE_BASISalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE (CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'SAN FRANCISCO' AND FARE_BASISalias1.class_type = 'FIRST' AND FAREalias1.fare_basis_code = FARE_BASISalias1.fare_basis_code AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'DALLAS' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code)" 479,"###HUMAN: has patient 030-8973 had any enteral osmolte 1.5 intake since 66 months ago., ###ASSISTANT: SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-8973')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'enteral osmolte 1.5' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-66 month')" 480,"###HUMAN: which district has the greatest total number of electorates ?, ###ASSISTANT: SELECT ""district"" FROM table_204_255 GROUP BY ""district"" ORDER BY SUM(""number of electorates (2009)"") DESC LIMIT 1" 481,"###HUMAN: What is the title and source for the game developed by Hydravision Entertainment?, ###ASSISTANT: SELECT ""Title and source"" FROM table_3580 WHERE ""Developer"" = 'Hydravision Entertainment'" 482,"###HUMAN: give me the number of patients whose year of death is less than or equal to 2158 and procedure icd9 code is 3615?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= ""2158.0"" AND procedures.icd9_code = ""3615""" 483,"###HUMAN: Which college has fewer than 2 rounds?, ###ASSISTANT: SELECT ""College"" FROM table_35540 WHERE ""Round"" < '2'" 484,"###HUMAN: What was the score for a game with the odds of p + 2 after 1847?, ###ASSISTANT: SELECT score FROM table_name_36 WHERE odds = ""p + 2"" AND date > 1847" 485,"###HUMAN: What is the district with the result mac collins (r) unopposed?, ###ASSISTANT: SELECT district FROM table_27021001_1 WHERE result = ""Mac Collins (R) unopposed""" 486,"###HUMAN: what are the four most commonly prescribed drugs for patients who are prescribed cefepime at the same time?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'cefepime') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id) AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4" 487,"###HUMAN: Name the least world rank for south american rank 3, ###ASSISTANT: SELECT MIN(world_rank) FROM table_2249087_1 WHERE south_american_rank = 3" 488,"###HUMAN: what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ?, ###ASSISTANT: SELECT ""Color Quality"" FROM table_65068 WHERE ""Proxy"" = 'x' AND ""Encryption"" = 'x' AND ""Web Client"" = 'x' AND ""Authentication"" = '✓'" 489,"###HUMAN: Which Advanced Portuguese courses have 8 credits , can you show me ?, ###ASSISTANT: SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Advanced Portuguese%' OR name LIKE '%Advanced Portuguese%') AND credits = 8" 490,"###HUMAN: select Title, Posts.Id, PostLinks.RelatedPostId, PostLinks.PostId from Posts inner join PostLinks O., ###ASSISTANT: SELECT Title, Posts.Id, PostLinks.RelatedPostId, PostLinks.PostId FROM Posts INNER JOIN PostLinks ON PostLinks.LinkTypeId = 3 AND (Posts.Id = PostLinks.PostId OR Posts.Id = PostLinks.RelatedPostId)" 491,"###HUMAN: How many faculty members did the university that conferred the most degrees in 2002 have?, ###ASSISTANT: SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1" 492,"###HUMAN: which was the first state to be formed ?, ###ASSISTANT: SELECT ""name"" FROM table_203_190 ORDER BY ""formed"" LIMIT 1" 493,"###HUMAN: what was the number of winners from spain ?, ###ASSISTANT: SELECT ""winners"" FROM table_203_600 WHERE ""country"" = 'spain'" 494,"###HUMAN: how many patients were diagnosed as having transaminase elevation within 2 months after being diagnosed with hypoglycemia?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'transaminase elevation') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypoglycemia') AS t2 WHERE t1.diagnosistime < t2.diagnosistime AND DATETIME(t2.diagnosistime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')" 495,"###HUMAN: Calculate the total number of patients admitted before the year 2174, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < ""2174""" 496,"###HUMAN: What is the for the f136fb engine?, ###ASSISTANT: SELECT ""Usage"" FROM table_14101 WHERE ""Engine"" = 'f136fb'" 497,"###HUMAN: When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?, ###ASSISTANT: SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = ""Middle Assyrian Empire""" 498,"###HUMAN: Top 100K users by hit rate (accepted answer percentage rate). 100 users having the highest accepted answer percentage rate (among users with >100 answers), ###ASSISTANT: SELECT u.Id AS ""user_link"", COUNT(a.Id), (CAST(SUM(CASE WHEN a.Id = q.AcceptedAnswerId THEN 1 ELSE 0 END) AS FLOAT) / COUNT(a.Id)) * 100 AS HitRate FROM Users AS u JOIN Posts AS a ON a.OwnerUserId = u.Id AND a.PostTypeId = 2 JOIN Posts AS q ON a.ParentId = q.Id GROUP BY u.Id HAVING COUNT(a.Id) > 25 ORDER BY HitRate DESC LIMIT 100000" 499,"###HUMAN: How many Against have a Team of hespanha, and Points smaller than 30?, ###ASSISTANT: SELECT COUNT(""Against"") FROM table_40250 WHERE ""Team"" = 'hespanha' AND ""Points"" < '30'" 500,"###HUMAN: Name the market value for rhb capital, ###ASSISTANT: SELECT ""Market Value (billion $)"" FROM table_73087 WHERE ""Company"" = 'RHB Capital'" 501,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time, could you list total number of employee id in ascending order?, ###ASSISTANT: SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID)" 502,"###HUMAN: who is the replacement when the team is milton keynes dons?, ###ASSISTANT: SELECT replaced_by FROM table_name_10 WHERE team = ""milton keynes dons""" 503,"###HUMAN: What is Name, when Authors are Kammerer & Sidor?, ###ASSISTANT: SELECT name FROM table_name_51 WHERE authors = ""kammerer & sidor""" 504,"###HUMAN: What is every value for Under-17 if Under-15 is Maria Elena Ubina?, ###ASSISTANT: SELECT under_17 FROM table_26368963_2 WHERE under_15 = ""Maria Elena Ubina""" 505,"###HUMAN: What league has a value of 0 29 (152) for Europe?, ###ASSISTANT: SELECT ""League"" FROM table_15444 WHERE ""Europe"" = '0 29 (152)'" 506,"###HUMAN: Which Tally has a County of limerick, and a Rank larger than 1?, ###ASSISTANT: SELECT ""Tally"" FROM table_13261 WHERE ""County"" = 'limerick' AND ""Rank"" > '1'" 507,"###HUMAN: count the number of patients who have received a coronar arteriogr-2 cath procedure in the same hospital visit after having received a partial ostectomy nec., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'partial ostectomy nec')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'coronar arteriogr-2 cath')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND t1.hadm_id = t2.hadm_id" 508,"###HUMAN: papers written by authors Richard Ladner and Linda Shapiro, ###ASSISTANT: SELECT DISTINCT WRITES_0.paperid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'Richard Ladner' AND AUTHOR_1.authorname = 'Linda Shapiro' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.paperid" 509,"###HUMAN: Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77?, ###ASSISTANT: SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = ""bostick"" AND rating < 91.77" 510,"###HUMAN: What is year Built of the Moulin de Momalle Mill?, ###ASSISTANT: SELECT MAX(""Built"") FROM table_79591 WHERE ""Name of mill"" = 'moulin de momalle'" 511,"###HUMAN: If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?, ###ASSISTANT: SELECT rider FROM table_25220821_3 WHERE thurs_3_june = ""20' 27.93 110.615mph""" 512,"###HUMAN: What is the total subframe count with Bits of 18 22?, ###ASSISTANT: SELECT SUM(subframe__number) FROM table_name_48 WHERE bits = ""18–22""" 513,"###HUMAN: What is the total capacity of venues that opened in 1999?, ###ASSISTANT: SELECT COUNT(capacity) FROM table_name_15 WHERE opened = ""1999""" 514,"###HUMAN: What date is week 3?, ###ASSISTANT: SELECT date FROM table_name_77 WHERE week = 3" 515,"###HUMAN: Name the most middle schools for 2005-2006, ###ASSISTANT: SELECT MAX(middle_schools) FROM table_2367847_2 WHERE year = ""2005-2006""" 516,"###HUMAN: What was the record set during the game played at Hubert H. Humphrey Metrodome?, ###ASSISTANT: SELECT record FROM table_13258851_2 WHERE game_site = ""Hubert H. Humphrey Metrodome""" 517,"###HUMAN: does air florida have more or less than four aircrafts scheduled ?, ###ASSISTANT: SELECT (SELECT ""aircraft scheduled"" FROM table_204_215 WHERE ""airline"" = 'air florida') > 4" 518,"###HUMAN: What year did Culver leave?, ###ASSISTANT: SELECT SUM(year_left) FROM table_name_71 WHERE location = ""culver""" 519,"###HUMAN: My undeleted closed ID questions., ###ASSISTANT: SELECT * FROM Votes AS v WHERE v.UserId = 52" 520,"###HUMAN: how much does it cost for dexamethasone 4 mg po tabs?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'dexamethasone 4 mg po tabs')" 521,"###HUMAN: What is the highest year named for the name Tie Fluctus?, ###ASSISTANT: SELECT MAX(""Year named"") FROM table_21081 WHERE ""Name"" = 'Tie Fluctus'" 522,"###HUMAN: What is Country, when Score is '69-69=138', and when Player is 'Ian Poulter'?, ###ASSISTANT: SELECT country FROM table_name_20 WHERE score = 69 - 69 = 138 AND player = ""ian poulter""" 523,"###HUMAN: Which rider was on the 600cc Yamaha team?, ###ASSISTANT: SELECT rider FROM table_name_44 WHERE team = ""600cc yamaha""" 524,"###HUMAN: was the value of calculated total co2 of patient 14671 second measured on the current hospital visit less than its value first measured on the current hospital visit?, ###ASSISTANT: SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14671 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2') ORDER BY labevents.charttime LIMIT 1 OFFSET 1) < (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14671 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2') ORDER BY labevents.charttime LIMIT 1)" 525,"###HUMAN: Name the tournament for march 25, 2012, ###ASSISTANT: SELECT tournament FROM table_name_24 WHERE date = ""march 25, 2012""" 526,"###HUMAN: Will Prof. David Moon teach 597 next semester ?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 597 AND instructor.name LIKE '%David Moon%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016" 527,"###HUMAN: what were the number of innings albert clapp had ?, ###ASSISTANT: SELECT ""innings"" FROM table_204_154 WHERE ""player"" = 'albert clapp'" 528,"###HUMAN: Show aircraft names and number of flights for each aircraft., ###ASSISTANT: SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid" 529,"###HUMAN: what is the overall number of times when the calendar showed october 6, ###ASSISTANT: SELECT COUNT(record) FROM table_27733909_1 WHERE date = ""October 6""" 530,"###HUMAN: Name the tries against when tries for is 30, ###ASSISTANT: SELECT ""Tries against"" FROM table_22025 WHERE ""Tries for"" = '30'" 531,"###HUMAN: WHAT IS THE ROUND FOR ZACH BOYCHUK?, ###ASSISTANT: SELECT COUNT(""Round"") FROM table_49926 WHERE ""Player"" = 'zach boychuk'" 532,"###HUMAN: what is maximum age of patients whose gender is m and discharge location is short term hospital?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = ""M"" AND demographic.discharge_location = ""SHORT TERM HOSPITAL""" 533,"###HUMAN: How many people attended the game on week 3?, ###ASSISTANT: SELECT AVG(attendance) FROM table_name_26 WHERE week = 3" 534,"###HUMAN: Please show different types of artworks with the corresponding number of artworks of each type., ###ASSISTANT: SELECT type, COUNT(*) FROM artwork GROUP BY type" 535,"###HUMAN: what is the total number of priests that have held the job in resita ?, ###ASSISTANT: SELECT COUNT(""first name"") FROM table_204_734" 536,"###HUMAN: Which school was Lawrence Roberts from ?, ###ASSISTANT: SELECT ""School/Club Team"" FROM table_46045 WHERE ""Player"" = 'lawrence roberts'" 537,"###HUMAN: What is the total number of Silver, when Gold is '1', and when Bronze is less than 0?, ###ASSISTANT: SELECT COUNT(silver) FROM table_name_35 WHERE gold = 1 AND bronze < 0" 538,"###HUMAN: What is the col location with a col height (m) of 1107?, ###ASSISTANT: SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107" 539,"###HUMAN: What is Venue, when Status is '2007 Rugby World Cup', when Against is less than 22, and when Date is '08/09/2007'?, ###ASSISTANT: SELECT venue FROM table_name_22 WHERE status = ""2007 rugby world cup"" AND against < 22 AND date = ""08/09/2007""" 540,"###HUMAN: What was the result of the match in Penrith that featured a score of 48-12?, ###ASSISTANT: SELECT ""Result"" FROM table_4661 WHERE ""Score"" = '48-12' AND ""City"" = 'penrith'" 541,"###HUMAN: Show the number of the countries that have managers of age above 50 or below 46., ###ASSISTANT: SELECT Country, COUNT(Country) FROM manager WHERE Age > 50 OR Age < 46 GROUP BY Country" 542,"###HUMAN: what is the number of patients whose marital status is widowed and procedure icd9 code is 4105?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = ""WIDOWED"" AND procedures.icd9_code = ""4105""" 543,"###HUMAN: What was the date of the game that had a goal of 3?, ###ASSISTANT: SELECT ""Date"" FROM table_71388 WHERE ""Goal"" = '3'" 544,"###HUMAN: DALLAS to SAN FRANCISCO leaving after 1600 in the afternoon please, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.departure_time > 1600 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 545,"###HUMAN: what is date of birth and diagnoses short title of subject id 66411?, ###ASSISTANT: SELECT demographic.dob, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = ""66411""" 546,"###HUMAN: What's the abbreviation for libya?, ###ASSISTANT: SELECT abbreviation FROM table_name_88 WHERE country = ""libya""" 547,"###HUMAN: What is the total number of games for the opponent in Washington?, ###ASSISTANT: SELECT COUNT(game) FROM table_name_89 WHERE opponent = ""washington""" 548,"###HUMAN: Which opponent's game was less than 76 when the march was 10?, ###ASSISTANT: SELECT opponent FROM table_name_45 WHERE game < 76 AND march = 10" 549,"###HUMAN: what is minimum age of patients whose gender is f and age is greater than or equal to 30?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = ""F"" AND demographic.age >= ""30""" 550,"###HUMAN: What finish time started at 32?, ###ASSISTANT: SELECT ""Finish"" FROM table_58371 WHERE ""Start"" = '32'" 551,"###HUMAN: For those employees who did not have any job in the past, find hire_date and the amount of hire_date bin hire_date by time, and visualize them by a bar chart., ###ASSISTANT: SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)" 552,"###HUMAN: What player that has a Position of df, and Loaned to is Stoke City?, ###ASSISTANT: SELECT player FROM table_name_89 WHERE position = ""df"" AND loaned_to = ""stoke city""" 553,"###HUMAN: get me the number of patients suffering from celo-vessicle fistula primary disease., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""CELO-VESSICLE FISTULA""" 554,"###HUMAN: What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?, ###ASSISTANT: SELECT MAX(""Dave Viewers"") FROM table_28053 WHERE ""Dave ja vu Viewers"" = '119000'" 555,"###HUMAN: Bar chart of mean salary from each dept name, and rank by the X-axis in desc., ###ASSISTANT: SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name DESC" 556,"###HUMAN: has patient 015-59552 had any milrinone intake since 06/10/2105., ###ASSISTANT: SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-59552')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'milrinone' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) >= '2105-06-10'" 557,"###HUMAN: who is the champion where semi-finalist #2 is na and location is morrisville, nc, ###ASSISTANT: SELECT ""Champion"" FROM table_16524 WHERE ""Semi-Finalist #2"" = 'NA' AND ""Location"" = 'Morrisville, NC'" 558,"###HUMAN: mark skaife was the winnter of atcc round 1 , but what was the name of his team ?, ###ASSISTANT: SELECT ""team"" FROM table_203_271 WHERE ""series"" = 'atcc round 1' AND ""winner"" = 'mark skaife'" 559,"###HUMAN: Who is the player in guard position from Stephen F. Austin in a round less than 8?, ###ASSISTANT: SELECT ""Player"" FROM table_45213 WHERE ""Round"" < '8' AND ""Position"" = 'guard' AND ""School/Club Team"" = 'stephen f. austin'" 560,"###HUMAN: What stadium was the game held in when the final score was 17-31?, ###ASSISTANT: SELECT stadium FROM table_name_88 WHERE final_score = ""17-31""" 561,"###HUMAN: What is the average Acquired when the Number shows as 7?, ###ASSISTANT: SELECT AVG(acquired) FROM table_name_73 WHERE number = 7" 562,"###HUMAN: How many viewers tuned in for season 2?, ###ASSISTANT: SELECT us_viewers__million_ FROM table_22347090_4 WHERE no_in_season = 2" 563,"###HUMAN: When was the Masters Tournament?, ###ASSISTANT: SELECT ""Date"" FROM table_55448 WHERE ""Tournament"" = 'masters tournament'" 564,"###HUMAN: Show the residences that have both a player of gender 'M' and a player of gender 'F'., ###ASSISTANT: SELECT Residence FROM player WHERE gender = ""M"" INTERSECT SELECT Residence FROM player WHERE gender = ""F""" 565,"###HUMAN: How many Attendances on may 24?, ###ASSISTANT: SELECT MIN(""Attendance"") FROM table_36390 WHERE ""Date"" = 'may 24'" 566,"###HUMAN: Are there sections of BIOMEDE 430 between the hours of 8:00 and 1:00 ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '1:00' AND course_offering.start_time >= '8:00' AND course.course_id = course_offering.course_id AND course.department = 'BIOMEDE' AND course.number = 430 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016" 567,"###HUMAN: In what episode was segment D ned Can Corn?, ###ASSISTANT: SELECT MAX(""Episode"") FROM table_19894 WHERE ""Segment D"" = 'ned Can Corn'" 568,"###HUMAN: Who directed 'running the gauntlet'?, ###ASSISTANT: SELECT ""Director"" FROM table_3916 WHERE ""Title"" = 'Running the Gauntlet'" 569,"###HUMAN: What is the class of the team that has a behind of +44.780?, ###ASSISTANT: SELECT class FROM table_name_18 WHERE behind = ""+44.780""" 570,"###HUMAN: Would you mind informing me what all of the ULCS classes are ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id" 571,"###HUMAN: display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a T ., ###ASSISTANT: SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%')" 572,"###HUMAN: What Round against Aleksander Emelianenko had a time of 5:00?, ###ASSISTANT: SELECT ""Round"" FROM table_40258 WHERE ""Time"" = '5:00' AND ""Opponent"" = 'aleksander emelianenko'" 573,"###HUMAN: which company has a person that can wear clothing in 33-23-36, ###ASSISTANT: SELECT agency FROM table_27515452_3 WHERE sizes = ""33-23-36""" 574,"###HUMAN: Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6?, ###ASSISTANT: SELECT ""Nation"" FROM table_48308 WHERE ""Gold"" > '0' AND ""Total"" > '4' AND ""Rank"" = '6'" 575,"###HUMAN: For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the amount of hire_date bin hire_date by weekday in a bar chart, and rank from high to low by the Y please., ###ASSISTANT: SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC" 576,"###HUMAN: If the record is 5-8, what is the team name?, ###ASSISTANT: SELECT ""Team"" FROM table_73512 WHERE ""Record"" = '5-8'" 577,"###HUMAN: How many courses for each subject? Plot a bar chart, could you display bar in ascending order?, ###ASSISTANT: SELECT subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY subject_name" 578,"###HUMAN: Are there any Teams after 1997?, ###ASSISTANT: SELECT ""Team"" FROM table_69280 WHERE ""Year"" > '1997'" 579,"###HUMAN: What skip has angela tuvaeva as the lead?, ###ASSISTANT: SELECT ""Skip"" FROM table_75427 WHERE ""Lead"" = 'angela tuvaeva'" 580,"###HUMAN: Create a pie chart showing the total number across outcome code., ###ASSISTANT: SELECT outcome_code, COUNT(*) FROM Mailshot_Customers GROUP BY outcome_code" 581,"###HUMAN: What is Home, when Score is 103-93?, ###ASSISTANT: SELECT home FROM table_name_95 WHERE score = ""103-93""" 582,"###HUMAN: What is Television Service, when HDTV is No, and when Language is Italian?, ###ASSISTANT: SELECT television_service FROM table_name_11 WHERE hdtv = ""no"" AND language = ""italian""" 583,"###HUMAN: Bin all date of transactions into the YEAR interval, and give the average of the share count for each bin. What is the trend?, ###ASSISTANT: SELECT date_of_transaction, AVG(share_count) FROM Transactions" 584,"###HUMAN: Highest voted answers that have no competition., ###ASSISTANT: SELECT Id AS ""post_link"", Score FROM Posts WHERE PostTypeId = 2 AND ParentId IN (SELECT Id FROM Posts WHERE AnswerCount = 1) ORDER BY Score DESC" 585,"###HUMAN: What is the maximum number of starts?, ###ASSISTANT: SELECT MAX(starts) FROM table_3005915_3" 586,"###HUMAN: Margin of victory on no. 4 was?, ###ASSISTANT: SELECT ""Margin of victory"" FROM table_24524 WHERE ""No."" = '4'" 587,"###HUMAN: What is the name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock?, ###ASSISTANT: SELECT original_broadway_cast FROM table_name_56 WHERE original_west_end_cast = ""sheila hancock""" 588,"###HUMAN: did they place better in 1987/88 or 1993/94 ?, ###ASSISTANT: SELECT ""season"" FROM table_204_35 WHERE ""season"" IN ('1987/88', '1993/94') ORDER BY ""place"" LIMIT 1" 589,"###HUMAN: Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' Visualize by bar chart, list from high to low by the Y., ###ASSISTANT: SELECT Name, AVG(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name ORDER BY AVG(Num_Employees) DESC" 590,"###HUMAN: Tell me the class with rank of 89th, ###ASSISTANT: SELECT class FROM table_name_12 WHERE rank = ""89th""" 591,"###HUMAN: What is the first year for Popgun?, ###ASSISTANT: SELECT ""First Year"" FROM table_55144 WHERE ""Title"" = 'popgun'" 592,"###HUMAN: what character did Masaharu satou play, ###ASSISTANT: SELECT ""Character Name"" FROM table_38210 WHERE ""Voice Actor (Japanese)"" = 'masaharu satou'" 593,"###HUMAN: What years did number 54 play for the jazz, ###ASSISTANT: SELECT ""Years for Jazz"" FROM table_16858 WHERE ""No."" = '54'" 594,"###HUMAN: For each director, how many reviews have they received Visualize by bar chart, and could you rank from high to low by the Y-axis?, ###ASSISTANT: SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY COUNT(*) DESC" 595,"###HUMAN: Which lowest played has a Position of 2, and Goals against larger than 53?, ###ASSISTANT: SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53" 596,"###HUMAN: What is the English title of the film directed by Fernando Meirelles?, ###ASSISTANT: SELECT english_title FROM table_name_53 WHERE director_s_ = ""fernando meirelles""" 597,"###HUMAN: Name the college/junior club team for pick number 63, ###ASSISTANT: SELECT ""College/junior/club team"" FROM table_19548 WHERE ""Pick #"" = '63'" 598,"###HUMAN: what is the total number of silver medals won by russia , norway , and sweden combined ?, ###ASSISTANT: SELECT SUM(""silver"") FROM table_204_761 WHERE ""nation"" IN ('russia', 'norway', 'sweden')" 599,"###HUMAN: Find the number of members living in each address., ###ASSISTANT: SELECT COUNT(*), address FROM member GROUP BY address" 600,"###HUMAN: what is the variation of patient 006-181433's weight second measured on the current hospital visit compared to the first value measured on the current hospital visit?, ###ASSISTANT: SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-181433' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-181433' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)" 601,"###HUMAN: how many patients with death status 0 had procedure icd9 code as 5011?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = ""0"" AND procedures.icd9_code = ""5011""" 602,"###HUMAN: For those records from the products and each product's manufacturer, find headquarter and the amount of headquarter , and group by attribute headquarter, and visualize them by a bar chart, and I want to display x axis in descending order please., ###ASSISTANT: SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC" 603,"###HUMAN: What is To Par, when Place is 3?, ###ASSISTANT: SELECT to_par FROM table_name_43 WHERE place = ""3""" 604,"###HUMAN: what age does patient 71192 have on the last hospital encounter?, ###ASSISTANT: SELECT admissions.age FROM admissions WHERE admissions.subject_id = 71192 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1" 605,"###HUMAN: On what date was god & guns released?, ###ASSISTANT: SELECT date_of_release FROM table_name_15 WHERE title = ""god & guns""" 606,"###HUMAN: From 11:00 to 4:00 , are there ECON 442 sections ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '4:00' AND course_offering.start_time >= '11:00' AND course.course_id = course_offering.course_id AND course.department = 'ECON' AND course.number = 442 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016" 607,"###HUMAN: What's the 2nd leg result in the round where team #1 is Iraklis?, ###ASSISTANT: SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = ""Iraklis""" 608,"###HUMAN: what number of publications are indicated as being in print ?, ###ASSISTANT: SELECT COUNT(""publication"") FROM table_204_692 WHERE ""review"" = 'print'" 609,"###HUMAN: had patient 005-80291 been prescribed 30 ml cup : alum & mag hydroxide-simeth 200-200-20 mg/5ml po susp, potassium chloride 2 meq/ml iv soln or ondansetron hcl 4 mg/2ml ij soln since 2105?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-80291')) AND medication.drugname IN ('30 ml cup : alum & mag hydroxide-simeth 200-200-20 mg/5ml po susp', 'potassium chloride 2 meq/ml iv soln', 'ondansetron hcl 4 mg/2ml ij soln') AND STRFTIME('%y', medication.drugstarttime) >= '2105'" 610,"###HUMAN: Give me the comparison about School_ID over the ACC_Road , and group by attribute All_Home, and sort from low to high by the y axis., ###ASSISTANT: SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID" 611,"###HUMAN: When 228 is the lap and chip ganassi racing is the team what is the race time?, ###ASSISTANT: SELECT ""Race Time"" FROM table_21885 WHERE ""Team"" = 'Chip Ganassi Racing' AND ""Laps"" = '228'" 612,"###HUMAN: Which song was picked that was originally performed by Marisa Monte?, ###ASSISTANT: SELECT ""Song Choice"" FROM table_29668 WHERE ""Original Artist"" = 'Marisa Monte'" 613,"###HUMAN: Scores of users in specific tag., ###ASSISTANT: WITH scorestags_cte AS (SELECT pt.TagId AS TagId, p.OwnerUserId AS uid, p.OwnerDisplayName AS udn, SUM(p.Score) AS sco, COUNT(p.Id) AS num FROM Posts AS p INNER JOIN Posts AS q ON q.Id = p.ParentId INNER JOIN PostTags AS pt ON q.Id = pt.PostId WHERE (p.CommunityOwnedDate IS NULL) GROUP BY pt.TagId, p.OwnerUserId, p.OwnerDisplayName) SELECT CAST('##MinScore##' AS INT), t.TagName, s.uid AS ""user_link"", s.udn, s.sco AS ""score"", s.num AS ""count"" FROM scorestags_cte AS s INNER JOIN Tags AS t ON s.TagId = t.Id WHERE t.TagName = '##TagName##' AND s.sco >= CAST('##MinScore##' AS INT) ORDER BY s.sco DESC" 614,"###HUMAN: What is the population where the median household income is $87,832 and there are fewer than 64,886 households?, ###ASSISTANT: SELECT AVG(population) FROM table_name_83 WHERE median_household_income = ""$87,832"" AND number_of_households < 64 OFFSET 886" 615,"###HUMAN: provide the number of patients whose procedure icd9 code is 5771 and drug type is main?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = ""5771"" AND prescriptions.drug_type = ""MAIN""" 616,"###HUMAN: What is the rank of the player who got 58179 in yardage?, ###ASSISTANT: SELECT rank FROM table_18686317_1 WHERE yardage = 58179" 617,"###HUMAN: What is the name of the course that has the most student enrollment?, ###ASSISTANT: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1" 618,"###HUMAN: What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?, ###ASSISTANT: SELECT MAX(""Wins"") FROM table_39196 WHERE ""Season"" < '2007' AND ""Team"" = 'silverstone motorsport academy'" 619,"###HUMAN: What away team has 7 as the tie no.?, ###ASSISTANT: SELECT away_team FROM table_name_38 WHERE tie_no = ""7""" 620,"###HUMAN: male or female ages >= 3.5 years and <= 18 years on day of sepsis recognition, ###ASSISTANT: SELECT * FROM table_train_71 WHERE (gender = 'male' OR gender = 'female') AND (age >= 3.5 AND age <= 18) AND sepsis = 1" 621,"###HUMAN: Which year has a Round of 17?, ###ASSISTANT: SELECT ""Year"" FROM table_67049 WHERE ""Round"" = '17'" 622,"###HUMAN: how many license plates were issued before 1960 ?, ###ASSISTANT: SELECT COUNT(*) FROM table_203_379 WHERE ""first issued"" < 1960" 623,"###HUMAN: when was patient 035-24054's ventric #1 output for the last time on the current intensive care unit visit?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-24054') AND patient.unitdischargetime IS NULL) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'ventric #1' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1" 624,"###HUMAN: Which runner-up placed in a year prior to 2006 and whose Champion was Elon?, ###ASSISTANT: SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = ""elon""" 625,"###HUMAN: Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0?, ###ASSISTANT: SELECT MIN(touchdowns) FROM table_name_81 WHERE points = 5 AND field_goals > 0" 626,"###HUMAN: give me the number of patients whose admission location is transfer from hosp/extram and procedure icd9 code is 5781?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = ""TRANSFER FROM HOSP/EXTRAM"" AND procedures.icd9_code = ""5781""" 627,"###HUMAN: i'm interested in a flight from DALLAS to WASHINGTON and i'm also interested in going to BALTIMORE, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight WHERE ((flight.to_airport = AIRPORT_SERVICE_1.airport_code AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON') OR (flight.to_airport = AIRPORT_SERVICE_2.airport_code AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'BALTIMORE')) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 628,"###HUMAN: what is religion of subject id 26746?, ###ASSISTANT: SELECT demographic.religion FROM demographic WHERE demographic.subject_id = ""26746""" 629,"###HUMAN: who is the constructor when the laps is more than 72 and the driver is eddie irvine?, ###ASSISTANT: SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = ""eddie irvine""" 630,"###HUMAN: What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold?, ###ASSISTANT: SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0" 631,"###HUMAN: What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954?, ###ASSISTANT: SELECT MAX(""Points"") FROM table_15405 WHERE ""Chassis"" = 'gordini t16' AND ""Year"" < '1954'" 632,"###HUMAN: Who wrote the episodes with 7.70 u.s. viewers (million) ?, ###ASSISTANT: SELECT ""Written by"" FROM table_29318 WHERE ""U.S. viewers (million)"" = '7.70'" 633,"###HUMAN: calculate the total number of patients diagnosed with other b-complex deficiencies, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = ""Other B-complex deficiencies""" 634,"###HUMAN: What super g was before 1998, had 2 giant slaloms and 24 downhills?, ###ASSISTANT: SELECT ""Super G"" FROM table_68185 WHERE ""Season"" < '1998' AND ""Giant Slalom"" = '2' AND ""Downhill"" = '24'" 635,"###HUMAN: Which pick's round was 5 when Kellen Davis was a player?, ###ASSISTANT: SELECT pick FROM table_name_40 WHERE round = ""5"" AND player = ""kellen davis""" 636,"###HUMAN: What is the name of the episode that was written by Michael Rauch?, ###ASSISTANT: SELECT title FROM table_23117208_5 WHERE written_by = ""Michael Rauch""" 637,"###HUMAN: What was the away team score when the home team was Carlton?, ###ASSISTANT: SELECT ""Away team score"" FROM table_32413 WHERE ""Home team"" = 'carlton'" 638,"###HUMAN: What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?, ###ASSISTANT: SELECT ""5-year peak"" FROM table_21323 WHERE ""10-year peak"" = 'Emanuel Lasker, 2847'" 639,"###HUMAN: List people who signed up during private beta., ###ASSISTANT: SELECT u.Id AS ""user_link"", u.Id, u.CreationDate FROM Users AS u WHERE u.CreationDate < '2011-08-30 00:00:00.00'" 640,"###HUMAN: how old is each student and how many students are each age?, ###ASSISTANT: SELECT Age, COUNT(*) FROM Student GROUP BY Age" 641,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me the trend about department_id over hire_date with a line chart, show by the x-axis in desc., ###ASSISTANT: SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE DESC" 642,"###HUMAN: What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?, ###ASSISTANT: SELECT COUNT(""Games"") FROM table_40605 WHERE ""Rank"" < '4' AND ""Rebounds"" < '102'" 643,"###HUMAN: Which Pictorials has a 20 Questions of eva longoria?, ###ASSISTANT: SELECT ""Pictorials"" FROM table_39930 WHERE ""20 Questions"" = 'eva longoria'" 644,"###HUMAN: What is the nomination title used for the original film, Monsieur Hawarden?, ###ASSISTANT: SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = ""monsieur hawarden""" 645,"###HUMAN: What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4?, ###ASSISTANT: SELECT net_capacity FROM table_name_74 WHERE gross_capacity = ""1,126 mw"" AND unit = ""tianwan-4""" 646,"###HUMAN: Name the 10:30 for 8:00 of charmed, ###ASSISTANT: SELECT ""10:30"" FROM table_5084 WHERE ""8:00"" = 'charmed'" 647,"###HUMAN: what was the last winner 's album name ?, ###ASSISTANT: SELECT ""album"" FROM table_204_655 ORDER BY ""year"" DESC LIMIT 1" 648,"###HUMAN: How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?, ###ASSISTANT: SELECT SUM(""Silver"") FROM table_80452 WHERE ""Bronze"" > '3' AND ""Gold"" = '16'" 649,"###HUMAN: Name the memory for frequency of 1.6 ghz, ###ASSISTANT: SELECT ""Memory"" FROM table_21021 WHERE ""Frequency"" = '1.6 GHz'" 650,"###HUMAN: what is the name of procedure patient 51200 has been given two times last month?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51200) AND DATETIME(procedures_icd.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2)" 651,"###HUMAN: What is the Competition for Season 2002 03, and the Opponent was zenit st. petersburg?, ###ASSISTANT: SELECT competition FROM table_name_86 WHERE season = ""2002–03"" AND opponent = ""zenit st. petersburg""" 652,"###HUMAN: Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?, ###ASSISTANT: SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = ""04h17m35.8s""" 653,"###HUMAN: What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?, ###ASSISTANT: SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = ""http://krishna.nic.in/""" 654,"###HUMAN: Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?, ###ASSISTANT: SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = ""rick mirer"" AND ties < 1" 655,"###HUMAN: What is the long-term capital gain rate when the long-term gain on commercial buildings is 25% and long term gain on collectibles is 28% while short-term capital gain rate is 33%?, ###ASSISTANT: SELECT ""Long-term capital gain rate"" FROM table_55784 WHERE ""Long-term gain on commercial buildings*"" = '25%' AND ""Long-term gain on collectibles"" = '28%' AND ""Short-term capital gain rate"" = '33%'" 656,"###HUMAN: What is the number of the player who attended Delta State?, ###ASSISTANT: SELECT MAX(""No."") FROM table_20200 WHERE ""School/Club Team"" = 'Delta State'" 657,"###HUMAN: What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278?, ###ASSISTANT: SELECT ""To par"" FROM table_48568 WHERE ""Money ( $ )"" > '4,100' AND ""Score"" = '69-67-72-70=278'" 658,"###HUMAN: Show name and distance for all aircrafts by a bar chart, list by the y axis in ascending please., ###ASSISTANT: SELECT name, distance FROM aircraft ORDER BY distance" 659,"###HUMAN: Name the regions for usf45, ###ASSISTANT: SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = ""USF45""" 660,"###HUMAN: How many laps for robin montgomerie-charrington, and a Grid smaller than 15?, ###ASSISTANT: SELECT COUNT(laps) FROM table_name_18 WHERE driver = ""robin montgomerie-charrington"" AND grid < 15" 661,"###HUMAN: show me all flights on WN from SAN DIEGO to SAN FRANCISCO, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'WN'" 662,"###HUMAN: who is the driver with the engine era 1.5 l6 s and the chassis is era b?, ###ASSISTANT: SELECT driver FROM table_name_17 WHERE engine = ""era 1.5 l6 s"" AND chassis = ""era b""" 663,"###HUMAN: What is the average crowd size for games with hawthorn as the home side?, ###ASSISTANT: SELECT AVG(crowd) FROM table_name_8 WHERE home_team = ""hawthorn""" 664,"###HUMAN: who is the opponent when the method is tko (punches) at 4:26 of round 1?, ###ASSISTANT: SELECT ""Opponent"" FROM table_43573 WHERE ""Method"" = 'tko (punches) at 4:26 of round 1'" 665,"###HUMAN: What's the sum of draw for artist hari mata hari with less than 70 points?, ###ASSISTANT: SELECT SUM(""Draw"") FROM table_11271 WHERE ""Artist"" = 'hari mata hari' AND ""Points"" < '70'" 666,"###HUMAN: A bar chart about the name and age for all male people who don't have a wedding, could you display by the x axis in ascending?, ###ASSISTANT: SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) ORDER BY Name" 667,"###HUMAN: What number pick was the player for the Oakland Athletics who plays the 1B position?, ###ASSISTANT: SELECT ""Pick"" FROM table_15226 WHERE ""Position"" = '1b' AND ""Team"" = 'oakland athletics'" 668,"###HUMAN: ground transportation in WESTCHESTER COUNTY, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'WESTCHESTER COUNTY' AND ground_service.city_code = city.city_code" 669,"###HUMAN: What was the high amount of assists before game 60?, ###ASSISTANT: SELECT ""High assists"" FROM table_50265 WHERE ""Game"" < '60'" 670,"###HUMAN: What stamp design has a denomination of $1.18?, ###ASSISTANT: SELECT ""Design"" FROM table_58443 WHERE ""Denomination"" = '$1.18'" 671,"###HUMAN: What are the nationalities and ages of journalists?, ###ASSISTANT: SELECT nationality, age FROM journalist" 672,"###HUMAN: Where did Jack Badcock play?, ###ASSISTANT: SELECT ""Venue"" FROM table_34003 WHERE ""Player"" = 'jack badcock'" 673,"###HUMAN: what is the player who's college is listed as direct to nba, school is st. vincent st. mary high school and the year is 2001-2002?, ###ASSISTANT: SELECT ""Player"" FROM table_17100 WHERE ""College"" = 'Direct to NBA' AND ""School"" = 'St. Vincent – St. Mary High School' AND ""Year"" = '2001-2002'" 674,"###HUMAN: What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?, ###ASSISTANT: SELECT MAX(laps) FROM table_name_13 WHERE class = ""v8"" AND entrant = ""diet-coke racing""" 675,"###HUMAN: What is the oder part number for the model with 10x mult. 1?, ###ASSISTANT: SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = ""10x""" 676,"###HUMAN: What is the score of the home team that played at brunswick street oval with a crowd larger than 12,000?, ###ASSISTANT: SELECT ""Home team score"" FROM table_57262 WHERE ""Crowd"" > '12,000' AND ""Venue"" = 'brunswick street oval'" 677,"###HUMAN: What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?, ###ASSISTANT: SELECT ""Location #sites (global/local)"" FROM table_46736 WHERE ""Software"" = 'bind' AND ""IPv6 address"" = '2001:503:c27::2:30'" 678,"###HUMAN: How many grids have a Time/Retired of gearbox, and Laps smaller than 3?, ###ASSISTANT: SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = ""gearbox"" AND laps < 3" 679,"###HUMAN: What is Joe Jonas' result at the Kids' Choice Awards Mexico?, ###ASSISTANT: SELECT ""Result"" FROM table_15555 WHERE ""Recipient(s)"" = 'joe jonas' AND ""Award"" = 'kids'' choice awards mexico'" 680,"###HUMAN: What is the date for the episode performed by Sue Manchester?, ###ASSISTANT: SELECT first_aired FROM table_191105_4 WHERE performed_by = ""Sue Manchester""" 681,"###HUMAN: What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?, ###ASSISTANT: SELECT COUNT(""Evening Gown"") FROM table_11829 WHERE ""Preliminaries"" < '8.647' AND ""State"" = 'district of columbia'" 682,"###HUMAN: List the location and number of fans in attendance for game 7/, ###ASSISTANT: SELECT COUNT(""Location Attendance"") FROM table_25367 WHERE ""Game"" = '7'" 683,"###HUMAN: what's the name of the procedure that patient 25814 was given two times since 154 months ago?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25814) AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-154 month') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2)" 684,"###HUMAN: Show the most common nationality for journalists., ###ASSISTANT: SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1" 685,"###HUMAN: What Country scored 72-65-73=210?, ###ASSISTANT: SELECT ""Country"" FROM table_8815 WHERE ""Score"" = '72-65-73=210'" 686,"###HUMAN: What was the Result of the game after Week 9 with an Attendance of 69,714?, ###ASSISTANT: SELECT ""Result"" FROM table_48615 WHERE ""Week"" > '9' AND ""Attendance"" = '69,714'" 687,"###HUMAN: What was the genre of Queen (an artist from the United Kingdom)?, ###ASSISTANT: SELECT ""Genre"" FROM table_15675 WHERE ""Country of origin"" = 'united kingdom' AND ""Artist"" = 'queen'" 688,"###HUMAN: previous to the tippeligaen , what was the league called ?, ###ASSISTANT: SELECT ""league"" FROM table_203_683 WHERE ""season"" < (SELECT ""season"" FROM table_203_683 WHERE ""league"" = 'tippeligaen') ORDER BY ""season"" DESC LIMIT 1" 689,"###HUMAN: What was the attendance during the week 1 match?, ###ASSISTANT: SELECT ""Attendance"" FROM table_32927 WHERE ""Week"" = '1'" 690,"###HUMAN: what is the name of drug that patient 63676 was prescribed for within 2 days after having been diagnosed with gstr/ddnts nos w hmrhg in 03/2105?, ###ASSISTANT: SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 63676 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr/ddnts nos w hmrhg') AND STRFTIME('%y-%m', diagnoses_icd.charttime) = '2105-03') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 63676 AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-03') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 day')" 691,"###HUMAN: A bar chart shows the distribution of personal_name and gender_mf ., ###ASSISTANT: SELECT personal_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name" 692,"###HUMAN: What was the highest number of wins for any team?, ###ASSISTANT: SELECT MAX(wins) FROM table_18018214_3" 693,"###HUMAN: Distribution of Flagged Posts by Time (Hours) to close., ###ASSISTANT: SELECT diff1 AS hoursToClose, COUNT(*) FROM (SELECT CAST((JULIANDAY(ClosedDate) - JULIANDAY(d.CreationDate)) * 24.0 AS INT) AS ""diff1"", TIME_TO_STR(d.CreationDate, '%y-%m') AS ""date1"", TIME_TO_STR(d.ClosedDate, '%y-%m') AS ""date2"", (d.Id) AS id FROM Posts AS d LEFT JOIN PostHistory AS ph ON ph.PostId = d.Id LEFT JOIN PostLinks AS pl ON pl.PostId = d.Id LEFT JOIN Posts AS o ON o.Id = pl.RelatedPostId WHERE (d.PostTypeId = 1 OR d.PostTypeId = 2) AND ph.PostHistoryTypeId = 10) AS t1 GROUP BY diff1 ORDER BY diff1" 694,"###HUMAN: count the number of patients whose marital status is single and lab test name is hyaline casts?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = ""SINGLE"" AND lab.label = ""Hyaline Casts""" 695,"###HUMAN: What is the largest numbered?, ###ASSISTANT: SELECT MAX(division) FROM table_14723382_1" 696,"###HUMAN: How many Laps were there in 2010?, ###ASSISTANT: SELECT SUM(laps) FROM table_name_46 WHERE year = 2010" 697,"###HUMAN: Who was the husband date that was married in 1858?, ###ASSISTANT: SELECT husband_dates FROM table_name_54 WHERE date_married = ""1858""" 698,"###HUMAN: Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?, ###ASSISTANT: SELECT MAX(""FA Cup Goals"") FROM table_65892 WHERE ""League Cup Apps"" > '0' AND ""Name"" = 'trevor cherry'" 699,"###HUMAN: Get Posts and Upvotes for Last X days. This query takes in a given integer X and returns all posts from the last X days as well as the votes on each of those posts., ###ASSISTANT: SELECT COUNT(DISTINCT Posts.Id) FROM Posts WHERE Posts.CreationDate >= CURRENT_TIMESTAMP() - @numDays" 700,"###HUMAN: What is the class of team liqui moly equipe, which has less than 71 laps?, ###ASSISTANT: SELECT ""Class"" FROM table_48102 WHERE ""Laps"" < '71' AND ""Team"" = 'liqui moly equipe'" 701,"###HUMAN: If the playoff berth is 17, what is the AFC championship number?, ###ASSISTANT: SELECT ""AFC Championships"" FROM table_23060 WHERE ""Playoff Berths"" = '17'" 702,"###HUMAN: What was the range of finishing position for 15 awarded platinum points?, ###ASSISTANT: SELECT finishing_position FROM table_11254821_2 WHERE points_awarded__platinum_ = 15" 703,"###HUMAN: What is the attendance number for December 2, 1979?, ###ASSISTANT: SELECT SUM(""Attendance"") FROM table_70615 WHERE ""Date"" = 'december 2, 1979'" 704,"###HUMAN: How many seconds is a shuttle run that give 2 points?, ###ASSISTANT: SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2" 705,"###HUMAN: Questions Using Popular Tags In January 2019. Questions Using Popular Tags In January 2019 Tags with rate of use over 4 times on this site., ###ASSISTANT: SELECT Id AS ""post_link"", Id, CreationDate, AnswerCount, CommentCount, rate.TagId FROM Posts, PostTags, (SELECT COUNT(PostId) AS Rate, TagId FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.CreationDate < '2019-03-01' AND Posts.CreationDate > '2019-01-01' GROUP BY TagId, TagName HAVING COUNT(PostId) > 4) AS rate WHERE rate.TagId = PostTags.TagId AND Posts.Id = PostId AND CreationDate > '2019-01-01' AND CreationDate < '2019-01-03' AND DeletionDate IS NULL AND AnswerCount > 0 AND CommentCount > 0" 706,"###HUMAN: In what place is the player with a score of 72-66-75=213?, ###ASSISTANT: SELECT place FROM table_name_13 WHERE score = 72 - 66 - 75 = 213" 707,"###HUMAN: What is the location attendance of the game with a 27-22 record?, ###ASSISTANT: SELECT ""Location Attendance"" FROM table_38827 WHERE ""Record"" = '27-22'" 708,"###HUMAN: how many patients are admitted under urgency and followed the procedure colonoscopy?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = ""URGENT"" AND procedures.short_title = ""Colonoscopy""" 709,"###HUMAN: What is the amount of assists for richmond kickers and points larger than 24, ###ASSISTANT: SELECT SUM(assists) FROM table_name_32 WHERE club = ""richmond kickers"" AND points > 24" 710,"###HUMAN: what was the four most often given procedures for patients 40s?, ###ASSISTANT: SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4" 711,"###HUMAN: Who was the Republican when the green was Harold Burbank?, ###ASSISTANT: SELECT republican FROM table_name_27 WHERE green = ""harold burbank""" 712,"###HUMAN: How big (in km2) is Persarmenia?, ###ASSISTANT: SELECT ""Area (km\u00b2)"" FROM table_26375 WHERE ""Province (ashkharh)"" = 'Persarmenia'" 713,"###HUMAN: What is the score March 27?, ###ASSISTANT: SELECT score FROM table_name_55 WHERE date = ""march 27""" 714,"###HUMAN: Top 10 Meta users from Nigeria., ###ASSISTANT: SELECT * FROM Users WHERE Location LIKE '%Nigeria' ORDER BY Reputation DESC LIMIT 10" 715,"###HUMAN: How many pints does the Cambrian Welfare RFC have?, ###ASSISTANT: SELECT points_for FROM table_name_50 WHERE club = ""cambrian welfare rfc""" 716,"###HUMAN: What kind of Sanskrit has a Kannada of uttara ?, ###ASSISTANT: SELECT ""Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"" FROM table_35105 WHERE ""Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1"" = 'uttara ಉತ್ತರಾ'" 717,"###HUMAN: How is the marriage of who became queen on 30 October 1816 husband's accession?, ###ASSISTANT: SELECT ""Marriage"" FROM table_6115 WHERE ""Became Queen"" = '30 october 1816 husband''s accession'" 718,"###HUMAN: How many customers live in Prague city?, ###ASSISTANT: SELECT COUNT(*) FROM customers WHERE city = ""Prague""" 719,"###HUMAN: What was the rating/share for 18-49 for the episode that had 5.90 million viewers?, ###ASSISTANT: SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = ""5.90""" 720,"###HUMAN: Return a bar chart on what are the different ship flags, and how many ships have each?, list by the Y-axis in descending., ###ASSISTANT: SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY COUNT(*) DESC" 721,"###HUMAN: provide the admission time and marital status of subject id 6983., ###ASSISTANT: SELECT demographic.marital_status, demographic.admittime FROM demographic WHERE demographic.subject_id = ""6983""" 722,"###HUMAN: Which format has january 21, 2002 as the date?, ###ASSISTANT: SELECT ""Format"" FROM table_44036 WHERE ""Date"" = 'january 21, 2002'" 723,"###HUMAN: What is the link of rnaz that predicts an alignment of input?, ###ASSISTANT: SELECT ""Link"" FROM table_34127 WHERE ""Alignment Alignment: predicts an alignment , ."" = 'input' AND ""Name"" = 'rnaz'" 724,"###HUMAN: What kind of Week 4 has a Week 9 of all housemates?, ###ASSISTANT: SELECT ""Week 4"" FROM table_59962 WHERE ""Week 9"" = 'all housemates'" 725,"###HUMAN: What was the transfer fee for the player moving in the winter window and ending in a year after 2010?, ###ASSISTANT: SELECT ""Transfer fee"" FROM table_7726 WHERE ""Ends"" > '2010' AND ""Transfer window"" = 'winter'" 726,"###HUMAN: Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?, ###ASSISTANT: SELECT SUM(""Year"") FROM table_67776 WHERE ""Role"" = 'narrator' AND ""Radio Station/Production Company"" = 'bbc audiobooks' AND ""Release/Air Date"" = '13 november 2008'" 727,"###HUMAN: Show team id vs acc_percent as scatter plot use a different color for each All_Games, ###ASSISTANT: SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Games" 728,"###HUMAN: what is the number of delegates younger than 20 ?, ###ASSISTANT: SELECT COUNT(""contestant"") FROM table_204_20 WHERE ""age"" < 20" 729,"###HUMAN: Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?, ###ASSISTANT: SELECT ""Team"" FROM table_65384 WHERE ""Qualification"" = 'entry to the 2004 chinese super league' AND ""2002 Position"" < '6' AND ""2003 Position"" < '9' AND ""Total Position"" > '3.5'" 730,"###HUMAN: current plasma creatinine >= 0.5 mg / dl, ###ASSISTANT: SELECT * FROM table_train_111 WHERE plasma_creatinine >= 0.5" 731,"###HUMAN: count the number of patients whose diagnoses short title is acute uri nos and lab test fluid is ascites?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = ""Acute uri NOS"" AND lab.fluid = ""Ascites""" 732,"###HUMAN: Which Winner has a Runner-up of larne, and a Season of 2003 04?, ###ASSISTANT: SELECT winner FROM table_name_13 WHERE runner_up = ""larne"" AND season = ""2003–04""" 733,"###HUMAN: What year was USF founded?, ###ASSISTANT: SELECT ""Date founded"" FROM table_262 WHERE ""Acronym"" = 'USF'" 734,"###HUMAN: which country/countries has the same number of total metals as thailand ?, ###ASSISTANT: SELECT ""nation"" FROM table_204_183 WHERE ""nation"" <> 'thailand' AND ""total"" = (SELECT ""total"" FROM table_204_183 WHERE ""nation"" = 'thailand')" 735,"###HUMAN: Visualize a scatter chart about the correlation between Credits and DNO ., ###ASSISTANT: SELECT Credits, DNO FROM Course ORDER BY Credits" 736,"###HUMAN: During the week does 588 usually have 2 or 3 lectures ?, ###ASSISTANT: SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday, semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 588 AND semester.semester_id = course_offering.semester ORDER BY semester.semester_id DESC LIMIT 10" 737,"###HUMAN: Top 1000 reputation whores in C++ tag., ###ASSISTANT: SELECT Users.Id AS Id, Users.DisplayName AS ""user_link"", SUM(Answers.Score) * 10 AS Reputation FROM Posts AS Answers INNER JOIN Posts AS Questions ON Questions.Id = Answers.ParentId INNER JOIN Users AS Users ON Answers.OwnerUserId = Users.Id INNER JOIN PostTags ON PostTags.PostId = Answers.ParentId INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Answers.PostTypeId = 2 AND (LOWER(Users.Location) LIKE '%spain%' OR LOWER(Users.Location) LIKE '%espa a%') AND NOT Answers.OwnerUserId IS NULL AND Tags.TagName = 'c++' AND (Questions.ClosedDate != '' OR Questions.Score < 0) GROUP BY Users.Id, Users.DisplayName ORDER BY Reputation DESC LIMIT 1000" 738,"###HUMAN: what was the name of the mission previous to cosmos 300 ?, ###ASSISTANT: SELECT ""name"" FROM table_204_633 WHERE id = (SELECT id FROM table_204_633 WHERE ""name"" = 'cosmos 300') - 1" 739,"###HUMAN: How many grids had a Time/Retired of +4 laps?, ###ASSISTANT: SELECT COUNT(""Grid"") FROM table_43494 WHERE ""Time/Retired"" = '+4 laps'" 740,"###HUMAN: how many featured guests are there in total ?, ###ASSISTANT: SELECT COUNT(""featured guest(s)"") FROM table_204_184" 741,"###HUMAN: In what place did the golfer representing Zimbabwe finish?, ###ASSISTANT: SELECT place FROM table_name_60 WHERE country = ""zimbabwe""" 742,"###HUMAN: How many total songs has the order #1, ###ASSISTANT: SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = ""1""" 743,"###HUMAN: In what season was the overall record 29-7?, ###ASSISTANT: SELECT ""Season"" FROM table_19441 WHERE ""Overall"" = '29-7'" 744,"###HUMAN: What is the English title for Ansikte Mot Ansikte?, ###ASSISTANT: SELECT ""English title"" FROM table_68616 WHERE ""Original title"" = 'ansikte mot ansikte'" 745,"###HUMAN: Which gc37-01 v10 engine has the fewest points?, ###ASSISTANT: SELECT MIN(""Points"") FROM table_15328 WHERE ""Engine"" = 'gc37-01 v10'" 746,"###HUMAN: how many patients whose admission location is phys referral/normal deli and discharge location is home?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = ""PHYS REFERRAL/NORMAL DELI"" AND demographic.discharge_location = ""HOME""" 747,"###HUMAN: How many players played each position Plot them as bar chart, and rank in asc by the y-axis., ###ASSISTANT: SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*)" 748,"###HUMAN: Which venue has 16 against?, ###ASSISTANT: SELECT venue FROM table_name_5 WHERE against = 16" 749,"###HUMAN: What is the pick # when the new jersey devils is the nhl team?, ###ASSISTANT: SELECT ""Pick #"" FROM table_30854 WHERE ""NHL team"" = 'New Jersey Devils'" 750,"###HUMAN: what is the mchc difference/difference of patient 032-17571 second measured on the last hospital visit compared to the first value measured on the last hospital visit?, ###ASSISTANT: SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-17571' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND lab.labname = 'mchc' ORDER BY lab.labresulttime LIMIT 1 OFFSET 1) - (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-17571' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND lab.labname = 'mchc' ORDER BY lab.labresulttime LIMIT 1)" 751,"###HUMAN: provide the number of patients whose diagnoses long title is antineoplastic and immunosuppressive drugs causing adverse effects in therapeutic use and drug type is main?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = ""Antineoplastic and immunosuppressive drugs causing adverse effects in therapeutic use"" AND prescriptions.drug_type = ""MAIN""" 752,"###HUMAN: What is Score, when Attendance is 2,444?, ###ASSISTANT: SELECT score FROM table_name_33 WHERE attendance = ""2,444""" 753,"###HUMAN: Between which years were there 241 fokker 70 model cabins built?, ###ASSISTANT: SELECT period FROM table_name_43 WHERE built < 241 AND model = ""fokker 70""" 754,"###HUMAN: Name the republican steve sauerberg for august 12, 2008, ###ASSISTANT: SELECT ""Republican: Steve Sauerberg"" FROM table_21037 WHERE ""Dates administered"" = 'August 12, 2008'" 755,"###HUMAN: how long did bernard pilon serve in the canadian army ?, ###ASSISTANT: SELECT ""military service"" - ""military service"" FROM table_204_608 WHERE ""name"" = 'bernard pilon'" 756,"###HUMAN: What is the Money of the T4 Place Player with a Score of 71-66-74-67=278?, ###ASSISTANT: SELECT AVG(money___) AS $__ FROM table_name_64 WHERE place = ""t4"" AND score = 71 - 66 - 74 - 67 = 278" 757,"###HUMAN: How many female patients have a prescription for aspirin ec?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = ""F"" AND prescriptions.drug = ""Aspirin EC""" 758,"###HUMAN: what is the number of hours elapsed since the last time patient 033-22108 had a d5w intake on the current intensive care unit visit?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-22108') AND patient.unitdischargetime IS NULL) AND intakeoutput.celllabel = 'd5w' AND intakeoutput.cellpath LIKE '%intake%' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1" 759,"###HUMAN: What was the date of the game when Atlanta was the home team?, ###ASSISTANT: SELECT ""Date"" FROM table_51441 WHERE ""Home"" = 'atlanta'" 760,"###HUMAN: Who is the Trainer with the Year of 2013?, ###ASSISTANT: SELECT trainer FROM table_name_33 WHERE year = ""2013""" 761,"###HUMAN: what is the dose of sodium bicarbonate that is first prescribed to patient 10811 since 05/2103?, ###ASSISTANT: SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10811) AND prescriptions.drug = 'sodium bicarbonate' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2103-05' ORDER BY prescriptions.startdate LIMIT 1" 762,"###HUMAN: In what Round was Pick 138?, ###ASSISTANT: SELECT SUM(""Round"") FROM table_39413 WHERE ""Pick"" = '138'" 763,"###HUMAN: What years did the player with a t71 finish win?, ###ASSISTANT: SELECT ""Year(s) won"" FROM table_60790 WHERE ""Finish"" = 't71'" 764,"###HUMAN: What is the defective year for the regular year of 29 days and month sequence of 2?, ###ASSISTANT: SELECT MAX(""Defective Year"") FROM table_30897 WHERE ""Regular Year"" = '29 days' AND ""Month Sequence"" = '2'" 765,"###HUMAN: What is the name of the technician whose team is not 'NYY', and count them by a bar chart, ###ASSISTANT: SELECT Name, COUNT(Name) FROM technician WHERE Team <> ""NYY"" GROUP BY Name" 766,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the sum of employee_id bin hire_date by weekday, and visualize them by a bar chart, and sort in desc by the y-axis., ###ASSISTANT: SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) DESC" 767,"###HUMAN: Who was the finalist when the MVP was Romain Sato?, ###ASSISTANT: SELECT ""Finalist"" FROM table_2095 WHERE ""MVP"" = 'Romain Sato'" 768,"###HUMAN: Which clubs have one or more members whose advisor is '1121'?, ###ASSISTANT: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121" 769,"###HUMAN: what is the drug that patient 19352 was prescribed for within 2 days after the diagnosis of hx traumatic fracture until 22 months ago?, ###ASSISTANT: SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 19352 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx traumatic fracture') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-22 month')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 19352 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-22 month')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 day')" 770,"###HUMAN: Visualize the general trend of sum share count over the date of transaction, sort in descending by the X-axis., ###ASSISTANT: SELECT date_of_transaction, SUM(share_count) FROM Transactions ORDER BY date_of_transaction DESC" 771,"###HUMAN: What is the Late Middle English equivalent of the Anglian g, g?, ###ASSISTANT: SELECT late_middle_english FROM table_28177800_5 WHERE late_old_english__anglian_ = ""æg, ǣg""" 772,"###HUMAN: What was the episode number for 'Going Bodmin'?, ###ASSISTANT: SELECT MAX(""Episode No."") FROM table_24058 WHERE ""Title"" = 'Going Bodmin'" 773,"###HUMAN: How many touchdowns were scored by William Cole?, ###ASSISTANT: SELECT ""Touchdowns"" FROM table_39585 WHERE ""Player"" = 'william cole'" 774,"###HUMAN: Give me the comparison about All_Games_Percent over the ACC_Regular_Season , and sort in descending by the bars., ###ASSISTANT: SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY ACC_Regular_Season DESC" 775,"###HUMAN: What rounds did RML Racing Silverline and James Nash compete?, ###ASSISTANT: SELECT ""Rounds"" FROM table_65927 WHERE ""Team"" = 'rml racing silverline' AND ""Drivers"" = 'james nash'" 776,"###HUMAN: Name the score for pacers visitor on 14 april 2008, ###ASSISTANT: SELECT ""Score"" FROM table_11226 WHERE ""Visitor"" = 'pacers' AND ""Date"" = '14 april 2008'" 777,"###HUMAN: Show birthdates of the professors in charge of ACCT-211 and bin the date by year interval in a line chart, display X-axis in asc order., ###ASSISTANT: SELECT EMP_DOB, COUNT(EMP_DOB) FROM EMPLOYEE AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = ""ACCT-211"" ORDER BY EMP_DOB" 778,"###HUMAN: Which City has a Result of w, and a Competition of international friendly (unofficial match), and a Score of 1-0?, ###ASSISTANT: SELECT ""City"" FROM table_37478 WHERE ""Result"" = 'w' AND ""Competition"" = 'international friendly (unofficial match)' AND ""Score"" = '1-0'" 779,"###HUMAN: What is the 1995 value with of the 1993 ATP Masters Series?, ###ASSISTANT: SELECT ""1995"" FROM table_34222 WHERE ""1993"" = 'atp masters series'" 780,"###HUMAN: What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186?, ###ASSISTANT: SELECT AVG(""Pick #"") FROM table_6626 WHERE ""Position"" = 'wide receiver' AND ""College"" = 'southern miss' AND ""Overall"" < '186'" 781,"###HUMAN: When was the first beatification in Korea that was canonised before 1984?, ###ASSISTANT: SELECT MIN(""Beatified"") FROM table_32112 WHERE ""Place"" = 'korea' AND ""Canonised"" < '1984'" 782,"###HUMAN: What horse does todd pletcher ride with odds of 14.20-1?, ###ASSISTANT: SELECT ""Horse name"" FROM table_55341 WHERE ""Jockey"" = 'todd pletcher' AND ""Post Time Odds"" = '14.20-1'" 783,"###HUMAN: how many episodes in the serie were title 'the key, ###ASSISTANT: SELECT COUNT(""No. in series"") FROM table_74425 WHERE ""Title"" = 'The Key'" 784,"###HUMAN: get the number of patients with diagnoses icd9 code 99662 who had ascitic fluid lab test done., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = ""99662"" AND lab.fluid = ""Ascites""" 785,"###HUMAN: What school is in Ligonier?, ###ASSISTANT: SELECT school FROM table_name_11 WHERE location = ""ligonier""" 786,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and manager_id , and rank total number in descending order please., ###ASSISTANT: SELECT PHONE_NUMBER, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID DESC" 787,"###HUMAN: How many schools did Derrick Green attend?, ###ASSISTANT: SELECT COUNT(""School"") FROM table_17075 WHERE ""Player"" = 'Derrick Green'" 788,"###HUMAN: what is admission type and procedure long title of subject id 2560?, ###ASSISTANT: SELECT demographic.admission_type, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = ""2560""" 789,"###HUMAN: What rank is Germany?, ###ASSISTANT: SELECT rank FROM table_name_74 WHERE country = ""germany""" 790,"###HUMAN: When the Away team is south melbourne, what's the Home team score?, ###ASSISTANT: SELECT ""Home team score"" FROM table_77872 WHERE ""Away team"" = 'south melbourne'" 791,"###HUMAN: Where did the cable-stayed Badong Bridge open in 2005?, ###ASSISTANT: SELECT location FROM table_name_18 WHERE type = ""cable-stayed"" AND opened = 2005 AND name = ""badong bridge""" 792,"###HUMAN: Draw a bar chart of dept code versus the total number, order y axis in descending order., ###ASSISTANT: SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY COUNT(*) DESC" 793,"###HUMAN: What is the second leg for Team 1 Servette?, ###ASSISTANT: SELECT ""2nd leg"" FROM table_60354 WHERE ""Team 1"" = 'servette'" 794,"###HUMAN: how many days has passed since patient 005-4471 received his first diagnosis of post spinal surgery - cervical on their current hospital encounter?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471' AND patient.hospitaldischargetime IS NULL)) AND diagnosis.diagnosisname = 'post spinal surgery - cervical' ORDER BY diagnosis.diagnosistime LIMIT 1" 795,"###HUMAN: Whcih was the Class AAA in school year 2006-07?, ###ASSISTANT: SELECT class_aAA FROM table_name_85 WHERE school_year = ""2006-07""" 796,"###HUMAN: What Russian has an Avoirdupois value of 0.686 gr?, ###ASSISTANT: SELECT russian FROM table_name_16 WHERE avoirdupois_value = ""0.686 gr""" 797,"###HUMAN: List the positions of players whose average number of points scored by that position is larger than 20, compare the number of positions, and order total number in descending order., ###ASSISTANT: SELECT Position, COUNT(Position) FROM player GROUP BY Position HAVING AVG(Points) >= 20 ORDER BY COUNT(Position) DESC" 798,"###HUMAN: What player has The United States as the country, with t2 as the place?, ###ASSISTANT: SELECT player FROM table_name_9 WHERE country = ""united states"" AND place = ""t2""" 799,"###HUMAN: What is Apogee, when Inclination is 65 , and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?, ###ASSISTANT: SELECT ""Apogee"" FROM table_12858 WHERE ""Inclination"" = '65°' AND ""Launch date/time ( GMT )"" = '15 february 1973, 01:11'" 800,"###HUMAN: get me the number of government health insurance patients who had closed [needle] biopsy of tongue., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = ""Government"" AND procedures.long_title = ""Closed [needle] biopsy of tongue""" 801,"###HUMAN: Who is the opponent in game 5?, ###ASSISTANT: SELECT opponent FROM table_20745706_1 WHERE _number = ""5""" 802,"###HUMAN: What is the round for the qualifying phase with a draw date on 16 July 2010?, ###ASSISTANT: SELECT ""Round"" FROM table_62144 WHERE ""Phase"" = 'qualifying' AND ""Draw date"" = '16 july 2010'" 803,"###HUMAN: Show all locations and the total number of platforms for all train stations in each location in a bar chart, sort by the Location in ascending., ###ASSISTANT: SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY Location" 804,"###HUMAN: in this month patient 004-32341 received a magnesium test?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-32341')) AND lab.labname = 'magnesium' AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')" 805,"###HUMAN: What is the average rank of Great Britain when their total is over 4?, ###ASSISTANT: SELECT AVG(""Rank"") FROM table_57342 WHERE ""Total"" > '4' AND ""Nation"" = 'great britain'" 806,"###HUMAN: What are the tries against when points against 287?, ###ASSISTANT: SELECT ""Tries against"" FROM table_812 WHERE ""Points against"" = '287'" 807,"###HUMAN: what is the lowest height (ft) for messeturm and more than 55 floors?, ###ASSISTANT: SELECT MIN(""Height (ft)"") FROM table_54024 WHERE ""Name"" = 'messeturm' AND ""Floors"" > '55'" 808,"###HUMAN: since 5 years ago, what are the five most frequently performed procedures for patients in the same month after receiving a vascular surgery consultation?, ###ASSISTANT: SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vascular surgery consultation' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-5 year')) AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmentname, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-5 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.treatmenttime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.treatmenttime, 'start of month') GROUP BY t2.treatmentname) AS t3 WHERE t3.c1 <= 5" 809,"###HUMAN: what is the drug route of Ascorbic acid?, ###ASSISTANT: SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = ""Ascorbic Acid""" 810,"###HUMAN: What was the highest points on October 12, when the attendance where is over 10,701?, ###ASSISTANT: SELECT MAX(""Points"") FROM table_43705 WHERE ""Date"" = 'october 12' AND ""Attendance"" > '10,701'" 811,"###HUMAN: A bar chart for what are the number of the first names of all students in Smith Hall?, could you list in ascending by the total number please?, ###ASSISTANT: SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' GROUP BY Fname ORDER BY COUNT(Fname)" 812,"###HUMAN: Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?, ###ASSISTANT: SELECT ""Interview subject"" FROM table_40077 WHERE ""Pictorials"" = 'christie brinkley'" 813,"###HUMAN: What is the sum of the total of the player who won in 1979?, ###ASSISTANT: SELECT SUM(""Total"") FROM table_62505 WHERE ""Year(s) won"" = '1979'" 814,"###HUMAN: What is the accreditation level for the approved (awarded 05.12.12) date?, ###ASSISTANT: SELECT accreditation_level FROM table_name_72 WHERE date = ""approved (awarded 05.12.12)""" 815,"###HUMAN: Give me a bar chart for the total number of each class, and could you sort from high to low by the y-axis please?, ###ASSISTANT: SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY COUNT(*) DESC" 816,"###HUMAN: Before round 7, what is the greatest Pick # for a player that plays defensive tackle?, ###ASSISTANT: SELECT MAX(pick__number) FROM table_name_5 WHERE position = ""defensive tackle"" AND round < 7" 817,"###HUMAN: Please give me a bar chart for the total enrollment in each county, sort in asc by the total number., ###ASSISTANT: SELECT County, SUM(Enrollment) FROM School GROUP BY County ORDER BY SUM(Enrollment)" 818,"###HUMAN: What is Record, when Game is greater than 55, and when Date is 'March 25'?, ###ASSISTANT: SELECT ""Record"" FROM table_8366 WHERE ""Game"" > '55' AND ""Date"" = 'march 25'" 819,"###HUMAN: Who is the captain of Neil Warnock's team?, ###ASSISTANT: SELECT ""Team captain"" FROM table_3592 WHERE ""Manager"" = 'Neil Warnock'" 820,"###HUMAN: Users with 10 or more meta posts with score of 2 or more (Convention badge)., ###ASSISTANT: SELECT u.Id AS ""user_link"", COUNT(*) AS NumPosts FROM Posts AS p INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE p.Score >= 2 GROUP BY u.Id HAVING COUNT(*) >= 10 ORDER BY NumPosts DESC" 821,"###HUMAN: tell me about flights from INDIANAPOLIS to HOUSTON, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'INDIANAPOLIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 822,"###HUMAN: When the winners votes were 50.54% who were the members of parliment?, ###ASSISTANT: SELECT members_of_parliament FROM table_18106841_1 WHERE winners__percentage_votes = ""50.54%""" 823,"###HUMAN: What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team?, ###ASSISTANT: SELECT highest_scoring_team FROM table_20079931_4 WHERE circuit_location = ""Ring Knutstorp"" AND winning_team = ""Polestar Racing""" 824,"###HUMAN: Is it true that geoffrey e. hinton has more citations than yann lecun ?, ###ASSISTANT: SELECT DISTINCT author.authorname, COUNT(writes.paperid) FROM author, writes WHERE author.authorname IN ('geoffrey e. hinton', 'yann lecun') AND writes.authorid = author.authorid GROUP BY author.authorname ORDER BY COUNT(writes.paperid) DESC" 825,"###HUMAN: Who is the mixed doubled on the tour korea super series?, ###ASSISTANT: SELECT mixed_doubles FROM table_27753492_2 WHERE tour = ""Korea Super Series""" 826,"###HUMAN: show me the three year survival rate of patients who have been prescribed tobramycin-dexamethasone ophth oint after having been diagnosed with hypertension nos?, ###ASSISTANT: SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 3 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hypertension nos') GROUP BY admissions.subject_id HAVING MIN(diagnoses_icd.charttime) = diagnoses_icd.charttime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.charttime) > 3 * 365) AS t2 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'tobramycin-dexamethasone ophth oint') AS t3 ON t2.subject_id = t3.subject_id WHERE t2.charttime < t3.startdate) AS t4 JOIN patients ON t4.subject_id = patients.subject_id" 827,"###HUMAN: calculate how many times patient 19627 received a laboratory test for potassium until 01/2103., ###ASSISTANT: SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'potassium') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19627) AND STRFTIME('%y-%m', labevents.charttime) <= '2103-01'" 828,"###HUMAN: which is longer the carolina or kentucky race ?, ###ASSISTANT: SELECT ""race"" FROM table_204_630 WHERE ""race"" IN ('carolina 500', 'kentucky') ORDER BY ""no"" DESC LIMIT 1" 829,"###HUMAN: What time is CDT when PDT is 3:17 a.m.?, ###ASSISTANT: SELECT cdt___5_utc_ FROM table_name_13 WHERE pdt___7_utc_ = ""3:17 a.m.""" 830,"###HUMAN: Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?, ###ASSISTANT: SELECT ""Mountains classification"" FROM table_25679 WHERE ""Youth classification"" = 'Nick Frey' AND ""Points classification"" = 'Tom Zirbel'" 831,"###HUMAN: What Region has a Catalog of crgd 86136?, ###ASSISTANT: SELECT region FROM table_name_47 WHERE catalog = ""crgd 86136""" 832,"###HUMAN: What is the Pashto word for the Somali word talaado?, ###ASSISTANT: SELECT pashto FROM table_name_24 WHERE somali = ""talaado""" 833,"###HUMAN: What years have claudia ruffo as the actor?, ###ASSISTANT: SELECT ""Years"" FROM table_65588 WHERE ""Actor"" = 'claudia ruffo'" 834,"###HUMAN: what is the maximum age of patients that survived in or above the age 72?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = ""0"" AND demographic.age >= ""72""" 835,"###HUMAN: What is Final, when Run 3 is 1:57.41?, ###ASSISTANT: SELECT final FROM table_name_60 WHERE run_3 = ""1:57.41""" 836,"###HUMAN: Which away team has a venue of Arden Street Oval?, ###ASSISTANT: SELECT away_team FROM table_name_76 WHERE venue = ""arden street oval""" 837,"###HUMAN: what was the first time that patient 031-24513 got a microbiology test?, ###ASSISTANT: SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) ORDER BY microlab.culturetakentime LIMIT 1" 838,"###HUMAN: What is the pick number for Danny Green in a round less than 2?, ###ASSISTANT: SELECT COUNT(""Pick"") FROM table_47989 WHERE ""Player"" = 'danny green' AND ""Round"" < '2'" 839,"###HUMAN: when was the last time patient 016-35266 was admitted via a hospital other hospital?, ###ASSISTANT: SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '016-35266' AND patient.hospitaladmitsource = 'other hospital' ORDER BY patient.hospitaladmittime DESC LIMIT 1" 840,"###HUMAN: For those employees who was hired before 2002-06-21, give me the comparison about the sum of employee_id over the hire_date bin hire_date by weekday., ###ASSISTANT: SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21'" 841,"###HUMAN: Give me a pie to show how many other account details from different other account details., ###ASSISTANT: SELECT other_account_details, COUNT(other_account_details) FROM Accounts GROUP BY other_account_details" 842,"###HUMAN: What is the score from the game where Algeria is the opponent at Porto-Novo?, ###ASSISTANT: SELECT score FROM table_name_28 WHERE opponent = ""algeria"" AND location = ""porto-novo""" 843,"###HUMAN: What is the Location of the Bridge Built in 1869?, ###ASSISTANT: SELECT location FROM table_name_58 WHERE built = ""1869""" 844,"###HUMAN: Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00?, ###ASSISTANT: SELECT indonesia_super_series_2008 FROM table_2544694_3 WHERE runner_up = ""Semi-Finalist"" AND 780000 = ""6420.00""" 845,"###HUMAN: What is the status of the fleet that was commissioned on July 28, 1963?, ###ASSISTANT: SELECT status FROM table_name_9 WHERE commissioned = ""july 28, 1963""" 846,"###HUMAN: what is patient 031-22988's monthly maximum level of oxyhemoglobin?, ###ASSISTANT: SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-22988')) AND lab.labname = 'oxyhemoglobin' GROUP BY STRFTIME('%y-%m', lab.labresulttime)" 847,"###HUMAN: I want the score for 23 july 1992, ###ASSISTANT: SELECT score FROM table_name_86 WHERE date = ""23 july 1992""" 848,"###HUMAN: What player's original team are the Oakland Raiders?, ###ASSISTANT: SELECT ""Player"" FROM table_80251 WHERE ""Original NFL team"" = 'oakland raiders'" 849,"###HUMAN: What is the number of patients diagnosed with rheumatic heart failure (congestive) who have a delta abnormal lab test?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = ""Rheumatic heart failure (congestive)"" AND lab.flag = ""delta""" 850,"###HUMAN: so what's the average mch value of patient 006-157753 on their current hospital encounter?, ###ASSISTANT: SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-157753' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'mch'" 851,"###HUMAN: Which Colliery has a Death toll of 7?, ###ASSISTANT: SELECT colliery FROM table_name_76 WHERE death_toll = 7" 852,"###HUMAN: What is the status of vessel number K-223?, ###ASSISTANT: SELECT status FROM table_1634376_1 WHERE _number = ""K-223""" 853,"###HUMAN: Name the post poles for 4 podiums, ###ASSISTANT: SELECT MAX(""Poles"") FROM table_29650 WHERE ""Podiums"" = '4'" 854,"###HUMAN: A line chart for what are the number of the distinct visit dates?, ###ASSISTANT: SELECT Visit_Date, COUNT(Visit_Date) FROM Visits" 855,"###HUMAN: How many faculty members does each building have? List the result with the name of the building with a bar chart, show from high to low by the x-axis., ###ASSISTANT: SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY Building DESC" 856,"###HUMAN: What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?, ###ASSISTANT: SELECT result FROM table_name_12 WHERE venue = ""stuttgart, west germany"" AND goal < 9" 857,"###HUMAN: Who had the high rebounds in the game with a final score of w 140-108?, ###ASSISTANT: SELECT ""High rebounds"" FROM table_1683 WHERE ""Score"" = 'W 140-108'" 858,"###HUMAN: What is the weight of the shortest person?, ###ASSISTANT: SELECT Weight FROM people ORDER BY Height LIMIT 1" 859,"###HUMAN: What was the 110H that the 1500m was 692 and the final was more than 7906?, ###ASSISTANT: SELECT COUNT(""110H"") FROM table_77037 WHERE ""1500 m"" = '692' AND ""Final"" > '7906'" 860,"###HUMAN: What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20?, ###ASSISTANT: SELECT AVG(pick) FROM table_name_76 WHERE player = ""marc lewis (lhp)"" AND round < 20" 861,"###HUMAN: Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?, ###ASSISTANT: SELECT opponent FROM table_name_51 WHERE surface = ""hardcourt"" AND outcome = ""runner-up"" AND tournament = ""honolulu""" 862,"###HUMAN: dysphagia nec what does it stand for?, ###ASSISTANT: SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dysphagia nec' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'dysphagia nec'" 863,"###HUMAN: For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of employee_id , and group by attribute job_id in a bar chart, and list y axis in asc order please., ###ASSISTANT: SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID)" 864,"###HUMAN: What Points for has a Try bonus of 140?, ###ASSISTANT: SELECT points_for FROM table_name_26 WHERE try_bonus = ""140""" 865,"###HUMAN: Name the langauge for switzerland, ###ASSISTANT: SELECT ""Language"" FROM table_71432 WHERE ""Country"" = 'switzerland'" 866,"###HUMAN: Name the total number of bids of the sun belt conference, ###ASSISTANT: SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = ""Sun Belt""" 867,"###HUMAN: Count the number of cinemas., ###ASSISTANT: SELECT COUNT(*) FROM cinema" 868,"###HUMAN: What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?, ###ASSISTANT: SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9" 869,"###HUMAN: What is the number of patients with private health insurance who had a urea nitrogen urine lab test?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = ""Private"" AND lab.label = ""Urea Nitrogen, Urine""" 870,"###HUMAN: Name the 2006 when the 2010 is 27, ###ASSISTANT: SELECT ""2006"" FROM table_15796 WHERE ""2010"" = '27'" 871,"###HUMAN: What was the score of the game when the Indians ended up with a record of 55-51?, ###ASSISTANT: SELECT score FROM table_name_33 WHERE record = ""55-51""" 872,"###HUMAN: Who won the mens singles when sayaka sato won the womens singles?, ###ASSISTANT: SELECT mens_singles FROM table_12275551_1 WHERE womens_singles = ""Sayaka Sato""" 873,"###HUMAN: What is the name of the Original artist when the week # is top 16 (8 men)?, ###ASSISTANT: SELECT original_artist FROM table_name_15 WHERE week__number = ""top 16 (8 men)""" 874,"###HUMAN: With an original artist names Bette Midler, what is the order number?, ###ASSISTANT: SELECT COUNT(order__number) FROM table_21501565_1 WHERE original_artist = ""Bette Midler""" 875,"###HUMAN: Posts that were edited by other users., ###ASSISTANT: SELECT Id AS ""post_link"", LastEditorUserId AS ""user_link"", LastEditDate FROM Posts WHERE OwnerUserId = '##UserId##' AND LastEditorUserId != '##UserId##' ORDER BY LastEditDate DESC" 876,"###HUMAN: How many appointment dates were recorded when J rgen Kohler was the replaced by?, ###ASSISTANT: SELECT COUNT(""Date of appointment"") FROM table_21275 WHERE ""Replaced by"" = 'Jürgen Kohler'" 877,"###HUMAN: What is the average year with an average start smaller than 6.3 and fewer than 0 wins?, ###ASSISTANT: SELECT AVG(""Year"") FROM table_36915 WHERE ""Avg. Start"" < '6.3' AND ""Wins"" < '0'" 878,"###HUMAN: japan earned only 1 bronze metal in boxing during the 1960 olympics . how many other countries earned the exact same metal count as japan ?, ###ASSISTANT: SELECT COUNT(""country"") FROM table_203_496 WHERE ""country"" <> 'japan' AND ""bronze"" = 1 AND ""total"" = 1" 879,"###HUMAN: For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of code , and group by attribute name, and I want to display Name in asc order., ###ASSISTANT: SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name" 880,"###HUMAN: Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?, ###ASSISTANT: SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9" 881,"###HUMAN: What date did the epiode that had 1.37 million as the rating originally air?, ###ASSISTANT: SELECT originalairdate FROM table_27218002_2 WHERE ratings = ""1.37 Million""" 882,"###HUMAN: When divisional semifinals are the playoffs what is the year?, ###ASSISTANT: SELECT ""Year"" FROM table_23374 WHERE ""Playoffs"" = 'Divisional Semifinals'" 883,"###HUMAN: Which label released the catalog Magik Muzik CD 07 on 28 March 2007?, ###ASSISTANT: SELECT label FROM table_name_86 WHERE date = ""28 march 2007"" AND catalog = ""magik muzik cd 07""" 884,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the average of employee_id bin hire_date by weekday in a bar chart, and sort in ascending by the Y-axis., ###ASSISTANT: SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(EMPLOYEE_ID)" 885,"###HUMAN: when did patient 029-16431 come this year for the last time to the hospital?, ###ASSISTANT: SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '029-16431' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1" 886,"###HUMAN: what is the number of patients whose diagnoses long title is sinoatrial node dysfunction?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = ""Sinoatrial node dysfunction""" 887,"###HUMAN: Show me how many destination by destination in a histogram, display by the bars in ascending., ###ASSISTANT: SELECT destination, COUNT(destination) FROM flight GROUP BY destination ORDER BY destination" 888,"###HUMAN: Which player plays for the college of manitoba?, ###ASSISTANT: SELECT ""Player"" FROM table_52523 WHERE ""College"" = 'manitoba'" 889,"###HUMAN: what is diagnoses short title of subject id 17519?, ###ASSISTANT: SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = ""17519""" 890,"###HUMAN: What was the Engine, when the Chassis was Bugatti T51, and when the Entrant was a Private Entry?, ###ASSISTANT: SELECT ""Engine"" FROM table_7679 WHERE ""Chassis"" = 'bugatti t51' AND ""Entrant"" = 'private entry'" 891,"###HUMAN: find the number of patients whose admission type is elective and lab test name is potassium, urine., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = ""ELECTIVE"" AND lab.label = ""Potassium, Urine""" 892,"###HUMAN: Name the city for los angeles stadium, ###ASSISTANT: SELECT ""City"" FROM table_30442 WHERE ""Stadium"" = 'Los Angeles Stadium'" 893,"###HUMAN: What is the Film/Show, when the Year is 2010?, ###ASSISTANT: SELECT ""Film/Show"" FROM table_68099 WHERE ""Year"" = '2010'" 894,"###HUMAN: Name the score for opponents of nathan healey igor kunitsyn, ###ASSISTANT: SELECT ""Score"" FROM table_38244 WHERE ""Opponents in the final"" = 'nathan healey igor kunitsyn'" 895,"###HUMAN: What is the average Season, when F/Laps is 1, and when Poles is less than 0?, ###ASSISTANT: SELECT AVG(""Season"") FROM table_42825 WHERE ""F/Laps"" = '1' AND ""Poles"" < '0'" 896,"###HUMAN: let me know the birth date and death date of patient caren obrien., ###ASSISTANT: SELECT demographic.dob, demographic.dod FROM demographic WHERE demographic.name = ""Caren Obrien""" 897,"###HUMAN: Show party names and the number of events for each party. Visualize by pie chart., ###ASSISTANT: SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID" 898,"###HUMAN: List all results from the 3-3 scoring game., ###ASSISTANT: SELECT ""Result"" FROM table_26930 WHERE ""Record"" = '3-3'" 899,"###HUMAN: How many laps did BRM have with a grid of 11?, ###ASSISTANT: SELECT COUNT(laps) FROM table_name_33 WHERE constructor = ""brm"" AND grid = 11" 900,"###HUMAN: What is the total number of draws for songs performed by Miranda with fewer than 48 points?, ###ASSISTANT: SELECT COUNT(draw) FROM table_name_64 WHERE performer = ""miranda"" AND points < 48" 901,"###HUMAN: On what day was the record set at the 2002 Salt Lake City games with a time of 3:57.70?, ###ASSISTANT: SELECT date FROM table_name_49 WHERE games = ""2002 salt lake city"" AND time = ""3:57.70""" 902,"###HUMAN: how many countries received silver medals ?, ###ASSISTANT: SELECT COUNT(""nation"") FROM table_204_211 WHERE ""silver"" > 0" 903,"###HUMAN: Who played against in venue a on 17 february 1900?, ###ASSISTANT: SELECT opponent FROM table_name_43 WHERE venue = ""a"" AND date = ""17 february 1900""" 904,"###HUMAN: does the united states have more nation of citzenship then united kingdom ?, ###ASSISTANT: SELECT (SELECT COUNT(*) FROM table_203_364 WHERE ""nation of citizenship"" = 'united states') > (SELECT COUNT(*) FROM table_203_364 WHERE ""nation of citizenship"" = 'united kingdom')" 905,"###HUMAN: which governor served for the least number of years ?, ###ASSISTANT: SELECT ""name\n(birth-death)"" FROM table_203_89 ORDER BY ""left office"" - ""took office"" LIMIT 1" 906,"###HUMAN: How many documents for each document type description? Visualize by a pie chart., ###ASSISTANT: SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description" 907,"###HUMAN: What was the nationality of five-eighth player Darren Lockyer?, ###ASSISTANT: SELECT ""Nationality"" FROM table_4886 WHERE ""Player"" = 'darren lockyer' AND ""Position"" = 'five-eighth'" 908,"###HUMAN: full PostHistory for a post., ###ASSISTANT: SELECT ph.*, pht.Name FROM PostHistory AS ph LEFT JOIN PostHistoryTypes AS pht ON ph.PostHistoryTypeId = pht.Id WHERE PostId = '##post:int##' ORDER BY ph.Id" 909,"###HUMAN: Which location has a method of decision and Nikos Tsoukalas for an opponent?, ###ASSISTANT: SELECT ""Location"" FROM table_61731 WHERE ""Method"" = 'decision' AND ""Opponent"" = 'nikos tsoukalas'" 910,"###HUMAN: A bar chart about what is average age for different job title?, and rank y axis in ascending order., ###ASSISTANT: SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age)" 911,"###HUMAN: count the number of patients whose language is engl and diagnoses long title is unspecified protein-calorie malnutrition?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = ""ENGL"" AND diagnoses.long_title = ""Unspecified protein-calorie malnutrition""" 912,"###HUMAN: How many parties received 29.9% of the vote in Manhattan?, ###ASSISTANT: SELECT COUNT(party) FROM table_1108394_47 WHERE manhattan = ""29.9_percentage""" 913,"###HUMAN: Information Extraction publications, ###ASSISTANT: SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Information Extraction' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid" 914,"###HUMAN: What is 1987, when 1986 is '1R'?, ###ASSISTANT: SELECT ""1987"" FROM table_43502 WHERE ""1986"" = '1r'" 915,"###HUMAN: What Event's Time is 4:01.00?, ###ASSISTANT: SELECT ""Event"" FROM table_67971 WHERE ""Time"" = '4:01.00'" 916,"###HUMAN: Which venue held a basketball team?, ###ASSISTANT: SELECT venue FROM table_name_98 WHERE sport = ""basketball""" 917,"###HUMAN: Find the number of users in each role. Plot them as bar chart., ###ASSISTANT: SELECT role_code, COUNT(*) FROM Users GROUP BY role_code" 918,"###HUMAN: What country is the Jiufotang Formation located in?, ###ASSISTANT: SELECT location FROM table_name_59 WHERE unit = ""jiufotang formation""" 919,"###HUMAN: id-requests to be deleted (q.score<4 and not a single answer scored >=3)., ###ASSISTANT: SELECT CONCAT('http://anime.stackexchange.com/questions/', p.Id) FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON pt.TagId = t.Id WHERE p.PostTypeId = 1 AND t.TagName = 'identification-request' AND p.DeletionDate IS NULL AND p.Score < 4 AND NOT EXISTS(SELECT 1 FROM Posts AS a WHERE a.ParentId = p.Id AND a.DeletionDate IS NULL AND a.Score >= 3)" 920,"###HUMAN: What is the sum of Grid, when Time is '+16.687'?, ###ASSISTANT: SELECT SUM(""Grid"") FROM table_59553 WHERE ""Time"" = '+16.687'" 921,"###HUMAN: What is the highest number of bronze medals of west germany, which has more than 0 golds?, ###ASSISTANT: SELECT MAX(""Bronze"") FROM table_66006 WHERE ""Nation"" = 'west germany' AND ""Gold"" > '0'" 922,"###HUMAN: why years have no liberal councillors serving ?, ###ASSISTANT: SELECT ""year"" FROM table_204_349 WHERE ""liberal\ncouncillors"" = 0" 923,"###HUMAN: Which club has a League of american basketball association, and a Venue of tba?, ###ASSISTANT: SELECT ""Club"" FROM table_67629 WHERE ""League"" = 'american basketball association' AND ""Venue"" = 'tba'" 924,"###HUMAN: What year was incumbent jim mcdermott first elected?, ###ASSISTANT: SELECT MIN(""First elected"") FROM table_72369 WHERE ""Incumbent"" = 'Jim McDermott'" 925,"###HUMAN: in the ft pct .667 what is the number of gp-gs, ###ASSISTANT: SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = "".667""" 926,"###HUMAN: In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendance?, ###ASSISTANT: SELECT SUM(""Week"") FROM table_47699 WHERE ""Opponent"" = 'tampa bay buccaneers' AND ""Attendance"" < '44,506'" 927,"###HUMAN: Show each gender code and the corresponding count of guests sorted by the count in descending order by a pie chart., ###ASSISTANT: SELECT gender_code, COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC" 928,"###HUMAN: How many laps did Ricardo Zonta drive with a grid less than 14?, ###ASSISTANT: SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = ""ricardo zonta""" 929,"###HUMAN: What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?, ###ASSISTANT: SELECT AVG(""L/100km Combined"") FROM table_66547 WHERE ""L/100km Urban (Cold)"" = '13.9' AND ""mpg-UK Combined"" > '28.5' AND ""mpg-UK Extra-Urban"" < '38.7'" 930,"###HUMAN: provide the number of patients whose marital status is widowed and procedure long title is percutaneous (endoscopic) jejunostomy [pej]?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = ""WIDOWED"" AND procedures.long_title = ""Percutaneous (endoscopic) jejunostomy [PEJ]""" 931,"###HUMAN: How tall is Maksim Botin?, ###ASSISTANT: SELECT height FROM table_14038363_1 WHERE player = ""Maksim Botin""" 932,"###HUMAN: how many patients are diagnosed with polyneuropathy in diabetes and treated with base drug?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = ""Polyneuropathy in diabetes"" AND prescriptions.drug_type = ""BASE""" 933,"###HUMAN: What shows for shoots for craig peacock a?, ###ASSISTANT: SELECT shoots FROM table_name_62 WHERE player = ""craig peacock a""" 934,"###HUMAN: What was the date of game with a score of 42-6?, ###ASSISTANT: SELECT ""Date"" FROM table_32178 WHERE ""Score"" = '42-6'" 935,"###HUMAN: What kind of Social Sec Leeds has a Media Officer of jason james and a Treasurer of james davidson?, ###ASSISTANT: SELECT social_sec_leeds FROM table_name_62 WHERE media_officer = ""jason james"" AND treasurer = ""james davidson""" 936,"###HUMAN: What are the dates that Falling Angel aired?, ###ASSISTANT: SELECT date FROM table_28803803_1 WHERE name = ""Falling Angel""" 937,"###HUMAN: give me the number of patients whose year of birth is less than 2182 and procedure short title is coronar arteriogr-1 cath?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < ""2182"" AND procedures.short_title = ""Coronar arteriogr-1 cath""" 938,"###HUMAN: How many completion students in each day? Return a line chart grouping by date of completion, and order by the X-axis in descending please., ###ASSISTANT: SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment GROUP BY date_of_completion ORDER BY date_of_completion DESC" 939,"###HUMAN: What is the effective date of the claim that has the largest amount of total settlement?, ###ASSISTANT: SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY SUM(t2.settlement_amount) DESC LIMIT 1" 940,"###HUMAN: retrieve the patient ids who are diagnosed with nonrupt cerebral aneurym since 2105., ###ASSISTANT: SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'nonrupt cerebral aneurym') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2105')" 941,"###HUMAN: Which inhabitants have 2009 as the election, with cremona as the municipality?, ###ASSISTANT: SELECT ""Inhabitants"" FROM table_13089 WHERE ""Election"" = '2009' AND ""Municipality"" = 'cremona'" 942,"###HUMAN: Can you identify the GSIs from last semester for DENTED 605 ?, ###ASSISTANT: SELECT DISTINCT student.firstname, student.lastname FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN gsi ON gsi.course_offering_id = course_offering.offering_id INNER JOIN student ON student.student_id = gsi.student_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'DENTED' AND course.number = 605 AND semester.semester = 'FA' AND semester.year = 2015" 943,"###HUMAN: What round did Matt Clark play?, ###ASSISTANT: SELECT round FROM table_name_94 WHERE player = ""matt clark""" 944,"###HUMAN: Is MATH 185 available as a Summer class in 2004 ?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MATH' AND course.number = 185 AND semester.semester = 'Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2004" 945,"###HUMAN: Show the facility codes of apartments with more than 4 bedrooms, and count them by a bar chart, display by the Y-axis from high to low., ###ASSISTANT: SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY COUNT(facility_code) DESC" 946,"###HUMAN: Which numerical entry corresponds to 'Episode 9'?, ###ASSISTANT: SELECT COUNT(""#"") FROM table_19808 WHERE ""Episode"" = 'Episode 9'" 947,"###HUMAN: Show the minister who took office after 1961 or before 1959., ###ASSISTANT: SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959" 948,"###HUMAN: how many teams did the comets win 2 matches against ?, ###ASSISTANT: SELECT COUNT(""opposition"") FROM table_204_334 WHERE ""won"" = 2" 949,"###HUMAN: In what City/State did the ATCC Round 4 series take place?, ###ASSISTANT: SELECT city___state FROM table_name_62 WHERE series = ""atcc round 4""" 950,"###HUMAN: Show the product name and total order quantity for each product. Show bar chart., ###ASSISTANT: SELECT T1.product_name, AVG(SUM(T2.order_quantity)) FROM Products AS T1 JOIN Order_Items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name" 951,"###HUMAN: How much Played has a Position of 7, and a Drawn smaller than 7?, ###ASSISTANT: SELECT SUM(""Played"") FROM table_60828 WHERE ""Position"" = '7' AND ""Drawn"" < '7'" 952,"###HUMAN: what are the ways to consume guaifenesin?, ###ASSISTANT: SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'guaifenesin'" 953,"###HUMAN: Which Gran Hamada has a Block A of tatsuhito takaiwa?, ###ASSISTANT: SELECT gran_hamada FROM table_name_67 WHERE block_a = ""tatsuhito takaiwa""" 954,"###HUMAN: return me the number of papers in VLDB conference in ' University of Michigan ' ., ###ASSISTANT: SELECT COUNT(DISTINCT (publication.title)) FROM author, conference, organization, publication, writes WHERE conference.name = 'VLDB' AND organization.name = 'University of Michigan' AND organization.oid = author.oid AND publication.cid = conference.cid AND writes.aid = author.aid AND writes.pid = publication.pid" 955,"###HUMAN: A bar graph listing the local authorities and how many local authorities provided by all stations, could you display X from high to low order?, ###ASSISTANT: SELECT local_authority, COUNT(local_authority) FROM station GROUP BY local_authority ORDER BY local_authority DESC" 956,"###HUMAN: Where did the player who won in 1991 finish?, ###ASSISTANT: SELECT ""Finish"" FROM table_61462 WHERE ""Year(s) won"" = '1991'" 957,"###HUMAN: How much does number 26 weigh?, ###ASSISTANT: SELECT weight FROM table_name_31 WHERE number = ""26""" 958,"###HUMAN: Which team has 10 losses?, ###ASSISTANT: SELECT ""Team"" FROM table_41853 WHERE ""Lost"" = '10'" 959,"###HUMAN: What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?, ###ASSISTANT: SELECT MAX(""Market Value (billion $)"") FROM table_48303 WHERE ""Profits (billion $)"" = '20.96' AND ""Assets (billion $)"" > '166.99'" 960,"###HUMAN: when was the last time patient 027-165214 had the minimum systemicdiastolic on the current intensive care unit visit., ###ASSISTANT: SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-165214') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.systemicdiastolic IS NULL ORDER BY vitalperiodic.systemicdiastolic, vitalperiodic.observationtime DESC LIMIT 1" 961,"###HUMAN: What is the LOA of Brindabella?, ###ASSISTANT: SELECT loa__metres_ FROM table_25595209_1 WHERE yacht = ""Brindabella""" 962,"###HUMAN: what are the top three most common specimen tests performed since 2 years ago?, ###ASSISTANT: SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 3" 963,"###HUMAN: had patient 3273 excreted urine out ureteral stent #1 when they came to the hospital last time?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3273 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urine out ureteral stent #1' AND d_items.linksto = 'outputevents')" 964,"###HUMAN: In what season was the conference record for the Pandas 15-1-1?, ###ASSISTANT: SELECT ""Season"" FROM table_29292 WHERE ""Conf. Record"" = '15-1-1'" 965,"###HUMAN: What district has abhayapuri south as the name?, ###ASSISTANT: SELECT ""District"" FROM table_60842 WHERE ""Name"" = 'abhayapuri south'" 966,"###HUMAN: What was Tom Kite's to par?, ###ASSISTANT: SELECT ""To par"" FROM table_7771 WHERE ""Player"" = 'tom kite'" 967,"###HUMAN: Which Rank is the Country of soviet union with a Total smaller than 19?, ###ASSISTANT: SELECT MIN(rank) FROM table_name_94 WHERE country = ""soviet union"" AND total < 19" 968,"###HUMAN: How many people directed episode 3 in the season?, ###ASSISTANT: SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3" 969,"###HUMAN: baseline hgb below the lower limits of normal at the local laboratory; lymphopenia ( < 1000 / l ) , neutropenia ( < 1500 / l ) , or thrombocytopenia ( platelets < 100000 / l ) ., ###ASSISTANT: SELECT * FROM table_dev_20 WHERE lymphopenia < 1000 AND neutropenia < 1500 OR thrombocytopenia = 1 OR platelets < 100000" 970,"###HUMAN: who was the winning driver after nigel mansell ?, ###ASSISTANT: SELECT ""winning driver"" FROM table_203_408 WHERE ""rd."" > (SELECT ""rd."" FROM table_203_408 WHERE ""winning driver"" = 'nigel mansell') ORDER BY ""rd."" LIMIT 1" 971,"###HUMAN: What type of car has the model 6cm?, ###ASSISTANT: SELECT type FROM table_name_11 WHERE model = ""6cm""" 972,"###HUMAN: what was the last ward identification for patient 49036 since 4 years ago?, ###ASSISTANT: SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 49036) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY transfers.intime DESC LIMIT 1" 973,"###HUMAN: What is the player from England's score?, ###ASSISTANT: SELECT score FROM table_name_98 WHERE country = ""england""" 974,"###HUMAN: Which Maximum episode premiered March 8, 2008?, ###ASSISTANT: SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = ""March 8, 2008""" 975,"###HUMAN: How many patients are born before 2197 and with procedure icd9 code 309?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < ""2197"" AND procedures.icd9_code = ""309""" 976,"###HUMAN: What is the acceleration 1-100km/h when the name is 1.5 dci?, ###ASSISTANT: SELECT acceleration_0_100km_h FROM table_name_32 WHERE name = ""1.5 dci""" 977,"###HUMAN: give me the number of patients whose primary disease is transient ischemic attack and days of hospital stay is greater than 4?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""TRANSIENT ISCHEMIC ATTACK"" AND demographic.days_stay > ""4""" 978,"###HUMAN: Which away game was played on 2008-07-18?, ###ASSISTANT: SELECT away FROM table_name_5 WHERE date = ""2008-07-18""" 979,"###HUMAN: What is the team whose driver Jeff Simmons?, ###ASSISTANT: SELECT team FROM table_17319931_1 WHERE driver = ""Jeff Simmons""" 980,"###HUMAN: What was the final score when tracy austin was runner up?, ###ASSISTANT: SELECT score_in_final FROM table_20986710_1 WHERE runner_up = ""Tracy Austin""" 981,"###HUMAN: Which NBA Draft had Labradford Smith?, ###ASSISTANT: SELECT nba_draft FROM table_name_61 WHERE player = ""labradford smith""" 982,"###HUMAN: Which player has a 92.58 3-dart average?, ###ASSISTANT: SELECT ""Player"" FROM table_24015 WHERE ""3-dart Average"" = '92.58'" 983,"###HUMAN: Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers?, ###ASSISTANT: SELECT conference_joined FROM table_name_95 WHERE previous_conference = ""northwestern"" AND mascot = ""oilers""" 984,"###HUMAN: If sample 6480 is imported, which country is it originally from?, ###ASSISTANT: SELECT country FROM sampledata15 WHERE sample_pk = 6480 AND origin = 2" 985,"###HUMAN: Give me the title and highest price for each film Show bar chart, list from low to high by the Y., ###ASSISTANT: SELECT Title, MAX(T1.Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Title ORDER BY MAX(T1.Price)" 986,"###HUMAN: What club team did JArrod Maidens play for?, ###ASSISTANT: SELECT ""Club team"" FROM table_17204 WHERE ""Player"" = 'Jarrod Maidens'" 987,"###HUMAN: Name the least matches for year 2008, ###ASSISTANT: SELECT MIN(matches) FROM table_15829930_5 WHERE year = 2008" 988,"###HUMAN: Show me about the distribution of All_Road and Team_ID in a bar chart, display by the y-axis in ascending., ###ASSISTANT: SELECT All_Road, Team_ID FROM basketball_match ORDER BY Team_ID" 989,"###HUMAN: What is the Placement when the Candidate is Jean-Patrick Berthiaume?, ###ASSISTANT: SELECT ""Placement"" FROM table_15441 WHERE ""Candidate"" = 'jean-patrick berthiaume'" 990,"###HUMAN: Questions I have answered where asker has accepted another answer. Lists all questions I have proposed an answer to, and, sadly, the original asker accepted a different answer., ###ASSISTANT: SELECT p.Id AS ""post_link"", a.Score, a.CreationDate FROM Posts AS a, Posts AS p WHERE a.OwnerUserId = '##UserId##' AND a.PostTypeId = 2 AND p.Id = a.ParentId AND p.AcceptedAnswerId != a.Id ORDER BY a.Score, a.CreationDate" 991,"###HUMAN: How many winners were there in the race of 1922, ###ASSISTANT: SELECT COUNT(""Incumbent"") FROM table_777 WHERE ""First elected"" = '1922'" 992,"###HUMAN: What is the title for episode number 7 in the season?, ###ASSISTANT: SELECT COUNT(title) FROM table_15431251_1 WHERE no_in_season = 7" 993,"###HUMAN: What was the score when the opponent was Dominika Cibulkov ?, ###ASSISTANT: SELECT ""Score"" FROM table_72981 WHERE ""Opponent"" = 'Dominika Cibulková'" 994,"###HUMAN: How many goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1?, ###ASSISTANT: SELECT COUNT(""Goals Against"") FROM table_4876 WHERE ""Lost"" > '7' AND ""Goals For"" < '27' AND ""Drawn"" > '1'" 995,"###HUMAN: What is the score for Billy Andrade?, ###ASSISTANT: SELECT ""Score"" FROM table_8435 WHERE ""Player"" = 'billy andrade'" 996,"###HUMAN: What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?, ###ASSISTANT: SELECT AVG(""2002"") FROM table_70544 WHERE ""2010"" < '5587' AND ""Production year"" = 'sunflower' AND ""2007"" > '546'" 997,"###HUMAN: Who had the most points and how many did they have on April 22?, ###ASSISTANT: SELECT high_points FROM table_27700530_15 WHERE date = ""April 22""" 998,"###HUMAN: which building held the record before the current holder ?, ###ASSISTANT: SELECT ""building"" FROM table_203_777 WHERE ""years"" < present_ref ORDER BY ""years"" DESC LIMIT 1" 999,"###HUMAN: What is the attendance of the game on July 26?, ###ASSISTANT: SELECT SUM(attendance) FROM table_name_1 WHERE date = ""july 26""" 1000,"###HUMAN: Name the site for game of game 2, ###ASSISTANT: SELECT site FROM table_name_26 WHERE game = ""game 2""" 1001,"###HUMAN: microalbuminuria up to 300 mg / 24 hours is acceptable if serum creatinine is < 1.4 for female , < 1.5 for male and estimated gfr ( egfr ) is > 60 ), ###ASSISTANT: SELECT * FROM table_dev_42 WHERE microalbuminuria <= 300 OR ((gender = 'male' AND serum_creatinine < 1.5) OR (gender = 'female' AND serum_creatinine < 1.4)) AND estimated_glomerular_filtration_rate_egfr > 60" 1002,"###HUMAN: during the previous year, what were the top three most frequently ordered lab tests for patients during the same month after the diagnosis of accid in resident instit?, ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'accid in resident instit') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id WHERE DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 3)" 1003,"###HUMAN: how many total medals did brazil received ?, ###ASSISTANT: SELECT ""total"" FROM table_204_302 WHERE ""nation"" = 'brazil'" 1004,"###HUMAN: What play has a base of Athens and was written by Aeschylus?, ###ASSISTANT: SELECT play FROM table_name_67 WHERE author = ""aeschylus"" AND base = ""athens""" 1005,"###HUMAN: Got most down to non-CW answers., ###ASSISTANT: SELECT DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS Rank, Posts.OwnerUserId AS ""user_link"", Posts.OwnerUserId AS UserId, COUNT(*) AS Count FROM Posts, Votes WHERE Posts.Id = Votes.PostId AND Votes.VoteTypeId = 3 AND Posts.PostTypeId = 2 AND Posts.CommunityOwnedDate IS NULL AND Posts.OwnerUserId > 0 GROUP BY Posts.OwnerUserId ORDER BY Count DESC, UserId LIMIT 100" 1006,"###HUMAN: List all church names in descending order of opening date., ###ASSISTANT: SELECT name FROM church ORDER BY open_date DESC" 1007,"###HUMAN: What is the average attendance after week 16?, ###ASSISTANT: SELECT AVG(attendance) FROM table_name_10 WHERE week > 16" 1008,"###HUMAN: In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?, ###ASSISTANT: SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'" 1009,"###HUMAN: What Secretary has an Internal CO of isabel voets?, ###ASSISTANT: SELECT ""Secretary"" FROM table_61959 WHERE ""Internal CO"" = 'isabel voets'" 1010,"###HUMAN: what is the number of patients whose discharge location is long term care hospital and procedure long title is incision of vessel, lower limb arteries?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = ""LONG TERM CARE HOSPITAL"" AND procedures.long_title = ""Incision of vessel, lower limb arteries""" 1011,"###HUMAN: how much does it cost for the hospital stay of patient 29540?, ###ASSISTANT: SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 29540)" 1012,"###HUMAN: Give the ids of documents with expenses that have the budget code 'SF'., ###ASSISTANT: SELECT document_id FROM documents_with_expenses WHERE budget_type_code = 'SF'" 1013,"###HUMAN: Which skill is used in fixing the most number of faults? List the skill id and description., ###ASSISTANT: SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1" 1014,"###HUMAN: Top users under 18 by Reputation., ###ASSISTANT: SELECT Id, DisplayName, Age, Reputation, CreationDate, LastAccessDate, 'http://stackoverflow.com/users/' + CAST(Id AS TEXT) AS Url FROM Users AS b WHERE (b.Age <= 18) ORDER BY b.Reputation, b.Age" 1015,"###HUMAN: select * from posts limit 10;., ###ASSISTANT: SELECT * FROM Posts WHERE Score > 1000" 1016,"###HUMAN: who wrote the most ACL papers in 2010, ###ASSISTANT: SELECT DISTINCT COUNT(paper.paperid), writes.authorid FROM paper, venue, writes WHERE paper.year = 2010 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' AND writes.paperid = paper.paperid GROUP BY writes.authorid ORDER BY COUNT(paper.paperid) DESC" 1017,"###HUMAN: How many Vacators were listed when the district was North Carolina 3rd?, ###ASSISTANT: SELECT COUNT(""Vacator"") FROM table_25065 WHERE ""District"" = 'North Carolina 3rd'" 1018,"###HUMAN: Where is Bloomington High School North?, ###ASSISTANT: SELECT ""City / Town"" FROM table_73158 WHERE ""School"" = 'Bloomington High School North'" 1019,"###HUMAN: list the flights from SALT LAKE CITY to ST. PETERSBURG, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SALT LAKE CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. PETERSBURG' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 1020,"###HUMAN: How many artists were there for the show thoroughly modern millie?, ###ASSISTANT: SELECT COUNT(artist) FROM table_28140141_1 WHERE show = ""Thoroughly Modern Millie""" 1021,"###HUMAN: What was the result of the game with the record of 3-1?, ###ASSISTANT: SELECT result FROM table_20849830_1 WHERE record = ""3-1""" 1022,"###HUMAN: Which player scored 76-68=144?, ###ASSISTANT: SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144" 1023,"###HUMAN: how many unmarried patients have dialys route of drug administration?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = ""SINGLE"" AND prescriptions.route = ""DIALYS""" 1024,"###HUMAN: what is minimum age of patients whose primary disease is coronary artery disease\coronary artery bypass graft with mvr; ? maze and admission year is greater than or equal to 2146?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = ""CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE"" AND demographic.admityear >= ""2146""" 1025,"###HUMAN: Can you tell me the Record that has the Game of 19?, ###ASSISTANT: SELECT ""Record"" FROM table_46830 WHERE ""Game"" = '19'" 1026,"###HUMAN: What's the class of the HMS Heartsease?, ###ASSISTANT: SELECT class FROM table_name_75 WHERE name = ""hms heartsease""" 1027,"###HUMAN: give me the number of patients whose admission type is elective and procedure icd9 code is 3613?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = ""ELECTIVE"" AND procedures.icd9_code = ""3613""" 1028,"###HUMAN: What was the original title for the film used in nomination of street days?, ###ASSISTANT: SELECT ""Original title"" FROM table_61774 WHERE ""Film title used in nomination"" = 'street days'" 1029,"###HUMAN: What is the Points against for the ystradgynlais rfc club?, ###ASSISTANT: SELECT points_against FROM table_name_58 WHERE club = ""ystradgynlais rfc""" 1030,"###HUMAN: Give me the comparison about the sum of Weight over the Sex , and group by attribute Sex, and could you show Sex in desc order?, ###ASSISTANT: SELECT Sex, SUM(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC" 1031,"###HUMAN: Which Round has a Name of john goodyear?, ###ASSISTANT: SELECT round FROM table_name_55 WHERE name = ""john goodyear""" 1032,"###HUMAN: WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?, ###ASSISTANT: SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = ""21 november 1582""" 1033,"###HUMAN: what is the italian word for the french word 'mer, ###ASSISTANT: SELECT italian FROM table_name_37 WHERE french = ""mer""" 1034,"###HUMAN: Find the number of professors with a PhD degree in each department Show bar chart, I want to display by the Y from low to high., ###ASSISTANT: SELECT DEPT_CODE, COUNT(*) FROM PROFESSOR WHERE PROF_HIGH_DEGREE = 'Ph.D.' GROUP BY DEPT_CODE ORDER BY COUNT(*)" 1035,"###HUMAN: what is admission time and lab test name of subject id 22377?, ###ASSISTANT: SELECT demographic.admittime, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = ""22377""" 1036,"###HUMAN: What is the season # where production code is k1505?, ###ASSISTANT: SELECT MIN(season__number) FROM table_11951237_3 WHERE production_code = ""K1505""" 1037,"###HUMAN: What nationality has a ranking less than 7 with tony stenson as the name?, ###ASSISTANT: SELECT nationality FROM table_name_13 WHERE ranking < 7 AND name = ""tony stenson""" 1038,"###HUMAN: what is discharge time and procedure icd9 code of subject id 65759?, ###ASSISTANT: SELECT demographic.dischtime, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = ""65759""" 1039,"###HUMAN: give me the number of patients whose days of hospital stay is greater than 1 and procedure short title is hemodialysis?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > ""1"" AND procedures.short_title = ""Hemodialysis""" 1040,"###HUMAN: What is the earliest year a SG has over 650 assists?, ###ASSISTANT: SELECT MIN(""From"") FROM table_55647 WHERE ""Pos."" = 'sg' AND ""Asts"" > '650'" 1041,"###HUMAN: Which patients have hispanic or latino-puerto rican ethnic background?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""HISPANIC/LATINO - PUERTO RICAN""" 1042,"###HUMAN: What is on the reverse side of the 100 coin?, ###ASSISTANT: SELECT reverse FROM table_298883_5 WHERE value = ""₩100""" 1043,"###HUMAN: How many different numbers of cantons does the province with the Armenian name have?, ###ASSISTANT: SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = ""Վասպուրական""" 1044,"###HUMAN: What is the Name of the Players with a Rank of 18?, ###ASSISTANT: SELECT name FROM table_name_67 WHERE rank = 18" 1045,"###HUMAN: What year for geelong player john roberts?, ###ASSISTANT: SELECT year FROM table_name_77 WHERE opponent = ""geelong"" AND player = ""john roberts""" 1046,"###HUMAN: What is the start source of the irl country, which ended on 13 April?, ###ASSISTANT: SELECT ""Start Source"" FROM table_46537 WHERE ""Country"" = 'irl' AND ""Ended"" = '13 april'" 1047,"###HUMAN: What is Country, when Time is 1:29.43.60?, ###ASSISTANT: SELECT country FROM table_name_68 WHERE time = ""1:29.43.60""" 1048,"###HUMAN: How long was the 16 staged event in 1997?, ###ASSISTANT: SELECT distance FROM table_name_38 WHERE stages = ""16"" AND year = ""1997""" 1049,"###HUMAN: What is Wu Xing ( ) with Korean (RR) of (im)?, ###ASSISTANT: SELECT wu_xing___五行__ FROM table_name_80 WHERE korean___rr__ = ""임 (im)""" 1050,"###HUMAN: max number of dupes on a question., ###ASSISTANT: SELECT pl.PostId AS ""post_link"", COUNT(*) FROM PostLinks AS pl INNER JOIN Posts AS p ON p.Id = pl.PostId WHERE LinkTypeId = 3 GROUP BY PostId HAVING COUNT(*) > 2 ORDER BY 2 DESC" 1051,"###HUMAN: Users' search by Name and AboutME., ###ASSISTANT: SELECT DISTINCT u.Id AS ""user_link"", CONCAT('https://stackoverflow.com/users/', u.Id) AS ""profile_link"", u.DisplayName, u.Location, u.WebsiteUrl, u.AboutMe, u.Views, u.Reputation, u.UpVotes, u.DownVotes, u.EmailHash FROM Users AS u WHERE UPPER(u.AboutMe) LIKE UPPER('%##AboutMe##%') AND UPPER(DisplayName) LIKE UPPER('%##DisplayName##%')" 1052,"###HUMAN: Which player is from south africa?, ###ASSISTANT: SELECT ""Player"" FROM table_62584 WHERE ""Country"" = 'south africa'" 1053,"###HUMAN: What is the upstream with the price 65 chf?, ###ASSISTANT: SELECT ""Upstream"" FROM table_44728 WHERE ""Price"" = '65 chf'" 1054,"###HUMAN: What's the Order with an Elector of Marino Bulcani?, ###ASSISTANT: SELECT ""Order"" FROM table_71578 WHERE ""Elector"" = 'marino bulcani'" 1055,"###HUMAN: Which Finish has a To par of 1, and a Year(s) won of 1955?, ###ASSISTANT: SELECT finish FROM table_name_61 WHERE to_par = ""–1"" AND year_s__won = ""1955""" 1056,"###HUMAN: What nationality has a year larger than 2009 with a position of power forward?, ###ASSISTANT: SELECT nationality FROM table_name_32 WHERE year > 2009 AND position = ""power forward""" 1057,"###HUMAN: Where was the location attendance when Minnesota played?, ###ASSISTANT: SELECT ""Location Attendance"" FROM table_8150 WHERE ""Team"" = 'minnesota'" 1058,"###HUMAN: Find the names of all the tracks that contain the word 'you'., ###ASSISTANT: SELECT name FROM track WHERE name LIKE '%you%'" 1059,"###HUMAN: In what season did the team get in the conference finals of the playoffs?, ###ASSISTANT: SELECT ""Regular Season"" FROM table_2031 WHERE ""Playoffs"" = 'Conference Finals'" 1060,"###HUMAN: What was the crowd size when the away team scored 7.19 (61)?, ###ASSISTANT: SELECT COUNT(""Crowd"") FROM table_33397 WHERE ""Away team score"" = '7.19 (61)'" 1061,"###HUMAN: what is the marital status and days of hospital stay of subject id 6983?, ###ASSISTANT: SELECT demographic.marital_status, demographic.days_stay FROM demographic WHERE demographic.subject_id = ""6983""" 1062,"###HUMAN: Which driver was in 8 rounds with a chassis of dallara f306?, ###ASSISTANT: SELECT ""Driver"" FROM table_44017 WHERE ""Chassis"" = 'dallara f306' AND ""Rounds"" = '8'" 1063,"###HUMAN: get the number of urgent hospital admission patients who have prescription for calcium carbonate., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = ""URGENT"" AND prescriptions.drug = ""Calcium Carbonate""" 1064,"###HUMAN: Which places have points larger than 10?, ###ASSISTANT: SELECT MIN(points) FROM table_name_8 WHERE place > 10" 1065,"###HUMAN: What is the Position for the brandon wheat kings (wchl)?, ###ASSISTANT: SELECT ""Position"" FROM table_5865 WHERE ""College/junior/club team"" = 'brandon wheat kings (wchl)'" 1066,"###HUMAN: Return a bar chart about the distribution of Date_of_Birth and Height , display in desc by the names please., ###ASSISTANT: SELECT Date_of_Birth, Height FROM people ORDER BY Date_of_Birth DESC" 1067,"###HUMAN: What was the Forbers rank (all companies) in 2012 for cenovus energy?, ###ASSISTANT: SELECT ""Rank (all) 2012"" FROM table_2971 WHERE ""Name"" = 'Cenovus Energy'" 1068,"###HUMAN: what is minimum age of patients whose marital status is single and primary disease is hypertension;rule out coronary artery disease\cardiac cath?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = ""SINGLE"" AND demographic.diagnosis = ""HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH""" 1069,"###HUMAN: Can ORALPATH 696 be used for ULCS ?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'ORALPATH' AND course.number = 696 AND program_course.category LIKE '%ULCS%'" 1070,"###HUMAN: How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?, ###ASSISTANT: SELECT us_viewers__million_ FROM table_13183076_3 WHERE production_code = ""3T7051""" 1071,"###HUMAN: Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?, ###ASSISTANT: SELECT ""Investing Dragon(s)"" FROM table_71894 WHERE ""Episode"" = 'episode 9' AND ""Entrepreneur(s)"" = 'ashley sayed'" 1072,"###HUMAN: Which advisors are advising more than 2 students?, ###ASSISTANT: SELECT advisor FROM student GROUP BY advisor HAVING COUNT(*) > 2" 1073,"###HUMAN: What was willie wood's to par?, ###ASSISTANT: SELECT to_par FROM table_name_15 WHERE player = ""willie wood""" 1074,"###HUMAN: tell me the top five most common diagnoses of patients with an age of 20s until 2104?, ###ASSISTANT: SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 5" 1075,"###HUMAN: Name the end date for robert goebbels, ###ASSISTANT: SELECT ""End date"" FROM table_14845 WHERE ""Minister"" = 'robert goebbels'" 1076,"###HUMAN: Give me a scatter chart to show the star rating of the movie and reviewer id, group the title., ###ASSISTANT: SELECT rID, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title" 1077,"###HUMAN: What's the production code of the episode titled 'He ain't a hottie, he's my brother'?, ###ASSISTANT: SELECT ""Prod. code"" FROM table_1806 WHERE ""Title"" = 'He Ain''t a Hottie, He''s My Brother'" 1078,"###HUMAN: Give me a bar chart for how many name of each name, and order by the names in ascending., ###ASSISTANT: SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name" 1079,"###HUMAN: What is the home team score that played away team carlton?, ###ASSISTANT: SELECT home_team AS score FROM table_name_60 WHERE away_team = ""carlton""" 1080,"###HUMAN: who received more votes , duncan hunter or alan keyes ?, ###ASSISTANT: SELECT ""candidate"" FROM table_204_951 WHERE ""candidate"" IN ('duncan hunter', 'alan keyes') ORDER BY ""votes"" DESC LIMIT 1" 1081,"###HUMAN: Count the number of patients on a sulfameth/trimethoprim ds prescription who were hospitalized for more than 17 days., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > ""17"" AND prescriptions.drug = ""Sulfameth/Trimethoprim DS""" 1082,"###HUMAN: What is the sum of Game on february 28?, ###ASSISTANT: SELECT SUM(""Game"") FROM table_5067 WHERE ""Date"" = 'february 28'" 1083,"###HUMAN: What type of game had a result of 1:2?, ###ASSISTANT: SELECT type_of_game FROM table_name_7 WHERE results¹ = ""1:2""" 1084,"###HUMAN: Top 50 users from UAE., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS ""#"", Id AS ""user_link"", Reputation FROM Users WHERE LOWER(Location) LIKE '%united arab emirates%' ORDER BY Reputation DESC LIMIT 150" 1085,"###HUMAN: tell me the name of the drug to which patient 007-849 was allergic in this hospital encounter?, ###ASSISTANT: SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-849' AND patient.hospitaldischargetime IS NULL))" 1086,"###HUMAN: What place is South Africa?, ###ASSISTANT: SELECT ""Place"" FROM table_44277 WHERE ""Country"" = 'south africa'" 1087,"###HUMAN: What Date has a Result of l 21 34?, ###ASSISTANT: SELECT date FROM table_name_31 WHERE result = ""l 21–34""" 1088,"###HUMAN: What is the largest lost stat when the difference is - 19?, ###ASSISTANT: SELECT MAX(""Lost"") FROM table_7372 WHERE ""Difference"" = '- 19'" 1089,"###HUMAN: Tell me the constructor for grid of 17, ###ASSISTANT: SELECT constructor FROM table_name_9 WHERE grid = 17" 1090,"###HUMAN: How big was the crowd of the Home team of Collingwood?, ###ASSISTANT: SELECT MAX(crowd) FROM table_name_92 WHERE home_team = ""collingwood""" 1091,"###HUMAN: Who is the leading scorer of the game on 13 February 2008?, ###ASSISTANT: SELECT leading_scorer FROM table_name_52 WHERE date = ""13 february 2008""" 1092,"###HUMAN: count the number of patients whose primary disease is morbid obesity/sda and year of death is less than or equal to 2183?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""MORBID OBESITY/SDA"" AND demographic.dod_year <= ""2183.0""" 1093,"###HUMAN: What is the highest laps of the year when the rank was 14?, ###ASSISTANT: SELECT MAX(""Laps"") FROM table_68142 WHERE ""Rank"" = '14'" 1094,"###HUMAN: What day had a time of 29.816?, ###ASSISTANT: SELECT ""Date"" FROM table_53907 WHERE ""Time"" = '29.816'" 1095,"###HUMAN: What series episode has deli meats under segment B?, ###ASSISTANT: SELECT series_ep FROM table_name_98 WHERE segment_b = ""deli meats""" 1096,"###HUMAN: What year was there no competition in Mixed Doubles?, ###ASSISTANT: SELECT ""Year"" FROM table_15773 WHERE ""Mixed doubles"" = 'no competition'" 1097,"###HUMAN: For the game where the away team was North Melbourne, what was the venue?, ###ASSISTANT: SELECT ""Venue"" FROM table_33381 WHERE ""Away team"" = 'north melbourne'" 1098,"###HUMAN: What was the home team score at Kardinia Park?, ###ASSISTANT: SELECT home_team AS score FROM table_name_43 WHERE venue = ""kardinia park""" 1099,"###HUMAN: What is the most effortless class I can take to satisfy the MDE ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%MDE%')" 1100,"###HUMAN: What year was the player with the height 2.04 born?, ###ASSISTANT: SELECT MIN(year_born) FROM table_12962773_12 WHERE height = ""2.04""" 1101,"###HUMAN: What number pick was the player with the hometown school of concordia college?, ###ASSISTANT: SELECT pick FROM table_name_96 WHERE hometown_school = ""concordia college""" 1102,"###HUMAN: Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?, ###ASSISTANT: SELECT SUM(rank) FROM table_name_34 WHERE silver > 0 AND bronze = 4 AND total < 10" 1103,"###HUMAN: Which FCC info has an ERP W of 100 watts?, ###ASSISTANT: SELECT ""FCC info"" FROM table_75667 WHERE ""ERP W"" = '100 watts'" 1104,"###HUMAN: What position does the saint louis player play?, ###ASSISTANT: SELECT position FROM table_name_39 WHERE college = ""saint louis""" 1105,"###HUMAN: Name the total points for 2, ###ASSISTANT: SELECT total_points FROM table_27496841_3 WHERE place = 2" 1106,"###HUMAN: What medal was awarded in the men's freestyle 52 kg?, ###ASSISTANT: SELECT ""Medal"" FROM table_35155 WHERE ""Event"" = 'men''s freestyle 52 kg'" 1107,"###HUMAN: When the away team was geelong, what was the away team score?, ###ASSISTANT: SELECT ""Away team score"" FROM table_10951 WHERE ""Away team"" = 'geelong'" 1108,"###HUMAN: Name the number of events for 3031, ###ASSISTANT: SELECT COUNT(""Events"") FROM table_26589 WHERE ""Points"" = '3031'" 1109,"###HUMAN: for how long did the patient id 8323 remain admitted in hospital? also specify death status, ###ASSISTANT: SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.subject_id = ""8323""" 1110,"###HUMAN: Which venue had an opponent of Sunderland and a result of a 1-1 draw?, ###ASSISTANT: SELECT ""Venue"" FROM table_63248 WHERE ""Opponent"" = 'sunderland' AND ""Result"" = '1-1'" 1111,"###HUMAN: name the player for number 5, ###ASSISTANT: SELECT ""Player"" FROM table_26229 WHERE ""No"" = '5'" 1112,"###HUMAN: What is the country of Palmers Shipbuilding and Iron Company?, ###ASSISTANT: SELECT ""Country"" FROM table_13011 WHERE ""Builder"" = 'palmers shipbuilding and iron company'" 1113,"###HUMAN: What is the Pick # with an Overall of 19?, ###ASSISTANT: SELECT MAX(""Pick #"") FROM table_36615 WHERE ""Overall"" = '19'" 1114,"###HUMAN: Who is the perpetrator in Bait Al-Aqari?, ###ASSISTANT: SELECT ""Perpetrator"" FROM table_12652 WHERE ""Location"" = 'bait al-aqari'" 1115,"###HUMAN: What's the Uni# of Timms, who has bats of R?, ###ASSISTANT: SELECT uni_number FROM table_name_22 WHERE bats = ""r"" AND surname = ""timms""" 1116,"###HUMAN: What is Score, when Place is 'T8', and when Player is 'Orville Moody'?, ###ASSISTANT: SELECT score FROM table_name_40 WHERE place = ""t8"" AND player = ""orville moody""" 1117,"###HUMAN: What are the descriptions for the aircrafts, and count them by a bar chart, ###ASSISTANT: SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description" 1118,"###HUMAN: What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois?, ###ASSISTANT: SELECT ""Name"" FROM table_35745 WHERE ""Opened (closing date if defunct)"" = '1995' AND ""Length"" = 'miles (m)' AND ""State"" = 'illinois'" 1119,"###HUMAN: Find the number of patients who were transferred within this facility and were born before the year 2150., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = ""TRSF WITHIN THIS FACILITY"" AND demographic.dob_year < ""2150""" 1120,"###HUMAN: Name the nation when bronze is less than 4 and the total is more than 4, ###ASSISTANT: SELECT nation FROM table_name_46 WHERE total > 4 AND bronze < 4" 1121,"###HUMAN: On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?, ###ASSISTANT: SELECT ""Date"" FROM table_51074 WHERE ""Handler"" = 'mike jackson' AND ""Event"" = 'indianapolis boat, sport & travel show'" 1122,"###HUMAN: For the Venue of western oval, what's the Away team playing?, ###ASSISTANT: SELECT ""Away team"" FROM table_54575 WHERE ""Venue"" = 'western oval'" 1123,"###HUMAN: what are the top four common diagnoses that patients were diagnosed with within the same hospital visit after having been diagnosed with thrombocytopenia - alcohol-related since 2105?, ###ASSISTANT: SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'thrombocytopenia - alcohol-related' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2105') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosisname, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE STRFTIME('%y', diagnosis.diagnosistime) >= '2105') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.diagnosistime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.diagnosisname) AS t3 WHERE t3.c1 <= 4" 1124,"###HUMAN: Name the number of direction for debrecen, ###ASSISTANT: SELECT COUNT(""Direction"") FROM table_23211 WHERE ""Further Cities"" = 'Debrecen'" 1125,"###HUMAN: when does the train departuring at 11.35 arrive, ###ASSISTANT: SELECT arrival FROM table_18333678_2 WHERE departure = ""11.35""" 1126,"###HUMAN: what is the minimum stage where mountains classification is aitor osa and aitor gonz lez won?, ###ASSISTANT: SELECT MIN(""Stage"") FROM table_19858 WHERE ""Mountains classification"" = 'Aitor Osa' AND ""Winner"" = 'Aitor González'" 1127,"###HUMAN: What was the time of the games that took place at the cassell coliseum blacksburg, va?, ###ASSISTANT: SELECT ""Time"" FROM table_74398 WHERE ""Location"" = 'Cassell Coliseum • Blacksburg, VA'" 1128,"###HUMAN: Who was the writer in the episode directed by Jesse Peretz?, ###ASSISTANT: SELECT ""Written by"" FROM table_3683 WHERE ""Directed by"" = 'Jesse Peretz'" 1129,"###HUMAN: What time span is listed under years for the 96th congres?, ###ASSISTANT: SELECT ""Years"" FROM table_4022 WHERE ""Congress"" = '96th'" 1130,"###HUMAN: compared to last measured on the first hospital visit is chloride of patient 97121 less than second to last measured on the first hospital visit?, ###ASSISTANT: SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97121 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'chloride') ORDER BY labevents.charttime DESC LIMIT 1) < (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97121 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'chloride') ORDER BY labevents.charttime DESC LIMIT 1 OFFSET 1)" 1131,"###HUMAN: how many patients stayed in hospital for more than 34 days and were procedured with icd9 code 3931?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > ""34"" AND procedures.icd9_code = ""3931""" 1132,"###HUMAN: Take the average of the school enrollment., ###ASSISTANT: SELECT AVG(enrollment) FROM school" 1133,"###HUMAN: what was patient 025-44495's first sputum, tracheal specimen microbiology test time since 09/2105., ###ASSISTANT: SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND microlab.culturesite = 'sputum, tracheal specimen' AND STRFTIME('%y-%m', microlab.culturetakentime) >= '2105-09' ORDER BY microlab.culturetakentime LIMIT 1" 1134,"###HUMAN: Which home team played against the away team Carlton?, ###ASSISTANT: SELECT ""Home team"" FROM table_56902 WHERE ""Away team"" = 'carlton'" 1135,"###HUMAN: What TV network is the series aistr em aired on?, ###ASSISTANT: SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = ""aistrų žemė""" 1136,"###HUMAN: what is november 3 when june 10-11 is june 10, 1964?, ###ASSISTANT: SELECT november_3 FROM table_25355392_2 WHERE june_10_11 = ""June 10, 1964""" 1137,"###HUMAN: when did patient 027-149724 get for the last time a lab test since 29 months ago?, ###ASSISTANT: SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-149724')) AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-29 month') ORDER BY lab.labresulttime DESC LIMIT 1" 1138,"###HUMAN: What is the title for the Korean progran on KBS2?, ###ASSISTANT: SELECT ""Title"" FROM table_47993 WHERE ""Language"" = 'korean' AND ""Network"" = 'kbs2'" 1139,"###HUMAN: Who is the professional partner of celebrity ma gorzata foremniak with a season less than 7, an average greater than 34.66, and a rank less than 10?, ###ASSISTANT: SELECT professional_partner FROM table_name_52 WHERE season < 7 AND average > 34.66 AND rank < 10 AND celebrity = ""małgorzata foremniak""" 1140,"###HUMAN: Bin the hire date of employees into the day of week interval and count them for visualizing a bar chart, and rank in asc by the total number., ###ASSISTANT: SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees ORDER BY COUNT(HIRE_DATE)" 1141,"###HUMAN: Which Result has a Score of 4-1, and a Competition of world cup qualifying?, ###ASSISTANT: SELECT ""Result"" FROM table_34793 WHERE ""Score"" = '4-1' AND ""Competition"" = 'world cup qualifying'" 1142,"###HUMAN: now i need flight information leaving ATLANTA and arriving in BALTIMORE in the afternoon, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time BETWEEN 1200 AND 1800" 1143,"###HUMAN: What was the To par of Jack Nicklaus?, ###ASSISTANT: SELECT ""To par"" FROM table_45304 WHERE ""Player"" = 'jack nicklaus'" 1144,"###HUMAN: what is the most draw when the competition is soviet league and dynamo is more than 34?, ###ASSISTANT: SELECT MAX(draw) FROM table_name_19 WHERE competition = ""soviet league"" AND dynamo > 34" 1145,"###HUMAN: COunt the Founded which has a Venue of villa park?, ###ASSISTANT: SELECT SUM(""Founded"") FROM table_8187 WHERE ""Venue"" = 'villa park'" 1146,"###HUMAN: In Ghent in 2011, what was the rank-qualifying value when the score-qualifying value was 14.850, ###ASSISTANT: SELECT MAX(rank_qualifying) FROM table_26681728_1 WHERE location = ""Ghent"" AND year = 2011 AND score_qualifying = ""14.850""" 1147,"###HUMAN: Find the details for all chip models., ###ASSISTANT: SELECT * FROM chip_model" 1148,"###HUMAN: Show the number of documents created in each day and bin document date by weekday with a bar chart, and I want to show by the the number of document date in ascending please., ###ASSISTANT: SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code ORDER BY COUNT(Document_Date)" 1149,"###HUMAN: what is the number of patients whose days of hospital stay is greater than 15 and diagnoses short title is respiratory distress syn?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > ""15"" AND diagnoses.short_title = ""Respiratory distress syn""" 1150,"###HUMAN: How many million U.S. viewers watched episode number 6 in the series?, ###ASSISTANT: SELECT us_viewers__million_ FROM table_25668962_1 WHERE no_in_series = 6" 1151,"###HUMAN: Which Game is the highest one that has High rebounds of pau gasol (11)?, ###ASSISTANT: SELECT MAX(game) FROM table_name_12 WHERE high_rebounds = ""pau gasol (11)""" 1152,"###HUMAN: What was the second qualification time with a first qualification time of 1:02.813?, ###ASSISTANT: SELECT qual_2 FROM table_name_29 WHERE qual_1 = ""1:02.813""" 1153,"###HUMAN: What position was the player who was drafted by the Washington Capitals?, ###ASSISTANT: SELECT position FROM table_2850912_10 WHERE nhl_team = ""Washington Capitals""" 1154,"###HUMAN: For those employees who was hired before 2002-06-21, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and I want to sort by the y-axis in desc., ###ASSISTANT: SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) DESC" 1155,"###HUMAN: Name the literature for pradit prasarttong, ###ASSISTANT: SELECT ""Literature"" FROM table_67645 WHERE ""Performing arts"" = 'pradit prasarttong'" 1156,"###HUMAN: What is the years coached by the person with a win percentage of 0.667 and 380 losses?, ###ASSISTANT: SELECT ""Years"" FROM table_34993 WHERE ""Pct."" = '0.667' AND ""Lost"" = '380'" 1157,"###HUMAN: which project had greatest number of platforms ?, ###ASSISTANT: SELECT ""title"" FROM table_204_398 ORDER BY ""platforms"" DESC LIMIT 1" 1158,"###HUMAN: provide the number of patients whose insurance is government and procedure icd9 code is 92?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = ""Government"" AND procedures.icd9_code = ""92""" 1159,"###HUMAN: What is College of Ohio State's pick number with an overall lower than 145?, ###ASSISTANT: SELECT pick__number FROM table_name_42 WHERE overall < 145 AND college = ""ohio state""" 1160,"###HUMAN: What was the date when the opponent was Sheffield Scimitars and the venue was Home?, ###ASSISTANT: SELECT date FROM table_name_4 WHERE opponent = ""sheffield scimitars"" AND venue = ""home""" 1161,"###HUMAN: Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?, ###ASSISTANT: SELECT ""Rank"" FROM table_65989 WHERE ""Silver"" = '1' AND ""Gold"" = '0' AND ""Nation"" = 'austria'" 1162,"###HUMAN: What is the highest amount of points for rank 95?, ###ASSISTANT: SELECT highest_point FROM table_name_49 WHERE rank = 95" 1163,"###HUMAN: Show the customer name, customer address city, date from, and date to for each customer address history., ###ASSISTANT: SELECT T2.customer_name, T3.city, T1.date_from, T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id" 1164,"###HUMAN: What is the maximum t20 on green lane?, ###ASSISTANT: SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = ""Green Lane""" 1165,"###HUMAN: Most questions with upvoted self-answers., ###ASSISTANT: SELECT q.OwnerUserId AS ""user_link"", COUNT(DISTINCT q.Id) AS ""count"" FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE q.OwnerUserId = a.OwnerUserId AND a.Score > 0 GROUP BY q.OwnerUserId ORDER BY 'count' DESC" 1166,"###HUMAN: What is the largest number of episodes for a 1989 season dvd release?, ###ASSISTANT: SELECT MAX(""No. of Episodes"") FROM table_1753 WHERE ""Year"" = '1989'" 1167,"###HUMAN: How many millions of U.S. viewers watched the episode titled 'New Beginnings'?, ###ASSISTANT: SELECT ""U.S. viewers (million)"" FROM table_30683 WHERE ""Title"" = 'New Beginnings'" 1168,"###HUMAN: Bar chart, the-axis is the state, and the Y axis is each state's the smallest enrollment., ###ASSISTANT: SELECT state, MIN(enr) FROM College GROUP BY state" 1169,"###HUMAN: When dwhr-tv is the call sign how many station types are there?, ###ASSISTANT: SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = ""DWHR-TV""" 1170,"###HUMAN: What is the average Wins, when Points is less than '19'?, ###ASSISTANT: SELECT AVG(wins) FROM table_name_32 WHERE points < 19" 1171,"###HUMAN: how many mayors were in office for a total of 9 years ?, ###ASSISTANT: SELECT COUNT(""name"") FROM table_201_10 WHERE ""office"" - ""office"" = 9" 1172,"###HUMAN: Who got the loss for the game ending in a record of 55-41?, ###ASSISTANT: SELECT loss FROM table_name_74 WHERE record = ""55-41""" 1173,"###HUMAN: Which venue has 1st as the result?, ###ASSISTANT: SELECT venue FROM table_name_45 WHERE result = ""1st""" 1174,"###HUMAN: What was the average year for a coin that had a mintage smaller than 10,000?, ###ASSISTANT: SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000" 1175,"###HUMAN: Name the south american rank for venezuela, ###ASSISTANT: SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = ""Venezuela""" 1176,"###HUMAN: Show me about the distribution of All_Road and All_Games_Percent in a bar chart, and I want to show by the names in desc please., ###ASSISTANT: SELECT All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Road DESC" 1177,"###HUMAN: For the game on 13 December 1975 with Halifax Town as the away team what was the score?, ###ASSISTANT: SELECT score FROM table_name_4 WHERE date = ""13 december 1975"" AND away_team = ""halifax town""" 1178,"###HUMAN: what flight goes from DENVER to BALTIMORE FIRST class on UA arriving on 5 7, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare AS FARE_0, fare AS FARE_1, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, fare_basis AS FARE_BASIS_2, flight, flight_fare AS FLIGHT_FARE_0, flight_fare AS FLIGHT_FARE_1 WHERE (((((((flight.departure_time > flight.arrival_time) AND DATE_DAY_1.day_number = 6 AND DATE_DAY_1.month_number = 5 AND DATE_DAY_1.year = 1991 AND DAYS_1.day_name = DATE_DAY_1.day_name AND flight.flight_days = DAYS_1.days_code) AND DATE_DAY_0.day_number = 6 AND DATE_DAY_0.month_number = 5 AND DATE_DAY_0.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND FARE_BASIS_0.class_type = 'FIRST' AND FARE_BASIS_1.basis_days = DAYS_0.days_code AND FARE_0.fare_basis_code = FARE_BASIS_0.fare_basis_code AND FARE_0.fare_basis_code = FARE_BASIS_1.fare_basis_code AND FLIGHT_FARE_0.fare_id = FARE_0.fare_id AND flight.flight_id = FLIGHT_FARE_0.flight_id) OR ((DATE_DAY_1.day_number = 7 AND DATE_DAY_1.month_number = 5 AND DATE_DAY_1.year = 1991 AND DAYS_1.day_name = DATE_DAY_1.day_name AND flight.flight_days = DAYS_1.days_code AND NOT (flight.departure_time > flight.arrival_time)) AND DATE_DAY_0.day_number = 7 AND DATE_DAY_0.month_number = 5 AND DATE_DAY_0.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND FARE_BASIS_0.class_type = 'FIRST' AND FARE_BASIS_1.basis_days = DAYS_0.days_code AND FARE_0.fare_basis_code = FARE_BASIS_0.fare_basis_code AND FARE_0.fare_basis_code = FARE_BASIS_1.fare_basis_code AND FLIGHT_FARE_0.fare_id = FARE_0.fare_id AND flight.flight_id = FLIGHT_FARE_0.flight_id)) AND FARE_BASIS_2.class_type = 'FIRST' AND FARE_1.fare_basis_code = FARE_BASIS_2.fare_basis_code AND FLIGHT_FARE_1.fare_id = FARE_1.fare_id AND flight.flight_id = FLIGHT_FARE_1.flight_id) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'UA'" 1179,"###HUMAN: What is the lowest number of participants in 2010 when there were 0 participants in 2012?, ###ASSISTANT: SELECT MIN(""2010"") FROM table_7828 WHERE ""2012"" < '0'" 1180,"###HUMAN: When was the date of appointment for the manager replacing Wim Jansen?, ###ASSISTANT: SELECT ""Date of appointment"" FROM table_20539 WHERE ""Outgoing manager"" = 'Wim Jansen'" 1181,"###HUMAN: What was Barreto's song choice when the theme was samba?, ###ASSISTANT: SELECT song_choice FROM table_27614571_1 WHERE theme = ""Samba""" 1182,"###HUMAN: Give me a histogram for what are the total number of credits offered by each department?, could you rank by the names from low to high?, ###ASSISTANT: SELECT DEPT_CODE, SUM(T1.CRS_CREDIT) FROM COURSE AS T1 JOIN CLASS AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY T1.DEPT_CODE ORDER BY DEPT_CODE" 1183,"###HUMAN: What was the max points you when when you place 9th?, ###ASSISTANT: SELECT MAX(""Points"") FROM table_1653 WHERE ""Final Placing"" = '9th'" 1184,"###HUMAN: What was the finish for Lanny Wadkins of the United States?, ###ASSISTANT: SELECT ""Finish"" FROM table_59667 WHERE ""Country"" = 'united states' AND ""Player"" = 'lanny wadkins'" 1185,"###HUMAN: List the scores of all games when Miami were listed as the first Semi finalist, ###ASSISTANT: SELECT ""Score"" FROM table_72167 WHERE ""Semi-Finalist #1"" = 'Miami'" 1186,"###HUMAN: What category was the nominated in after 2008?, ###ASSISTANT: SELECT category FROM table_name_31 WHERE outcome = ""nominated"" AND year > 2008" 1187,"###HUMAN: what are the number of patients who had received a open reduct mandible fx procedure since 3 years ago?, ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'open reduct mandible fx') AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-3 year'))" 1188,"###HUMAN: How many times does November 3rd occur when January 15, 1991 does?, ###ASSISTANT: SELECT COUNT(""November 3"") FROM table_27465 WHERE ""January 15-16"" = 'January 15, 1991'" 1189,"###HUMAN: Which date has a week larger than 14?, ###ASSISTANT: SELECT ""Date"" FROM table_31800 WHERE ""Week"" > '14'" 1190,"###HUMAN: count the number of times patient 006-76924 has had an urinary catheter output: indwelling/continuous ure output since 12/02/2100., ###ASSISTANT: SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'urinary catheter output: indwelling/continuous ure' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) >= '2100-12-02'" 1191,"###HUMAN: What is the overall number of the player from Utah with a pick # higher than 7?, ###ASSISTANT: SELECT SUM(overall) FROM table_name_54 WHERE college = ""utah"" AND pick__number < 7" 1192,"###HUMAN: What is the score for the Dec 11 game?, ###ASSISTANT: SELECT score FROM table_name_83 WHERE december = 11" 1193,"###HUMAN: What is the total when bronze has a silver larger than 2?, ###ASSISTANT: SELECT COUNT(""Bronze"") FROM table_6350 WHERE ""Silver"" > '2'" 1194,"###HUMAN: How many seasons have a production code of 204?, ###ASSISTANT: SELECT COUNT(no_in_season) FROM table_16581695_3 WHERE production_code = 204" 1195,"###HUMAN: What is Petersville's census ranking?, ###ASSISTANT: SELECT ""Census Ranking"" FROM table_21378 WHERE ""Official Name"" = 'Petersville'" 1196,"###HUMAN: Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?, ###ASSISTANT: SELECT ""Club/province"" FROM table_37217 WHERE ""Caps"" > '15' AND ""Player"" = 'chris cusiter'" 1197,"###HUMAN: Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?, ###ASSISTANT: SELECT MIN(""Byes"") FROM table_65614 WHERE ""Against"" > '1018' AND ""Wimmera FL"" = 'horsham diggers'" 1198,"###HUMAN: how many tons does the te class displace ?, ###ASSISTANT: SELECT ""displacement"" FROM table_203_764 WHERE ""name"" = 'te-class'" 1199,"###HUMAN: When the Home team score was 15.18 (108), what's the lowest Crowd turnout?, ###ASSISTANT: SELECT MIN(""Crowd"") FROM table_77874 WHERE ""Home team score"" = '15.18 (108)'" 1200,"###HUMAN: what was the first time patient 24894 received calcium, total in a lab test during the first hospital visit?, ###ASSISTANT: SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calcium, total') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24894 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY labevents.charttime LIMIT 1" 1201,"###HUMAN: tell me the number of stations tv azteca owns ., ###ASSISTANT: SELECT COUNT(""network name"") FROM table_204_796 WHERE ""owner"" = 'tv azteca'" 1202,"###HUMAN: What place has the score of 67-74=141?, ###ASSISTANT: SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141" 1203,"###HUMAN: What is the census ranking for the Perth parish?, ###ASSISTANT: SELECT census_ranking FROM table_176524_2 WHERE official_name = ""Perth""" 1204,"###HUMAN: Who was the home team on March 5, 2008?, ###ASSISTANT: SELECT ""Home"" FROM table_10100 WHERE ""Date"" = 'march 5, 2008'" 1205,"###HUMAN: how many player with no being 12, ###ASSISTANT: SELECT COUNT(player) FROM table_12962773_5 WHERE no = 12" 1206,"###HUMAN: Which driver has a # smaller than 40, less than 151 points, and Winnings of $84,400?, ###ASSISTANT: SELECT ""Make"" FROM table_12045 WHERE ""Car #"" < '40' AND ""Points"" < '151' AND ""Winnings"" = '$84,400'" 1207,"###HUMAN: How many documents in different starting date? Return a line chart grouping by starting date., ###ASSISTANT: SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Date_in_Location_From" 1208,"###HUMAN: How many places have an Artist of august , and a Draw smaller than 6?, ###ASSISTANT: SELECT COUNT(""Place"") FROM table_64729 WHERE ""Artist"" = 'augustė' AND ""Draw"" < '6'" 1209,"###HUMAN: On what date was game 3?, ###ASSISTANT: SELECT ""Date"" FROM table_79596 WHERE ""Game"" = '3'" 1210,"###HUMAN: What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?, ###ASSISTANT: SELECT region_4__australia_ FROM table_240936_2 WHERE region_1__us_ = ""January 16, 2007""" 1211,"###HUMAN: What is the highest React that has a 7.61 Mark and a heat bigger than 1?, ###ASSISTANT: SELECT MAX(react) FROM table_name_84 WHERE mark = ""7.61"" AND heat > 1" 1212,"###HUMAN: What year was USF founded?, ###ASSISTANT: SELECT date_founded FROM table_1160660_1 WHERE acronym = ""USF""" 1213,"###HUMAN: what is the position in table when the team is hartlepool united?, ###ASSISTANT: SELECT ""Position in table"" FROM table_64562 WHERE ""Team"" = 'hartlepool united'" 1214,"###HUMAN: What was the position of the player from Butler High School?, ###ASSISTANT: SELECT ""Position"" FROM table_17065 WHERE ""School"" = 'Butler High School'" 1215,"###HUMAN: what is age and religion of subject id 84129?, ###ASSISTANT: SELECT demographic.age, demographic.religion FROM demographic WHERE demographic.subject_id = ""84129""" 1216,"###HUMAN: how many prescriptions for multivitamins have been ordered?, ###ASSISTANT: SELECT COUNT(*) FROM medication WHERE medication.drugname = 'multivitamins'" 1217,"###HUMAN: Which analog channel is Fox on?, ###ASSISTANT: SELECT ""Analog Channel"" FROM table_52794 WHERE ""Network"" = 'fox'" 1218,"###HUMAN: first opponent to defeat mocho cota in mexico city, ###ASSISTANT: SELECT ""winner"" FROM table_204_373 WHERE ""loser"" = 'mocho cota' AND ""location"" = 'mexico city' ORDER BY ""date"" LIMIT 1" 1219,"###HUMAN: what is admission time and drug dose of subject id 74032?, ###ASSISTANT: SELECT demographic.admittime, prescriptions.drug_dose FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = ""74032""" 1220,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of salary over the job_id , and group by attribute job_id, I want to order in descending by the JOB_ID please., ###ASSISTANT: SELECT JOB_ID, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC" 1221,"###HUMAN: What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?, ###ASSISTANT: SELECT MAX(""Aug 2013"") FROM table_51528 WHERE ""Nov 2011"" < '968' AND ""Jul 2012"" = '31' AND ""Jun 2011"" > '30'" 1222,"###HUMAN: How many rounds were on July 10?, ###ASSISTANT: SELECT COUNT(""Round"") FROM table_24626 WHERE ""Date"" = 'July 10'" 1223,"###HUMAN: what country lost the most ships to u-502 ?, ###ASSISTANT: SELECT ""nationality"" FROM table_203_268 GROUP BY ""nationality"" ORDER BY COUNT(""name"") DESC LIMIT 1" 1224,"###HUMAN: how many hours have it been since the first time patient 027-140654 received procedures during their current hospital encounter?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-140654' AND patient.hospitaldischargetime IS NULL)) ORDER BY treatment.treatmenttime LIMIT 1" 1225,"###HUMAN: What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?, ###ASSISTANT: SELECT ""District"" FROM table_15822 WHERE ""Counties Represented"" = 'baltimore county' AND ""Committee"" = 'health and government operations' AND ""First Elected"" < '2002'" 1226,"###HUMAN: what is the number of routes that intersect highway 91 ?, ###ASSISTANT: SELECT COUNT(""intersecting routes"") FROM table_203_333" 1227,"###HUMAN: Who is the home side when the away side scores 11.15 (81)?, ###ASSISTANT: SELECT ""Home team"" FROM table_33617 WHERE ""Away team score"" = '11.15 (81)'" 1228,"###HUMAN: What is the frequency of the dates (bin into weekday interval) that had the top 5 cloud cover rates? You can draw me a bar chart for this purpose, and could you sort from low to high by the y-axis?, ###ASSISTANT: SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date)" 1229,"###HUMAN: what is the diagnosis icd9 code for patient name kurt buczek?, ###ASSISTANT: SELECT diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = ""Kurt Buczek""" 1230,"###HUMAN: Find dates and attendance for exhibitions that happened in 2004, show me the attendance by date with a bar chart., ###ASSISTANT: SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004" 1231,"###HUMAN: Short Favorited Commented Questions with no Answers., ###ASSISTANT: SELECT Id AS ""post_link"", Tags FROM Posts WHERE LENGTH(Body) < 100 AND PostTypeId = 1 AND ClosedDate IS NULL AND DeletionDate IS NULL AND CommunityOwnedDate IS NULL AND AnswerCount = 0 AND CommentCount > 0 AND FavoriteCount > 0" 1232,"###HUMAN: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of price , and group by attribute name, I want to show from high to low by the x axis., ###ASSISTANT: SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC" 1233,"###HUMAN: Which club lost exactly 7 matches?, ###ASSISTANT: SELECT ""Club"" FROM table_74082 WHERE ""Lost"" = '7'" 1234,"###HUMAN: What is Tie no, when Date is '18 Nov 1989', and when Home Team is 'Doncaster Rovers'?, ###ASSISTANT: SELECT tie_no FROM table_name_32 WHERE date = ""18 nov 1989"" AND home_team = ""doncaster rovers""" 1235,"###HUMAN: On August 22, how many people came to the game?, ###ASSISTANT: SELECT ""Attendance"" FROM table_67152 WHERE ""Date"" = 'august 22'" 1236,"###HUMAN: What is the latest year any of the incumbents were first elected?, ###ASSISTANT: SELECT MAX(first_elected) FROM table_1342270_42" 1237,"###HUMAN: count the number of people who were prescribed chlorhexidine gluconate 0.12% oral rinse within 2 months following a diagnosis of oth spf gastrt w hmrhg until 2102., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'oth spf gastrt w hmrhg') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2102') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'chlorhexidine gluconate 0.12% oral rinse' AND STRFTIME('%y', prescriptions.startdate) <= '2102') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month')" 1238,"###HUMAN: when was the last time since 04/2104 that patient 88659 was prescribed vial and iso-osmotic dextrose at the same time?, ###ASSISTANT: SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'vial' AND admissions.subject_id = 88659 AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-04') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'iso-osmotic dextrose' AND admissions.subject_id = 88659 AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-04') AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) ORDER BY t1.startdate DESC LIMIT 1" 1239,"###HUMAN: Name the ppv for sky famiglia and dar 16:9 for mtv dance, ###ASSISTANT: SELECT ""PPV"" FROM table_20379 WHERE ""Package/Option"" = 'Sky Famiglia' AND ""DAR"" = '16:9' AND ""Television service"" = 'MTV Dance'" 1240,"###HUMAN: Show institution names along with the number of proteins for each institution in a bar chart, and order by the y-axis in desc., ###ASSISTANT: SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id ORDER BY COUNT(*) DESC" 1241,"###HUMAN: what is the record when the round is before 3 and the time si 4:59?, ###ASSISTANT: SELECT ""Record"" FROM table_48174 WHERE ""Round"" < '3' AND ""Time"" = '4:59'" 1242,"###HUMAN: A line chart for finding the number of the enrollment date for all the tests that have 'Pass' result., ###ASSISTANT: SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass"" GROUP BY date_of_enrolment" 1243,"###HUMAN: When was 11-8 the record?, ###ASSISTANT: SELECT date FROM table_name_43 WHERE record = ""11-8""" 1244,"###HUMAN: provide the number of patients whose primary disease is left colon cancer and age is less than 67?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""LEFT COLON CANCER"" AND demographic.age < ""67""" 1245,"###HUMAN: What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million?, ###ASSISTANT: SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4" 1246,"###HUMAN: What surface was played on with a score of 6 4, 6 3 and on 4 May 1992?, ###ASSISTANT: SELECT ""Surface"" FROM table_41299 WHERE ""Score"" = '6–4, 6–3' AND ""Date"" = '4 may 1992'" 1247,"###HUMAN: Average Accepted Answer Score by Question Score for Users Like Me., ###ASSISTANT: SELECT Questions.Score AS QuestionScore, AVG(Answers.Score) AS AnswerScore FROM Posts AS Questions INNER JOIN PostTags ON Questions.Id = PostTags.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id INNER JOIN Posts AS Answers ON Answers.Id = Questions.AcceptedAnswerId WHERE Questions.Score BETWEEN 1 AND 20 AND Tags.TagName IN ('javascript', 'css', 'html', 'css3', 'html5') AND Answers.OwnerUserId = 918414 GROUP BY Questions.Score" 1248,"###HUMAN: WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?, ###ASSISTANT: SELECT ""Manufacturer"" FROM table_47681 WHERE ""Laps"" = '24' AND ""Time/Retired"" = '+1.965'" 1249,"###HUMAN: in what year was the last design of passenger baseplates for vehicle registration issued in vermont ?, ###ASSISTANT: SELECT MAX(""first issued"") FROM table_203_498" 1250,"###HUMAN: What day was the oppenent the detroit lions?, ###ASSISTANT: SELECT ""Date"" FROM table_19500 WHERE ""Opponent"" = 'Detroit Lions'" 1251,"###HUMAN: What is the market value of every comapny in the banking industry ordered by sales and profits? Return a bar chart., ###ASSISTANT: SELECT Company, Market_Value FROM company WHERE Main_Industry = 'Banking' ORDER BY Sales_billion, Profits_billion" 1252,"###HUMAN: tell me the name of the last specimen test patient 26612 had received in 12/2102?, ###ASSISTANT: SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26612) AND STRFTIME('%y-%m', microbiologyevents.charttime) = '2102-12' ORDER BY microbiologyevents.charttime DESC LIMIT 1" 1253,"###HUMAN: what are the new prescriptions today of patient 006-47576 compared to the prescriptions yesterday?, ###ASSISTANT: SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '006-47576') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '006-47576') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day')" 1254,"###HUMAN: For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of code , and group by attribute founder, show by the X from high to low please., ###ASSISTANT: SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC" 1255,"###HUMAN: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and price , and group by attribute headquarter, and rank y-axis from low to high order please., ###ASSISTANT: SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Price" 1256,"###HUMAN: When was the game that ended with a score of 6-4?, ###ASSISTANT: SELECT date FROM table_name_38 WHERE score = ""6-4""" 1257,"###HUMAN: How many goals were scored by Eugene Galekovi ?, ###ASSISTANT: SELECT goals FROM table_name_54 WHERE player = ""eugene galeković""" 1258,"###HUMAN: Plot total number of memory in g by grouped by carrier as a bar graph, display by the sum memory in g in asc., ###ASSISTANT: SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY SUM(Memory_in_G)" 1259,"###HUMAN: Which Source has a Remainder of 15%, and a Topinka of 26%?, ###ASSISTANT: SELECT ""Source"" FROM table_75308 WHERE ""Remainder"" = '15%' AND ""Topinka (R)"" = '26%'" 1260,"###HUMAN: What is the date of the Cubs game when the Cubs had a record of 1-0?, ###ASSISTANT: SELECT date FROM table_name_2 WHERE record = ""1-0""" 1261,"###HUMAN: give the number of patients whose drug code is phen10i and lab test category is blood gas., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = ""PHEN10I"" AND lab.""CATEGORY"" = ""Blood Gas""" 1262,"###HUMAN: How many patients were admitted with pure hyperglyceridemia before 2187?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < ""2187"" AND diagnoses.long_title = ""Pure hyperglyceridemia""" 1263,"###HUMAN: What is the name of the artist that issued the single on 23 February?, ###ASSISTANT: SELECT ""Artist"" FROM table_9850 WHERE ""Issue Date(s)"" = '23 february'" 1264,"###HUMAN: What is the result of the game on April 17 against Los Angeles?, ###ASSISTANT: SELECT ""Result"" FROM table_8232 WHERE ""Road Team"" = 'los angeles' AND ""Date"" = 'april 17'" 1265,"###HUMAN: List the record from the game where Wildcats had 48 points., ###ASSISTANT: SELECT record FROM table_24561550_1 WHERE wildcats_points = 48" 1266,"###HUMAN: show me the flights from PHILADELPHIA to DALLAS with 1 stop, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.stops = 1 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 1267,"###HUMAN: Show all card type codes and the number of cards in each type., ###ASSISTANT: SELECT card_type_code, COUNT(*) FROM customers_cards GROUP BY card_type_code" 1268,"###HUMAN: Name the song choice for michael jackson, ###ASSISTANT: SELECT ""Song choice"" FROM table_23048 WHERE ""Original artist"" = 'Michael Jackson'" 1269,"###HUMAN: How many points did the ESC Riverrats Geretsried, who lost more than 3 games, score?, ###ASSISTANT: SELECT SUM(points) FROM table_name_17 WHERE lost > 3 AND name = ""esc riverrats geretsried""" 1270,"###HUMAN: How big was the crowd when the away team was Richmond?, ###ASSISTANT: SELECT crowd FROM table_name_4 WHERE away_team = ""richmond""" 1271,"###HUMAN: Name the cyrillic name for melenci, ###ASSISTANT: SELECT ""Cyrillic Name Other Names"" FROM table_3334 WHERE ""Settlement"" = 'Melenci'" 1272,"###HUMAN: current alcohol abuse, ###ASSISTANT: SELECT * FROM table_train_185 WHERE alcohol_abuse = 1" 1273,"###HUMAN: For week number of the top 40, what was the results?, ###ASSISTANT: SELECT result FROM table_22736523_1 WHERE week__number = ""Top 40""" 1274,"###HUMAN: Number of posts in past 30 days., ###ASSISTANT: SELECT COUNT(*) FROM Posts WHERE PostTypeId IN (1, 2) AND CreationDate >= DATEADD(DAY, -30, GETDATE())" 1275,"###HUMAN: What are the age groups for the Big League World Series?, ###ASSISTANT: SELECT age_groups FROM table_name_26 WHERE competition_name = ""big league world series""" 1276,"###HUMAN: What is the money with a Score of 76-70-75-72=293?, ###ASSISTANT: SELECT ""Money ( \u00a3 )"" FROM table_58997 WHERE ""Score"" = '76-70-75-72=293'" 1277,"###HUMAN: give me the number of patients whose language is cape and age is less than 67?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = ""CAPE"" AND demographic.age < ""67""" 1278,"###HUMAN: Which year has an Organization of new york yankees, and a Team of johnson city yankees?, ###ASSISTANT: SELECT year FROM table_name_61 WHERE organization = ""new york yankees"" AND team = ""johnson city yankees""" 1279,"###HUMAN: calculate the minimum age of patients who are 83 years of age or older and were hospitalized for 43 days., ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.age >= ""83"" AND demographic.days_stay = ""43""" 1280,"###HUMAN: What are the names of storms that did not affect two or more regions?, ###ASSISTANT: SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2" 1281,"###HUMAN: What is the average pick of player paul maclean, who had a draft before 1978?, ###ASSISTANT: SELECT AVG(""Pick"") FROM table_12802 WHERE ""Player"" = 'paul maclean' AND ""Draft"" < '1978'" 1282,"###HUMAN: Name the class for boten, ###ASSISTANT: SELECT class FROM table_1745843_9 WHERE part_3 = ""boten""" 1283,"###HUMAN: Name the segment 1 for episode # 2/225, ###ASSISTANT: SELECT ""Segment 1"" FROM table_26635 WHERE ""Episode #"" = '2/225'" 1284,"###HUMAN: Find retaggable AS questions that are open or don't roomba., ###ASSISTANT: SELECT Id AS ""post_link"", Body, Tags, Score, AnswerCount, CommentCount FROM Posts WHERE PostTypeId = 1 AND ((Score <= 0 AND AnswerCount > 0 AND (AcceptedAnswerId = NULL OR AcceptedAnswerId > 0)) OR (Score = 0 AND CommentCount > 0) OR (Score > 0)) ORDER BY CreationDate DESC LIMIT 1000" 1285,"###HUMAN: what are the four most frequent specimen tests that patients had within the same month after having been diagnosed with 29-30 comp wks gestation until 2104?, ###ASSISTANT: SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = '29-30 comp wks gestation') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104') AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', microbiologyevents.charttime) <= '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 4" 1286,"###HUMAN: Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494?, ###ASSISTANT: SELECT director FROM table_name_12 WHERE series = ""mm"" AND production_num < 6494 AND release_date = ""1934-09-15""" 1287,"###HUMAN: Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5?, ###ASSISTANT: SELECT MAX(pick__number) FROM table_name_32 WHERE name = ""william middleton"" AND round > 5" 1288,"###HUMAN: count the number of patients who have had a remove fb from periton procedure performed two or more times since 2104., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'remove fb from periton') AND STRFTIME('%y', procedures_icd.charttime) >= '2104' GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 >= 2" 1289,"###HUMAN: Which Fictional narrator has a Published as serial of february july 1912, all-story?, ###ASSISTANT: SELECT ""Fictional narrator"" FROM table_14163 WHERE ""Published as serial"" = 'february–july 1912, all-story'" 1290,"###HUMAN: Would EEB 412 qualify for ULCS ?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'EEB' AND course.number = 412 AND program_course.category LIKE '%ULCS%'" 1291,"###HUMAN: Which time/retired has a qual of 144.02?, ###ASSISTANT: SELECT time_retired FROM table_name_75 WHERE qual = 144.02" 1292,"###HUMAN: did patient 030-6441 have a wound care procedure at other hospitals?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '030-6441' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '030-6441' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'wound care'" 1293,"###HUMAN: count the number of patients who until 4 years ago have been prescribed acd-a for crrt., ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'acd-a for crrt' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-4 year'))" 1294,"###HUMAN: In season is 2008 09, how many wins did they have?, ###ASSISTANT: SELECT ""W (OT/SO)"" FROM table_23959 WHERE ""Season"" = '2008–09'" 1295,"###HUMAN: How many people scored the most points during the game on December 10?, ###ASSISTANT: SELECT COUNT(high_points) FROM table_27756014_6 WHERE date = ""December 10""" 1296,"###HUMAN: For the match with a home team score of 11.14 (80), what was the venue?, ###ASSISTANT: SELECT ""Venue"" FROM table_33317 WHERE ""Home team score"" = '11.14 (80)'" 1297,"###HUMAN: How many positions are there for RB1 Motorsports?, ###ASSISTANT: SELECT COUNT(""Position"") FROM table_3588 WHERE ""Team(s)"" = 'RB1 Motorsports'" 1298,"###HUMAN: what is minimum days of hospital stay of patients whose age is greater than or equal to 41?, ###ASSISTANT: SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.age >= ""41""" 1299,"###HUMAN: Who is every high points for the Pistons team?, ###ASSISTANT: SELECT high_points FROM table_23248910_9 WHERE team = ""Pistons""" 1300,"###HUMAN: what is the price for amylase, body fluid?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'amylase, body fluid'))" 1301,"###HUMAN: Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number?, ###ASSISTANT: SELECT COUNT(""Frequency (MHz)"") FROM table_5631 WHERE ""Type"" = 'primary' AND ""Call letters"" = 'ktbb-fm'" 1302,"###HUMAN: A bar chart shows the distribution of All_Home and the amount of All_Home , and group by attribute All_Home, and sort by the x axis from high to low., ###ASSISTANT: SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC" 1303,"###HUMAN: How many types of valves were used on this engine that was built on 1902-05?, ###ASSISTANT: SELECT COUNT(valves) FROM table_25695027_1 WHERE years_built = ""1902-05""" 1304,"###HUMAN: Who won with the fastest lap of daijiro hiura on March 29?, ###ASSISTANT: SELECT race_winner FROM table_name_97 WHERE fastest_lap = ""daijiro hiura"" AND date = ""march 29""" 1305,"###HUMAN: since 2100 what are the five most frequently ordered lab tests for patients 40s?, ###ASSISTANT: SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND STRFTIME('%y', lab.labresulttime) >= '2100' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 5" 1306,"###HUMAN: What is the Elevation (m) of the Peak with a Prominence (m) larger than 2,143 and Col (m) of 2012?, ###ASSISTANT: SELECT ""Elevation (m)"" FROM table_79478 WHERE ""Prominence (m)"" > '2,143' AND ""Col (m)"" = '2012'" 1307,"###HUMAN: What is the country of the airport with the highest elevation?, ###ASSISTANT: SELECT country FROM airports ORDER BY elevation DESC LIMIT 1" 1308,"###HUMAN: What was the losing bonus that had 1 draw and a 10 try bonus?, ###ASSISTANT: SELECT losing_bonus FROM table_name_51 WHERE drawn = ""1"" AND try_bonus = ""10""" 1309,"###HUMAN: List the first name and last name of customers have the amount of outstanding between 1000 and 3000., ###ASSISTANT: SELECT first_name, last_name FROM customers WHERE amount_outstanding BETWEEN 1000 AND 3000" 1310,"###HUMAN: What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?, ###ASSISTANT: SELECT ""Shuttle Run (sec)"" FROM table_56767 WHERE ""2.4km Run (min:sec)"" = '12:21-13:00'" 1311,"###HUMAN: Which highest Round has a Result of loss?, ###ASSISTANT: SELECT MAX(round) FROM table_name_27 WHERE result = ""loss""" 1312,"###HUMAN: Name the publication date when the fictional date is 2112, ###ASSISTANT: SELECT publication_date FROM table_name_25 WHERE fictional_date = ""2112""" 1313,"###HUMAN: What township is 28.597 square miles of land?, ###ASSISTANT: SELECT ""Township"" FROM table_22466 WHERE ""Land ( sqmi )"" = '28.597'" 1314,"###HUMAN: For those employees who did not have any job in the past, a bar chart shows the distribution of job_id and the sum of employee_id , and group by attribute job_id, and display from low to high by the sum employee id., ###ASSISTANT: SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID)" 1315,"###HUMAN: What is the lowest number of laps obtained by driver Nick Heidfeld?, ###ASSISTANT: SELECT MIN(laps) FROM table_name_32 WHERE driver = ""nick heidfeld""" 1316,"###HUMAN: Show the name of each county along with the corresponding number of delegates from that county., ###ASSISTANT: SELECT County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_Id" 1317,"###HUMAN: give me the top four most common diagnoses since 1 year ago., ###ASSISTANT: SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4" 1318,"###HUMAN: what is drug type of drug name cephalexin?, ###ASSISTANT: SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = ""Cephalexin""" 1319,"###HUMAN: What is the career SR with a 1r in 1985?, ###ASSISTANT: SELECT career_sr FROM table_name_43 WHERE 1985 = ""1r""" 1320,"###HUMAN: What party was first elected in 1974?, ###ASSISTANT: SELECT party FROM table_1341453_7 WHERE first_elected = 1974" 1321,"###HUMAN: SELECT TOP 10 Id AS [Post Link] FROM Posts ORDER BY CreationDate DESC., ###ASSISTANT: SELECT Id AS ""post_link"" FROM Posts ORDER BY CreationDate DESC LIMIT 10" 1322,"###HUMAN: what is lab test name of subject name kelly gallardo?, ###ASSISTANT: SELECT lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = ""Kelly Gallardo""" 1323,"###HUMAN: How many attended the game on 12/17 with stephen jackson as the leading scorer?, ###ASSISTANT: SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = ""stephen jackson"" AND date = ""12/17""" 1324,"###HUMAN: what is the least number of points that daly won in a single seasons, ###ASSISTANT: SELECT MIN(""points"") FROM table_204_722" 1325,"###HUMAN: what is the number of patients who have had a tpn d9.0 intake until 2103?, ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'tpn d9.0' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y', inputevents_cv.charttime) <= '2103'))" 1326,"###HUMAN: count the number of patients whose year of death is less than or equal to 2186 and diagnoses long title is hyperacusis?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= ""2186.0"" AND diagnoses.long_title = ""Hyperacusis""" 1327,"###HUMAN: Return the number of the categories of music festivals that have the result 'Awarded'., ###ASSISTANT: SELECT Category, COUNT(Category) FROM music_festival WHERE Result = ""Awarded"" GROUP BY Category" 1328,"###HUMAN: how many patients under the age of 80 years had their lab test fluid as joint fluid?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < ""80"" AND lab.fluid = ""Joint Fluid""" 1329,"###HUMAN: What is listed under L when the ends won is 21?, ###ASSISTANT: SELECT MAX(""L"") FROM table_31228 WHERE ""Ends Won"" = '21'" 1330,"###HUMAN: What job is at red bank?, ###ASSISTANT: SELECT ""Occupation"" FROM table_15803 WHERE ""Residence"" = 'red bank'" 1331,"###HUMAN: What is the score of the game against away team queens park rangers on 23 january 1982?, ###ASSISTANT: SELECT ""Score"" FROM table_59579 WHERE ""Date"" = '23 january 1982' AND ""Away team"" = 'queens park rangers'" 1332,"###HUMAN: How much do the tickets cost for August 7, 1987?, ###ASSISTANT: SELECT ""Ticket price(s)"" FROM table_1845 WHERE ""Date(s)"" = 'August 7, 1987'" 1333,"###HUMAN: How many finals had more than 0 goals and 8 assists?, ###ASSISTANT: SELECT ""Finals"" FROM table_63272 WHERE ""Goals"" > '0' AND ""Assists"" = '8'" 1334,"###HUMAN: After 15:45 A.M. , what upper level electives are available next Spring-Summer ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.start_time > '15:45' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2017" 1335,"###HUMAN: When did Deng Xuan first win Women's singles?, ###ASSISTANT: SELECT MIN(""Year"") FROM table_71765 WHERE ""Women's singles"" = 'deng xuan'" 1336,"###HUMAN: Who is the away team that played home team Footscray?, ###ASSISTANT: SELECT ""Away team"" FROM table_55219 WHERE ""Home team"" = 'footscray'" 1337,"###HUMAN: provide the number of patients whose admission year is less than 2133 and drug route is po?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < ""2133"" AND prescriptions.route = ""PO""" 1338,"###HUMAN: What Rank has a Team of roma?, ###ASSISTANT: SELECT ""Rank"" FROM table_12517 WHERE ""Team"" = 'roma'" 1339,"###HUMAN: What is the population of northfield parish that has an area less than 342.4?, ###ASSISTANT: SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = ""northfield""" 1340,"###HUMAN: What are 12 -credit Anthropology of Contemporary American Culture courses ?, ###ASSISTANT: SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Anthropology of Contemporary American Culture%' OR name LIKE '%Anthropology of Contemporary American Culture%') AND credits = 12" 1341,"###HUMAN: In what grid did Richard Robarts make 36 laps?, ###ASSISTANT: SELECT SUM(""Grid"") FROM table_54515 WHERE ""Driver"" = 'richard robarts' AND ""Laps"" < '36'" 1342,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time, order total number in asc order., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(SALARY)" 1343,"###HUMAN: How many members did Europe have the year that America had 403892?, ###ASSISTANT: SELECT europe FROM table_1914090_2 WHERE america = 403892" 1344,"###HUMAN: how many patients were diagnosed for laparoscopic surgical procedure converted to open procedure and the death status is 0?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = ""0"" AND diagnoses.long_title = ""Laparoscopic surgical procedure converted to open procedure""" 1345,"###HUMAN: For those employees who did not have any job in the past, find hire_date and the sum of manager_id bin hire_date by weekday, and visualize them by a bar chart, and rank by the total number of manager id in asc please., ###ASSISTANT: SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(MANAGER_ID)" 1346,"###HUMAN: What is the time/retired of Driver Masten Gregory Carroll Shelby when the constructor was Maserati, the Grid was larger than 10 and there were more than 2 laps?, ###ASSISTANT: SELECT ""Time/Retired"" FROM table_11847 WHERE ""Grid"" > '10' AND ""Laps"" > '2' AND ""Constructor"" = 'maserati' AND ""Driver"" = 'masten gregory carroll shelby'" 1347,"###HUMAN: How many hebrew forms are there for the arabic form yuktibu ?, ###ASSISTANT: SELECT COUNT(""Hebrew Form"") FROM table_30036 WHERE ""Arabic form"" = 'yuktibu يكتب'" 1348,"###HUMAN: Which round was Joe Taylor selected in?, ###ASSISTANT: SELECT SUM(round) FROM table_name_40 WHERE player = ""joe taylor""" 1349,"###HUMAN: A bar chart for what are the number of the descriptions of the service types with product price above 100?, and could you list in descending by the how many service type description please?, ###ASSISTANT: SELECT Service_Type_Description, COUNT(Service_Type_Description) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 GROUP BY Service_Type_Description ORDER BY COUNT(Service_Type_Description) DESC" 1350,"###HUMAN: Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz, ###ASSISTANT: SELECT ""Davids team"" FROM table_2908 WHERE ""Lees team"" = 'Jack Dee and Peter Serafinowicz'" 1351,"###HUMAN: If a variant without niqqud is as final letter: or , what is the phonetic realisation?, ###ASSISTANT: SELECT ""Phonetic Realisation"" FROM table_56984 WHERE ""without Niqqud"" = 'as final letter: ו or יו'" 1352,"###HUMAN: Sublimetext post counts by date., ###ASSISTANT: SELECT TIME_TO_STR(CreationDate, '%d') AS ""day"", TIME_TO_STR(CreationDate, '%M') AS ""month"", TIME_TO_STR(CreationDate, '%Y') AS ""year"", COUNT(*) FROM Posts WHERE (STR_POSITION(Tags, '') > 0) GROUP BY TIME_TO_STR(CreationDate, '%d'), TIME_TO_STR(CreationDate, '%M'), TIME_TO_STR(CreationDate, '%Y')" 1353,"###HUMAN: What was the year Bernadette Peters was a nominee for the Tony award?, ###ASSISTANT: SELECT SUM(year) FROM table_name_67 WHERE award = ""tony award"" AND nominee = ""bernadette peters""" 1354,"###HUMAN: what is death status of subject id 3343?, ###ASSISTANT: SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = ""3343""" 1355,"###HUMAN: Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4?, ###ASSISTANT: SELECT MAX(field_goals) FROM table_name_76 WHERE touchdowns = 0 AND points > 4" 1356,"###HUMAN: What are the purchase details of transactions with amount bigger than 10000, and count them by a bar chart, list by the the number of purchase details from low to high., ###ASSISTANT: SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY COUNT(purchase_details)" 1357,"###HUMAN: What is Part 1, when Part 3 is 'heldu'?, ###ASSISTANT: SELECT part_1 FROM table_name_83 WHERE part_3 = ""heldu""" 1358,"###HUMAN: What school/club had pick 33?, ###ASSISTANT: SELECT school_club_team FROM table_name_31 WHERE pick = 33" 1359,"###HUMAN: Who is the h.s. principal during 1973-1974?, ###ASSISTANT: SELECT hs_principal FROM table_name_81 WHERE year = ""1973-1974""" 1360,"###HUMAN: What is the highest field goals when there were more than 1 touchdown and 0 extra points?, ###ASSISTANT: SELECT MAX(""Field goals"") FROM table_75348 WHERE ""Touchdowns"" > '1' AND ""Extra points"" > '0'" 1361,"###HUMAN: when did patient 14054 get discharged from hospital for the first time since 2105?, ###ASSISTANT: SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 14054 AND STRFTIME('%y', admissions.dischtime) >= '2105' ORDER BY admissions.dischtime LIMIT 1" 1362,"###HUMAN: What role was at the Sydney Film Festival in 2008?, ###ASSISTANT: SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = ""sydney film festival""" 1363,"###HUMAN: What is the 2007 value with a 1r in 2009?, ###ASSISTANT: SELECT ""2007"" FROM table_63515 WHERE ""2009"" = '1r'" 1364,"###HUMAN: What was the number of fatalities for the Viscount 700?, ###ASSISTANT: SELECT fatalities FROM table_name_71 WHERE aircraft = ""viscount 700""" 1365,"###HUMAN: What are the different statement ids on accounts, and the number of accounts for each?, ###ASSISTANT: SELECT statement_id, COUNT(*) FROM accounts GROUP BY statement_id" 1366,"###HUMAN: what is the cpu for the calculator with 28 kb of ram and display size 128 64 pixels 21 8 characters?, ###ASSISTANT: SELECT ""CPU"" FROM table_17130 WHERE ""RAM"" = '28 KB of RAM' AND ""Display Size"" = '128×64 pixels 21×8 characters'" 1367,"###HUMAN: what is june 10-11 when march 27-29 is 149?, ###ASSISTANT: SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = ""149""" 1368,"###HUMAN: What is the Shirt No for Henry Bell Cisnero whose height is less than 190?, ###ASSISTANT: SELECT MAX(""Shirt No"") FROM table_64515 WHERE ""Height"" < '190' AND ""Player"" = 'henry bell cisnero'" 1369,"###HUMAN: Which tournament had a 2010 finish of 4R?, ###ASSISTANT: SELECT ""Tournament"" FROM table_68293 WHERE ""2010"" = '4r'" 1370,"###HUMAN: when was the first time patient 006-124193 was prescribed medication through the iv flush route since 14 months ago?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-124193')) AND medication.routeadmin = 'iv flush' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-14 month') ORDER BY medication.drugstarttime LIMIT 1" 1371,"###HUMAN: Just list the first name of the employee and show the location id of the corresponding department using a bar chart., ###ASSISTANT: SELECT FIRST_NAME, LOCATION_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID" 1372,"###HUMAN: What was the discipline for the euroboss championship?, ###ASSISTANT: SELECT ""Discipline"" FROM table_8627 WHERE ""Championship"" = 'euroboss'" 1373,"###HUMAN: Negative questions with a single negative-but-accepted answer this year., ###ASSISTANT: SELECT q.Id AS ""post_link"", q.Score AS ""Q Score"", a.Score AS ""A Score"" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND q.Score < 0 AND a.Score < 0 AND q.CreationDate > '2016-01-01 01:01:01' AND q.ClosedDate > '2016-01-01 01:01:01' AND NOT q.AcceptedAnswerId IS NULL AND q.AnswerCount = 1 ORDER BY q.CreationDate DESC" 1374,"###HUMAN: Bar chart x axis year y axis the number of year, ###ASSISTANT: SELECT year, COUNT(year) FROM home_game" 1375,"###HUMAN: what is the cost of a drug, permethrin?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'permethrin')" 1376,"###HUMAN: What was the score for the game that had an attendance of 41,087?, ###ASSISTANT: SELECT ""Score"" FROM table_68420 WHERE ""Attendance"" = '41,087'" 1377,"###HUMAN: Name the density for, ###ASSISTANT: SELECT density FROM table_2013618_1 WHERE traditional = ""古田縣""" 1378,"###HUMAN: List the number of the names of products that are not in any event, and rank x axis from high to low order please., ###ASSISTANT: SELECT Product_Name, COUNT(Product_Name) FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events) GROUP BY Product_Name ORDER BY Product_Name DESC" 1379,"###HUMAN: provide the time of admission and prescribed drug for the patient with patient id 18480., ###ASSISTANT: SELECT demographic.admittime, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = ""18480""" 1380,"###HUMAN: count the number of patients whose marital status is widowed and procedure long title is laryngoscopy and other tracheoscopy., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = ""WIDOWED"" AND procedures.long_title = ""Laryngoscopy and other tracheoscopy""" 1381,"###HUMAN: How many lessons did the customer with the first name Ray take?, ###ASSISTANT: SELECT COUNT(*) FROM lessons AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" 1382,"###HUMAN: If the qatari female is 918, what is the total number of females?, ###ASSISTANT: SELECT ""Total Female"" FROM table_3509 WHERE ""Qatari Female"" = '918'" 1383,"###HUMAN: show me all direct flights from DALLAS FORT WORTH to either SAN FRANCISCO or OAKLAND, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS FORT WORTH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND ((flight.to_airport = AIRPORT_SERVICE_2.airport_code AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'SAN FRANCISCO') OR (flight.to_airport = AIRPORT_SERVICE_3.airport_code AND CITY_3.city_code = AIRPORT_SERVICE_3.city_code AND CITY_3.city_name = 'OAKLAND'))) AND flight.connections = 0" 1384,"###HUMAN: what is the county when the year left is 1998?, ###ASSISTANT: SELECT county FROM table_name_36 WHERE year_left = ""1998""" 1385,"###HUMAN: When Grey's Anatomy aired at 9:30 what aired at 9:00?, ###ASSISTANT: SELECT ""9:00"" FROM table_42062 WHERE ""9:30"" = 'grey''s anatomy'" 1386,"###HUMAN: Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?, ###ASSISTANT: SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 1" 1387,"###HUMAN: Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?, ###ASSISTANT: SELECT ""ZX Spectrum"" FROM table_36826 WHERE ""Year"" > '1984' AND ""Genre"" = 'arcade/strategy'" 1388,"###HUMAN: After December 19, what is the Game number with a Record of 21 4 7?, ###ASSISTANT: SELECT COUNT(""Game"") FROM table_38946 WHERE ""Record"" = '21–4–7' AND ""December"" > '19'" 1389,"###HUMAN: What are the distinct buildings with capacities of greater than 50?, ###ASSISTANT: SELECT DISTINCT building FROM classroom WHERE capacity > 50" 1390,"###HUMAN: Are they any Other classes offered next Winter ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017" 1391,"###HUMAN: Bar chart x axis dept code y axis minimal stu gpa, and display Y-axis in descending order., ###ASSISTANT: SELECT DEPT_CODE, MIN(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY MIN(STU_GPA) DESC" 1392,"###HUMAN: provide the maximum age of patients whose marital status is widowed and stayed in the hospital for 23 days., ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = ""WIDOWED"" AND demographic.days_stay = ""23""" 1393,"###HUMAN: No Decision listed above has a visitor of Montreal., ###ASSISTANT: SELECT decision FROM table_name_62 WHERE visitor = ""montreal""" 1394,"###HUMAN: Which requirements do I need to meet for a CS-LSA degree ?, ###ASSISTANT: SELECT DISTINCT program_requirement.additional_req, program_requirement.category, program_requirement.min_credit, program.name FROM program, program_requirement WHERE program.name LIKE '%CS-LSA%' AND program.program_id = program_requirement.program_id" 1395,"###HUMAN: What player had the high point on July 7?, ###ASSISTANT: SELECT high_points FROM table_name_21 WHERE date = ""july 7""" 1396,"###HUMAN: When did the team play an away game against the Toronto Eagles?, ###ASSISTANT: SELECT ""Date"" FROM table_7343 WHERE ""Away"" = 'toronto eagles'" 1397,"###HUMAN: What Golden point(s) scorer has the Away Brisbane Broncos and Home South Sydney Rabbitohs?, ###ASSISTANT: SELECT golden_point_s__scorer FROM table_name_14 WHERE away = ""brisbane broncos"" AND home = ""south sydney rabbitohs""" 1398,"###HUMAN: What is Party, when Minister is 'Franco Frattini'?, ###ASSISTANT: SELECT party FROM table_name_55 WHERE minister = ""franco frattini""" 1399,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of job_id and the average of employee_id , and group by attribute job_id in a bar chart, could you rank in ascending by the X-axis?, ###ASSISTANT: SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID" 1400,"###HUMAN: What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?, ###ASSISTANT: SELECT ""Size (MW)"" FROM table_39540 WHERE ""Turbines"" > '19' AND ""Turbine Vendor"" = 'enercon' AND ""County"" = 'wexford'" 1401,"###HUMAN: What is the maximum 2006 census population of LGA name Opobo/Nkoro?, ###ASSISTANT: SELECT MAX(""Census 2006 population"") FROM table_23155 WHERE ""LGA Name"" = 'Opobo/Nkoro'" 1402,"###HUMAN: Which Jushin Liger has a Gran Hamada of kendo kashin?, ###ASSISTANT: SELECT jushin_liger FROM table_name_60 WHERE gran_hamada = ""kendo kashin""" 1403,"###HUMAN: What engine has an output of ps (kw; hp) @4700 rpm?, ###ASSISTANT: SELECT ""Engine"" FROM table_60251 WHERE ""Output"" = 'ps (kw; hp) @4700 rpm'" 1404,"###HUMAN: Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson?, ###ASSISTANT: SELECT ""HP Winning Team"" FROM table_31014 WHERE ""EP Winning Team"" = 'Hans Zereis' AND ""GM Winning Team"" = 'Charles Gibson'" 1405,"###HUMAN: What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?, ###ASSISTANT: SELECT AVG(extra_points) FROM table_name_7 WHERE player = ""james lawrence"" AND touchdowns < 1" 1406,"###HUMAN: who is the only player to have denmark listed as their nationality ?, ###ASSISTANT: SELECT ""player"" FROM table_203_305 WHERE ""nationality"" = 'denmark'" 1407,"###HUMAN: count the number of dead patients who were diagnosed with noninf gastroenterit nec., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = ""1"" AND diagnoses.short_title = ""Noninf gastroenterit NEC""" 1408,"###HUMAN: What year and where was the tournament when fan ying won the womens singles?, ###ASSISTANT: SELECT year_location FROM table_28138035_26 WHERE womens_singles = ""Fan Ying""" 1409,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of phone_number and employee_id , show X-axis in desc order please., ###ASSISTANT: SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC" 1410,"###HUMAN: What label shows an Album of cover version v?, ###ASSISTANT: SELECT label FROM table_name_24 WHERE album = ""cover version v""" 1411,"###HUMAN: What genre was Music in the Air?, ###ASSISTANT: SELECT genre FROM table_name_7 WHERE title = ""music in the air""" 1412,"###HUMAN: In how many counties di McCain win 41.62% of the vote?, ###ASSISTANT: SELECT COUNT(""County"") FROM table_23740 WHERE ""McCain%"" = '41.62%'" 1413,"###HUMAN: What is the date of appointment for outgoing manager Campbell Money, ###ASSISTANT: SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = ""Campbell Money""" 1414,"###HUMAN: What year was the winners vote 55.99%?, ###ASSISTANT: SELECT MIN(""Year"") FROM table_1808 WHERE ""Winners % votes"" = '55.99%'" 1415,"###HUMAN: What is the lowest number of points of the team with 2 losses and a lower than 1 position?, ###ASSISTANT: SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1" 1416,"###HUMAN: What is the away team's score when the Home team score is 14.18 (102)?, ###ASSISTANT: SELECT ""Away team score"" FROM table_57966 WHERE ""Home team score"" = '14.18 (102)'" 1417,"###HUMAN: what label was italy on ?, ###ASSISTANT: SELECT ""label"" FROM table_204_966 WHERE ""region"" = 'italy'" 1418,"###HUMAN: What national has 4.45 for o and 4.55 for xo?, ###ASSISTANT: SELECT ""Nationality"" FROM table_65762 WHERE ""4.45"" = 'o' AND ""4.55"" = 'xo'" 1419,"###HUMAN: Return the average money requested across all entrepreneurs., ###ASSISTANT: SELECT AVG(money_requested) FROM entrepreneur" 1420,"###HUMAN: What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?, ###ASSISTANT: SELECT ""Core clock ( MHz )"" FROM table_28157 WHERE ""Memory bandwidth ( GB/s )"" = '21.3'" 1421,"###HUMAN: Who the GM winning team when the EP winning team was #37 Porsche?, ###ASSISTANT: SELECT ""GM Winning Team"" FROM table_31012 WHERE ""EP Winning Team"" = '#37 Porsche'" 1422,"###HUMAN: What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )?, ###ASSISTANT: SELECT position FROM table_name_57 WHERE b_score > 8.975 AND gymnast = ""ekaterina kramarenko ( rus )""" 1423,"###HUMAN: known renal disease with a baseline serum creatinine > 1.5 mg / dl, ###ASSISTANT: SELECT * FROM table_train_157 WHERE renal_disease = 1 AND serum_creatinine > 1.5" 1424,"###HUMAN: List the dates and vote percents of elections., ###ASSISTANT: SELECT Date, Vote_Percent FROM election" 1425,"###HUMAN: which date had the least attendance ?, ###ASSISTANT: SELECT ""date"" FROM table_204_123 ORDER BY ""attendance"" LIMIT 1" 1426,"###HUMAN: What enrollement would you expect if you were attending the university in St. Louis?, ###ASSISTANT: SELECT ""Enrollment"" FROM table_2319 WHERE ""Location(s)"" = 'St. Louis'" 1427,"###HUMAN: what is the total number of painters who scored 12 in composition ?, ###ASSISTANT: SELECT COUNT(""painter"") FROM table_203_186 WHERE ""composition"" = 12" 1428,"###HUMAN: Who were the away teams when the competition was the 1st republic of srpska football day and the home team was u 14 republic of srpska?, ###ASSISTANT: SELECT away_team FROM table_29728596_2 WHERE competition = ""1st ``Republic of Srpska Football Day``"" AND home_team = ""U 14 Republic of Srpska""" 1429,"###HUMAN: Which chassis did fondmetal f1 spa use after 1990?, ###ASSISTANT: SELECT chassis FROM table_name_32 WHERE year > 1990 AND entrant = ""fondmetal f1 spa""" 1430,"###HUMAN: what is the number of patients who are in ward 650 until 2104?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 650 AND STRFTIME('%y', patient.unitadmittime) <= '2104'" 1431,"###HUMAN: How far is the olbia to sassari route?, ###ASSISTANT: SELECT ""Distance"" FROM table_10194 WHERE ""Course"" = 'olbia to sassari'" 1432,"###HUMAN: What competition was held 1 March 1909?, ###ASSISTANT: SELECT ""Competition"" FROM table_4377 WHERE ""Date"" = '1 march 1909'" 1433,"###HUMAN: can you find the top entered service ?, ###ASSISTANT: SELECT ""entered service"" FROM table_204_882 WHERE id = 1" 1434,"###HUMAN: provide the number of patients whose ethnicity is black/cape verdean and age is less than 68?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""BLACK/CAPE VERDEAN"" AND demographic.age < ""68""" 1435,"###HUMAN: Name the 2011 when 2010 is 2r, ###ASSISTANT: SELECT ""2011"" FROM table_80361 WHERE ""2010"" = '2r'" 1436,"###HUMAN: What was the title of series number 56?, ###ASSISTANT: SELECT title FROM table_2468961_4 WHERE no_in_series = 56" 1437,"###HUMAN: What was the championship during the match with the opponent of richard fromberg?, ###ASSISTANT: SELECT ""Championship"" FROM table_9055 WHERE ""Opponent"" = 'richard fromberg'" 1438,"###HUMAN: Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0, ###ASSISTANT: SELECT MAX(""Revenue ($M)"") FROM table_68346 WHERE ""Operating income ($m)"" > '27' AND ""Team"" = 'hamburg' AND ""Debt as % of value"" < '0'" 1439,"###HUMAN: What is the result for game 5?, ###ASSISTANT: SELECT ""Result"" FROM table_9742 WHERE ""Game"" = 'game 5'" 1440,"###HUMAN: count the number of patients who were diagnosed with oth nonauto hem anemia and did not come back to the hospital within 2 months in 2103., ###ASSISTANT: SELECT (SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'oth nonauto hem anemia') AND STRFTIME('%y', diagnoses_icd.charttime) = '2103') AS t1) - (SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'oth nonauto hem anemia') AND STRFTIME('%y', diagnoses_icd.charttime) = '2103') AS t2 JOIN admissions ON t2.subject_id = admissions.subject_id WHERE t2.charttime < admissions.admittime AND STRFTIME('%y', admissions.admittime) = '2103' AND DATETIME(admissions.admittime) BETWEEN DATETIME(t2.charttime) AND DATETIME(t2.charttime, '+2 month'))" 1441,"###HUMAN: What school has the Lancers as their mascot?, ###ASSISTANT: SELECT ""Location"" FROM table_65693 WHERE ""Mascot"" = 'lancers'" 1442,"###HUMAN: What was the tie number for the game with an away team of Hartlepool United?, ###ASSISTANT: SELECT ""Tie no"" FROM table_60420 WHERE ""Away team"" = 'hartlepool united'" 1443,"###HUMAN: count the number of patients who had received vitamin k within 2 months after being diagnosed with bone fracture(s) - left lower extremity until 3 years ago., ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bone fracture(s) - left lower extremity' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vitamin k' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t2 WHERE t1.diagnosistime < t2.treatmenttime AND DATETIME(t2.treatmenttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')" 1444,"###HUMAN: What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?, ###ASSISTANT: SELECT round FROM table_name_92 WHERE race = ""int. adac-preis der tourenwagen von sachsen-anhalt""" 1445,"###HUMAN: total number of venues that hosted first and second round games ., ###ASSISTANT: SELECT COUNT(""venue"") FROM table_203_606 WHERE ""rnd"" = 1 OR ""rnd"" = 2" 1446,"###HUMAN: Which constructor has laps less than 100 and a time/retired +10 laps?, ###ASSISTANT: SELECT ""Constructor"" FROM table_54219 WHERE ""Laps"" < '100' AND ""Time/Retired"" = '+10 laps'" 1447,"###HUMAN: what was the first time that patient 003-83 had an intake since 995 days ago?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-83')) AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-995 day') ORDER BY intakeoutput.intakeoutputtime LIMIT 1" 1448,"###HUMAN: What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit?, ###ASSISTANT: SELECT winning_team FROM table_22083044_2 WHERE circuit = ""Queensland Raceway"" AND fastest_lap = ""Tim Macrow""" 1449,"###HUMAN: since 3 years ago, count the number of drugs that patient 19428 had been prescribed., ###ASSISTANT: SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-3 year')" 1450,"###HUMAN: Tell me the cast for b. reeves eason and joseph kane, ###ASSISTANT: SELECT ""Cast"" FROM table_57614 WHERE ""Director"" = 'b. reeves eason and joseph kane'" 1451,"###HUMAN: Which Captain 2 has a Result of final?, ###ASSISTANT: SELECT ""Captain 2"" FROM table_76555 WHERE ""Result"" = 'final'" 1452,"###HUMAN: when was the last time patient 85895 was prescribed a drug the previous month?, ###ASSISTANT: SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85895) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY prescriptions.startdate DESC LIMIT 1" 1453,"###HUMAN: What was the record on April 1?, ###ASSISTANT: SELECT ""Record"" FROM table_33986 WHERE ""Date"" = 'april 1'" 1454,"###HUMAN: What is the entered service date for serial number 85-1222?, ###ASSISTANT: SELECT entered_service FROM table_name_29 WHERE serial_no = ""85-1222""" 1455,"###HUMAN: How many points does Swedish America's Cup Challenge have for rr1?, ###ASSISTANT: SELECT COUNT(rr1_pts) FROM table_21515673_2 WHERE team_name = ""Swedish America's Cup Challenge""" 1456,"###HUMAN: Who is teaching PreMajor classes in the Winter term ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE program_course.category LIKE '%PreMajor%' AND semester.semester = 'Winter' AND semester.year = 2017" 1457,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and commission_pct , and list by the JOB_ID in asc., ###ASSISTANT: SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID" 1458,"###HUMAN: What is the lowest attendance for a stadium that has an average smaller than 307?, ###ASSISTANT: SELECT AVG(lowest) FROM table_name_24 WHERE average < 307" 1459,"###HUMAN: How many people are under 40 for each gender Plot them as bar chart, list x axis in asc order., ###ASSISTANT: SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY gender" 1460,"###HUMAN: When 0-1 is the series who has the highest amount of assists?, ###ASSISTANT: SELECT high_assists FROM table_22883210_11 WHERE series = ""0-1""" 1461,"###HUMAN: What are the first names of all students taking accoutning and Computer Information Systems classes?, ###ASSISTANT: SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN class AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN class AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'" 1462,"###HUMAN: how many months had more than 55 favor votes ?, ###ASSISTANT: SELECT COUNT(""month"") FROM table_203_43 WHERE ""favor"" > 55" 1463,"###HUMAN: What was the score for south melbourne at home?, ###ASSISTANT: SELECT ""Home team score"" FROM table_78401 WHERE ""Home team"" = 'south melbourne'" 1464,"###HUMAN: Tell me the time of admission and primary disease for the patient with patient id 53707., ###ASSISTANT: SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.subject_id = ""53707""" 1465,"###HUMAN: previous gastrointestinal bleeding within 6 months, bleeding diathesis, platelet count < 100000 / mm3 or hemoglobin < 10 g / dl, ###ASSISTANT: SELECT * FROM table_test_24 WHERE gastrointestinal_disease = 1 OR bleeding = 1 OR platelet_count < 100000 OR hemoglobin_a1c_hba1c < 10" 1466,"###HUMAN: how many games were attended by at least 8,000 people ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_971 WHERE ""attendance"" >= 8000" 1467,"###HUMAN: For all storms with at least 1 death, compare the total number of deaths by dates_active attribute, sort by the names from low to high., ###ASSISTANT: SELECT Dates_active, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Dates_active" 1468,"###HUMAN: Name the most time for katrin mei ner and rank less than 5, ###ASSISTANT: SELECT MAX(""Time"") FROM table_68512 WHERE ""Name"" = 'katrin meißner' AND ""Rank"" < '5'" 1469,"###HUMAN: In the year 2009 who was the under-13?, ###ASSISTANT: SELECT under_13 FROM table_26368963_1 WHERE year = 2009" 1470,"###HUMAN: Name the highest Horizontal Bar which is in france and Rings smaller than 58.975?, ###ASSISTANT: SELECT MAX(horizontal_bar) FROM table_name_4 WHERE country = ""france"" AND rings < 58.975" 1471,"###HUMAN: what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?, ###ASSISTANT: SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = 3801985060" 1472,"###HUMAN: Recent bounties with a given tag., ###ASSISTANT: SELECT p.Id AS ""post_link"", p.Score AS ""Score"", p.AnswerCount AS ""Answers"", bs.BountyAmount AS ""Amount"", p.Tags, CAST(TIME_TO_STR(bs.CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(10)) AS ""Bounty Start"" FROM Posts AS p INNER JOIN Votes AS bs ON p.Id = bs.PostId AND bs.VoteTypeId = 8 AND p.Tags LIKE '%<##Tagname##>%' ORDER BY bs.CreationDate DESC LIMIT 100" 1473,"###HUMAN: Show the names of climbers and the heights of mountains they climb Show bar chart, and display in desc by the bars please., ###ASSISTANT: SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Name DESC" 1474,"###HUMAN: How many strokes for arnold palmer with a to par of greater than 9?, ###ASSISTANT: SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = ""arnold palmer""" 1475,"###HUMAN: what is a flight that goes from BALTIMORE to SAN FRANCISCO and arrives at SAN FRANCISCO at 2000 on a FRIDAY, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE ((((((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time) AND days.day_name = 'THURSDAY' AND flight.flight_days = days.days_code) OR (days.day_name = 'FRIDAY' AND flight.flight_days = days.days_code AND NOT ((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time))) AND flight.arrival_time = 2000) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 1476,"###HUMAN: What were the starts when the points dropped 18?, ###ASSISTANT: SELECT ""Races (Starts)"" FROM table_73703 WHERE ""Points (Dropped points)"" = '18'" 1477,"###HUMAN: Who was Henry Hyde's opponent in the race?, ###ASSISTANT: SELECT opponent FROM table_1341568_14 WHERE incumbent = ""Henry Hyde""" 1478,"###HUMAN: Draw a bar chart about the distribution of All_Road and School_ID , order by the Y-axis from low to high please., ###ASSISTANT: SELECT All_Road, School_ID FROM basketball_match ORDER BY School_ID" 1479,"###HUMAN: which papers used NELL ?, ###ASSISTANT: SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname = 'NELL' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid" 1480,"###HUMAN: Which tournament has a Runner(s)-up of Gary McCord?, ###ASSISTANT: SELECT tournament FROM table_name_47 WHERE runner_s__up = ""gary mccord""" 1481,"###HUMAN: when did patient 021-221706 come to the hospital for the last time until 4 years ago via an floor?, ###ASSISTANT: SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '021-221706' AND patient.hospitaladmitsource = 'floor' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1" 1482,"###HUMAN: What's the overall record of the team with 4-3 road record?, ###ASSISTANT: SELECT overall_record FROM table_22993636_2 WHERE road_record = ""4-3""" 1483,"###HUMAN: Which person teaches the easiest course in regards to ULCS ?, ###ASSISTANT: SELECT DISTINCT instructor.name, program_course.workload FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%ULCS%' AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%ULCS%')" 1484,"###HUMAN: who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge?, ###ASSISTANT: SELECT ""Constructor"" FROM table_54042 WHERE ""Tyre"" = 'd' AND ""Engine"" = 'talbot 23cv 4.5 l6' AND ""Chassis"" = 'talbot-lago t26c' AND ""Entrant"" = 'ecurie belge'" 1485,"###HUMAN: What is Place, when To Par is '5', and when Score is '72-73=145'?, ###ASSISTANT: SELECT ""Place"" FROM table_47828 WHERE ""To par"" = '5' AND ""Score"" = '72-73=145'" 1486,"###HUMAN: When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?, ###ASSISTANT: SELECT ""Term end"" FROM table_67462 WHERE ""Party"" = 'national religious party' AND ""Minister"" = 'shlomo-yisrael ben-meir'" 1487,"###HUMAN: List the names of editors in ascending order of age., ###ASSISTANT: SELECT Name FROM editor ORDER BY Age" 1488,"###HUMAN: what was the last time that patient 009-13409 was prescribed for a drug until 48 months ago?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-13409')) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-48 month') ORDER BY medication.drugstarttime DESC LIMIT 1" 1489,"###HUMAN: what's the minimum cost of a hospital that includes a cortisol lab test until 4 years ago?, ###ASSISTANT: SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'cortisol')) AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY cost.patienthealthsystemstayid) AS t1" 1490,"###HUMAN: What are the different budget type codes, and how many documents are there for each. Show a pie chart., ###ASSISTANT: SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code" 1491,"###HUMAN: In heat rank 7, what is the sum of lanes?, ###ASSISTANT: SELECT SUM(""Lane"") FROM table_31969 WHERE ""Heat Rank"" = '7'" 1492,"###HUMAN: What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner?, ###ASSISTANT: SELECT ""City / State"" FROM table_51037 WHERE ""Winner"" = 'russell ingall larry perkins'" 1493,"###HUMAN: When did construction start on the Power station with a net MWE of 1190, ###ASSISTANT: SELECT MIN(construction_started) FROM table_143352_1 WHERE net_mwe = 1190" 1494,"###HUMAN: Who are the directors of the episode in series # 54?, ###ASSISTANT: SELECT director FROM table_26866233_1 WHERE series__number = 54" 1495,"###HUMAN: What is the Location, when the Score is 38-29?, ###ASSISTANT: SELECT ""Location"" FROM table_71546 WHERE ""Score"" = '38-29'" 1496,"###HUMAN: Which week did the Baltimore Ravens play at home ?, ###ASSISTANT: SELECT week FROM table_name_79 WHERE host_team = ""baltimore ravens""" 1497,"###HUMAN: please show me all airlines with SUNDAY flights from PHILADELPHIA to DENVER, ###ASSISTANT: SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND days.day_name = 'SUNDAY' AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 1498,"###HUMAN: count of unique roles, ###ASSISTANT: SELECT COUNT(""role"") FROM table_203_756" 1499,"###HUMAN: what is the number of patients whose primary disease is brain mass;intracranial hemorrhage and procedure icd9 code is 8856?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = ""BRAIN MASS;INTRACRANIAL HEMORRHAGE"" AND procedures.icd9_code = ""8856""" 1500,"###HUMAN: Which Record has an Attendance of 24,597?, ###ASSISTANT: SELECT record FROM table_name_62 WHERE attendance = ""24,597""" 1501,"###HUMAN: Who had a finish of t15?, ###ASSISTANT: SELECT ""Player"" FROM table_62596 WHERE ""Finish"" = 't15'" 1502,"###HUMAN: In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?, ###ASSISTANT: SELECT ""Lyrics"" FROM table_62642 WHERE ""Date"" = 'august 10, 2005' AND ""Catalog number"" = 'tocp-66427'" 1503,"###HUMAN: What are all the calendar dates? Show a bar chart binning calendar date by weekday., ###ASSISTANT: SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar" 1504,"###HUMAN: Show the names and ids of tourist attractions that are visited at most once. Plot them as pie chart., ###ASSISTANT: SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID" 1505,"###HUMAN: What is the Branding for Group Owner Qantam of Cape Cod, LLC?, ###ASSISTANT: SELECT ""Branding"" FROM table_36 WHERE ""Group owner"" = 'Qantam of Cape Cod, LLC'" 1506,"###HUMAN: What was the Competition on November 16, 2007?, ###ASSISTANT: SELECT ""Competition"" FROM table_9053 WHERE ""Date"" = 'november 16, 2007'" 1507,"###HUMAN: Which television service has italian for its language?, ###ASSISTANT: SELECT television_service FROM table_name_46 WHERE language = ""italian""" 1508,"###HUMAN: English title of am lie had what year?, ###ASSISTANT: SELECT ""Year"" FROM table_39379 WHERE ""English title"" = 'amélie'" 1509,"###HUMAN: Name the professor or teacher teaching CICS 301 ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'CICS' AND course.number = 301 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id" 1510,"###HUMAN: WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?, ###ASSISTANT: SELECT AVG(""Goals for"") FROM table_61007 WHERE ""Draws"" < '6' AND ""Losses"" < '7'" 1511,"###HUMAN: Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009?, ###ASSISTANT: SELECT MIN(inhabitants) FROM table_name_4 WHERE mayor = ""matteo renzi"" AND election > 2009" 1512,"###HUMAN: what was henrick malberg 's first film ?, ###ASSISTANT: SELECT ""original title"" FROM table_204_91 ORDER BY ""year"" LIMIT 1" 1513,"###HUMAN: Find the names and average salaries of all departments whose average salary is greater than 42000, and rank by the dept_name in ascending., ###ASSISTANT: SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name" 1514,"###HUMAN: When are all years that the champion is Ji Min Jeong?, ###ASSISTANT: SELECT year FROM table_15315816_1 WHERE champion = ""Ji Min Jeong""" 1515,"###HUMAN: What upper-level MUSICOL classes are available in the Summer ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MUSICOL' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2016" 1516,"###HUMAN: what is the location when the score is w 105-99?, ###ASSISTANT: SELECT location FROM table_name_58 WHERE score = ""w 105-99""" 1517,"###HUMAN: Which entrant has a year after 1999?, ###ASSISTANT: SELECT ""Entrant"" FROM table_69468 WHERE ""Year"" > '1999'" 1518,"###HUMAN: What is the highest Year, when Opponent is #2 Syracuse?, ###ASSISTANT: SELECT MAX(year) FROM table_name_52 WHERE opponent = ""#2 syracuse""" 1519,"###HUMAN: Who did the Raptors play when their record was 45-36?, ###ASSISTANT: SELECT ""Team"" FROM table_842 WHERE ""Record"" = '45-36'" 1520,"###HUMAN: for the first time until 31 months ago, when was patient 7165 prescribed insulin human regular and labetalol hcl at the same time?, ###ASSISTANT: SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'insulin human regular' AND admissions.subject_id = 7165 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-31 month')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'labetalol hcl' AND admissions.subject_id = 7165 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-31 month')) AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) ORDER BY t1.startdate LIMIT 1" 1521,"###HUMAN: What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?, ###ASSISTANT: SELECT ""Bleeding time"" FROM table_20137 WHERE ""Prothrombin time"" = 'Unaffected' AND ""Platelet count"" = 'Unaffected'" 1522,"###HUMAN: how many patients whose drug code is teraz5 and lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = ""TERAZ5"" AND lab.fluid = ""Urine""" 1523,"###HUMAN: On what date did the woman married to Louis II become consort?, ###ASSISTANT: SELECT ""Became Consort"" FROM table_61634 WHERE ""Spouse"" = 'louis ii'" 1524,"###HUMAN: When Richmond is the away team, what is the crowd size?, ###ASSISTANT: SELECT crowd FROM table_name_23 WHERE away_team = ""richmond""" 1525,"###HUMAN: Of the upper level classes , how many have labs ?, ###ASSISTANT: SELECT COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_lab = 'Y' AND program_course.category LIKE '%ULCS%'" 1526,"###HUMAN: Return a bar chart about the distribution of meter_600 and ID , list in asc by the names please., ###ASSISTANT: SELECT meter_600, ID FROM swimmer ORDER BY meter_600" 1527,"###HUMAN: is the heart rate of patient 1902's body last measured on the current intensive care unit visit less than the value second to last measured on the current intensive care unit visit?, ###ASSISTANT: SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1902) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime DESC LIMIT 1) < (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1902) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime DESC LIMIT 1 OFFSET 1)" 1528,"###HUMAN: cirrhosis of the liver, portal hypertension, or esophageal varices, ###ASSISTANT: SELECT * FROM table_dev_22 WHERE liver_disease = 1 OR portal_hypertension = 1 OR esophageal_varices = 1" 1529,"###HUMAN: what was the four most common specimen test ordered in this year?, ###ASSISTANT: SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 4" 1530,"###HUMAN: What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist?, ###ASSISTANT: SELECT MIN(""Draw"") FROM table_13971 WHERE ""Artist"" = 'anastasia prikhodko' AND ""Place"" > '1'" 1531,"###HUMAN: , order by the bars from low to high., ###ASSISTANT: SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry" 1532,"###HUMAN: What is the type if the organization name is Gamma RHO Lambda 1?, ###ASSISTANT: SELECT ""Type"" FROM table_27646 WHERE ""Organization"" = 'Gamma Rho Lambda 1'" 1533,"###HUMAN: How many losses have byes greater than 2?, ###ASSISTANT: SELECT COUNT(""Losses"") FROM table_42494 WHERE ""Byes"" > '2'" 1534,"###HUMAN: What is the motive before 2007?, ###ASSISTANT: SELECT ""Motive"" FROM table_14685 WHERE ""Year"" < '2007'" 1535,"###HUMAN: For those employees who was hired before 2002-06-21, give me the comparison about the sum of salary over the hire_date bin hire_date by time by a bar chart, order by the y axis in descending., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) DESC" 1536,"###HUMAN: Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against?, ###ASSISTANT: SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = ""37"" AND goals_against < 63" 1537,"###HUMAN: What team was the opponent when the score was 7 1?, ###ASSISTANT: SELECT ""Opponent"" FROM table_71565 WHERE ""Score"" = '7–1'" 1538,"###HUMAN: What is the record for the result w 33-3?, ###ASSISTANT: SELECT record FROM table_name_4 WHERE result = ""w 33-3""" 1539,"###HUMAN: What were the revising conventions commentary with a denunciation of 21?, ###ASSISTANT: SELECT ""revising convention(s)"" FROM table_2206 WHERE ""Denunciations (September 2011)"" = '21'" 1540,"###HUMAN: Who wrote the episodes that had a viewership of 7.14?, ###ASSISTANT: SELECT ""Written by"" FROM table_27186 WHERE ""U.S. viewers (millions)"" = '7.14'" 1541,"###HUMAN: Who's the captain of the team whose head coach is Alistair Edwards?, ###ASSISTANT: SELECT captain FROM table_1301373_1 WHERE head_coach = ""Alistair Edwards""" 1542,"###HUMAN: View Statistics for all questions., ###ASSISTANT: SELECT AVG(ViewCount) AS AvgViews, STDEV(ViewCount) AS StDevViews, COUNT(*) AS N FROM Posts WHERE PostTypeId = 1" 1543,"###HUMAN: Scatter plot to show department id on x axis and sum salary on y axis., ###ASSISTANT: SELECT DEPARTMENT_ID, SUM(SALARY) FROM employees GROUP BY DEPARTMENT_ID" 1544,"###HUMAN: Return the name of the category to which the film 'HUNGER ROOF' belongs., ###ASSISTANT: SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF'" 1545,"###HUMAN: until 8 months ago, when was the first time that patient 002-56583 was prescribed medication via dialysis?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-56583')) AND medication.routeadmin = 'dialysis' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-8 month') ORDER BY medication.drugstarttime LIMIT 1" 1546,"###HUMAN: what country is listed before france ?, ###ASSISTANT: SELECT ""nation"" FROM table_203_374 WHERE id = (SELECT id FROM table_203_374 WHERE ""nation"" = 'france') - 1" 1547,"###HUMAN: Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type Show bar chart, I want to sort X-axis from low to high order please., ###ASSISTANT: SELECT Affiliation, SUM(Enrollment) FROM university WHERE Founded > 1850 GROUP BY Affiliation ORDER BY Affiliation" 1548,"###HUMAN: List all the participant ids and their details using a bar chart, and rank from high to low by the X-axis., ###ASSISTANT: SELECT Participant_Details, Participant_ID FROM Participants ORDER BY Participant_Details DESC" 1549,"###HUMAN: how many patients were diagnosed with stroke during the same month last year after prophylactic antibacterials - for transplant/hiv., ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'prophylactic antibacterials - for transplant/hiv' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'stroke' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 WHERE t1.treatmenttime < t2.diagnosistime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.diagnosistime, 'start of month')" 1550,"###HUMAN: tell me all the airports near WESTCHESTER COUNTY, ###ASSISTANT: SELECT DISTINCT airport.airport_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'WESTCHESTER COUNTY'" 1551,"###HUMAN: For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart., ###ASSISTANT: SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter" 1552,"###HUMAN: What is the largest silver number when the rank is smaller than 1?, ###ASSISTANT: SELECT MAX(silver) FROM table_name_92 WHERE rank < 1" 1553,"###HUMAN: Who was the outgoing manager when the incoming manager was augusto in cio?, ###ASSISTANT: SELECT ""Outgoing manage"" FROM table_61752 WHERE ""Incoming manager"" = 'augusto inácio'" 1554,"###HUMAN: What was the venue after 2012?, ###ASSISTANT: SELECT ""Venue"" FROM table_79308 WHERE ""Year"" > '2012'" 1555,"###HUMAN: Name the score for hawthorn opponent, ###ASSISTANT: SELECT score FROM table_name_64 WHERE opponent = ""hawthorn""" 1556,"###HUMAN: how much are patient 5252's differences in heart rate second measured on the first intensive care unit visit compared to the value first measured on the first intensive care unit visit?, ###ASSISTANT: SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5252) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1 OFFSET 1) - (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5252) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1)" 1557,"###HUMAN: count the number of patients whose discharge location is home health care and admission year is less than 2158?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""HOME HEALTH CARE"" AND demographic.admityear < ""2158""" 1558,"###HUMAN: How many years did the new york giants win with a result of 15-7 at lincoln financial field?, ###ASSISTANT: SELECT COUNT(""Year"") FROM table_47791 WHERE ""Location"" = 'lincoln financial field' AND ""Winner"" = 'new york giants' AND ""Result"" = '15-7'" 1559,"###HUMAN: What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?, ###ASSISTANT: SELECT ""Cooper"" FROM table_67359 WHERE ""Ashmolean"" < '21' AND ""Hahland"" < '4'" 1560,"###HUMAN: What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt?, ###ASSISTANT: SELECT ""Election"" FROM table_60550 WHERE ""2nd Member"" = 'frederick knight' AND ""1st Member"" = 'sir edmund lechmere, bt'" 1561,"###HUMAN: show me cheap flights from BALTIMORE to DALLAS, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, fare, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'DALLAS' AND flight.to_airport = AIRPORT_SERVICE_2.airport_code) AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias3, airport_service AS AIRPORT_SERVICEalias4, airport_service AS AIRPORT_SERVICEalias5, city AS CITYalias3, city AS CITYalias4, city AS CITYalias5, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'BALTIMORE' AND CITYalias5.city_code = AIRPORT_SERVICEalias5.city_code AND CITYalias5.city_name = 'DALLAS' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias3.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias5.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id" 1562,"###HUMAN: find the number of patients with blood gas lab test category who were hospitalized for more than 7 days., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > ""7"" AND lab.""CATEGORY"" = ""Blood Gas""" 1563,"###HUMAN: How many ERP W is it that has a Call sign of w273bs?, ###ASSISTANT: SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = ""w273bs""" 1564,"###HUMAN: Who is the club that has 30 points?, ###ASSISTANT: SELECT ""Club"" FROM table_808 WHERE ""Points"" = '30'" 1565,"###HUMAN: What is the site of the game with a Record of 6-2?, ###ASSISTANT: SELECT ""Game site"" FROM table_32451 WHERE ""Record"" = '6-2'" 1566,"###HUMAN: Can you compare the account balances of customers with the letter 'a' in their names using a bar graph., ###ASSISTANT: SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%'" 1567,"###HUMAN: Who was the finalist in Miami?, ###ASSISTANT: SELECT finalist FROM table_name_7 WHERE tournament = ""miami""" 1568,"###HUMAN: what is the total number of patients who were admitted to the hospital?, ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions" 1569,"###HUMAN: What is the tie number when Wigan Athletic is the home team?, ###ASSISTANT: SELECT ""Tie no"" FROM table_8010 WHERE ""Home team"" = 'wigan athletic'" 1570,"###HUMAN: how many patients were prescribed 10 ml vial : calcium chloride 10 % iv soln during the same month after the diagnosis of sinus tachycardia, since 4 years ago?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sinus tachycardia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '10 ml vial : calcium chloride 10 % iv soln' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t2 WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.drugstarttime, 'start of month')" 1571,"###HUMAN: How many losses had a total of 17 and more than 10 wins?, ###ASSISTANT: SELECT COUNT(""Losses"") FROM table_39747 WHERE ""Total"" = '17' AND ""Wins"" > '10'" 1572,"###HUMAN: What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What, ###ASSISTANT: SELECT ""Date"" FROM table_49576 WHERE ""Place"" = 'chernivtsi' AND ""Race winners"" = 'etienne bax / kaspars stupelis'" 1573,"###HUMAN: how many patients whose age is less than 41 and lab test category is chemistry?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < ""41"" AND lab.""CATEGORY"" = ""Chemistry""" 1574,"###HUMAN: specify the age of patient paul edwards, ###ASSISTANT: SELECT demographic.age FROM demographic WHERE demographic.name = ""Paul Edwards""" 1575,"###HUMAN: Name the least field goals for chantel hilliard, ###ASSISTANT: SELECT MIN(""Field Goals"") FROM table_25693 WHERE ""Player"" = 'Chantel Hilliard'" 1576,"###HUMAN: For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993., ###ASSISTANT: SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = ""sasol jordan""" 1577,"###HUMAN: Who is the player who played for the Miami Sol and went to school at North Carolina State?, ###ASSISTANT: SELECT ""Player"" FROM table_50402 WHERE ""New WNBA Team"" = 'miami sol' AND ""College/Country/Team"" = 'north carolina state'" 1578,"###HUMAN: What is the date where the result was L 27-10 in a week before week 9?, ###ASSISTANT: SELECT date FROM table_name_94 WHERE week < 9 AND result = ""l 27-10""" 1579,"###HUMAN: Who vacated his post when his successor was formally installed on May 11, 1966?, ###ASSISTANT: SELECT ""Vacator"" FROM table_22348 WHERE ""Date of successors formal installation"" = 'May 11, 1966'" 1580,"###HUMAN: What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?, ###ASSISTANT: SELECT MIN(""Cuts made"") FROM table_42349 WHERE ""Top-25"" < '6' AND ""Wins"" < '0'" 1581,"###HUMAN: what is the least silver for germany when gold is more than 4?, ###ASSISTANT: SELECT MIN(""Silver"") FROM table_66454 WHERE ""Nation"" = 'germany' AND ""Gold"" > '4'" 1582,"###HUMAN: What is the competition when aggregate is 1 4?, ###ASSISTANT: SELECT competition FROM table_1233026_4 WHERE aggregate = ""1–4""" 1583,"###HUMAN: what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?, ###ASSISTANT: SELECT MAX(points) FROM table_name_42 WHERE chassis = ""focus rs wrc 08 and 09"" AND stage_wins > 91" 1584,"###HUMAN: What was Eduardo Romero's score?, ###ASSISTANT: SELECT score FROM table_name_59 WHERE player = ""eduardo romero""" 1585,"###HUMAN: What is the mascot of Hammond Tech?, ###ASSISTANT: SELECT ""Mascot"" FROM table_65664 WHERE ""City"" = 'hammond' AND ""School"" = 'hammond tech'" 1586,"###HUMAN: What is the lowest number of wins with more than 113 points in 4th rank?, ###ASSISTANT: SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = ""4th""" 1587,"###HUMAN: how many gold 's has brazil won ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_360 WHERE ""gold"" = 'brazil'" 1588,"###HUMAN: What kind of round was played when Hanne Skak Jensen faced Austria?, ###ASSISTANT: SELECT ""Round"" FROM table_3277 WHERE ""Against"" = 'Austria'" 1589,"###HUMAN: What was the type of sussex?, ###ASSISTANT: SELECT ""Type"" FROM table_357 WHERE ""Name"" = 'Sussex'" 1590,"###HUMAN: when was patient 20066's arterial bp [diastolic] first measured less than 43.0 on the first icu visit?, ###ASSISTANT: SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20066) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') AND chartevents.valuenum < 43.0 ORDER BY chartevents.charttime LIMIT 1" 1591,"###HUMAN: What is the total amount of settlement made for all the settlements?, ###ASSISTANT: SELECT SUM(amount_settled) FROM settlements" 1592,"###HUMAN: What is the highest cited paper by jeff dean ?, ###ASSISTANT: SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'jeff dean' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC" 1593,"###HUMAN: What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?, ###ASSISTANT: SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = ""hungary"" AND silver > 2" 1594,"###HUMAN: How many weeks had a Result of w 20 6?, ###ASSISTANT: SELECT SUM(week) FROM table_name_24 WHERE result = ""w 20–6""" 1595,"###HUMAN: What is the combined attendance of all games that had a result of w 35-14?, ###ASSISTANT: SELECT SUM(""Attendance"") FROM table_78334 WHERE ""Result"" = 'w 35-14'" 1596,"###HUMAN: how many patients whose admission year is less than 2111 and item id is 51446?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < ""2111"" AND lab.itemid = ""51446""" 1597,"###HUMAN: what is the next whitworth size -lrb- in -rrb- below 1/8 ?, ###ASSISTANT: SELECT ""whitworth size (in)"" FROM table_204_828 WHERE id = (SELECT id FROM table_204_828 WHERE ""whitworth size (in)"" = '1/8') + 1" 1598,"###HUMAN: How many ranks by average for the couple Tana and Stuart?, ###ASSISTANT: SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = ""Tana and Stuart""" 1599,"###HUMAN: What is the share of votes with 3,567,021 NDC votes?, ###ASSISTANT: SELECT ""Share of votes"" FROM table_9551 WHERE ""Number of NDC votes"" = '3,567,021'" 1600,"###HUMAN: Which highest overall figure had Robert Alford as a name and a round of more than 2?, ###ASSISTANT: SELECT MAX(overall) FROM table_name_89 WHERE name = ""robert alford"" AND round > 2" 1601,"###HUMAN: Name the total number of points for newell's old boys, ###ASSISTANT: SELECT COUNT(points) FROM table_17968282_1 WHERE team = ""Newell's Old Boys""" 1602,"###HUMAN: May I sign up for 100 -level classes in Spring or Summer term ?, ###ASSISTANT: SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN (DERIVED_TABLEalias0.course_id) AND NOT COURSEalias0.course_id IN (SELECT DISTINCT COURSE_PREREQUISITEalias0.course_id FROM course_prerequisite AS COURSE_PREREQUISITEalias0 WHERE NOT COURSE_PREREQUISITEalias0.pre_course_id IN (DERIVED_TABLEalias0.course_id)) AND COURSEalias0.department = 'EECS' AND COURSEalias0.number BETWEEN 100 AND 100 + 100 AND SEMESTERalias0.semester IN ('SP', 'SS', 'SU') AND SEMESTERalias0.semester_id = COURSE_OFFERINGalias0.semester AND SEMESTERalias0.year = 2016" 1603,"###HUMAN: What song was in french?, ###ASSISTANT: SELECT ""Song"" FROM table_76347 WHERE ""Language"" = 'french'" 1604,"###HUMAN: What's the name of the episode associated with Nick production number 342?, ###ASSISTANT: SELECT ""Episode title"" FROM table_28767 WHERE ""Nick prod. #"" = '342'" 1605,"###HUMAN: What Leading scorer had a Score of 80 112?, ###ASSISTANT: SELECT leading_scorer FROM table_name_98 WHERE score = ""80–112""" 1606,"###HUMAN: was the value of patient 016-38131's bun last measured on the current hospital visit less than they were first measured on the current hospital visit?, ###ASSISTANT: SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bun' ORDER BY lab.labresulttime DESC LIMIT 1) < (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bun' ORDER BY lab.labresulttime LIMIT 1)" 1607,"###HUMAN: What is on at 5pm on the channel where As the World Turns is on at 2pm?, ###ASSISTANT: SELECT ""5:00 pm"" FROM table_61209 WHERE ""2:00 pm"" = 'as the world turns'" 1608,"###HUMAN: Are there any sections of EECS 767 offered after 07:30 P.M. ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '07:30' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 767 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016" 1609,"###HUMAN: Name the most interview for minnesota and average more than 7.901, ###ASSISTANT: SELECT MAX(""Interview"") FROM table_57084 WHERE ""State"" = 'minnesota' AND ""Average"" > '7.901'" 1610,"###HUMAN: In the game where the Hornets were the home team and Clippers the visiting team, what is the score?, ###ASSISTANT: SELECT ""Score"" FROM table_56666 WHERE ""Home"" = 'hornets' AND ""Visitor"" = 'clippers'" 1611,"###HUMAN: Tag Usage - Presentation Frameworks., ###ASSISTANT: SELECT t.TagName, COUNT(p.Id) AS Posts, SUM(CASE WHEN p.AnswerCount > 0 THEN 1 ELSE 0 END) AS Answered FROM Tags AS t INNER JOIN PostTags AS pta ON t.Id = pta.TagId INNER JOIN Posts AS p ON p.Id = pta.PostId AND p.PostTypeId = 1 WHERE t.TagName IN ('angular', 'ember.js', 'reactjs', 'vuejs2') GROUP BY t.TagName" 1612,"###HUMAN: What was the highest money when the score was 69-68-67-69=273?, ###ASSISTANT: SELECT MAX(""Money ( $ )"") FROM table_62549 WHERE ""Score"" = '69-68-67-69=273'" 1613,"###HUMAN: Who were the opponents during week 14?, ###ASSISTANT: SELECT opponent FROM table_name_53 WHERE week = 14" 1614,"###HUMAN: tell me patient 10624's minimum bands value this month?, ###ASSISTANT: SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10624) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bands') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')" 1615,"###HUMAN: After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?, ###ASSISTANT: SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = ""ferrari v8"" AND points < 23" 1616,"###HUMAN: What are the nationalities and the taotal ages of journalists. Visualize by a bar chart., ###ASSISTANT: SELECT Nationality, SUM(Age) FROM journalist GROUP BY Nationality" 1617,"###HUMAN: Which award was given for the role of Elphaba in 2009?, ###ASSISTANT: SELECT ""Award"" FROM table_43430 WHERE ""Role"" = 'elphaba' AND ""Year"" = '2009'" 1618,"###HUMAN: What was the result when incumbent Tom Steed was elected?, ###ASSISTANT: SELECT result FROM table_1342198_36 WHERE incumbent = ""Tom Steed""" 1619,"###HUMAN: Term Ending smaller than 2018, and a Nationality of new zealand what is the name?, ###ASSISTANT: SELECT ""Name"" FROM table_5255 WHERE ""Term Ending"" < '2018' AND ""Nationality"" = 'new zealand'" 1620,"###HUMAN: What is the name of series episode 11-02's segment c?, ###ASSISTANT: SELECT segment_c FROM table_15187735_11 WHERE series_ep = ""11-02""" 1621,"###HUMAN: Can you tell me the High rebounds that has the Date of november 5?, ###ASSISTANT: SELECT high_rebounds FROM table_name_16 WHERE date = ""november 5""" 1622,"###HUMAN: A bar chart shows the number of appellations whose score is higher than 93, and ordered by Name., ###ASSISTANT: SELECT Appelation, COUNT(Appelation) FROM wine WHERE Score > 93 GROUP BY Appelation ORDER BY Name" 1623,"###HUMAN: what is minimum age of patients whose days of hospital stay is 29 and admission year is greater than or equal to 2107?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.days_stay = ""29"" AND demographic.admityear >= ""2107""" 1624,"###HUMAN: Which Surface has a Week of march 1?, ###ASSISTANT: SELECT ""Surface"" FROM table_8542 WHERE ""Week"" = 'march 1'" 1625,"###HUMAN: Find the names of all the product characteristics., ###ASSISTANT: SELECT DISTINCT characteristic_name FROM CHARACTERISTICS" 1626,"###HUMAN: on what date did the bears win by a difference of 27 points ?, ###ASSISTANT: SELECT ""date"" FROM table_204_207 WHERE ""result"" = 'w' AND ""result"" - ""result"" = 27" 1627,"###HUMAN: Who was in 2nd leg when Boca Juniors was in home (1st leg)?, ###ASSISTANT: SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = ""Boca Juniors""" 1628,"###HUMAN: how many times did debbie black block, ###ASSISTANT: SELECT blocks FROM table_19722233_5 WHERE player = ""Debbie Black""" 1629,"###HUMAN: Who had the decision goal when the record was 7-7-2?, ###ASSISTANT: SELECT decision FROM table_name_83 WHERE record = ""7-7-2""" 1630,"###HUMAN: what were the top four most common drugs that followed during the same hospital visit for the patients who were given lt heart angiocardiogram during the previous year?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'lt heart angiocardiogram') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4" 1631,"###HUMAN: Show the name, home city, and age for all drivers., ###ASSISTANT: SELECT name, home_city, age FROM driver" 1632,"###HUMAN: how many patients are admitted urgently and lab tested for bilirubin,direct?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = ""URGENT"" AND lab.label = ""Bilirubin, Direct""" 1633,"###HUMAN: what is the number of patients whose marital status is married and procedure long title is percutaneous [endoscopic] gastrostomy [peg]?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = ""MARRIED"" AND procedures.long_title = ""Percutaneous [endoscopic] gastrostomy [PEG]""" 1634,"###HUMAN: Which is the highest Rd 1 has a Province of utrecht and a Rd 4 larger than 0?, ###ASSISTANT: SELECT MAX(rd_1) FROM table_name_70 WHERE province = ""utrecht"" AND rd_4 > 0" 1635,"###HUMAN: how old is the youngest person for each job?, and could you order x-axis from low to high order?, ###ASSISTANT: SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job" 1636,"###HUMAN: what was the teams final record, ###ASSISTANT: SELECT ""results\nteam record"" FROM table_204_123 ORDER BY ""week"" DESC LIMIT 1" 1637,"###HUMAN: What is the average number in attendance on September 16?, ###ASSISTANT: SELECT AVG(attendance) FROM table_name_23 WHERE date = ""september 16""" 1638,"###HUMAN: What classes are required to declare a major in CLARCH ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%CLARCH%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id" 1639,"###HUMAN: How many original air dates were there for the episode with production code 212?, ###ASSISTANT: SELECT COUNT(original_air_date) FROM table_23937219_3 WHERE prod_code = 212" 1640,"###HUMAN: what is the capacity when the acceleration 1-100km/h is 11.1 s?, ###ASSISTANT: SELECT capacity FROM table_name_39 WHERE acceleration_0_100km_h = ""11.1 s""" 1641,"###HUMAN: Name the To par of payne stewart?, ###ASSISTANT: SELECT to_par FROM table_name_4 WHERE player = ""payne stewart""" 1642,"###HUMAN: what is minimum age of patients whose primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement and days of hospital stay is 20?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = ""AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT "" AND demographic.days_stay = ""20""" 1643,"###HUMAN: how many employees does vitol have ?, ###ASSISTANT: SELECT ""employees"" FROM table_203_83 WHERE ""company"" = 'vitol'" 1644,"###HUMAN: What was E.J. 'Dutch' Harrison's lowest To Par?, ###ASSISTANT: SELECT MIN(""To par"") FROM table_70516 WHERE ""Player"" = 'e.j. ""dutch"" harrison'" 1645,"###HUMAN: count the number of private health insurance patients who had transplant from cadaver., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = ""Private"" AND procedures.short_title = ""Transplant cadaver donor""" 1646,"###HUMAN: Name the centennial for location, ###ASSISTANT: SELECT ""Centennial"" FROM table_20448 WHERE ""Information"" = 'Location'" 1647,"###HUMAN: What are the invoice dates, order ids, and order details for all invoices?, ###ASSISTANT: SELECT T1.invoice_date, T1.order_id, T2.order_details FROM invoices AS T1 JOIN orders AS T2 ON T1.order_id = T2.order_id" 1648,"###HUMAN: give me the number of patients whose primary disease is newborn and lab test abnormal status is abnormal?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = ""NEWBORN"" AND lab.flag = ""abnormal""" 1649,"###HUMAN: what is the home city for the stadion src mladost?, ###ASSISTANT: SELECT ""Home city"" FROM table_44912 WHERE ""Stadium"" = 'stadion src mladost'" 1650,"###HUMAN: How close am I to the sportsmanship badge?., ###ASSISTANT: WITH CandidatePosts AS (SELECT ParentId AS postId FROM Posts AS p WHERE p.OwnerUserId = '##UserId##' AND p.PostTypeId = 2 AND p.Score > 0) SELECT p1.Id AS ""post_link"", p1.OwnerUserId AS ""user_link"", Body FROM Posts AS p1 JOIN CandidatePosts AS cp ON cp.postId = p1.ParentId WHERE p1.OwnerUserId != '##UserId##' ORDER BY p1.Score DESC" 1651,"###HUMAN: list ground transportation in BALTIMORE, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'BALTIMORE' AND ground_service.city_code = city.city_code" 1652,"###HUMAN: How many players are listed for the school/club team Washington?, ###ASSISTANT: SELECT COUNT(""Name"") FROM table_20094 WHERE ""School/Club Team"" = 'Washington'" 1653,"###HUMAN: What type of chipset is in the Precision t3400 model with the PCI Express graphics?, ###ASSISTANT: SELECT chipset FROM table_name_97 WHERE graphics = ""pci express"" AND model = ""precision t3400""" 1654,"###HUMAN: Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100., ###ASSISTANT: SELECT dorm_name, gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100" 1655,"###HUMAN: For those payments processed with Visa, bin the payment day into the Day of Week interval and compute the total amount payment as the Y-axis., ###ASSISTANT: SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa'" 1656,"###HUMAN: Tell me the highest total when the horse is spender s, ###ASSISTANT: SELECT MAX(total) FROM table_name_99 WHERE horse = ""spender s""" 1657,"###HUMAN: What is the air date for 'there goes the bride'?, ###ASSISTANT: SELECT ""Original air date"" FROM table_19608 WHERE ""Title"" = 'There Goes the Bride'" 1658,"###HUMAN: list the flights from ST. PAUL to SAN JOSE and from ST. PAUL to HOUSTON, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight WHERE ((flight.to_airport = AIRPORT_SERVICE_1.airport_code AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN JOSE') OR (flight.to_airport = AIRPORT_SERVICE_2.airport_code AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'HOUSTON')) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PAUL' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 1659,"###HUMAN: Give me a bar chart about the number of platforms in different locations, and I want to list from high to low by the total number please., ###ASSISTANT: SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY SUM(Number_of_Platforms) DESC" 1660,"###HUMAN: what is the wins when the f/laps is test driver and team is lotus racing?, ###ASSISTANT: SELECT ""Wins"" FROM table_44077 WHERE ""F/Laps"" = 'test driver' AND ""Team"" = 'lotus racing'" 1661,"###HUMAN: What was the final record for the game in which Dirk Nowitzki (19) had the high points?, ###ASSISTANT: SELECT ""Record"" FROM table_21474 WHERE ""High points"" = 'Dirk Nowitzki (19)'" 1662,"###HUMAN: What is the record where high assists is pierce (6)?, ###ASSISTANT: SELECT ""Record"" FROM table_17290 WHERE ""High assists"" = 'Pierce (6)'" 1663,"###HUMAN: Which Chinese has a Pali of atappa?, ###ASSISTANT: SELECT ""Chinese"" FROM table_45211 WHERE ""Pali"" = 'atappa'" 1664,"###HUMAN: what are the four most frequently ordered microbiology tests for patients who received glucose - d5ns earlier within 2 months since 2 years ago?, ###ASSISTANT: SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'glucose - d5ns' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT patient.uniquepid, microlab.culturesite, microlab.culturetakentime FROM microlab JOIN patient ON microlab.patientunitstayid = patient.patientunitstayid WHERE DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.culturetakentime AND DATETIME(t2.culturetakentime) BETWEEN DATETIME(t1.treatmenttime) AND DATETIME(t1.treatmenttime, '+2 month') GROUP BY t2.culturesite) AS t3 WHERE t3.c1 <= 4" 1665,"###HUMAN: what was the number of aneurysm resection / repair procedures that were performed a year before?, ###ASSISTANT: SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'aneurysm resection / repair' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')" 1666,"###HUMAN: count the number of patients whose ethnicity is asian and diagnoses long title is suicide and self-inflicted injury by hanging?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = ""ASIAN"" AND diagnoses.long_title = ""Suicide and self-inflicted injury by hanging""" 1667,"###HUMAN: What is the total number of losses for the Team of Montreal with Goals For larger than 29?, ###ASSISTANT: SELECT COUNT(""Losses"") FROM table_11770 WHERE ""Goals For"" > '29' AND ""Team"" = 'montreal'" 1668,"###HUMAN: what is the side-chain polarity for the amino acid with the 1-letter v?, ###ASSISTANT: SELECT ""Side-chain polarity"" FROM table_55835 WHERE ""1-Letter"" = 'v'" 1669,"###HUMAN: What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?, ###ASSISTANT: SELECT AVG(cuts_made) FROM table_name_93 WHERE top_10 = 11 AND wins < 1" 1670,"###HUMAN: count the number of patients born before the year 2049., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < ""2049""" 1671,"###HUMAN: give me the number of patients whose primary disease is newborn and procedure icd9 code is 5361?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = ""NEWBORN"" AND procedures.icd9_code = ""5361""" 1672,"###HUMAN: What are the open dates and years for the shop named Apple?, ###ASSISTANT: SELECT open_date, open_year FROM shop WHERE shop_name = ""Apple""" 1673,"###HUMAN: specify the type and route of administration of drug digoxin, ###ASSISTANT: SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = ""Digoxin""" 1674,"###HUMAN: return me the paper after 2000 in VLDB conference with more than 200 citations ., ###ASSISTANT: SELECT publication.title FROM conference, publication WHERE conference.name = 'VLDB' AND publication.cid = conference.cid AND publication.citation_num > 200 AND publication.year > 2000" 1675,"###HUMAN: May I look at my transcript ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, semester.semester, semester.year, student_record.grade FROM course, semester, student_record WHERE student_record.course_id = course.course_id AND student_record.semester = semester.semester_id AND student_record.student_id = 1" 1676,"###HUMAN: All questions with a *single* tag., ###ASSISTANT: SELECT Id AS ""post_link"", AnswerCount FROM Posts WHERE PostTypeId = 1 AND Tags = CONCAT('<', '##Tag:string##', '>') AND ClosedDate IS NULL ORDER BY CreationDate DESC" 1677,"###HUMAN: Show me a scatter plot of time of purchase and age for ., ###ASSISTANT: SELECT Time_of_purchase, Age FROM member" 1678,"###HUMAN: actually what are the nonstop flights from LAS VEGAS to BURBANK on saturday 5 22, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BURBANK' AND date_day.day_number = 22 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LAS VEGAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0" 1679,"###HUMAN: What shirt No has a Birth Date of April 12, 1986 (age27)?, ###ASSISTANT: SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = ""april 12, 1986 (age27)""" 1680,"###HUMAN: What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?, ###ASSISTANT: SELECT MIN(""Lost"") FROM table_34592 WHERE ""Position"" > '6' AND ""Drawn"" = '7' AND ""Points"" < '15'" 1681,"###HUMAN: What was the grid for Bruno Junqueira for Dale Coyne Racing?, ###ASSISTANT: SELECT grid FROM table_name_45 WHERE team = ""dale coyne racing"" AND driver = ""bruno junqueira""" 1682,"###HUMAN: what is the number of patients whose lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.fluid = ""Urine""" 1683,"###HUMAN: what is the number of patients with discharge location as snf diagnosed with primary disease hyperglycemia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""SNF"" AND demographic.diagnosis = ""HYPERGLYCEMIA""" 1684,"###HUMAN: what was the organism found in the last urine, catheter specimen microbiology test for patient 025-19271 in their last hospital visit?, ###ASSISTANT: SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND microlab.culturesite = 'urine, catheter specimen' ORDER BY microlab.culturetakentime DESC LIMIT 1" 1685,"###HUMAN: how many patients who have private insurance stayed in hospital for more than 9 days?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = ""Private"" AND demographic.days_stay > ""9""" 1686,"###HUMAN: get data for inverted index assignment., ###ASSISTANT: SELECT Id, Body, Tags FROM Posts WHERE CreationDate LIKE '%2018%' LIMIT 1000" 1687,"###HUMAN: In what year was Yauco, which had over 42,043 people in 2010, founded?, ###ASSISTANT: SELECT AVG(""Founded"") FROM table_65006 WHERE ""Municipality"" = 'yauco' AND ""Population (2010)"" > '42,043'" 1688,"###HUMAN: Return a histogram on what are the first names and ids for customers who have two or more accounts?, ###ASSISTANT: SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id" 1689,"###HUMAN: what was the name of the organism found during the first other microbiology examination of patient 031-23724 in their last hospital encounter?, ###ASSISTANT: SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND microlab.culturesite = 'other' ORDER BY microlab.culturetakentime LIMIT 1" 1690,"###HUMAN: what number of patients primarily diagnosed for coronary artery disease were given drug by inhalation?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = ""CORONARY ARTERY DISEASE"" AND prescriptions.route = ""INHALATION""" 1691,"###HUMAN: What is the home team with scarborough as the away team?, ###ASSISTANT: SELECT home_team FROM table_name_50 WHERE away_team = ""scarborough""" 1692,"###HUMAN: What upper level electives are offered for CS majors ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id" 1693,"###HUMAN: For the 2nd string of Do and an Accord du 1st string of FA what is the Depart de la main gauche?, ###ASSISTANT: SELECT ""D\u00e9part de la main gauche"" FROM table_76895 WHERE ""2nd string"" = 'do' AND ""Accord du 1st string"" = 'fa'" 1694,"###HUMAN: Find the total number of students for each department with a bar chart, and could you list y axis in descending order?, ###ASSISTANT: SELECT T1.dept_name, COUNT(DISTINCT T2.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY COUNT(DISTINCT T2.ID) DESC" 1695,"###HUMAN: does toronto 's population grow more or less than hamilton 's ?, ###ASSISTANT: SELECT (SELECT ""projected increase\n2009-2025"" FROM table_204_113 WHERE ""area"" = 'toronto') > (SELECT ""projected increase\n2009-2025"" FROM table_204_113 WHERE ""area"" = 'hamilton')" 1696,"###HUMAN: provide the number of patients whose marital status is married and admission year is less than 2108?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = ""MARRIED"" AND demographic.admityear < ""2108""" 1697,"###HUMAN: What is the draw number that has 59 points?, ###ASSISTANT: SELECT AVG(""Draw"") FROM table_54761 WHERE ""Points"" = '59'" 1698,"###HUMAN: what is maximum age of patients whose language is engl and primary disease is hypertension;rule out coronary artery disease\cardiac cath?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.language = ""ENGL"" AND demographic.diagnosis = ""HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH""" 1699,"###HUMAN: what was patient 025-30850's weight the last time in 06/2105?, ###ASSISTANT: SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-30850') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) = '2105-06' ORDER BY patient.unitadmittime DESC LIMIT 1" 1700,"###HUMAN: Visualize a pie chart about the proportion of Team_Name and ACC_Percent., ###ASSISTANT: SELECT Team_Name, ACC_Percent FROM basketball_match" 1701,"###HUMAN: please show me flights from PITTSBURGH to BOSTON on saturday morning after 800, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((date_day.day_number = 26 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time > 800 AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 0 AND 1200" 1702,"###HUMAN: Who had a Qualifying 2 time over 58.669 for Team Australia?, ###ASSISTANT: SELECT ""Name"" FROM table_38483 WHERE ""Qual 2"" > '58.669' AND ""Team"" = 'team australia'" 1703,"###HUMAN: flights from WESTCHESTER COUNTY to ST. PAUL, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WESTCHESTER COUNTY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. PAUL' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 1704,"###HUMAN: How many songs have a shared vocal?, ###ASSISTANT: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""shared""" 1705,"###HUMAN: Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46, ###ASSISTANT: SELECT MIN(""Kazakhstan"") FROM table_74485 WHERE ""Kyrghizstan"" = '4.62' AND ""Belarus"" < '2.46'" 1706,"###HUMAN: how many hours has it been since the first time patient 19428 stayed in careunit ccu in their current hospital visit., ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428 AND admissions.dischtime IS NULL) AND transfers.careunit = 'ccu' ORDER BY transfers.intime LIMIT 1" 1707,"###HUMAN: how many games were played in total ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_418" 1708,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of employee_id over the hire_date bin hire_date by weekday by a bar chart., ###ASSISTANT: SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40" 1709,"###HUMAN: which institution has the highest amount of enrollment ?, ###ASSISTANT: SELECT ""institution"" FROM table_204_442 ORDER BY ""enrollment"" DESC LIMIT 1" 1710,"###HUMAN: What League/Division has a Location of n/a?, ###ASSISTANT: SELECT league_division FROM table_name_29 WHERE location = ""n/a""" 1711,"###HUMAN: What is the conference record for the year of 1971?, ###ASSISTANT: SELECT ""Conference Record"" FROM table_75478 WHERE ""Year"" = '1971'" 1712,"###HUMAN: what is the drug type and route prescribed for the drug code posa200l?, ###ASSISTANT: SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = ""POSA200L""" 1713,"###HUMAN: What years were from Connecticut?, ###ASSISTANT: SELECT ""Years"" FROM table_47224 WHERE ""From"" = 'connecticut'" 1714,"###HUMAN: What message has hd 186408 as a designation HD?, ###ASSISTANT: SELECT message FROM table_name_75 WHERE designation_hd = ""hd 186408""" 1715,"###HUMAN: What are the number of the facility codes of the apartments with more than four bedrooms?, and list by the y axis from high to low., ###ASSISTANT: SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY COUNT(facility_code) DESC" 1716,"###HUMAN: among patients diagnosed with hemochromatosis due to repeated red blood cell transfusions, how many of them were unmarried?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = ""SINGLE"" AND diagnoses.long_title = ""Hemochromatosis due to repeated red blood cell transfusions""" 1717,"###HUMAN: Name the total number of value for revenue more than 193 and rank less than 12 for manchester united, ###ASSISTANT: SELECT COUNT(value__) AS $m_ FROM table_name_21 WHERE revenue__$m_ > 193 AND rank < 12 AND team = ""manchester united""" 1718,"###HUMAN: Which home team had a score of 85-101?, ###ASSISTANT: SELECT ""Home team"" FROM table_49867 WHERE ""Score"" = '85-101'" 1719,"###HUMAN: Find out who answered first.. Answered in the same second as someone else? No problem, check out the number of milliseconds it differs., ###ASSISTANT: SELECT p.OwnerUserId, u.DisplayName, DATE(p.CreationDate) AS ""Date"", CAST(p.CreationDate AS TIMESTAMP) AS ""Time"", p.ParentId FROM Posts AS p, Users AS u WHERE p.PostTypeId = 2 AND p.ParentId = @Question AND u.Id = OwnerUserId ORDER BY p.CreationDate" 1720,"###HUMAN: What is the number of each allergie that the student with first name Lisa has? Draw a bar chart., ###ASSISTANT: SELECT T1.Allergy, COUNT(T1.Allergy) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = ""Lisa"" GROUP BY T1.Allergy" 1721,"###HUMAN: Name the opponent for 3 6, 4 6, 6 1, 6 7 (7 9), ###ASSISTANT: SELECT ""Opponent"" FROM table_25437 WHERE ""Result"" = '3–6, 4–6, 6–1, 6–7 (7–9)'" 1722,"###HUMAN: what is the minimum yearly number of patients that are suffering from allergic rhinitis nos until 2104?, ###ASSISTANT: SELECT MIN(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'allergic rhinitis nos') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104' GROUP BY STRFTIME('%y', diagnoses_icd.charttime)) AS t1" 1723,"###HUMAN: What is High Rebounds, when High Assists is 'Delonte West (10)'?, ###ASSISTANT: SELECT high_rebounds FROM table_name_86 WHERE high_assists = ""delonte west (10)""" 1724,"###HUMAN: Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year., ###ASSISTANT: SELECT DISTINCT year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year" 1725,"###HUMAN: what is the number of patients whose ethnicity is hispanic/latino - puerto rican and drug name is influenza virus vaccine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = ""HISPANIC/LATINO - PUERTO RICAN"" AND prescriptions.drug = ""Influenza Virus Vaccine""" 1726,"###HUMAN: What first class team does sanath jayasuriya play for?, ###ASSISTANT: SELECT ""First Class Team"" FROM table_77939 WHERE ""Player"" = 'sanath jayasuriya'" 1727,"###HUMAN: how many verbs have the yo form as sienta?, ###ASSISTANT: SELECT COUNT(""Verbs"") FROM table_23315 WHERE ""Yo"" = 'sienta'" 1728,"###HUMAN: what is the difference in 2012 gdp between albania and algeria ?, ###ASSISTANT: SELECT ABS((SELECT ""gdp (usd bln, 2012)"" FROM table_203_530 WHERE ""country"" = 'albania') - (SELECT ""gdp (usd bln, 2012)"" FROM table_203_530 WHERE ""country"" = 'algeria'))" 1729,"###HUMAN: how much different is patient 016-8658's weight last measured on the first hospital visit compared to the value first measured on the first hospital visit?, ###ASSISTANT: SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-8658' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-8658' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)" 1730,"###HUMAN: Number of users on SO., ###ASSISTANT: SELECT COUNT(*) FROM Users" 1731,"###HUMAN: Show all distinct location names., ###ASSISTANT: SELECT DISTINCT location_name FROM locations" 1732,"###HUMAN: Which representative has a Termination of MIssion date Mar 25, 1976?, ###ASSISTANT: SELECT representative FROM table_name_59 WHERE termination_of_mission = ""mar 25, 1976""" 1733,"###HUMAN: What country is ranked 79?, ###ASSISTANT: SELECT country FROM table_name_19 WHERE rank = 79" 1734,"###HUMAN: What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?, ###ASSISTANT: SELECT ""British Lee-Enfield (data for late model)"" FROM table_49483 WHERE ""Japanese Type 38 Rifle"" = '5'" 1735,"###HUMAN: What is the Year for Jazz club of Houston?, ###ASSISTANT: SELECT ""Years for Jazz"" FROM table_52028 WHERE ""School/Club Team"" = 'houston'" 1736,"###HUMAN: Missing R tag in R related tag. Find posts without R tag, but with one of closely related tag, ###ASSISTANT: SELECT Id AS ""post_link"", Tags, LastActivityDate FROM Posts WHERE Posts.Id IN (SELECT PostTags.PostId FROM PostTags INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName IN ('ggplot2', 'lattice', 'plyr', 'data.frame', 'sweave', 'lapply', 'sapply', 'r') GROUP BY PostTags.PostId HAVING COUNT(CASE WHEN Tags.TagName = 'r' THEN 1 END) = 0 AND COUNT(*) > 0) AND LastActivityDate > '2011-03-01' ORDER BY LastActivityDate DESC" 1737,"###HUMAN: What is detail of the student who most recently registered course?, ###ASSISTANT: SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1" 1738,"###HUMAN: which country won the same amount of medals as bulgaria in these olympics ?, ###ASSISTANT: SELECT ""nation"" FROM table_204_822 WHERE ""nation"" <> 'bulgaria' AND ""total"" = (SELECT ""total"" FROM table_204_822 WHERE ""nation"" = 'bulgaria')" 1739,"###HUMAN: what title is before dhol in 2007 ?, ###ASSISTANT: SELECT ""title"" FROM table_204_620 WHERE id = (SELECT id FROM table_204_620 WHERE ""title"" = 'dhol') - 1" 1740,"###HUMAN: Where was held the ceremony for the 12th Pride of Britain Awards?, ###ASSISTANT: SELECT ""Location"" FROM table_19041 WHERE ""Episode"" = '12th Pride of Britain Awards'" 1741,"###HUMAN: What language does Raj Kamal speak?, ###ASSISTANT: SELECT language FROM table_name_62 WHERE music_director = ""raj kamal""" 1742,"###HUMAN: What venue had an event on 17 November 1963?, ###ASSISTANT: SELECT ""Venue"" FROM table_76279 WHERE ""Season"" = '1963' AND ""Date"" = '17 november 1963'" 1743,"###HUMAN: What is the Date of the Ameritech Senior Open?, ###ASSISTANT: SELECT ""Date"" FROM table_66188 WHERE ""Tournament"" = 'ameritech senior open'" 1744,"###HUMAN: select count (*) from Posts., ###ASSISTANT: SELECT COUNT(*) FROM Posts" 1745,"###HUMAN: For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of code , and group by attribute name, list by the total number in descending., ###ASSISTANT: SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC" 1746,"###HUMAN: What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?, ###ASSISTANT: SELECT MAX(""Red List"") FROM table_67362 WHERE ""Family"" = 'muridae' AND ""Species Authority"" = 'microtus pinetorum (le conte, 1830)'" 1747,"###HUMAN: Which Elevator has a Title of bishop of palestrina?, ###ASSISTANT: SELECT ""Elevator"" FROM table_12911 WHERE ""Title"" = 'bishop of palestrina'" 1748,"###HUMAN: Group and count brand for each camera lens using a bar chart, and rank X in descending order., ###ASSISTANT: SELECT brand, COUNT(brand) FROM camera_lens GROUP BY brand ORDER BY brand DESC" 1749,"###HUMAN: Who is the youngest male?, ###ASSISTANT: SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM Person WHERE gender = 'male')" 1750,"###HUMAN: did patient 366 have microbiological test results from the mrsa screen until 1 year ago?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 366) AND microbiologyevents.spec_type_desc = 'mrsa screen' AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-1 year')" 1751,"###HUMAN: For those records from the products and each product's manufacturer, find founder and the average of manufacturer , and group by attribute founder, and visualize them by a bar chart, I want to sort by the Y-axis in asc., ###ASSISTANT: SELECT Founder, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY AVG(Manufacturer)" 1752,"###HUMAN: Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60?, ###ASSISTANT: SELECT MAX(""Place"") FROM table_5943 WHERE ""Artist"" = 'nikolas metaxas' AND ""Televote"" > '60'" 1753,"###HUMAN: What's the name of Constituency number 108?, ###ASSISTANT: SELECT name FROM table_name_65 WHERE constituency_number = ""108""" 1754,"###HUMAN: When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #?, ###ASSISTANT: SELECT AVG(""Rd #"") FROM table_54910 WHERE ""Player"" = 'steve hazlett' AND ""Pl GP"" < '0'" 1755,"###HUMAN: has patient 40059 received a lab test?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40059)" 1756,"###HUMAN: What is the last name of the musicians who has played back position the most?, ###ASSISTANT: SELECT T2.lastname FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE stageposition = ""back"" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1" 1757,"###HUMAN: what are the five most frequent lab tests that patients had in the same hospital visit after having received a refus lmb/lmbsac pst/pst operation until 2100?, ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'refus lmb/lmbsac pst/pst') AND STRFTIME('%y', procedures_icd.charttime) <= '2100') AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime, admissions.hadm_id FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', labevents.charttime) <= '2100') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND t1.hadm_id = t2.hadm_id GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 5)" 1758,"###HUMAN: What were all USAF space flights when the aximum speed was 3822?, ###ASSISTANT: SELECT usaf_space_flights FROM table_221315_3 WHERE max_speed__mph_ = 3822" 1759,"###HUMAN: When was Will Shields inducted into the Pro Football Hall of Fame?, ###ASSISTANT: SELECT ""Year of induction into Pro Football Hall of Fame"" FROM table_29501 WHERE ""Player"" = 'Will Shields'" 1760,"###HUMAN: what is the total dose heparin sodium that patient 11826 has been prescribed during their current hospital encounter?, ###ASSISTANT: SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11826 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'heparin sodium'" 1761,"###HUMAN: Which pick number attended McMaster College?, ###ASSISTANT: SELECT ""Pick #"" FROM table_54414 WHERE ""College"" = 'mcmaster'" 1762,"###HUMAN: What is the sum of Metres wiht a Feet that's smaller than 196?, ###ASSISTANT: SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196" 1763,"###HUMAN: What are the seasons where Marcello Puglisi (formula master italia) was the secondary class champion?, ###ASSISTANT: SELECT SUM(""Season"") FROM table_55689 WHERE ""Secondary Class Champion"" = 'marcello puglisi (formula master italia)'" 1764,"###HUMAN: Create a bar chart showing maximal revenue across headquarter, and sort by the y-axis in asc., ###ASSISTANT: SELECT Headquarter, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY MAX(Revenue)" 1765,"###HUMAN: what year was cryptogramophon released, ###ASSISTANT: SELECT ""Year"" FROM table_6019 WHERE ""Label"" = 'cryptogramophon'" 1766,"###HUMAN: For those products with a price between 60 and 120, show me about the correlation between code and price , and group by attribute name in a scatter chart., ###ASSISTANT: SELECT Code, Price FROM Products WHERE Price BETWEEN 60 AND 120 GROUP BY Name" 1767,"###HUMAN: What is the round on 30 June with a.z.k./roc-comp tition a.z.k./roc-comp tition as the winning team?, ###ASSISTANT: SELECT ""Round"" FROM table_79109 WHERE ""Winning team"" = 'a.z.k./roc-compétition a.z.k./roc-compétition' AND ""Date"" = '30 june'" 1768,"###HUMAN: find out the age and lab test fluid to be checked for patient with patient id 2560., ###ASSISTANT: SELECT demographic.age, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = ""2560""" 1769,"###HUMAN: What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?, ###ASSISTANT: SELECT ""Urban sub-area"" FROM table_37692 WHERE ""Council area"" = 'east dunbartonshire' AND ""Population"" = '19,020'" 1770,"###HUMAN: List the name of the colleges whose enrollment is greater 18000 sorted by the college's name., ###ASSISTANT: SELECT cname FROM college WHERE enr > 18000 ORDER BY cname" 1771,"###HUMAN: What are the memories and carriers of phones Show bar chart, and show by the mean memory in g in descending., ###ASSISTANT: SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY AVG(Memory_in_G) DESC" 1772,"###HUMAN: what is the number of patients whose death status is 1 and diagnoses icd9 code is 261?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = ""1"" AND diagnoses.icd9_code = ""261""" 1773,"###HUMAN: which tag is used in questions with the highest average score, excluding tags used in less than 5 q., ###ASSISTANT: SELECT Tags.TagName, AVG(CAST(Posts.Score AS FLOAT)) AS avg, COUNT(Posts.Id) AS count FROM Tags LEFT JOIN Posts ON Posts.Tags LIKE '%' + Tags.TagName + '%' GROUP BY Tags.TagName HAVING COUNT(Posts.Id) >= 5 ORDER BY avg DESC LIMIT 1" 1774,"###HUMAN: When the Total is less than 1, and Bronze is 0, how many Gold medals are there?, ###ASSISTANT: SELECT SUM(""Gold"") FROM table_51383 WHERE ""Bronze"" = '0' AND ""Total"" < '1'" 1775,"###HUMAN: March of 29 involves what highest scoring game?, ###ASSISTANT: SELECT MAX(game) FROM table_name_40 WHERE march = 29" 1776,"###HUMAN: The episode with production code 9abx02 was originally aired on what date?, ###ASSISTANT: SELECT ""Original air date"" FROM table_72086 WHERE ""Production code"" = '9ABX02'" 1777,"###HUMAN: What is the percentage of females where in India and are maharashtra?, ###ASSISTANT: SELECT ""Females (%)"" FROM table_19423 WHERE ""India/State/UT"" = 'Maharashtra'" 1778,"###HUMAN: Show the name of cities in the county that has the largest number of police officers., ###ASSISTANT: SELECT name FROM city WHERE county_id = (SELECT county_id FROM county_public_safety ORDER BY police_officers DESC LIMIT 1)" 1779,"###HUMAN: What is the skip that has a third of Anna Sloan in season 2012-13?, ###ASSISTANT: SELECT ""Skip"" FROM table_50536 WHERE ""Third"" = 'anna sloan' AND ""Season"" = '2012-13'" 1780,"###HUMAN: since 57 months ago, had patient 84042 been prescribed hydromorphone p.f., fentanyl patch, or vial?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 84042) AND prescriptions.drug IN ('hydromorphone p.f.', 'fentanyl patch', 'vial') AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-57 month')" 1781,"###HUMAN: I want the time/retired for grid of 24, ###ASSISTANT: SELECT time_retired FROM table_name_12 WHERE grid = 24" 1782,"###HUMAN: Which spine has 12 issues?, ###ASSISTANT: SELECT ""Spine"" FROM table_38310 WHERE ""Number of issues"" = '12'" 1783,"###HUMAN: Tell me the lowest year for shubert theatre, ###ASSISTANT: SELECT MIN(""Year"") FROM table_32109 WHERE ""Theatre"" = 'shubert theatre'" 1784,"###HUMAN: What is the least top division titles?, ###ASSISTANT: SELECT MIN(top_division_titles) FROM table_11250_4" 1785,"###HUMAN: calculate the duration of hospital stay of patient 010-20205's last hospital stay., ###ASSISTANT: SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '010-20205' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1" 1786,"###HUMAN: Which round has an opponent of Freiburg?, ###ASSISTANT: SELECT ""Round"" FROM table_43511 WHERE ""Opponent"" = 'freiburg'" 1787,"###HUMAN: What's the Area with a Density of 263?, ###ASSISTANT: SELECT AVG(""Area (km\u00b2)"") FROM table_11104 WHERE ""Density (/km\u00b2)"" = '263'" 1788,"###HUMAN: For the years 1992-93, what position did he play for the Houston Rockets?, ###ASSISTANT: SELECT position FROM table_name_4 WHERE years_for_rockets = ""1992-93""" 1789,"###HUMAN: What is the largest number of points they had?, ###ASSISTANT: SELECT MAX(points) FROM table_23308178_8" 1790,"###HUMAN: Create a bar chart showing maximal revenue across name, ###ASSISTANT: SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter" 1791,"###HUMAN: Tell me the total number of Bronze for futsal, ###ASSISTANT: SELECT COUNT(""Bronze"") FROM table_10315 WHERE ""Sport"" = 'futsal'" 1792,"###HUMAN: When 2005 is the year played what is the lowest year drafted?, ###ASSISTANT: SELECT MIN(year_drafted) FROM table_18373863_2 WHERE years_played = ""2005""" 1793,"###HUMAN: Give me the comparison about School_ID over the ACC_Road , and group by attribute ACC_Home by a bar chart, and order by the bars in desc., ###ASSISTANT: SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road DESC" 1794,"###HUMAN: What's the general classification of stage 3 with David Loosli as the mountains classification?, ###ASSISTANT: SELECT ""General Classification"" FROM table_59025 WHERE ""Mountains Classification"" = 'david loosli' AND ""Stage"" = '3'" 1795,"###HUMAN: When was Mount Tahoma established?, ###ASSISTANT: SELECT MAX(""Established"") FROM table_19156 WHERE ""High School"" = 'Mount Tahoma'" 1796,"###HUMAN: Who directed episode 266 in the series?, ###ASSISTANT: SELECT directed_by FROM table_2221484_2 WHERE series__number = 266" 1797,"###HUMAN: When did the Tournament of the Tour Championship take place?, ###ASSISTANT: SELECT date FROM table_name_10 WHERE tournament = ""the tour championship""" 1798,"###HUMAN: What province has the largest city of Birjand?, ###ASSISTANT: SELECT ""Province"" FROM table_48114 WHERE ""Largest city"" = 'birjand'" 1799,"###HUMAN: Group and count details for the events using a pie chart., ###ASSISTANT: SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details" 1800,"###HUMAN: How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?, ###ASSISTANT: SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = ""collegno"" AND population < 50137" 1801,"###HUMAN: What 7:00 has a 10:00 of dirty sexy money?, ###ASSISTANT: SELECT ""7:00"" FROM table_67978 WHERE ""10:00"" = 'dirty sexy money'" 1802,"###HUMAN: Did I mark all my questions as accepted?., ###ASSISTANT: SELECT Id AS ""post_link"", * FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND ClosedDate IS NULL AND AnswerCount > 0 AND OwnerUserId = '##ownerid##'" 1803,"###HUMAN: If the driver is Milka Duno, what is the name of the team?, ###ASSISTANT: SELECT ""Team"" FROM table_21872 WHERE ""Driver"" = 'Milka Duno'" 1804,"###HUMAN: In what place did Dave Barr score?, ###ASSISTANT: SELECT ""Place"" FROM table_8817 WHERE ""Player"" = 'dave barr'" 1805,"###HUMAN: What is the average laps for a grid larger than 2, for a ferrari that got in an accident?, ###ASSISTANT: SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = ""accident"" AND constructor = ""ferrari""" 1806,"###HUMAN: how many patients are diagnosed with primary disease copd exacerbation?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""COPD EXACERBATION""" 1807,"###HUMAN: What Country's Content is TV Locale?, ###ASSISTANT: SELECT ""Country"" FROM table_40678 WHERE ""Content"" = 'tv locale'" 1808,"###HUMAN: Who had the high rebounds when the record was 14 7?, ###ASSISTANT: SELECT ""High rebounds"" FROM table_29843 WHERE ""Record"" = '14–7'" 1809,"###HUMAN: Name the money for p draig harrington, ###ASSISTANT: SELECT ""Money ( \u00a3 )"" FROM table_68355 WHERE ""Player"" = 'pádraig harrington'" 1810,"###HUMAN: Which Date has a Record of 19 16 8?, ###ASSISTANT: SELECT ""Date"" FROM table_64405 WHERE ""Record"" = '19–16–8'" 1811,"###HUMAN: Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?, ###ASSISTANT: SELECT ""Monday Mona/ M\u00e1ni"" FROM table_66876 WHERE ""Thursday Thunor / Thor"" = 'tongersdei'" 1812,"###HUMAN: What's the loss for September 16?, ###ASSISTANT: SELECT ""Loss"" FROM table_79725 WHERE ""Date"" = 'september 16'" 1813,"###HUMAN: Name the number of week for game site being memorial stadium for buffalo bills, ###ASSISTANT: SELECT COUNT(week) FROM table_14940519_1 WHERE game_site = ""Memorial Stadium"" AND opponent = ""Buffalo Bills""" 1814,"###HUMAN: Where did the Vit ria de Set bal club place in the 2006-2007 season?, ###ASSISTANT: SELECT ""2006-2007 season"" FROM table_51904 WHERE ""Club"" = 'vitória de setúbal'" 1815,"###HUMAN: How many students does each advisor have. Show scatter chart., ###ASSISTANT: SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor" 1816,"###HUMAN: tell me the maximum hospital cost if there is a gstr/ddnts nos w hmrhg this year?, ###ASSISTANT: SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr/ddnts nos w hmrhg')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY cost.hadm_id) AS t1" 1817,"###HUMAN: Name the birth of the person married 24 may 1935, ###ASSISTANT: SELECT ""Birth"" FROM table_68311 WHERE ""Marriage"" = '24 may 1935'" 1818,"###HUMAN: How many attended during the game with a score of 80-94?, ###ASSISTANT: SELECT SUM(attendance) FROM table_name_52 WHERE score = ""80-94""" 1819,"###HUMAN: Draw a bar chart of asset make versus the number of asset make, and display in asc by the X., ###ASSISTANT: SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make" 1820,"###HUMAN: How many cop apps in the season with fewer than 12 league apps?, ###ASSISTANT: SELECT SUM(""Cup Apps"") FROM table_32374 WHERE ""League Apps"" < '12'" 1821,"###HUMAN: What competition has the club villareal?, ###ASSISTANT: SELECT competition FROM table_name_89 WHERE club = ""villareal""" 1822,"###HUMAN: when was joe clark first elected ?, ###ASSISTANT: SELECT ""first elected"" FROM table_203_214 WHERE ""member"" = 'joe clark'" 1823,"###HUMAN: Bar graph to show how many nationality from different nationality, list in desc by the total number., ###ASSISTANT: SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY COUNT(Nationality) DESC" 1824,"###HUMAN: what are the top five frequent prescribed drugs that were prescribed to patients aged 20s in the same hospital encounter after they had been diagnosed with quadriplegia-partial until 2104?, ###ASSISTANT: SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'quadriplegia-partial' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.age BETWEEN 20 AND 29 AND STRFTIME('%y', medication.drugstarttime) <= '2104') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5" 1825,"###HUMAN: In which venue did the competition on 11 October 2008 take place?, ###ASSISTANT: SELECT ""Venue"" FROM table_14524 WHERE ""Date"" = '11 october 2008'" 1826,"###HUMAN: Display a bar chart for what are the different card types, and how many cards are there of each?, ###ASSISTANT: SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code" 1827,"###HUMAN: count the number of patients whose days of hospital stay is greater than 17 and diagnoses long title is diabetes with renal manifestations, type i [juvenile type], not stated as uncontrolled?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > ""17"" AND diagnoses.long_title = ""Diabetes with renal manifestations, type I [juvenile type], not stated as uncontrolled""" 1828,"###HUMAN: give me the number of patients less than 45 years who were hospitalized for more than 20 days., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < ""45"" AND demographic.days_stay > ""20""" 1829,"###HUMAN: Which venue does Mardan sponsor?, ###ASSISTANT: SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = ""Mardan""" 1830,"###HUMAN: Who was the runner-up in season five?, ###ASSISTANT: SELECT runner_up FROM table_16331144_1 WHERE season = ""Five""" 1831,"###HUMAN: what's the transmission where turbo is yes (mitsubishi td04-16t ), ###ASSISTANT: SELECT ""Transmission"" FROM table_16484 WHERE ""Turbo"" = 'Yes (Mitsubishi TD04-16t )'" 1832,"###HUMAN: What is the lowest round of Ed Smith, who had a pick lower than 19?, ###ASSISTANT: SELECT MIN(""Round"") FROM table_35935 WHERE ""Player"" = 'ed smith' AND ""Pick"" > '19'" 1833,"###HUMAN: count the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft; myomectomy/sda and lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = ""CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA"" AND lab.fluid = ""Urine""" 1834,"###HUMAN: The plural abbreviation of ll. uses what plural word?, ###ASSISTANT: SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = ""ll.""" 1835,"###HUMAN: list flights from INDIANAPOLIS to MEMPHIS with fares on monday, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM fare, flight, flight_fare WHERE ((flight.flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 21 AND DATE_DAYalias0.month_number = 2 AND DATE_DAYalias0.year = 1991)) AND flight.to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE CITYalias1.city_name = 'MEMPHIS'))) AND flight.from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'INDIANAPOLIS'))) AND fare.fare_basis_code IN (SELECT FARE_BASISalias0.fare_basis_code FROM fare_basis AS FARE_BASISalias0 WHERE FARE_BASISalias0.basis_days IN (SELECT DAYSalias1.days_code FROM days AS DAYSalias1 WHERE DAYSalias1.day_name IN (SELECT DATE_DAYalias1.day_name FROM date_day AS DATE_DAYalias1 WHERE DATE_DAYalias1.day_number = 21 AND DATE_DAYalias1.month_number = 2 AND DATE_DAYalias1.year = 1991))) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id" 1836,"###HUMAN: What date is the 1:00 pm game at arrowhead stadium?, ###ASSISTANT: SELECT date FROM table_name_37 WHERE time___et__ = ""1:00 pm"" AND game_site = ""arrowhead stadium""" 1837,"###HUMAN: What is draft detail of the document with id 7?, ###ASSISTANT: SELECT draft_details FROM document_drafts WHERE document_id = 7" 1838,"###HUMAN: What is the Jump 2 of the person that has a Jump 3 of 7.77?, ###ASSISTANT: SELECT ""Jump 2"" FROM table_32520 WHERE ""Jump 3"" = '7.77'" 1839,"###HUMAN: Give me a pie to show how many directed by from different directed by., ###ASSISTANT: SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by" 1840,"###HUMAN: What is Ariel 3's COSPAR ID?, ###ASSISTANT: SELECT cospar_id FROM table_name_3 WHERE satellite = ""ariel 3""" 1841,"###HUMAN: in a year before d5 1/2ns, labetalol or insulin were prescribed for patient 10266?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10266) AND prescriptions.drug IN ('d5 1/2ns', 'labetalol', 'insulin') AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')" 1842,"###HUMAN: Top 100 posts by view count., ###ASSISTANT: SELECT CONCAT('id', 'post_link'), ViewCount, CreationDate, Score FROM Posts ORDER BY ViewCount DESC LIMIT 100" 1843,"###HUMAN: What Chassis has g Tyres before 1987?, ###ASSISTANT: SELECT ""Chassis"" FROM table_71124 WHERE ""Tyres"" = 'g' AND ""Year"" < '1987'" 1844,"###HUMAN: Which channel comes out of Israel?, ###ASSISTANT: SELECT channel FROM table_name_83 WHERE country = ""israel""" 1845,"###HUMAN: how many patients are diagnosed with nb obsrv suspct infect and tested under hematology category in lab?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = ""NB obsrv suspct infect"" AND lab.""CATEGORY"" = ""Hematology""" 1846,"###HUMAN: In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?, ###ASSISTANT: SELECT year FROM table_name_83 WHERE tournament = ""1st division el salvador"" AND finish = ""champion"" AND team = ""fas""" 1847,"###HUMAN: What is Accolade, when Year is less than 2002, when Publication is 'Rolling Stone', and when Rank is '48'?, ###ASSISTANT: SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = ""rolling stone"" AND rank = 48" 1848,"###HUMAN: For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)" 1849,"###HUMAN: what are the flights and fares from BOSTON to PHILADELPHIA, ###ASSISTANT: SELECT DISTINCT fare.fare_id, flight.airline_code, flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 1850,"###HUMAN: what is the last treaty morocco ratified ?, ###ASSISTANT: SELECT ""treaty"" FROM table_203_109 ORDER BY ""ratified"" DESC LIMIT 1" 1851,"###HUMAN: had patient 13806 been prescribed vancomycin hcl, phenylephrine or d5w (excel bag) until 2102?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13806) AND prescriptions.drug IN ('vancomycin hcl', 'phenylephrine', 'd5w (excel bag)') AND STRFTIME('%y', prescriptions.startdate) <= '2102'" 1852,"###HUMAN: Name the 2012 for 2009 of 1r, ###ASSISTANT: SELECT ""2012"" FROM table_58551 WHERE ""2009"" = '1r'" 1853,"###HUMAN: What nurses are on call with block floor 1 and block code 1? Tell me their names., ###ASSISTANT: SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1" 1854,"###HUMAN: Find posts with broken MathJax (single dollar sign)., ###ASSISTANT: SELECT Id AS ""post_link"", Body, CreationDate AS ""date"" FROM Posts WHERE Body LIKE '%$%' AND NOT Body LIKE '%$%$%'" 1855,"###HUMAN: how many patients whose admission type is urgent and primary disease is mesenteric ischemia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = ""URGENT"" AND demographic.diagnosis = ""MESENTERIC ISCHEMIA""" 1856,"###HUMAN: What is the Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2, ###ASSISTANT: SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = ""spiral galaxy"" AND apparent_magnitude > 12.2" 1857,"###HUMAN: Who was the young rider classification when Alessandro Petacchi won?, ###ASSISTANT: SELECT ""Young rider classification"" FROM table_30586 WHERE ""Winner"" = 'Alessandro Petacchi'" 1858,"###HUMAN: Total number of posts by months., ###ASSISTANT: SELECT COUNT(*) FROM Posts" 1859,"###HUMAN: what are the four most frequently ordered lab tests for patients who had previously received ven cath renal dialysis within the same month, in 2104?, ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'ven cath renal dialysis') AND STRFTIME('%y', procedures_icd.charttime) = '2104') AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', labevents.charttime) = '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 4)" 1860,"###HUMAN: What is Status, when Newspaper/Magazine is Al-Thawra?, ###ASSISTANT: SELECT status FROM table_name_24 WHERE newspaper_magazine = ""al-thawra""" 1861,"###HUMAN: Where Date is september 13, 1998 what is result?, ###ASSISTANT: SELECT result FROM table_name_89 WHERE date = ""september 13, 1998""" 1862,"###HUMAN: If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?, ###ASSISTANT: SELECT ""Primary cartridge"" FROM table_28657 WHERE ""Year of introduction"" = '1962' AND ""Country of origin"" = 'Denmark'" 1863,"###HUMAN: Which 3rd run has rank of 8?, ###ASSISTANT: SELECT ""3rd run"" FROM table_79697 WHERE ""Rank"" = '8'" 1864,"###HUMAN: For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by time., ###ASSISTANT: SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'" 1865,"###HUMAN: What is the type of allergy Cat?, ###ASSISTANT: SELECT allergytype FROM allergy_type WHERE allergy = ""Cat""" 1866,"###HUMAN: Which venue did Luke Blackwell serve as captain?, ###ASSISTANT: SELECT ""Venue"" FROM table_18796 WHERE ""Captain"" = 'Luke Blackwell'" 1867,"###HUMAN: When the driver peter gethin has a grid less than 25, what is the average number of laps?, ###ASSISTANT: SELECT AVG(""Laps"") FROM table_55351 WHERE ""Driver"" = 'peter gethin' AND ""Grid"" < '25'" 1868,"###HUMAN: How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?, ###ASSISTANT: SELECT SUM(""Attendance"") FROM table_35910 WHERE ""Visitor"" = 'cleveland' AND ""Leading scorer"" = 'larry hughes(33)'" 1869,"###HUMAN: What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06), ###ASSISTANT: SELECT ""Original Team"" FROM table_489 WHERE ""Result"" = '08 Fired in week 10 (2008-03-06)'" 1870,"###HUMAN: what is the total number of title ?, ###ASSISTANT: SELECT COUNT(""subject"") FROM table_204_265" 1871,"###HUMAN: who won the south after esc geretsried did during the 2006-07 season ?, ###ASSISTANT: SELECT ""south"" FROM table_204_1 WHERE id = (SELECT id FROM table_204_1 WHERE ""south"" = 'esc geretsried') + 1" 1872,"###HUMAN: Where is the home ground for the club coached by nick pantsaras and founded before 1946?, ###ASSISTANT: SELECT ""Home Ground"" FROM table_44900 WHERE ""Founded"" < '1946' AND ""Coach"" = 'nick pantsaras'" 1873,"###HUMAN: How many years were g Tyres and Minardi m187 used?, ###ASSISTANT: SELECT AVG(year) FROM table_name_82 WHERE tyres = ""g"" AND chassis = ""minardi m187""" 1874,"###HUMAN: What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?, ###ASSISTANT: SELECT ""Result"" FROM table_78664 WHERE ""Location"" = 'riverfront stadium' AND ""Opponent"" = 'miami dolphins'" 1875,"###HUMAN: Who directed the totle 'tjockare n vatten'?, ###ASSISTANT: SELECT ""Directed by"" FROM table_20709 WHERE ""Title"" = 'Tjockare än vatten'" 1876,"###HUMAN: When did the archbishop that was ordained a bishop on July 25, 1902 die?, ###ASSISTANT: SELECT ""Died"" FROM table_44491 WHERE ""Ordained Bishop"" = 'july 25, 1902'" 1877,"###HUMAN: How many rain figures are provided for sunlight hours in 1966?, ###ASSISTANT: SELECT COUNT(""Rain"") FROM table_17829 WHERE ""Sunlight hours"" = '1966'" 1878,"###HUMAN: Show the different countries and the number of members from each with a bar chart, rank by the bar in ascending., ###ASSISTANT: SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY Country" 1879,"###HUMAN: Bar chart of total number of height from each sex, ###ASSISTANT: SELECT Sex, SUM(Height) FROM people GROUP BY Sex" 1880,"###HUMAN: what was the first time until 05/2100 patient 002-52932 was prescribed a medication via a misc route?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-52932')) AND medication.routeadmin = 'misc' AND STRFTIME('%y-%m', medication.drugstarttime) <= '2100-05' ORDER BY medication.drugstarttime LIMIT 1" 1881,"###HUMAN: how many times have there been helps by damon stoudamire (13), ###ASSISTANT: SELECT COUNT(""Record"") FROM table_802 WHERE ""High assists"" = 'Damon Stoudamire (13)'" 1882,"###HUMAN: Show all payment method codes and the number of orders for each code. Visualize by pie chart., ###ASSISTANT: SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code" 1883,"###HUMAN: For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and sort y axis in ascending order., ###ASSISTANT: SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID)" 1884,"###HUMAN: When was the film directed by Pen-Ek Ratanaruang released?, ###ASSISTANT: SELECT date FROM table_name_13 WHERE director = ""pen-ek ratanaruang""" 1885,"###HUMAN: Which rider had a speed of 104.630mph?, ###ASSISTANT: SELECT ""Rider"" FROM table_52741 WHERE ""Speed"" = '104.630mph'" 1886,"###HUMAN: what is the total number of apps and goals for luther blissett ?, ###ASSISTANT: SELECT ""apps"" + ""goals"" FROM table_204_340 WHERE ""name"" = 'luther blissett'" 1887,"###HUMAN: Parts Plus sponsors what driver?, ###ASSISTANT: SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = ""parts plus""" 1888,"###HUMAN: What is the place when the performance is 60.73m?, ###ASSISTANT: SELECT place FROM table_name_65 WHERE performance = ""60.73m""" 1889,"###HUMAN: What year was Sam Kazman a producer?, ###ASSISTANT: SELECT year FROM table_name_35 WHERE producer = ""sam kazman""" 1890,"###HUMAN: which team had the largest goal difference ?, ###ASSISTANT: SELECT ""team"" FROM table_203_254 ORDER BY ABS(""difference"") DESC LIMIT 1" 1891,"###HUMAN: how many days have elapsed since the first time patient 30826 stayed in the ward 12 during this hospital encounter?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30826 AND admissions.dischtime IS NULL)) AND transfers.wardid = 12 ORDER BY transfers.intime LIMIT 1" 1892,"###HUMAN: What loan expires date has a Date of 29 december 2003?, ###ASSISTANT: SELECT ""Loan expires"" FROM table_13239 WHERE ""Date"" = '29 december 2003'" 1893,"###HUMAN: Who was the partner that played against Serena Williams Venus Williams?, ###ASSISTANT: SELECT ""Partner"" FROM table_9885 WHERE ""Opponents in the final"" = 'serena williams venus williams'" 1894,"###HUMAN: What is the name of party with most number of members?, ###ASSISTANT: SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1" 1895,"###HUMAN: What is the call sign for channel 6?, ###ASSISTANT: SELECT ""Callsign"" FROM table_28631 WHERE ""Channel"" = '6'" 1896,"###HUMAN: What date has a set 4 of 25-19?, ###ASSISTANT: SELECT ""Date"" FROM table_42037 WHERE ""Set 4"" = '25-19'" 1897,"###HUMAN: how many patients were admitted before the year 2135 under procedure icd9 code 3893?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < ""2135"" AND procedures.icd9_code = ""3893""" 1898,"###HUMAN: What was the total effic for the quarterbacks?, ###ASSISTANT: SELECT MIN(""Effic"") FROM table_9027 WHERE ""Name"" = 'total'" 1899,"###HUMAN: When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?, ###ASSISTANT: SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = ""yoweri museveni"" AND year = 1993" 1900,"###HUMAN: ST. PETERSBURG to DETROIT, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PETERSBURG' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETROIT' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 1901,"###HUMAN: Name the fewest tries for leicester tigers with points less than 207, ###ASSISTANT: SELECT MIN(""Tries"") FROM table_31955 WHERE ""Club"" = 'leicester tigers' AND ""Points"" < '207'" 1902,"###HUMAN: Total View Count of User's Accepted Answers., ###ASSISTANT: SELECT 'Grand Total' AS Title, SUM(Question.ViewCount) AS ViewCount, NULL AS Score FROM Posts AS Answer INNER JOIN PostTypes ON PostTypes.Id = Answer.PostTypeId INNER JOIN Posts AS Question ON Question.Id = Answer.ParentId AND Question.AcceptedAnswerId = Answer.Id WHERE PostTypes.Name = 'Answer' AND Answer.OwnerUserId = '##UserId##' AND Answer.CommunityOwnedDate IS NULL UNION ALL SELECT Question.Title, Question.ViewCount, Question.Score FROM Posts AS Answer INNER JOIN PostTypes ON PostTypes.Id = Answer.PostTypeId INNER JOIN Posts AS Question ON Question.Id = Answer.ParentId AND Question.AcceptedAnswerId = Answer.Id WHERE PostTypes.Name = 'Answer' AND Answer.OwnerUserId = '##UserId##' AND Answer.CommunityOwnedDate IS NULL ORDER BY ViewCount DESC" 1903,"###HUMAN: Find other_details and the sum of monthly_rental , and group by attribute other_details, and visualize them by a bar chart., ###ASSISTANT: SELECT other_details, SUM(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC" 1904,"###HUMAN: In what district was the incumbent Edwin Gray?, ###ASSISTANT: SELECT district FROM table_2668401_17 WHERE incumbent = ""Edwin Gray""" 1905,"###HUMAN: What year was the developer(s) Bioware?, ###ASSISTANT: SELECT AVG(""Year"") FROM table_64172 WHERE ""Developer(s)"" = 'bioware'" 1906,"###HUMAN: was the last game a win or a loss ?, ###ASSISTANT: SELECT ""result"" FROM table_204_795 ORDER BY ""date"" DESC LIMIT 1" 1907,"###HUMAN: count the number of patients whose insurance is private and admission location is clinic referral/premature., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = ""Private"" AND demographic.admission_location = ""CLINIC REFERRAL/PREMATURE""" 1908,"###HUMAN: in this month has the arterial bp [diastolic] of patient 18159 been normal?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18159)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') AND chartevents.valuenum BETWEEN diastolic_bp_lower AND diastolic_bp_upper AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')" 1909,"###HUMAN: What was the surface where the outcome was winner on 12 march 1989?, ###ASSISTANT: SELECT ""Surface"" FROM table_54160 WHERE ""Outcome"" = 'winner' AND ""Date"" = '12 march 1989'" 1910,"###HUMAN: During 2003 what was open cup qualifying status?, ###ASSISTANT: SELECT open_cup FROM table_1570003_2 WHERE year = 2003" 1911,"###HUMAN: Which US air date had 4.4 million viewers?, ###ASSISTANT: SELECT original_us_air_date FROM table_17901155_4 WHERE viewers__millions_ = ""4.4""" 1912,"###HUMAN: What was the score for the game on June 30?, ###ASSISTANT: SELECT score FROM table_name_65 WHERE date = ""june 30""" 1913,"###HUMAN: What is the earliest year that has a Bristol engine?, ###ASSISTANT: SELECT MIN(""Year"") FROM table_15203 WHERE ""Engine"" = 'bristol'" 1914,"###HUMAN: In early 1873, Owen sound had what works number?, ###ASSISTANT: SELECT ""Works number"" FROM table_41506 WHERE ""Date"" = 'early 1873' AND ""Name"" = 'owen sound'" 1915,"###HUMAN: when was the first time that patient 009-5001 was prescribed medication on this hospital encounter via oral route?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-5001' AND patient.hospitaldischargetime IS NULL)) AND medication.routeadmin = 'oral' ORDER BY medication.drugstarttime LIMIT 1" 1916,"###HUMAN: What is the 1st leg of cs sfaxien?, ###ASSISTANT: SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = ""cs sfaxien""" 1917,"###HUMAN: Most upvoted questions asked in the last month., ###ASSISTANT: SELECT TOP(30) AS CreationDate, Id AS ""post_link"", Score, ViewCount FROM Posts WHERE CreationDate >= (DATEADD(MONTH, -1, GETDATE())) AND PostTypeId = 1 ORDER BY Posts.Score DESC" 1918,"###HUMAN: Find the number of the category descriptions of the products whose descriptions include letter 't', list names in ascending order., ###ASSISTANT: SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY product_category_description" 1919,"###HUMAN: Bar graph to show meter_100 from different meter 400, and could you display by the y axis in asc?, ###ASSISTANT: SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_100" 1920,"###HUMAN: What team is 2 when 1 is Taipower and the result is 0-1?, ###ASSISTANT: SELECT team_2 FROM table_name_90 WHERE team_1 = ""taipower"" AND result = ""0-1""" 1921,"###HUMAN: Which System's Name is Gemulator?, ###ASSISTANT: SELECT system FROM table_name_45 WHERE name = ""gemulator""" 1922,"###HUMAN: What is the name of the head coach of 1974?, ###ASSISTANT: SELECT name FROM table_name_96 WHERE years = ""1974""" 1923,"###HUMAN: Will Prof. Alan Hunt always be setting exams for her classes ?, ###ASSISTANT: SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.has_exams = 'N' AND instructor.name LIKE '%Alan Hunt%'" 1924,"###HUMAN: provide the number of patients whose ethnicity is american indian/alaska native and drug code is benz1i?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = ""AMERICAN INDIAN/ALASKA NATIVE"" AND prescriptions.formulary_drug_cd = ""BENZ1I""" 1925,"###HUMAN: according to the chart , which team is listed to have the first dodge ram ?, ###ASSISTANT: SELECT ""team"" FROM table_204_89 WHERE ""truck(s)"" = 'dodge ram' ORDER BY id LIMIT 1" 1926,"###HUMAN: give the number of patients whose admission type is elective and lab test category is blood gas., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = ""ELECTIVE"" AND lab.""CATEGORY"" = ""Blood Gas""" 1927,"###HUMAN: I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may 2011, ###ASSISTANT: SELECT plaid_cymru FROM table_name_77 WHERE polling_organisation_client = ""yougov/itv wales"" AND date_s__conducted = ""4 may 2011""" 1928,"###HUMAN: List the name of the county with the largest population., ###ASSISTANT: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1" 1929,"###HUMAN: What is the 2nd leg of team 1 Zamalek SC?, ###ASSISTANT: SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = ""zamalek sc""" 1930,"###HUMAN: What is the week 3, prior to the when the week 4 was Laura Nicole?, ###ASSISTANT: SELECT week_4 FROM table_name_26 WHERE week_3 = ""laura nicole""" 1931,"###HUMAN: Find the number of routes with destination airports in Italy., ###ASSISTANT: SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'" 1932,"###HUMAN: who is the first driver listed ?, ###ASSISTANT: SELECT ""driver"" FROM table_204_853 WHERE id = 1" 1933,"###HUMAN: What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?, ###ASSISTANT: SELECT ""L3 cache"" FROM table_13514 WHERE ""sSpec number"" = 'sr0r2(l1)sr0t6(l1)'" 1934,"###HUMAN: calculate the minimum age of home health care discharged patients who had overdose primary disease., ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.discharge_location = ""HOME HEALTH CARE"" AND demographic.diagnosis = ""OVERDOSE""" 1935,"###HUMAN: new semantic parsing papers, ###ASSISTANT: SELECT DISTINCT paper.paperid, paper.year FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid ORDER BY paper.year DESC" 1936,"###HUMAN: Which event had 4th place and took place in the year 2007?, ###ASSISTANT: SELECT event FROM table_name_76 WHERE position = ""4th"" AND year = 2007" 1937,"###HUMAN: Which Tankers have a Hazmat of , and Platforms of , and a Staffing of volunteer?, ###ASSISTANT: SELECT tankers FROM table_name_9 WHERE hazmat = ""–"" AND platforms = ""–"" AND staffing = ""volunteer""" 1938,"###HUMAN: what is the AP/57 restriction, ###ASSISTANT: SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/57'" 1939,"###HUMAN: let me know the number of patients taking drug via sl route suffering from pneumonia primary disease., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = ""PNEUMONIA"" AND prescriptions.route = ""SL""" 1940,"###HUMAN: The EPT German open was won by which listed winner?, ###ASSISTANT: SELECT ""Winner"" FROM table_70219 WHERE ""Event"" = 'ept german open'" 1941,"###HUMAN: how many different ranks exist for karate belts ?, ###ASSISTANT: SELECT COUNT(DISTINCT ""rank"") FROM table_203_392" 1942,"###HUMAN: Name the record for attendance location of palace of auburn hills 15,210, ###ASSISTANT: SELECT ""Record"" FROM table_21310 WHERE ""Location/Attendance"" = 'Palace of Auburn Hills 15,210'" 1943,"###HUMAN: how long did it take the fifth place finisher to run the race ?, ###ASSISTANT: SELECT ""time"" FROM table_204_937 WHERE ""rank"" = 5" 1944,"###HUMAN: What did the home team score when playing at Western Oval?, ###ASSISTANT: SELECT ""Home team score"" FROM table_32339 WHERE ""Venue"" = 'western oval'" 1945,"###HUMAN: Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?, ###ASSISTANT: SELECT ""Opponents"" FROM table_36349 WHERE ""Partner"" = 'irina-camelia begu' AND ""Surface"" = 'hard'" 1946,"###HUMAN: presence of chronic kidney disease ( gfr < 45 ml / min ), ###ASSISTANT: SELECT * FROM table_train_159 WHERE kidney_disease = 1 OR estimated_glomerular_filtration_rate_egfr < 45" 1947,"###HUMAN: how many patients whose diagnoses long title is perforation of intestine and lab test category is blood gas?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = ""Perforation of intestine"" AND lab.""CATEGORY"" = ""Blood Gas""" 1948,"###HUMAN: What is the type when McCormack is the name?, ###ASSISTANT: SELECT type FROM table_name_21 WHERE name = ""mccormack""" 1949,"###HUMAN: How many numbers were recorded on the fields goals of the Left End player?, ###ASSISTANT: SELECT COUNT(""Field goals"") FROM table_28033 WHERE ""Position"" = 'Left end'" 1950,"###HUMAN: Draw a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home, could you show in desc by the y-axis please?, ###ASSISTANT: SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(School_ID) DESC" 1951,"###HUMAN: Name the standard yarn weight system for 7 wpi, ###ASSISTANT: SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = ""7 wpi""" 1952,"###HUMAN: Nametheh school team for norman gonzales, ###ASSISTANT: SELECT ""School/Club Team"" FROM table_1262 WHERE ""Name"" = 'Norman Gonzales'" 1953,"###HUMAN: For the club that had tries of 50 and drawn of 0, what were the points?, ###ASSISTANT: SELECT points_against FROM table_name_51 WHERE drawn = ""0"" AND tries_for = ""50""" 1954,"###HUMAN: last time until 20 months ago when did patient 028-23341 get a prescription?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-23341')) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-20 month') ORDER BY medication.drugstarttime DESC LIMIT 1" 1955,"###HUMAN: Find me the admission type and short title of procedure for the patient with patient id 2110., ###ASSISTANT: SELECT demographic.admission_type, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = ""2110""" 1956,"###HUMAN: Name the lowest yards for 34 long and avg less than 12.6, ###ASSISTANT: SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6" 1957,"###HUMAN: Who did they lose to on may 9?, ###ASSISTANT: SELECT ""Loss"" FROM table_56314 WHERE ""Date"" = 'may 9'" 1958,"###HUMAN: For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, list x-axis in asc order please., ###ASSISTANT: SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID" 1959,"###HUMAN: How many different matchup/results appear in San Diego, California?, ###ASSISTANT: SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = ""San Diego, California""" 1960,"###HUMAN: What years did Marienhof run, which featured Leonore Capell and lasted 10 years?, ###ASSISTANT: SELECT years FROM table_name_88 WHERE soap_opera = ""marienhof"" AND duration = ""10 years"" AND actor = ""leonore capell""" 1961,"###HUMAN: Q1-1 What is the most number of comments on a single post?., ###ASSISTANT: SELECT CommentCount, Id, COUNT(*) FROM Posts GROUP BY Id, CommentCount HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC" 1962,"###HUMAN: how many hours has it been since patient 57050 stayed for the first time on the current hospital visit in ward 14?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 57050 AND admissions.dischtime IS NULL)) AND transfers.wardid = 14 ORDER BY transfers.intime LIMIT 1" 1963,"###HUMAN: give me flights from ATLANTA to BALTIMORE, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 1964,"###HUMAN: Return a scatter chart about the correlation between Body_Builder_ID and Clean_Jerk ., ###ASSISTANT: SELECT Body_Builder_ID, Clean_Jerk FROM body_builder" 1965,"###HUMAN: How many playerd Mrs. Darling in the 1999 Broadway?, ###ASSISTANT: SELECT COUNT(1999 AS _broadway) FROM table_10312547_1 WHERE character = ""Mrs. Darling""" 1966,"###HUMAN: what is the maximum age of patients whose death status is 0 and diagnosed with primary disease coronary artery disease\coronary artery bypass graft with mvr; ? maze?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = ""0"" AND demographic.diagnosis = ""CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE""" 1967,"###HUMAN: What is the value for Lost when Drawn is 0, and Tries against is 41?, ###ASSISTANT: SELECT lost FROM table_name_33 WHERE drawn = ""0"" AND tries_against = ""41""" 1968,"###HUMAN: Create a bar chart showing maximal revenue across name, and I want to rank X in descending order please., ###ASSISTANT: SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY Name DESC" 1969,"###HUMAN: Where does South Melbourne play?, ###ASSISTANT: SELECT venue FROM table_name_52 WHERE away_team = ""south melbourne""" 1970,"###HUMAN: what are the procedures that are the top five most commonly received in 2100?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE STRFTIME('%y', procedures_icd.charttime) = '2100' GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 <= 5)" 1971,"###HUMAN: Give me the comparison about the sum of monthly_rental over the date_address_from , and group by attribute other_details and bin date_address_from by weekday by a bar chart., ###ASSISTANT: SELECT date_address_from, SUM(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC" 1972,"###HUMAN: what was the name of the laboratory test that patient 021-141335 received last in a month before?, ###ASSISTANT: SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-141335')) AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY lab.labresulttime DESC LIMIT 1" 1973,"###HUMAN: Which date has a score of 2-1?, ###ASSISTANT: SELECT ""Date"" FROM table_68490 WHERE ""Score"" = '2-1'" 1974,"###HUMAN: What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels?, ###ASSISTANT: SELECT COUNT(""Year"") FROM table_71745 WHERE ""Venue"" = 'sydney cricket ground' AND ""Opponent"" = 'parramatta eels'" 1975,"###HUMAN: what 's the earliest arriving flight between BOSTON and WASHINGTON DC, ###ASSISTANT: SELECT DISTINCT flight_id FROM flight WHERE ((from_airport IN (SELECT AIRPORT_SERVICEalias2.airport_code FROM airport_service AS AIRPORT_SERVICEalias2 WHERE AIRPORT_SERVICEalias2.city_code IN (SELECT CITYalias2.city_code FROM city AS CITYalias2 WHERE CITYalias2.city_name = 'BOSTON')) AND to_airport IN (SELECT AIRPORT_SERVICEalias3.airport_code FROM airport_service AS AIRPORT_SERVICEalias3 WHERE AIRPORT_SERVICEalias3.city_code IN (SELECT CITYalias3.city_code FROM city AS CITYalias3 WHERE (CITYalias3.city_name = 'WASHINGTON' AND CITYalias3.state_code = 'DC')))) AND arrival_time = (SELECT MIN(FLIGHTalias1.arrival_time) FROM flight AS FLIGHTalias1 WHERE (FLIGHTalias1.from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'BOSTON')) AND FLIGHTalias1.to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE (CITYalias1.city_name = 'WASHINGTON' AND CITYalias1.state_code = 'DC'))))))" 1976,"###HUMAN: Tell me the Stem Meaning of ical, ###ASSISTANT: SELECT ""Stem Meaning"" FROM table_31998 WHERE ""3rd person sg"" = 'ical'" 1977,"###HUMAN: How many wins happened when there were fewer than 2 draws?, ###ASSISTANT: SELECT SUM(""Wins"") FROM table_8680 WHERE ""Draws"" < '2'" 1978,"###HUMAN: What episode aired on 18 April 2007?, ###ASSISTANT: SELECT MIN(_number) FROM table_10749367_3 WHERE air_date = ""18 April 2007""" 1979,"###HUMAN: Who was runner-up in the 2006 Pacific Life Open?, ###ASSISTANT: SELECT runner_up FROM table_name_62 WHERE name = ""pacific life open"" AND year = ""2006""" 1980,"###HUMAN: what is age and procedure short title of subject id 2560?, ###ASSISTANT: SELECT demographic.age, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = ""2560""" 1981,"###HUMAN: What is the highest Points when the record was 12 2, and the Points Against are larger than 6?, ###ASSISTANT: SELECT MAX(points_for) FROM table_name_25 WHERE record = ""12–2"" AND points_against > 6" 1982,"###HUMAN: Top Voted Questions By Tag., ###ASSISTANT: WITH ScoreByTag AS (SELECT pt.TagId, p.Score, ROW_NUMBER() OVER (PARTITION BY pt.TagId ORDER BY p.Score DESC) AS ""rank"" FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id) SELECT RANK() OVER (ORDER BY st.Score DESC) AS ""rank"", t.TagName, st.Score FROM ScoreByTag AS st INNER JOIN Tags AS t ON st.TagId = t.Id WHERE st.Rank = 1 ORDER BY st.Score DESC" 1983,"###HUMAN: Show me mean rating by languages in a histogram, sort X from high to low order., ###ASSISTANT: SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY languages DESC" 1984,"###HUMAN: what's the score where record is 35 33, ###ASSISTANT: SELECT ""Score"" FROM table_17347 WHERE ""Record"" = '35–33'" 1985,"###HUMAN: What was the score of the game that put the team at 27-32?, ###ASSISTANT: SELECT loss FROM table_name_51 WHERE record = ""27-32""" 1986,"###HUMAN: What was the To par for bill britton when he placed t7?, ###ASSISTANT: SELECT to_par FROM table_name_37 WHERE place = ""t7"" AND player = ""bill britton""" 1987,"###HUMAN: what is the number of patients whose admission type is elective and procedure long title is laparoscopic lysis of peritoneal adhesions?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = ""ELECTIVE"" AND procedures.long_title = ""Laparoscopic lysis of peritoneal adhesions""" 1988,"###HUMAN: What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?, ###ASSISTANT: SELECT record FROM table_name_64 WHERE time = ""4:00"" AND opponent = ""krzysztof soszynski""" 1989,"###HUMAN: What's the status on 16/12/1995?, ###ASSISTANT: SELECT status FROM table_name_35 WHERE date = ""16/12/1995""" 1990,"###HUMAN: What was the crowd size when the visiting team scored 23.18 (156)?, ###ASSISTANT: SELECT COUNT(""Crowd"") FROM table_56036 WHERE ""Away team score"" = '23.18 (156)'" 1991,"###HUMAN: what is the highest frequency mhz with the call sign w292cu?, ###ASSISTANT: SELECT MAX(frequency_mhz) FROM table_name_77 WHERE call_sign = ""w292cu""" 1992,"###HUMAN: how many patients were prescribed 2 ml : metoclopramide hcl 5 mg/ml inj soln within 2 months since 2103 after being diagnosed with copd - no limitations?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'copd - no limitations' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2103') AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '2 ml : metoclopramide hcl 5 mg/ml inj soln' AND STRFTIME('%y', medication.drugstarttime) >= '2103') AS t2 WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')" 1993,"###HUMAN: What is the average high temperature for each day of week Plot them as bar chart, rank Y-axis in desc order., ###ASSISTANT: SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY AVG(high_temperature) DESC" 1994,"###HUMAN: What was the lowest production code value in series #10?, ###ASSISTANT: SELECT MIN(production_code) FROM table_name_14 WHERE series__number = 10" 1995,"###HUMAN: What is the total of attendance with a Record of 5-9-0?, ###ASSISTANT: SELECT SUM(""Attendance"") FROM table_56683 WHERE ""Record"" = '5-9-0'" 1996,"###HUMAN: What is the low lap total for a grid larger than 16 and has a Time/Retired of + 3:27.3?, ###ASSISTANT: SELECT MIN(""Laps"") FROM table_78184 WHERE ""Time/Retired"" = '+ 3:27.3' AND ""Grid"" > '16'" 1997,"###HUMAN: which reps were only appointed by franklin pierce ?, ###ASSISTANT: SELECT ""representative"" FROM table_203_778 WHERE ""appointed by"" = 'franklin pierce'" 1998,"###HUMAN: Which Champion has a Coeff of 1.000?, ###ASSISTANT: SELECT ""Champions"" FROM table_52977 WHERE ""Coeff"" = '1.000'" 1999,"###HUMAN: What is the 2nd leg in match with team 2 of Teram?, ###ASSISTANT: SELECT ""2nd leg"" FROM table_62868 WHERE ""Team 2"" = 'teram'" 2000,"###HUMAN: What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956?, ###ASSISTANT: SELECT MIN(points) FROM table_name_41 WHERE entrant = ""goulds' garage (bristol)"" AND engine = ""maserati straight-6"" AND year < 1956" 2001,"###HUMAN: How many events have each participants attended? Show their total number by each participant type code using a bar chart, rank in asc by the total number of count(*)., ###ASSISTANT: SELECT T1.Participant_Type_Code, SUM(COUNT(*)) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_Type_Code ORDER BY SUM(COUNT(*))" 2002,"###HUMAN: how many hours have elapsed since the last time patient 005-87465 had an intake of norepinephrine on the current icu visit?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-87465') AND patient.unitdischargetime IS NULL) AND intakeoutput.celllabel = 'norepinephrine' AND intakeoutput.cellpath LIKE '%intake%' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1" 2003,"###HUMAN: On what date(s) was the winning team Prema Powerteam?, ###ASSISTANT: SELECT ""Date"" FROM table_3247 WHERE ""Winning Team"" = 'Prema Powerteam'" 2004,"###HUMAN: which judge began active service first , wayne edward alley or james henry alesia ?, ###ASSISTANT: SELECT ""judge"" FROM table_203_572 WHERE ""judge"" IN ('wayne edward alley', 'james henry alesia') ORDER BY ""began active\nservice"" LIMIT 1" 2005,"###HUMAN: What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?, ###ASSISTANT: SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = ""willy.tel"" AND up__up_to_kbit_s_ > 1984" 2006,"###HUMAN: how many times does patient 010-1155 have a po liqs intake on the first icu visit?, ###ASSISTANT: SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-1155') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'po liqs'" 2007,"###HUMAN: What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?, ###ASSISTANT: SELECT date FROM table_name_40 WHERE competition = ""2006 fifa world cup qualification"" AND venue = ""alamodome, san antonio, united states""" 2008,"###HUMAN: Who won the 350cc at Sachsenring?, ###ASSISTANT: SELECT 350 AS _cc FROM table_name_90 WHERE track = ""sachsenring""" 2009,"###HUMAN: What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?, ###ASSISTANT: SELECT ""Tournament"" FROM table_40323 WHERE ""Events"" > '11' AND ""Top-5"" = '0' AND ""Top-25"" = '2'" 2010,"###HUMAN: Line chart, let hire data as X and salary as Y, and filter for employees without the letter M in their first name, display by the x axis in ascending., ###ASSISTANT: SELECT HIRE_DATE, SALARY FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY HIRE_DATE" 2011,"###HUMAN: Show the number of venue from each venue, ###ASSISTANT: SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue" 2012,"###HUMAN: What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17?, ###ASSISTANT: SELECT MAX(""Wins"") FROM table_58322 WHERE ""Against"" > '1249' AND ""Losses"" < '17'" 2013,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, find last_name and salary , and visualize them by a bar chart., ###ASSISTANT: SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)" 2014,"###HUMAN: what did patient 033-3992's age be during this hospital encounter?, ###ASSISTANT: SELECT patient.age FROM patient WHERE patient.uniquepid = '033-3992' AND patient.hospitaldischargetime IS NULL" 2015,"###HUMAN: What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?, ###ASSISTANT: SELECT ""2006"" FROM table_50783 WHERE ""2000"" = '1r' AND ""1996"" = 'a' AND ""Tournament"" = 'cincinnati masters'" 2016,"###HUMAN: Stacked bar chart of team_id for with each ACC_Home in each acc road, ###ASSISTANT: SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road" 2017,"###HUMAN: how many patients were prescribed sodium chloride 0.9% 500 ml lvp within 2 months after the diagnosis of sepsis, since 2103?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2103') AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'sodium chloride 0.9% 500 ml lvp' AND STRFTIME('%y', medication.drugstarttime) >= '2103') AS t2 WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')" 2018,"###HUMAN: what countries have the same amount of bronze medals as germany ?, ###ASSISTANT: SELECT COUNT(""nation"") FROM table_203_653 WHERE ""nation"" <> 'germany' AND ""bronze"" = (SELECT ""bronze"" FROM table_203_653 WHERE ""nation"" = 'germany')" 2019,"###HUMAN: patients with no indication for enteral feeding or in the imminence of receiving parenteral nutrition, ###ASSISTANT: SELECT * FROM table_train_64 WHERE enteral_feeding = 0 OR receiving_parenteral_nutrition = 1" 2020,"###HUMAN: What department has an m.phil (physics) qualification?, ###ASSISTANT: SELECT ""Department"" FROM table_44284 WHERE ""Qualification"" = 'm.phil (physics)'" 2021,"###HUMAN: Tell me the home team for vfl park venue, ###ASSISTANT: SELECT home_team FROM table_name_21 WHERE venue = ""vfl park""" 2022,"###HUMAN: Answers containing search term for questions that don't., ###ASSISTANT: SELECT answers.Id AS ""post_link"" FROM Posts AS questions INNER JOIN Posts AS answers ON answers.ParentId = questions.Id WHERE NOT (questions.Body LIKE '%shaken%') AND answers.Body LIKE '%shaken%'" 2023,"###HUMAN: At what time was the game when they played the White Sox and had a record of 63-70?, ###ASSISTANT: SELECT ""Time"" FROM table_37927 WHERE ""Opponent"" = 'white sox' AND ""Record"" = '63-70'" 2024,"###HUMAN: What team played South Melbourne at their home game?, ###ASSISTANT: SELECT ""Away team"" FROM table_57431 WHERE ""Home team"" = 'south melbourne'" 2025,"###HUMAN: Which Res has a Time of 11:58?, ###ASSISTANT: SELECT ""Res."" FROM table_61332 WHERE ""Time"" = '11:58'" 2026,"###HUMAN: Loses of 2, and a Pos. smaller than 2 had how many highest matches?, ###ASSISTANT: SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2" 2027,"###HUMAN: Where does Iceland rank with under 19 silvers?, ###ASSISTANT: SELECT MAX(rank) FROM table_name_12 WHERE nation = ""iceland"" AND silver < 19" 2028,"###HUMAN: What song was in french?, ###ASSISTANT: SELECT song FROM table_name_98 WHERE language = ""french""" 2029,"###HUMAN: What did the home team score at Princes Park?, ###ASSISTANT: SELECT ""Home team score"" FROM table_53393 WHERE ""Venue"" = 'princes park'" 2030,"###HUMAN: What is the name of the building at the Jewellery quarter?, ###ASSISTANT: SELECT name FROM table_name_61 WHERE location = ""jewellery quarter""" 2031,"###HUMAN: Catalogue of Comments Including Links., ###ASSISTANT: SELECT Id AS ""comment_link"" FROM Comments LIMIT 100" 2032,"###HUMAN: Name the head of household for married filing jointly or qualified widow(er) being $137,051 $208,850, ###ASSISTANT: SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = ""$137,051–$208,850""" 2033,"###HUMAN: List all information about college sorted by enrollment number in the ascending order., ###ASSISTANT: SELECT * FROM college ORDER BY enr" 2034,"###HUMAN: tell me what was the top three most common diagnosis since 4 years ago?, ###ASSISTANT: SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 3" 2035,"###HUMAN: most popular new tags by votes., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Votes.Votes DESC) AS VoteRank, Votes.TagName AS Tag, Votes.Votes AS ""Votes "" FROM (SELECT Tags.TagName, COUNT(DISTINCT Votes.Id) AS Votes FROM Tags, PostTags, Posts, Votes WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostTags.PostId AND Votes.PostId = Posts.Id AND Votes.CreationDate > '2014-01-01' GROUP BY Tags.TagName HAVING COUNT(DISTINCT Votes.Id) > 100) AS votes ORDER BY Votes.votes DESC" 2036,"###HUMAN: What was the record on 12 march 2008?, ###ASSISTANT: SELECT record FROM table_name_63 WHERE date = ""12 march 2008""" 2037,"###HUMAN: for the name of joe surratt what is the last update?, ###ASSISTANT: SELECT last_update FROM table_name_75 WHERE name = ""joe surratt""" 2038,"###HUMAN: Which Total has a Bronze larger than 1, and a Gold larger than 0?, ###ASSISTANT: SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0" 2039,"###HUMAN: What is the Result where Goal is 9?, ###ASSISTANT: SELECT ""Result"" FROM table_70866 WHERE ""Goal"" = '9'" 2040,"###HUMAN: Who were the opponents for the event in Milan, Italy?, ###ASSISTANT: SELECT ""Opponent"" FROM table_44146 WHERE ""Tournament"" = 'milan, italy'" 2041,"###HUMAN: Who was the opponent at the game with a result of w 14 6?, ###ASSISTANT: SELECT ""Opponent"" FROM table_36169 WHERE ""Result"" = 'w 14–6'" 2042,"###HUMAN: What is the venue of North Melbourne?, ###ASSISTANT: SELECT ""Venue"" FROM table_57473 WHERE ""Home team"" = 'north melbourne'" 2043,"###HUMAN: Questions with a single-use tag that has no tag wiki. These single-use tags are candidates for being deleted by the cleanup script, unless a wiki excerpt is written. Some of these questions might become untagged if the single-use tag deletion script is turned back on., ###ASSISTANT: SELECT TagName, PostId AS ""post_link"", p.Tags, p.CreationDate FROM Tags AS t LEFT JOIN Posts AS pe ON pe.Id = t.ExcerptPostId LEFT JOIN Posts AS pw ON pw.Id = t.WikiPostId LEFT JOIN PostTags AS pt ON TagId = t.Id LEFT JOIN Posts AS p ON p.Id = PostId WHERE Count = 1 AND (WikiPostId IS NULL OR (LENGTH(pe.Body) < 1 AND LENGTH(pw.Body) < 1)) ORDER BY t.TagName" 2044,"###HUMAN: What is Nation, when Rank is greater than 2, when Total is greater than 1, and when Bronze is less than 3?, ###ASSISTANT: SELECT ""Nation"" FROM table_77021 WHERE ""Rank"" > '2' AND ""Total"" > '1' AND ""Bronze"" < '3'" 2045,"###HUMAN: calculate the maximum age of english speaking patients who have sepsis primary disease., ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.language = ""ENGL"" AND demographic.diagnosis = ""SEPSIS""" 2046,"###HUMAN: What was the first series in this list that Jack Orman wrote?, ###ASSISTANT: SELECT MIN(series__number) FROM table_12564633_1 WHERE written_by = ""Jack Orman""" 2047,"###HUMAN: give me the number of patients whose drug name is propofol?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = ""Propofol""" 2048,"###HUMAN: Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?, ###ASSISTANT: SELECT ""Races"" FROM table_34089 WHERE ""Points"" > '123' AND ""Driver"" = 'fernando alonso' AND ""Percentage of possible points"" = '74.44%'" 2049,"###HUMAN: has patient 009-13409 received a procedure until 4 years ago., ###ASSISTANT: SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-13409')) AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-4 year')" 2050,"###HUMAN: when was the first time that patient 015-91239 had the maximum value of respiration on the current icu visit?, ###ASSISTANT: SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-91239') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.respiration IS NULL ORDER BY vitalperiodic.respiration DESC, vitalperiodic.observationtime LIMIT 1" 2051,"###HUMAN: Who was the home team when the Tie no was 7?, ###ASSISTANT: SELECT home_team FROM table_name_60 WHERE tie_no = ""7""" 2052,"###HUMAN: Who was the originally artist when Jasmine Murray was selected?, ###ASSISTANT: SELECT ""Original artist"" FROM table_24426 WHERE ""Result"" = 'Selected'" 2053,"###HUMAN: For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the average of department_id bin hire_date by time., ###ASSISTANT: SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'" 2054,"###HUMAN: What opponent has tomko (1-1) as a loss?, ###ASSISTANT: SELECT opponent FROM table_name_24 WHERE loss = ""tomko (1-1)""" 2055,"###HUMAN: Name the 132.1% for where north carolina is colorado, ###ASSISTANT: SELECT ""132.1%"" FROM table_19826 WHERE ""North Carolina"" = 'Colorado'" 2056,"###HUMAN: What is the lowest episode number where john bird was the 4th performer?, ###ASSISTANT: SELECT MIN(episode) FROM table_name_48 WHERE performer_4 = ""john bird""" 2057,"###HUMAN: Unanswered questions by deleted users., ###ASSISTANT: SELECT CreationDate, Id AS ""post_link"" FROM Posts WHERE OwnerUserId IS NULL AND ClosedDate IS NULL AND PostTypeId = 1 AND COALESCE(AnswerCount, 0) = 0 ORDER BY CreationDate" 2058,"###HUMAN: what are the percentile of 6.7 in a total protein lab test given the same age of patient 030-52327 during their current hospital encounter?, ###ASSISTANT: SELECT DISTINCT t1.c1 FROM (SELECT lab.labresult, PERCENT_RANK() OVER (ORDER BY lab.labresult) AS c1 FROM lab WHERE lab.labname = 'total protein' AND lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age = (SELECT patient.age FROM patient WHERE patient.uniquepid = '030-52327' AND patient.hospitaldischargetime IS NULL))) AS t1 WHERE t1.labresult = 6.7" 2059,"###HUMAN: Name the parameter for 2.67 m, ###ASSISTANT: SELECT ""Parameter"" FROM table_20882 WHERE ""1st stage"" = '2.67 m'" 2060,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and manager_id in a bar chart, and list by the X from low to high., ###ASSISTANT: SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID" 2061,"###HUMAN: What is the name of school that has the smallest enrollment in each state?, ###ASSISTANT: SELECT cname, state, MIN(enr) FROM college GROUP BY state" 2062,"###HUMAN: what were the five most frequent lab tests ordered since 2104 for patients in the age of 60 or above?, ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >= 60) AND STRFTIME('%y', labevents.charttime) >= '2104' GROUP BY labevents.itemid) AS t1 WHERE t1.c1 <= 5)" 2063,"###HUMAN: Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie?, ###ASSISTANT: SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = ""reggie mckenzie""" 2064,"###HUMAN: Name the original title for the last metro, ###ASSISTANT: SELECT original_title FROM table_18987377_1 WHERE film_title_used_in_nomination = ""The Last Metro""" 2065,"###HUMAN: Create a bar chart showing meter_100 across meter 600, and could you order from low to high by the Y-axis?, ###ASSISTANT: SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100" 2066,"###HUMAN: Find the distinct first names of all the students who have vice president votes and whose city code is not PIT., ###ASSISTANT: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = ""PIT""" 2067,"###HUMAN: Tell me the launch pad for 25 december 2010 10:34, ###ASSISTANT: SELECT ""Launch Pad"" FROM table_31682 WHERE ""Launch date/time (UTC)"" = '25 december 2010 10:34'" 2068,"###HUMAN: what are the four most frequent drugs that were prescribed to coronary artery disease female patients 20s within 2 months after they were diagnosed with coronary artery disease in this year?, ###ASSISTANT: SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'coronary artery disease' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.gender = 'female' AND patient.age BETWEEN 20 AND 29 AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 4" 2069,"###HUMAN: what is the diagnosis icd9 and diagnosis long title of subject id 92796?, ###ASSISTANT: SELECT diagnoses.icd9_code, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = ""92796""" 2070,"###HUMAN: how much does the weight of patient 006-161415 vary last measured on the first hospital visit compared to the second to last value measured on the first hospital visit?, ###ASSISTANT: SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 OFFSET 1)" 2071,"###HUMAN: provide the number of patients whose year of death is less than or equal to 2174 and drug code is osel75?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= ""2174.0"" AND prescriptions.formulary_drug_cd = ""OSEL75""" 2072,"###HUMAN: What chassis has a year of 1951?, ###ASSISTANT: SELECT ""Chassis"" FROM table_67243 WHERE ""Year"" = '1951'" 2073,"###HUMAN: patient 004-17866 has received a fio2 lab test in 2105?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-17866')) AND lab.labname = 'fio2' AND STRFTIME('%y', lab.labresulttime) = '2105'" 2074,"###HUMAN: how many patients whose admission year is less than 2144 and diagnoses icd9 code is 28802?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < ""2144"" AND diagnoses.icd9_code = ""28802""" 2075,"###HUMAN: What is the name of the institution with the mascot of blue devils?, ###ASSISTANT: SELECT institution FROM table_12434380_1 WHERE mascot = ""Blue Devils""" 2076,"###HUMAN: how many delegates represented allegany ?, ###ASSISTANT: SELECT COUNT(""delegate"") FROM table_203_247 WHERE ""counties represented"" = 'allegany'" 2077,"###HUMAN: What CD has a catalog # of PCR 502?, ###ASSISTANT: SELECT title FROM table_name_12 WHERE catalog__number = ""pcr 502""" 2078,"###HUMAN: What was the 2nd Party that had the 2nd Member John Barneby, when the 1st Party was Conservative?, ###ASSISTANT: SELECT ""2nd Party"" FROM table_80170 WHERE ""2nd Member"" = 'john barneby' AND ""1st Party"" = 'conservative'" 2079,"###HUMAN: what was the maximum monthly number of patients diagnosed with adv eff insulin/antidiab until 2104?, ###ASSISTANT: SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'adv eff insulin/antidiab') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104' GROUP BY STRFTIME('%y-%m', diagnoses_icd.charttime)) AS t1" 2080,"###HUMAN: On what date was the record 4 0 0?, ###ASSISTANT: SELECT ""Date"" FROM table_5620 WHERE ""Record"" = '4–0–0'" 2081,"###HUMAN: What is the date when the city is San Antonio, Texas?, ###ASSISTANT: SELECT date FROM table_20996923_20 WHERE city = ""San Antonio, Texas""" 2082,"###HUMAN: How many races had #99 gainsco/bob stallings racing in round 10?, ###ASSISTANT: SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = ""#99 GAINSCO/Bob Stallings Racing""" 2083,"###HUMAN: Which Cover Model was featured on 8-03?, ###ASSISTANT: SELECT cover_model FROM table_name_8 WHERE date = ""8-03""" 2084,"###HUMAN: How many starts for an average finish greater than 43?, ###ASSISTANT: SELECT SUM(""Starts"") FROM table_76600 WHERE ""Avg. Finish"" > '43'" 2085,"###HUMAN: What is Time, when Round is less than 2, and when Opponent is 'Valentijn Overeem'?, ###ASSISTANT: SELECT ""Time"" FROM table_43630 WHERE ""Round"" < '2' AND ""Opponent"" = 'valentijn overeem'" 2086,"###HUMAN: What is the Season with an Acquisition via of rookie draft, and the number is 15?, ###ASSISTANT: SELECT ""Season"" FROM table_43168 WHERE ""Acquisition via"" = 'rookie draft' AND ""Number"" = '15'" 2087,"###HUMAN: Which Constructor won the Roussillon Grand Prix?, ###ASSISTANT: SELECT winning_constructor FROM table_name_95 WHERE name = ""roussillon grand prix""" 2088,"###HUMAN: When the Score was 4-10, what was the Attendance?, ###ASSISTANT: SELECT ""Attendance"" FROM table_54492 WHERE ""Score"" = '4-10'" 2089,"###HUMAN: What was the To par for the player whose final score was 67-71=138?, ###ASSISTANT: SELECT ""To par"" FROM table_50174 WHERE ""Score"" = '67-71=138'" 2090,"###HUMAN: what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivi res draveurs (qmjhl)?, ###ASSISTANT: SELECT MIN(pick__number) FROM table_2679061_2 WHERE nhl_team = ""Montreal Canadiens"" AND college_junior_club_team = ""Trois-Rivières Draveurs (QMJHL)""" 2091,"###HUMAN: For a team with a goals against less than 58, a position of 10, and a points 2 more than 53, what is the average lost?, ###ASSISTANT: SELECT AVG(""Lost"") FROM table_46666 WHERE ""Goals Against"" < '58' AND ""Position"" = '10' AND ""Points 2"" > '53'" 2092,"###HUMAN: have a serum creatinine greater than or equal to 1.5 milligrams / deciliter ( mg / dl ) ( male ) or greater than or equal to 1.4 mg / dl ( female ) , or a creatinine clearance less than 60 milliliters / minute ( ml / minute ), ###ASSISTANT: SELECT * FROM table_dev_38 WHERE (serum_creatinine >= 1.5 AND gender = 'male') OR (serum_creatinine >= 1.4 AND gender = 'female') OR creatinine_clearance_cl < 60" 2093,"###HUMAN: What is the score of the home team that played Collingwood?, ###ASSISTANT: SELECT ""Home team score"" FROM table_51472 WHERE ""Away team"" = 'collingwood'" 2094,"###HUMAN: the most players picked came from which nationality ?, ###ASSISTANT: SELECT ""nationality"" FROM table_203_824 GROUP BY ""nationality"" ORDER BY COUNT(""player"") DESC LIMIT 1" 2095,"###HUMAN: Which films participated in the 30th Hawaii International Film Festival?, ###ASSISTANT: SELECT ""Participants/Recipients"" FROM table_31285 WHERE ""Film Festival"" = '30th Hawaii International Film Festival'" 2096,"###HUMAN: How much Gold has a Silver smaller than 14, and a Rank larger than 8, and a Bronze of 3?, ###ASSISTANT: SELECT COUNT(""Gold"") FROM table_9299 WHERE ""Silver"" < '14' AND ""Rank"" > '8' AND ""Bronze"" = '3'" 2097,"###HUMAN: What was the rating of the episode Wonder Drug?, ###ASSISTANT: SELECT ratings__5_capital_cities_ FROM table_name_82 WHERE episode_no = ""wonder drug""" 2098,"###HUMAN: Tell me the eastern #2 for western #2 of oakland, ###ASSISTANT: SELECT ""Eastern #2"" FROM table_56898 WHERE ""Western #2"" = 'oakland'" 2099,"###HUMAN: Who visited on march 26?, ###ASSISTANT: SELECT ""Visitor"" FROM table_44238 WHERE ""Date"" = 'march 26'" 2100,"###HUMAN: What's the agency of the member born on 1998.11.09?, ###ASSISTANT: SELECT agency FROM table_name_32 WHERE birthday = ""1998.11.09""" 2101,"###HUMAN: What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238?, ###ASSISTANT: SELECT SUM(losses) FROM table_name_6 WHERE wins > 6 AND club = ""camperdown"" AND against > 1238" 2102,"###HUMAN: Who were all the pictorials when the centerfold model was Rebekka Armstrong?, ###ASSISTANT: SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = ""Rebekka Armstrong""" 2103,"###HUMAN: Name the period for south korea with peak position of #1, ###ASSISTANT: SELECT period FROM table_name_90 WHERE country = ""south korea"" AND peak_position = ""#1""" 2104,"###HUMAN: What Week 4 has a Week 2 of samantha speer?, ###ASSISTANT: SELECT ""Week 4"" FROM table_12982 WHERE ""Week 2"" = 'samantha speer'" 2105,"###HUMAN: EECS 487 and EECS 521 , which one is easier ?, ###ASSISTANT: SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 487 OR course.number = 521) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON PROGRAM_COURSEalias1.course_id = COURSEalias1.course_id WHERE (COURSEalias1.number = 487 OR COURSEalias1.number = 521) AND COURSEalias1.department = 'EECS')" 2106,"###HUMAN: which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?, ###ASSISTANT: SELECT ""Copa Libertadores 1996"" FROM table_38605 WHERE ""Supercopa 1995"" = 'round 1' AND ""Team"" = 'argentinos juniors'" 2107,"###HUMAN: Name the date for visiting team of denver broncos, ###ASSISTANT: SELECT ""Date"" FROM table_67107 WHERE ""Visiting Team"" = 'denver broncos'" 2108,"###HUMAN: What was the game number of the game played against Charlotte?, ###ASSISTANT: SELECT COUNT(""Game"") FROM table_7818 WHERE ""Team"" = 'charlotte'" 2109,"###HUMAN: Compare the total number of different job titles for all those jobs in department 80 using a bar chart., ###ASSISTANT: SELECT JOB_TITLE, COUNT(JOB_TITLE) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T1.DEPARTMENT_ID = 80 GROUP BY JOB_TITLE" 2110,"###HUMAN: What was Fuzzy Zoeller's score in the United States?, ###ASSISTANT: SELECT ""Score"" FROM table_9624 WHERE ""Country"" = 'united states' AND ""Player"" = 'fuzzy zoeller'" 2111,"###HUMAN: what is the number of live action american superhero movies released in 1978 ?, ###ASSISTANT: SELECT COUNT(""film"") FROM table_203_79 WHERE ""year"" = 1978" 2112,"###HUMAN: what are the four most common medicines that patients were prescribed during the same month after they were prescribed rufinamide until 2101?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'rufinamide' AND STRFTIME('%y', prescriptions.startdate) <= '2101') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', prescriptions.startdate) <= '2101') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.startdate < t2.startdate AND DATETIME(t1.startdate, 'start of month') = DATETIME(t2.startdate, 'start of month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4" 2113,"###HUMAN: name the total number of timeslot for number 1, ###ASSISTANT: SELECT COUNT(timeslot) FROM table_19834691_4 WHERE _number = 1" 2114,"###HUMAN: What is the low bronze total for the team with 4 total and under 1 gold?, ###ASSISTANT: SELECT MIN(bronze) FROM table_name_66 WHERE total = 4 AND gold < 1" 2115,"###HUMAN: Bar chart of minimal salary from each dept name, order dept_name in ascending order please., ###ASSISTANT: SELECT dept_name, MIN(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name" 2116,"###HUMAN: What was the B segmint for Netlix S03E01?, ###ASSISTANT: SELECT ""Segment B"" FROM table_35545 WHERE ""Netflix"" = 's03e01'" 2117,"###HUMAN: in ATLANTA i would like information on ground transportation, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'ATLANTA' AND ground_service.city_code = city.city_code" 2118,"###HUMAN: GENERATE HTML PAGE SHOWING (mostly) ANIMATED GIFS posted in specified # of days. Creates HTML to paste into blank .html file showing .GIF images (mostly animated GIFs) linked to Q&A posts within 'the past number of days specified'. Looks for the first occurrence of `.gif` in the post body and searches backwards for `http`... INSTRUCTIONS: (1) Run this query, specifying 'number of days back' (before today) to include in results ... (2) Click DOWNLOAD CSV and then SAVE the file ... (3) Change file extension from .CSV to .HTML ... (4) Double-click file to open in browser. Very Buggy. Far from perfect. (Just for fun!) Max ~180 gifs, ###ASSISTANT: SELECT SUBSTRING(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - (CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1), CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1) AS ""gif_url"", CASE WHEN PostTypeId = 2 THEN 'Answer' ELSE 'Question' END AS ""post_type"", Id AS ""post_link"", CreationDate AS ""post_date"" FROM Posts WHERE CreationDate >= DATEADD(d, -30, GETDATE()) AND Body LIKE '%' + @stStart + '%' + @stEnd + '%' COLLATE SQL_Latin1_General_CP1_CI_AS ORDER BY CreationDate DESC" 2119,"###HUMAN: Who was the arranger of ' '?, ###ASSISTANT: SELECT ""Arranger(s)"" FROM table_76990 WHERE ""Title"" = 'ขอโทษ'" 2120,"###HUMAN: Which highest number of Seats has votes of 244,867?, ###ASSISTANT: SELECT MAX(""Seats"") FROM table_52371 WHERE ""Votes"" = '244,867'" 2121,"###HUMAN: When did the peterborough phantoms play at a venue of home?, ###ASSISTANT: SELECT ""Date"" FROM table_62049 WHERE ""Venue"" = 'home' AND ""Opponent"" = 'peterborough phantoms'" 2122,"###HUMAN: How many rooms does each block floor have?, ###ASSISTANT: SELECT COUNT(*), T1.blockfloor FROM block AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor" 2123,"###HUMAN: When is 511 offered next semester ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 511 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016" 2124,"###HUMAN: What name ran for the Prohibition ticket when the Progressive ticket was Eugene M. Travis?, ###ASSISTANT: SELECT prohibition_ticket FROM table_name_14 WHERE progressive_ticket = ""eugene m. travis""" 2125,"###HUMAN: Which Proto-Oceanic has a Proto-Polynesian of *lima?, ###ASSISTANT: SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = ""*lima""" 2126,"###HUMAN: What is the average number of drawn with a difference of 17 and 22 points?, ###ASSISTANT: SELECT AVG(""Drawn"") FROM table_41538 WHERE ""Difference"" = '17' AND ""Points"" = '22'" 2127,"###HUMAN: what is patient 015-7988's first diagnosis until 4 years ago?, ###ASSISTANT: SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-7988')) AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY diagnosis.diagnosistime LIMIT 1" 2128,"###HUMAN: Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode?, ###ASSISTANT: SELECT ""Species Specific"" FROM table_36079 WHERE ""Comparative"" = 'no' AND ""Intra-molecular structure"" = 'no' AND ""Link"" = 'sourcecode'" 2129,"###HUMAN: What is the lowest overall with more than 17 rounds?, ###ASSISTANT: SELECT MIN(""Overall"") FROM table_70973 WHERE ""Round"" > '17'" 2130,"###HUMAN: what is the marital status of patient 19894 in their first hospital encounter., ###ASSISTANT: SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 19894 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1" 2131,"###HUMAN: when did patient 92788 get white blood cells lab test for the last time during their current hospital visit?, ###ASSISTANT: SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'white blood cells') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92788 AND admissions.dischtime IS NULL) ORDER BY labevents.charttime DESC LIMIT 1" 2132,"###HUMAN: What are the number of the names of all the Japanese constructors that have earned more than 5 points?, display in ascending by the x-axis please., ###ASSISTANT: SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = ""Japanese"" AND T2.points > 5 GROUP BY name ORDER BY name" 2133,"###HUMAN: What is the first class team of the player born on 23 February 1973?, ###ASSISTANT: SELECT first_class_team FROM table_name_70 WHERE date_of_birth = ""23 february 1973""" 2134,"###HUMAN: what is the difference in kw between naga and bacolod radio ?, ###ASSISTANT: SELECT ABS((SELECT ""power (kw)"" FROM table_204_164 WHERE ""location"" = 'naga') - (SELECT ""power (kw)"" FROM table_204_164 WHERE ""location"" = 'bacolod'))" 2135,"###HUMAN: For those products with a price between 60 and 120, give me the comparison about manufacturer over the name , and rank x axis from low to high order., ###ASSISTANT: SELECT Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name" 2136,"###HUMAN: WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?, ###ASSISTANT: SELECT AVG(week) FROM table_name_5 WHERE date = ""july 25""" 2137,"###HUMAN: Who won Women's doubles when Zen Yaqiong won Women's singles?, ###ASSISTANT: SELECT ""Women's doubles"" FROM table_71772 WHERE ""Women's singles"" = 'zen yaqiong'" 2138,"###HUMAN: has patient 013-29856 received any diagnoses on the last hospital encounter?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-29856' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1))" 2139,"###HUMAN: Give me the comparison about the average of School_ID over the All_Home , and group by attribute All_Home by a bar chart, I want to display by the x axis from low to high., ###ASSISTANT: SELECT All_Home, AVG(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home" 2140,"###HUMAN: Who had a score of 77-69-70-71=287?, ###ASSISTANT: SELECT player FROM table_name_91 WHERE score = 77 - 69 - 70 - 71 = 287" 2141,"###HUMAN: How tall is the Street address of 07.0 200 east washington street?, ###ASSISTANT: SELECT height_ft___m__ FROM table_name_10 WHERE street_address = ""07.0 200 east washington street""" 2142,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about salary over the job_id , rank by the Y-axis in ascending., ###ASSISTANT: SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY" 2143,"###HUMAN: Which teachers teach in classroom 109? Give me their last names., ###ASSISTANT: SELECT lastname FROM teachers WHERE classroom = 109" 2144,"###HUMAN: what is marital status and diagnoses short title of subject id 42067?, ###ASSISTANT: SELECT demographic.marital_status, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = ""42067""" 2145,"###HUMAN: i need a flight from OAKLAND to SALT LAKE CITY on wednesday departing after 1800, ###ASSISTANT: SELECT DISTINCT flight_id FROM flight WHERE (((departure_time > 1800 AND flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 23 AND DATE_DAYalias0.month_number = 4 AND DATE_DAYalias0.year = 1991))) AND to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE CITYalias1.city_name = 'SALT LAKE CITY'))) AND from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'OAKLAND')))" 2146,"###HUMAN: What is the official target date for the Swedish Krona?, ###ASSISTANT: SELECT ""Official target date"" FROM table_70218 WHERE ""Currency"" = 'swedish krona'" 2147,"###HUMAN: Where was the location for Arras Paul Arras?, ###ASSISTANT: SELECT ""Location"" FROM table_7194 WHERE ""Opponent"" = 'arras paul arras'" 2148,"###HUMAN: What was the record on March 22?, ###ASSISTANT: SELECT ""Record"" FROM table_51373 WHERE ""Date"" = 'march 22'" 2149,"###HUMAN: how many patients died in or befor 2186 with diagnosis icd9 code 42613?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= ""2186.0"" AND diagnoses.icd9_code = ""42613""" 2150,"###HUMAN: Which Name has a League Cup Goals of 0, and League Apps of 1?, ###ASSISTANT: SELECT name FROM table_name_75 WHERE league_cup_goals = 0 AND league_apps = ""1""" 2151,"###HUMAN: on this month/21, was arterial bp [diastolic] of patient 10855 ever less than 61.0?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10855)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') AND chartevents.valuenum < 61.0 AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', chartevents.charttime) = '21'" 2152,"###HUMAN: what was the first time that patient 025-64321 had the maximum sao2 since 08/21/2102?, ###ASSISTANT: SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-64321')) AND NOT vitalperiodic.sao2 IS NULL AND STRFTIME('%y-%m-%d', vitalperiodic.observationtime) >= '2102-08-21' ORDER BY vitalperiodic.sao2 DESC, vitalperiodic.observationtime LIMIT 1" 2153,"###HUMAN: When was the song by Andy Gibb issued?, ###ASSISTANT: SELECT ""Issue Date(s)"" FROM table_39490 WHERE ""Artist"" = 'andy gibb'" 2154,"###HUMAN: give me the number of patients whose insurance is medicaid and procedure icd9 code is 331?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = ""Medicaid"" AND procedures.icd9_code = ""331""" 2155,"###HUMAN: What is every value when Mitchell is 676?, ###ASSISTANT: SELECT value FROM table_1818471_1 WHERE mitchell = 676" 2156,"###HUMAN: what are the top four most common lab tests until 4 years ago?, ###ASSISTANT: SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4" 2157,"###HUMAN: give me the number of patients whose ethnicity is black/cape verdean and primary disease is colangitis?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""BLACK/CAPE VERDEAN"" AND demographic.diagnosis = ""COLANGITIS""" 2158,"###HUMAN: When 142900 is the population what is the highest rank?, ###ASSISTANT: SELECT MAX(""Rank"") FROM table_25794 WHERE ""Population"" = '142900'" 2159,"###HUMAN: With which association did estribillo ii run as Horse 1?, ###ASSISTANT: SELECT ""Association"" FROM table_10578 WHERE ""Horse 1"" = 'estribillo ii'" 2160,"###HUMAN: how many latitudes have 0.081 (sqmi) of water?, ###ASSISTANT: SELECT COUNT(""Latitude"") FROM table_22459 WHERE ""Water (sqmi)"" = '0.081'" 2161,"###HUMAN: What is the amount of trees, that require replacement when district is leninsky?, ###ASSISTANT: SELECT ""Amount of trees, that require replacement"" FROM table_72090 WHERE ""District"" = 'Leninsky'" 2162,"###HUMAN: please give me flights from ATLANTA to BOSTON on wednesday afternoon and thursday morning, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((((flight.departure_time BETWEEN 0 AND 1200) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) OR ((flight.departure_time BETWEEN 1200 AND 1800) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code)) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2163,"###HUMAN: what are the numbers of patients who have had a diuretic - spironolactone two or more times?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'diuretic - spironolactone') GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 >= 2" 2164,"###HUMAN: what television service are in the united kingdom and n is greater than 854.0?, ###ASSISTANT: SELECT television_service FROM table_15887683_15 WHERE country = ""United Kingdom"" AND n° > 854.0" 2165,"###HUMAN: what kinds of ground transportation is available in DALLAS FORT WORTH, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city AS CITY_0, city AS CITY_1, ground_service WHERE (ground_service.city_code = CITY_0.city_code AND CITY_0.city_name = 'DALLAS') OR (ground_service.city_code = CITY_1.city_code AND CITY_1.city_name = 'FORT WORTH')" 2166,"###HUMAN: How many people are women's singles in the season of 2000/01?, ###ASSISTANT: SELECT COUNT(""Womens Singles"") FROM table_30407 WHERE ""Season"" = '2000/01'" 2167,"###HUMAN: Who was in 4th when in 6th is Air Traffic?, ###ASSISTANT: SELECT ""Fourth"" FROM table_72843 WHERE ""Sixth"" = 'Air Traffic'" 2168,"###HUMAN: Which Share has a weekly Rank of 8 and is dated 15 June?, ###ASSISTANT: SELECT ""Share"" FROM table_59559 WHERE ""Weekly rank"" = '8' AND ""Date"" = '15 june'" 2169,"###HUMAN: our lady of the assumption catholic church started the same year as what church ?, ###ASSISTANT: SELECT ""church"" FROM table_203_387 WHERE ""church"" <> 'our lady of the assumption catholic church' AND ""current bldg begun"" = (SELECT ""current bldg begun"" FROM table_203_387 WHERE ""church"" = 'our lady of the assumption catholic church')" 2170,"###HUMAN: how many winnings does jeff gordon have?, ###ASSISTANT: SELECT ""Winnings"" FROM table_3897 WHERE ""Driver"" = 'Jeff Gordon'" 2171,"###HUMAN: What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?, ###ASSISTANT: SELECT ""Time"" FROM table_31826 WHERE ""Team"" = 'triumph' AND ""Rank"" < '4'" 2172,"###HUMAN: did patient 24268 excreted any of his urine . on the first icu visit?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24268) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urine .' AND d_items.linksto = 'outputevents')" 2173,"###HUMAN: University of Minnesota of had what Deloria & Boas?, ###ASSISTANT: SELECT ""Deloria & Boas"" FROM table_6745 WHERE ""University of Minnesota"" = 'ṭ'" 2174,"###HUMAN: What Site had an Attendance of 45,000?, ###ASSISTANT: SELECT site FROM table_name_20 WHERE attendance = ""45,000""" 2175,"###HUMAN: Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19?, ###ASSISTANT: SELECT ""Celebrity"" FROM table_6581 WHERE ""Exited"" = 'day 19' AND ""Famous for"" = 'ex busted member and tv presenter'" 2176,"###HUMAN: Answers to Delphi Posts with Accepted Answer and Fav Count>2. Enter Query Description, ###ASSISTANT: SELECT * FROM Posts WHERE ParentId IN (SELECT Id FROM Posts WHERE FavoriteCount > 2 AND NOT AcceptedAnswerId IS NULL AND Id IN (SELECT PostId FROM PostTags WHERE TagId IN (SELECT Id FROM Tags WHERE TagName LIKE '%delphi%')))" 2177,"###HUMAN: give the number of patients whose drug code is posa200l and lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = ""POSA200L"" AND lab.fluid = ""Urine""" 2178,"###HUMAN: What was the lowest attendance at a week 15 game?, ###ASSISTANT: SELECT MIN(""Attendance"") FROM table_41737 WHERE ""Week"" = '15'" 2179,"###HUMAN: On what date did Fleetcenter have a game lower than 9 with a score of 104-94?, ###ASSISTANT: SELECT ""Date"" FROM table_76887 WHERE ""Location"" = 'fleetcenter' AND ""Game"" < '9' AND ""Score"" = '104-94'" 2180,"###HUMAN: Are there certain professors who do not teach any classes with labs ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM instructor, course, course_offering, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course_offering.offering_id = offering_instructor.offering_id AND instructor.instructor_id = offering_instructor.instructor_id AND NOT instructor.instructor_id IN (SELECT DISTINCT offering_instructor.instructor_id FROM course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, offering_instructor AS OFFERING_INSTRUCTOR WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND COURSEalias0.has_lab = 'Y' AND COURSE_OFFERINGalias0.offering_id = offering_instructor.offering_id)" 2181,"###HUMAN: Which Podium has 1 Race and a Final Place of 5th?, ###ASSISTANT: SELECT podiums FROM table_name_11 WHERE races = ""1"" AND final_placing = ""5th""" 2182,"###HUMAN: Find the minimum salary for the departments whose average salary is above the average payment of all instructors Plot them as bar chart, display in ascending by the Y-axis., ###ASSISTANT: SELECT dept_name, MIN(salary) FROM instructor GROUP BY dept_name ORDER BY MIN(salary)" 2183,"###HUMAN: What is the average lifespan of a baseball player?, ###ASSISTANT: SELECT AVG(death_year - birth_year) FROM player" 2184,"###HUMAN: Which Tournament has a 1984 of 1r?, ###ASSISTANT: SELECT ""Tournament"" FROM table_34849 WHERE ""1984"" = '1r'" 2185,"###HUMAN: How many wines are there for each grape, and I want to display by the X in ascending., ###ASSISTANT: SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape" 2186,"###HUMAN: Which Bronze is the lowest one that has a Rank of 3, and a Silver smaller than 2?, ###ASSISTANT: SELECT MIN(bronze) FROM table_name_7 WHERE rank = ""3"" AND silver < 2" 2187,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and manager_id in a bar chart, display by the bar in descending please., ###ASSISTANT: SELECT EMAIL, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL DESC" 2188,"###HUMAN: provide the number of patients whose primary disease is ruq pain and year of birth is less than 2041?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""RUQ PAIN"" AND demographic.dob_year < ""2041""" 2189,"###HUMAN: What is the rank of Manuel Cortina Mart nez?, ###ASSISTANT: SELECT rank FROM table_name_46 WHERE athletes = ""manuel cortina martínez""" 2190,"###HUMAN: how many patients had a diagnosis short title preterm nec 2000-2499g and ih as the drug route?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = ""Preterm NEC 2000-2499g"" AND prescriptions.route = ""IH""" 2191,"###HUMAN: Pie. what are the different parties of representative? Show the party name and the number of representatives in each party., ###ASSISTANT: SELECT Party, COUNT(*) FROM representative GROUP BY Party" 2192,"###HUMAN: Which party does the incumbent first elected in 1994 belong to?, ###ASSISTANT: SELECT ""Party"" FROM table_18113 WHERE ""First elected"" = '1994'" 2193,"###HUMAN: What is the Place that has a Date of 22 august 2004?, ###ASSISTANT: SELECT place FROM table_name_92 WHERE date = ""22 august 2004""" 2194,"###HUMAN: How many campuses exist are in the county of LA?, ###ASSISTANT: SELECT COUNT(*) FROM campuses WHERE county = ""Los Angeles""" 2195,"###HUMAN: Who was the winner for the Rome to Teramo course?, ###ASSISTANT: SELECT winner FROM table_name_97 WHERE course = ""rome to teramo""" 2196,"###HUMAN: How many losses does Central Blues have?, ###ASSISTANT: SELECT MAX(losses) FROM table_26200568_16 WHERE club = ""Central Blues""" 2197,"###HUMAN: What is the first year of the European Championships competition?, ###ASSISTANT: SELECT MIN(""Year"") FROM table_68767 WHERE ""Competition"" = 'european championships'" 2198,"###HUMAN: What is the number of the tax supervising and conservation bill?, ###ASSISTANT: SELECT MIN(meas_num) FROM table_256286_23 WHERE description = ""Tax Supervising and Conservation Bill""" 2199,"###HUMAN: What Player has more than 1 Touchdowns with 0 Extra Points and less than 50 Points?, ###ASSISTANT: SELECT player FROM table_name_61 WHERE touchdowns > 1 AND extra_points = 0 AND points < 50" 2200,"###HUMAN: What is the Score with a Home with hornets?, ###ASSISTANT: SELECT score FROM table_name_54 WHERE home = ""hornets""" 2201,"###HUMAN: what is the number of patients whose diagnoses long title is surgical operation with anastomosis, bypass, or graft, with natural or artificial tissues used as implant causing abnormal patient reaction, or later complication, without mention of misadventure at time of operation and drug type is base?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = ""Surgical operation with anastomosis, bypass, or graft, with natural or artificial tissues used as implant causing abnormal patient reaction, or later complication, without mention of misadventure at time of operation"" AND prescriptions.drug_type = ""BASE""" 2202,"###HUMAN: Which team classification has malaysian team classification of mncf continental team?, ###ASSISTANT: SELECT ""Team classification"" FROM table_2615 WHERE ""Malaysian team classification"" = 'MNCF Continental Team'" 2203,"###HUMAN: How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4?, ###ASSISTANT: SELECT SUM(cuts_made) FROM table_name_62 WHERE wins < 1 AND top_5 = 1 AND top_10 > 4" 2204,"###HUMAN: Give me a histogram, that simply displays the last name of the employee and the corresponding manager id, could you show by the x-axis in asc?, ###ASSISTANT: SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY LAST_NAME" 2205,"###HUMAN: Which Wins has Podiums of 0, and a Series of masters of formula 3?, ###ASSISTANT: SELECT wins FROM table_name_40 WHERE podiums = ""0"" AND series = ""masters of formula 3""" 2206,"###HUMAN: What team picked 80?, ###ASSISTANT: SELECT team FROM table_name_94 WHERE pick = 80" 2207,"###HUMAN: what are the three most frequent drugs that were prescribed to female patients of the 50s within 2 months after having been diagnosed with drug-induced delirium?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'drug-induced delirium')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id IN (SELECT patients.subject_id FROM patients WHERE patients.gender = 'f') AND admissions.age BETWEEN 50 AND 59) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3" 2208,"###HUMAN: Who directed the episode with production code 177605?, ###ASSISTANT: SELECT ""Directed by"" FROM table_73969 WHERE ""Production code"" = '177605'" 2209,"###HUMAN: How many enrolment students in each month? Return a bar chart binning date of enrolment by month interval, and I want to order in asc by the y-axis., ###ASSISTANT: SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment ORDER BY COUNT(date_of_enrolment)" 2210,"###HUMAN: how much does norepinephrine 4 mg/250 ml ns cost to take?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'norepinephrine 4 mg/250 ml ns')" 2211,"###HUMAN: give me the number of patients whose primary disease is liver transplant and days of hospital stay is greater than 8?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""LIVER TRANSPLANT"" AND demographic.days_stay > ""8""" 2212,"###HUMAN: R/A Flags Before and After HNQ., ###ASSISTANT: SELECT COUNT(*) FROM Votes WHERE VoteTypeId = 4 AND CreationDate > '2018-10-18 00:00:00.000'" 2213,"###HUMAN: What was the margin of victory for the Mississippi Gulf Resort Classic?, ###ASSISTANT: SELECT ""Margin of victory"" FROM table_68002 WHERE ""Tournament"" = 'mississippi gulf resort classic'" 2214,"###HUMAN: who was the last ranked competitor in group a ?, ###ASSISTANT: SELECT ""name"" FROM table_204_741 ORDER BY ""rank"" DESC LIMIT 1" 2215,"###HUMAN: How many events resulted in a top-25 less than 2?, ###ASSISTANT: SELECT COUNT(""Events"") FROM table_38401 WHERE ""Top-25"" < '2'" 2216,"###HUMAN: What are the names of all genres in alphabetical order, combined with its ratings?, ###ASSISTANT: SELECT g_name, rating FROM genre ORDER BY g_name" 2217,"###HUMAN: What is the name of the driver in 1955?, ###ASSISTANT: SELECT ""Driver"" FROM table_57940 WHERE ""Year"" = '1955'" 2218,"###HUMAN: until 09/2103 has patient 3118 had any drain out #1 jackson pratt output?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3118)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'drain out #1 jackson pratt' AND d_items.linksto = 'outputevents') AND STRFTIME('%y-%m', outputevents.charttime) <= '2103-09'" 2219,"###HUMAN: what was the last baekje temple ?, ###ASSISTANT: SELECT ""temple name"" FROM table_204_465 ORDER BY ""period of reign"" DESC LIMIT 1" 2220,"###HUMAN: What was the record in the game against Eskimos?, ###ASSISTANT: SELECT record FROM table_23685152_2 WHERE opponent = ""Eskimos""" 2221,"###HUMAN: What courses I am required to take before MUSED 370 ?, ###ASSISTANT: SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT_RECORDalias0.student_id = 1) AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'MUSED' AND COURSE_1.number = 370" 2222,"###HUMAN: what is the date when the opponent# is iowa?, ###ASSISTANT: SELECT date FROM table_name_42 WHERE opponent_number = ""iowa""" 2223,"###HUMAN: Return a bar chart on how many hours do the students spend studying in each department?, could you sort in descending by the sum stu hrs please?, ###ASSISTANT: SELECT DEPT_CODE, SUM(STU_HRS) FROM STUDENT GROUP BY DEPT_CODE ORDER BY SUM(STU_HRS) DESC" 2224,"###HUMAN: Show id from each meter 400, and sort y-axis in ascending order., ###ASSISTANT: SELECT meter_400, ID FROM swimmer ORDER BY ID" 2225,"###HUMAN: What class in the word with part 4 'giheizan'?, ###ASSISTANT: SELECT class FROM table_1745843_8 WHERE part_4 = ""giheizan""" 2226,"###HUMAN: What was the score with the opponent being New Zealand Warriors?, ###ASSISTANT: SELECT score FROM table_name_67 WHERE opponent = ""new zealand warriors""" 2227,"###HUMAN: What shooter has wc munich as the event, and 8 as the rank points?, ###ASSISTANT: SELECT shooter FROM table_name_43 WHERE event = ""wc munich"" AND rank_points = ""8""" 2228,"###HUMAN: What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?, ###ASSISTANT: SELECT ""T. Papadopoulos"" FROM table_69604 WHERE ""I. Kasoulidis"" = '27.1%'" 2229,"###HUMAN: Give the maximum product price for each product type in a pie chart., ###ASSISTANT: SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code" 2230,"###HUMAN: What is the average top-25 value for majors that have more than 0 wins?, ###ASSISTANT: SELECT AVG(""Top-25"") FROM table_51787 WHERE ""Wins"" > '0'" 2231,"###HUMAN: were patient 018-47575 in the emergency room?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '018-47575' AND patient.hospitaladmitsource = 'emergency department'" 2232,"###HUMAN: What team played in front of 28,536 at an away stadium?, ###ASSISTANT: SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536" 2233,"###HUMAN: which nationality is top on the chart, ###ASSISTANT: SELECT ""nationality"" FROM table_204_866 WHERE id = 1" 2234,"###HUMAN: What is the number of bronze when the total is smaller than 1?, ###ASSISTANT: SELECT AVG(bronze) FROM table_name_58 WHERE total < 1" 2235,"###HUMAN: which club had a total of only four wins ?, ###ASSISTANT: SELECT ""club"" FROM table_204_135 WHERE ""wins"" = 4" 2236,"###HUMAN: What is the average cap number in scotland in 1986 1998 leass than 69?, ###ASSISTANT: SELECT COUNT(""Average"") FROM table_54656 WHERE ""Caps"" < '69' AND ""Scotland career"" = '1986–1998'" 2237,"###HUMAN: What school has rebels as their mascot?, ###ASSISTANT: SELECT school FROM table_name_8 WHERE mascot = ""rebels""" 2238,"###HUMAN: Stacked bar of date in locaton to and the number of date in locaton to colored by Location_Code, order by the Y in ascending., ###ASSISTANT: SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Location_Code ORDER BY COUNT(Date_in_Locaton_To)" 2239,"###HUMAN: Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver?, ###ASSISTANT: SELECT SUM(silver) FROM table_name_69 WHERE gold = 0 AND bronze < 0" 2240,"###HUMAN: Who is the candidate that had 10 fired in week 2 (1-27-2005)?, ###ASSISTANT: SELECT candidate FROM table_name_45 WHERE result = ""10 fired in week 2 (1-27-2005)""" 2241,"###HUMAN: List the last name of the students who do not have any food type allergy and count them in a bart chart., ###ASSISTANT: SELECT LName, COUNT(LName) FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.AllergyType = ""food"") GROUP BY LName" 2242,"###HUMAN: provide the number of patients who died primarily due to fall on stair/step nec., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = ""1"" AND diagnoses.short_title = ""Fall on stair/step NEC""" 2243,"###HUMAN: Bronze smaller than 5, and a Silver larger than 0 is which nation?, ###ASSISTANT: SELECT nation FROM table_name_66 WHERE bronze < 5 AND silver > 0" 2244,"###HUMAN: Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?, ###ASSISTANT: SELECT ""Constructor"" FROM table_57592 WHERE ""Tyre"" = 'c' AND ""Pole position"" = 'eugenio castellotti'" 2245,"###HUMAN: tell me the price of a procedure called agent specific therapy - calcium channel blockers overdose?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'agent specific therapy - calcium channel blockers overdose')" 2246,"###HUMAN: Which years had a jersey number 55, ###ASSISTANT: SELECT ""Years for Rockets"" FROM table_17156 WHERE ""No.(s)"" = '55'" 2247,"###HUMAN: What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant?, ###ASSISTANT: SELECT MIN(year) FROM table_name_40 WHERE points < 3 AND entrant = ""parmalat forti ford""" 2248,"###HUMAN: out of all their times , which one was fastest ?, ###ASSISTANT: SELECT ""time"" FROM table_204_547 ORDER BY ""time"" LIMIT 1" 2249,"###HUMAN: Which flight had an aircraft of vickers viscount type 794?, ###ASSISTANT: SELECT ""Flight"" FROM table_47704 WHERE ""Aircraft"" = 'vickers viscount type 794'" 2250,"###HUMAN: Who held the Communications Rep position in 2011?, ###ASSISTANT: SELECT 2011 FROM table_name_65 WHERE position = ""communications rep""" 2251,"###HUMAN: What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?, ###ASSISTANT: SELECT ""Latitude"" FROM table_64769 WHERE ""Land ( sqmi )"" < '34.401' AND ""GEO ID"" < '3807157722' AND ""Longitude"" = '-98.475995'" 2252,"###HUMAN: For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the headquarter , and group by attribute headquarter, display y axis from high to low order., ###ASSISTANT: SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code DESC" 2253,"###HUMAN: Who was the runner up the season that Sagawa Express came in fourth?, ###ASSISTANT: SELECT ""Runner-up"" FROM table_31143 WHERE ""Fourth place"" = 'Sagawa Express'" 2254,"###HUMAN: when is the first time that patient 002-52932 has had a heartrate measured until 03/10/2100?, ###ASSISTANT: SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-52932')) AND NOT vitalperiodic.heartrate IS NULL AND STRFTIME('%y-%m-%d', vitalperiodic.observationtime) <= '2100-03-10' ORDER BY vitalperiodic.observationtime LIMIT 1" 2255,"###HUMAN: Name the women's doubles for frederik kj rholm elsner, ###ASSISTANT: SELECT ""Women's doubles"" FROM table_15026 WHERE ""Men's singles"" = 'frederik kjærholm elsner'" 2256,"###HUMAN: On February 26, who was the leading scorer?, ###ASSISTANT: SELECT ""Leading scorer"" FROM table_56464 WHERE ""Date"" = 'february 26'" 2257,"###HUMAN: how many patients are below 49 years of age and admitted under the year 2198?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < ""49"" AND demographic.admityear < ""2198""" 2258,"###HUMAN: What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?, ###ASSISTANT: SELECT COUNT(top_10) FROM table_name_87 WHERE events > 16 AND top_5 > 5" 2259,"###HUMAN: give me the number of patients whose days of hospital stay is greater than 26 and diagnoses short title is joint replaced knee?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > ""26"" AND diagnoses.short_title = ""Joint replaced knee""" 2260,"###HUMAN: In the election earlier than 2012 how many Inhabitants had a Party of five star movement?, ###ASSISTANT: SELECT SUM(inhabitants) FROM table_name_57 WHERE party = ""five star movement"" AND election < 2012" 2261,"###HUMAN: In what Distance has a Venue of sale?, ###ASSISTANT: SELECT distance FROM table_name_36 WHERE venue = ""sale""" 2262,"###HUMAN: List the number of the phone numbers of all employees., ###ASSISTANT: SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone" 2263,"###HUMAN: what is the difference in percentage of lead shot at 25 yards between cylinder and skeet 1 barrels ?, ###ASSISTANT: SELECT ABS((SELECT ""percentage of lead shot in 30-inch circle at 40 yards"" FROM table_203_112 WHERE ""choke"" = 'cylinder') - (SELECT ""percentage of lead shot in 30-inch circle at 40 yards"" FROM table_203_112 WHERE ""choke"" = 'skeet 1'))" 2264,"###HUMAN: What is the record of game 42, which had a clemmensen decision?, ###ASSISTANT: SELECT ""Record"" FROM table_44824 WHERE ""Decision"" = 'clemmensen' AND ""Game"" = '42'" 2265,"###HUMAN: give me the number of patients whose ethnicity is asian and age is less than 80?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""ASIAN"" AND demographic.age < ""80""" 2266,"###HUMAN: Find the enrollment date for all the tests that have 'Pass' result, and count them by a bar chart, sort by the Y from low to high please., ###ASSISTANT: SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass"" ORDER BY COUNT(date_of_enrolment)" 2267,"###HUMAN: What is the description and code of the type of service that is performed the most often?, ###ASSISTANT: SELECT T1.service_type_description, T1.service_type_code FROM ref_service_types AS T1 JOIN services AS T2 ON T1.service_type_code = T2.service_type_code GROUP BY T1.service_type_code ORDER BY COUNT(*) DESC LIMIT 1" 2268,"###HUMAN: What is the Attendance of New Zealand Scores in bold?, ###ASSISTANT: SELECT ""Attendance"" FROM table_65097 WHERE ""Date"" = 'new zealand scores in bold'" 2269,"###HUMAN: What code is used to represent the currency of Croatian Kuna?, ###ASSISTANT: SELECT code FROM table_name_34 WHERE currency = ""croatian kuna""" 2270,"###HUMAN: Give me a bar chart for mean max(score) of each year, and sort by the y-axis in ascending., ###ASSISTANT: SELECT Year, AVG(MAX(Score)) FROM wine ORDER BY AVG(MAX(Score))" 2271,"###HUMAN: what is the name of a procedure that patient 73713 has been given for two times since 70 months ago?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73713) AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-70 month') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2)" 2272,"###HUMAN: What is the number of tries for that has 30 tries against?, ###ASSISTANT: SELECT ""Tries for"" FROM table_69514 WHERE ""Tries against"" = '30'" 2273,"###HUMAN: Who is the player who had more than 1,052 points?, ###ASSISTANT: SELECT ""Player"" FROM table_34511 WHERE ""Points"" > '1,052'" 2274,"###HUMAN: how long did it take the german team to finish the race ?, ###ASSISTANT: SELECT ""time"" FROM table_203_160 WHERE ""nation"" = 'germany'" 2275,"###HUMAN: When Connie Shaw took GREEK 695 , who was the teacher ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.department = 'GREEK' AND course.number = 695 AND student.firstname LIKE 'Connie' AND student.lastname LIKE 'Shaw'" 2276,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, and rank sum salary from high to low order., ###ASSISTANT: SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(SALARY) DESC" 2277,"###HUMAN: what is the game when on november 27?, ###ASSISTANT: SELECT SUM(""Game"") FROM table_77372 WHERE ""November"" = '27'" 2278,"###HUMAN: What is the proportion of the number of schools in different counties?, ###ASSISTANT: SELECT County, COUNT(*) FROM School GROUP BY County" 2279,"###HUMAN: provide the number of patients whose gender is f and drug name is phenytoin sodium?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = ""F"" AND prescriptions.drug = ""Phenytoin Sodium""" 2280,"###HUMAN: what was year was the first arizona license plate made ?, ###ASSISTANT: SELECT MIN(""first issued"") FROM table_203_82" 2281,"###HUMAN: Which Lead has a Nation of switzerland?, ###ASSISTANT: SELECT lead FROM table_name_15 WHERE nation = ""switzerland""" 2282,"###HUMAN: What is the smallest draws for a player larger than 2 with a 100% wins?, ###ASSISTANT: SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100" 2283,"###HUMAN: How many students that has a GPA lower than average? Show me a pie chart grouping by student's first name., ###ASSISTANT: SELECT STU_FNAME, COUNT(STU_FNAME) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME" 2284,"###HUMAN: Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount., ###ASSISTANT: SELECT amount_settled, amount_claimed FROM claims ORDER BY amount_settled LIMIT 1" 2285,"###HUMAN: What machine has 5 as the place?, ###ASSISTANT: SELECT ""Machine"" FROM table_40931 WHERE ""Place"" = '5'" 2286,"###HUMAN: How many students participated in tryouts for each college by descennding count?, ###ASSISTANT: SELECT COUNT(*), cname FROM tryout GROUP BY cname ORDER BY COUNT(*) DESC" 2287,"###HUMAN: When momoiro clover z is the vocalist how many japanese titles are there?, ###ASSISTANT: SELECT COUNT(""Japanese title"") FROM table_2460 WHERE ""Vocalist"" = 'Momoiro Clover Z'" 2288,"###HUMAN: What was the attendance at war memorial stadium?, ###ASSISTANT: SELECT ""Attenmdance"" FROM table_4855 WHERE ""Stadium"" = 'war memorial stadium'" 2289,"###HUMAN: What's the total amount of USSR that has more than 0 gold, less than 85 silver and more than 6 bronze?, ###ASSISTANT: SELECT MIN(""Total"") FROM table_14012 WHERE ""Gold"" > '0' AND ""Bronze"" > '6' AND ""Nation"" = 'ussr' AND ""Silver"" < '85'" 2290,"###HUMAN: What is the position of the team that played at the venue, Central, Gomel?, ###ASSISTANT: SELECT position_in_1999 FROM table_name_71 WHERE venue = ""central, gomel""" 2291,"###HUMAN: Which player had a total of 152?, ###ASSISTANT: SELECT player FROM table_name_60 WHERE total = ""152""" 2292,"###HUMAN: For patient Kurt Buczek, specify the location he was admitted to and his death status, ###ASSISTANT: SELECT demographic.expire_flag, demographic.admission_location FROM demographic WHERE demographic.name = ""Kurt Buczek""" 2293,"###HUMAN: Who had the fastest lap when the winning driver was kristian ghedina?, ###ASSISTANT: SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = ""Kristian Ghedina""" 2294,"###HUMAN: In what district was the successor seated August 31, 1943?, ###ASSISTANT: SELECT ""District"" FROM table_24498 WHERE ""Date successor seated"" = 'August 31, 1943'" 2295,"###HUMAN: How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?, ###ASSISTANT: SELECT COUNT(""Silver"") FROM table_42700 WHERE ""Gold"" > '2' AND ""Bronze"" < '35' AND ""Nation"" = 'china' AND ""Total"" > '26'" 2296,"###HUMAN: What are all the distinct payment types?, ###ASSISTANT: SELECT DISTINCT payment_type_code FROM payments" 2297,"###HUMAN: what is the name of the drug which patient 012-4131 was prescribed during the same day after having received a therapeutic antibacterials - third generation cephalosporin procedure until 08/2105?, ###ASSISTANT: SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-4131') AND treatment.treatmentname = 'therapeutic antibacterials - third generation cephalosporin' AND STRFTIME('%y-%m', treatment.treatmenttime) <= '2105-08') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-4131') AND STRFTIME('%y-%m', medication.drugstarttime) <= '2105-08') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.drugstarttime AND DATETIME(t1.treatmenttime, 'start of day') = DATETIME(t2.drugstarttime, 'start of day')" 2298,"###HUMAN: What year was the 4th Place Team of the Wyoming Angus, Johnstown, Co?, ###ASSISTANT: SELECT COUNT(""Year"") FROM table_64334 WHERE ""4th Place Team"" = 'wyoming angus, johnstown, co'" 2299,"###HUMAN: TOP 50 users from Bangladesh. Lists the top 50 users (ranked by reputation) that are located in Calicut/Kozhikode, Kerala, India according to their profile information. Thanks to http://data.stackexchange.com/stackoverflow/qe/1157/top-100-users-from-greece, ###ASSISTANT: SELECT Id, DisplayName, Reputation, WebsiteUrl, Location, LastAccessDate FROM Users WHERE Location LIKE '%Bangladesh%' ORDER BY Reputation DESC LIMIT 150" 2300,"###HUMAN: I want the sum of year for mark barron, ###ASSISTANT: SELECT SUM(year) FROM table_name_11 WHERE player_name = ""mark barron""" 2301,"###HUMAN: What year was the team Club of atl tico de san juan fc who plays at hiram bithorn stadium founded., ###ASSISTANT: SELECT SUM(founded) FROM table_name_18 WHERE stadium = ""hiram bithorn stadium"" AND club = ""atlético de san juan fc""" 2302,"###HUMAN: What was the away team that faced Carlton?, ###ASSISTANT: SELECT ""Away team"" FROM table_32245 WHERE ""Home team"" = 'carlton'" 2303,"###HUMAN: What is the highest number of goals Eisb ren Berlin had along with 13 points and 10 assists?, ###ASSISTANT: SELECT MAX(""Goals"") FROM table_48215 WHERE ""Points"" = '13' AND ""Assists"" = '10' AND ""Club"" = 'eisbären berlin'" 2304,"###HUMAN: Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000?, ###ASSISTANT: SELECT MIN(""Rank"") FROM table_64376 WHERE ""Show"" = 'alcatraz' AND ""Number of Viewers"" > '1,229,000'" 2305,"###HUMAN: Which Format has a Date of 14 october 2008, and a Label of eagle eye media?, ###ASSISTANT: SELECT ""Format"" FROM table_60538 WHERE ""Date"" = '14 october 2008' AND ""Label"" = 'eagle eye media'" 2306,"###HUMAN: Which study included autoimmune disease and inflammation?, ###ASSISTANT: SELECT name FROM table_name_41 WHERE indication = ""autoimmune disease and inflammation""" 2307,"###HUMAN: What title was released in 1971?, ###ASSISTANT: SELECT title FROM table_name_54 WHERE year = 1971" 2308,"###HUMAN: what was the last gabapentin 100 mg po caps prescription time for patient 016-38131 in this month., ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131')) AND medication.drugname = 'gabapentin 100 mg po caps' AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY medication.drugstarttime DESC LIMIT 1" 2309,"###HUMAN: Who is the club that has 30 points?, ###ASSISTANT: SELECT club FROM table_13564637_5 WHERE points = ""30""" 2310,"###HUMAN: Average frequency with ERP W of 62?, ###ASSISTANT: SELECT AVG(""Frequency MHz"") FROM table_47008 WHERE ""ERP W"" = '62'" 2311,"###HUMAN: Total users added, by month, with reputation at least 50., ###ASSISTANT: SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS ""month"", COUNT(*) AS ""# Users Added"", COUNT(IIF(u.Reputation >= 50, 1, NULL)) AS ""# Users Added (current rep >= 50)"" FROM Users AS u GROUP BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) ORDER BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0)" 2312,"###HUMAN: give the description of diagnoses icd9 code e8120., ###ASSISTANT: SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = ""E8120""" 2313,"###HUMAN: how many times patient 006-50368 the last year visited the hospital., ###ASSISTANT: SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '006-50368' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')" 2314,"###HUMAN: what were the specimen tests that patient 52456 first had in the last month?, ###ASSISTANT: SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52456) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY microbiologyevents.charttime LIMIT 1" 2315,"###HUMAN: when did patient 26156 come for the last time to the hospital?, ###ASSISTANT: SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 26156 ORDER BY admissions.admittime DESC LIMIT 1" 2316,"###HUMAN: how many competitions did jifar participate in before joining the 10000m ?, ###ASSISTANT: SELECT COUNT(""competition"") FROM table_203_189 WHERE ""notes"" <> 10000" 2317,"###HUMAN: When did the term end for the U.S. Marine Corps?, ###ASSISTANT: SELECT ""Term ended"" FROM table_50091 WHERE ""Branch"" = 'u.s. marine corps'" 2318,"###HUMAN: What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor. Visualize by pie chart., ###ASSISTANT: SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor" 2319,"###HUMAN: Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?, ###ASSISTANT: SELECT score FROM table_name_2 WHERE couple = ""jason & edyta"" AND style = ""freestyle""" 2320,"###HUMAN: Show the ids of all employees who have either destroyed a document or made an authorization to do this., ###ASSISTANT: SELECT destroyed_by_employee_id FROM documents_to_be_destroyed UNION SELECT destruction_authorised_by_employee_id FROM documents_to_be_destroyed" 2321,"###HUMAN: what are the five most commonly given laboratory tests for patients who previously had a partial pancreatect nec within the same month?, ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'partial pancreatect nec')) AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 5)" 2322,"###HUMAN: What daft pick number is the player coming from Regina Pats (WHL)?, ###ASSISTANT: SELECT pick__number FROM table_2850912_1 WHERE college_junior_club_team = ""Regina Pats (WHL)""" 2323,"###HUMAN: What is the Rank of the Character with Tenure of 2011?, ###ASSISTANT: SELECT rank FROM table_name_2 WHERE tenure = ""2011""" 2324,"###HUMAN: in how many dates the game was 2, ###ASSISTANT: SELECT COUNT(""Date"") FROM table_31453 WHERE ""Game"" = '2'" 2325,"###HUMAN: What is the Year commissioned of the power station with a Gross head of 60 metres and Average annual output of less than 59 million KWh?, ###ASSISTANT: SELECT MAX(""Year commissioned"") FROM table_76085 WHERE ""Gross head (metres)"" = '60' AND ""Average annual output (million KWh)"" < '59'" 2326,"###HUMAN: Which opponent has a Season of 2010/11?, ###ASSISTANT: SELECT opponent FROM table_name_7 WHERE season = ""2010/11""" 2327,"###HUMAN: What's the average number of wins for those with less than 2 byes?, ###ASSISTANT: SELECT AVG(""Wins"") FROM table_61970 WHERE ""Byes"" < '2'" 2328,"###HUMAN: Calculate the minimum age of patients who had coronary artery disease or a coronary artery bypass graft had myomectomy/sda as their primary disease and died before the year 2138, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = ""CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA"" AND demographic.dod_year < ""2138.0""" 2329,"###HUMAN: What are the names and ages of editors? Show me a bar chart., ###ASSISTANT: SELECT Name, Age FROM editor" 2330,"###HUMAN: Show me the proportion on what are the names and number of hours spent training for each player who trains for less than 1500 hours?, ###ASSISTANT: SELECT pName, HS FROM Player WHERE HS < 1500" 2331,"###HUMAN: For those records from the products and each product's manufacturer, show me about the distribution of founder and the amount of founder , and group by attribute founder in a bar chart, and list total number in desc order please., ###ASSISTANT: SELECT Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY COUNT(Founder) DESC" 2332,"###HUMAN: with a record of 73-82 what was the date?, ###ASSISTANT: SELECT ""Date"" FROM table_11261 WHERE ""Record"" = '73-82'" 2333,"###HUMAN: who is at the top out of the riders ?, ###ASSISTANT: SELECT ""rider"" FROM table_203_166 ORDER BY ""pos"" LIMIT 1" 2334,"###HUMAN: questions answers per hour for user., ###ASSISTANT: SELECT TIME_TO_STR(CreationDate, '%h') AS hour, COUNT(CASE WHEN PostTypeId = 1 THEN 1 END) AS questions, COUNT(CASE WHEN PostTypeId = 2 THEN 1 END) AS answers FROM Posts WHERE PostTypeId IN (1, 2) GROUP BY TIME_TO_STR(CreationDate, '%h')" 2335,"###HUMAN: For those records from the products and each product's manufacturer, find name and the average of revenue , and group by attribute name, and visualize them by a bar chart., ###ASSISTANT: SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name" 2336,"###HUMAN: what are the different card types, and how many transactions have been made with each?, ###ASSISTANT: SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code" 2337,"###HUMAN: What is To Par, when Player is 'Tommy Bolt'?, ###ASSISTANT: SELECT to_par FROM table_name_55 WHERE player = ""tommy bolt""" 2338,"###HUMAN: Name the maximum wins for 68.75%, ###ASSISTANT: SELECT MAX(""Wins"") FROM table_20326 WHERE ""Success Rate"" = '68.75%'" 2339,"###HUMAN: What is the home team that played on M.C.G. grounds?, ###ASSISTANT: SELECT home_team FROM table_16388398_2 WHERE ground = ""M.C.G.""" 2340,"###HUMAN: For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and show Y in desc order., ###ASSISTANT: SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) DESC" 2341,"###HUMAN: What are the upper-level elective options for the Spring and Summer ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'EECS' AND program_course.category LIKE '%ULCS%' AND semester.semester IN ('SP', 'SS', 'SU') AND semester.year = 2016" 2342,"###HUMAN: How many sitting Representatives are there in the New York 10 polling area?, ###ASSISTANT: SELECT COUNT(""Incumbent"") FROM table_18607 WHERE ""District"" = 'New York 10'" 2343,"###HUMAN: What is the Date of the Competition with a Result of 3 0?, ###ASSISTANT: SELECT date FROM table_name_75 WHERE result = ""3–0""" 2344,"###HUMAN: Who scored the most points in Game 49?, ###ASSISTANT: SELECT high_points FROM table_11960407_5 WHERE game = 49" 2345,"###HUMAN: Which entrant has a Mclaren m7c Chassis?, ###ASSISTANT: SELECT ""Entrant"" FROM table_14649 WHERE ""Chassis"" = 'mclaren m7c'" 2346,"###HUMAN: On what date was the opponent the Miami Dolphins?, ###ASSISTANT: SELECT date FROM table_name_30 WHERE opponent = ""miami dolphins""" 2347,"###HUMAN: Number of questions with ViewCount > nviews., ###ASSISTANT: WITH TaggedPosts AS (SELECT ViewCount FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%##tagSubstring?python##%'), MostViewedQuestions AS (SELECT Count = COUNT(*) FROM TaggedPosts WHERE ViewCount > '##nviews:int?10000##') SELECT Count, CAST(Count AS FLOAT(20, 5)) * 100.0 / (SELECT COUNT(*) FROM TaggedPosts) AS Percentile FROM MostViewedQuestions" 2348,"###HUMAN: What is the tally with a total larger than 8, Waterford was the opposition?, ###ASSISTANT: SELECT ""Tally"" FROM table_13960 WHERE ""Total"" > '8' AND ""Opposition"" = 'waterford'" 2349,"###HUMAN: Which courses involve parts of Integ Microsys Lab and Health Care Markets and Public Policies , can you show me ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Health Care Markets and Public Policies%' OR course.description LIKE '%Health Care Markets and Public Policies%' OR course.name LIKE '%Health Care Markets and Public Policies%') AND (area.area LIKE '%Integ Microsys Lab%' OR course.description LIKE '%Integ Microsys Lab%' OR course.name LIKE '%Integ Microsys Lab%')" 2350,"###HUMAN: What is the weight of the player from club panionios g.c. and was born on 1975-05-21?, ###ASSISTANT: SELECT ""Weight"" FROM table_79053 WHERE ""Club"" = 'panionios g.c.' AND ""Date of Birth"" = '1975-05-21'" 2351,"###HUMAN: What player was drafted by the philadelphia union?, ###ASSISTANT: SELECT ""Player"" FROM table_27735 WHERE ""MLS Team"" = 'Philadelphia Union'" 2352,"###HUMAN: What are the years of participation for pickerington north?, ###ASSISTANT: SELECT ""Years of Participation"" FROM table_21685 WHERE ""School"" = 'Pickerington North'" 2353,"###HUMAN: What is the average lap of the race with a 23 finish?, ###ASSISTANT: SELECT AVG(""Laps"") FROM table_15315 WHERE ""Finish"" = '23'" 2354,"###HUMAN: when did patient 015-910 come into the hospital for the last time during this year?, ###ASSISTANT: SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '015-910' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1" 2355,"###HUMAN: Tell what has the App(GS/Sub) of 14 (8/6), ###ASSISTANT: SELECT name FROM table_name_70 WHERE app_gs_sub_ = ""14 (8/6)""" 2356,"###HUMAN: For the verb dhoa, what is the 2VF?, ###ASSISTANT: SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = ""dhoa""" 2357,"###HUMAN: Which episode 4 has a Star of anna powierza?, ###ASSISTANT: SELECT episode_4 FROM table_name_87 WHERE star = ""anna powierza""" 2358,"###HUMAN: Which Season has 95 Points?, ###ASSISTANT: SELECT ""Season"" FROM table_14917 WHERE ""Points"" = '95'" 2359,"###HUMAN: what chart position did the single with david bowie reach in the us ?, ###ASSISTANT: SELECT ""peak chart positions\nus"" FROM table_200_22 WHERE ""single"" = 'with david bowie'" 2360,"###HUMAN: give me the number of patients whose year of death is less than or equal to 2132 and drug name is sertraline?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= ""2132.0"" AND prescriptions.drug = ""Sertraline""" 2361,"###HUMAN: What is Team, when Game is 77?, ###ASSISTANT: SELECT team FROM table_name_90 WHERE game = 77" 2362,"###HUMAN: Which city has spanish news on the website ultimahora.com ?, ###ASSISTANT: SELECT ""City"" FROM table_70836 WHERE ""Language"" = 'spanish' AND ""Website"" = 'ultimahora.com'" 2363,"###HUMAN: Who is sezen aksu's producer?, ###ASSISTANT: SELECT ""Producer(s)"" FROM table_47475 WHERE ""Songwriter(s)"" = 'sezen aksu'" 2364,"###HUMAN: What was the purpose of the Quay test blast?, ###ASSISTANT: SELECT purpose FROM table_name_54 WHERE name = ""quay""" 2365,"###HUMAN: What hour of the day I post the most answers., ###ASSISTANT: SELECT TIME_TO_STR(p.CreationDate, '%h'), COUNT(*) FROM Posts AS p WHERE p.OwnerUserId = @UserId AND p.PostTypeId = 2 GROUP BY TIME_TO_STR(p.CreationDate, '%h')" 2366,"###HUMAN: What was Berlin when fk pirmasens was S dwest and westfalia herne was west?, ###ASSISTANT: SELECT ""Berlin"" FROM table_51004 WHERE ""S\u00fcdwest"" = 'fk pirmasens' AND ""West"" = 'westfalia herne'" 2367,"###HUMAN: Which Team classification has a Combination classification of egoi mart nez, and a Winner of tom boonen?, ###ASSISTANT: SELECT ""Team classification"" FROM table_6000 WHERE ""Combination classification"" = 'egoi martínez' AND ""Winner"" = 'tom boonen'" 2368,"###HUMAN: Which series has a season premiere on January 3, 2007 with the most episodes?, ###ASSISTANT: SELECT MAX(""Episodes"") FROM table_11144 WHERE ""Season Premiere"" = 'january 3, 2007'" 2369,"###HUMAN: Who was the opposition at 11,682 excl. exhibition match?, ###ASSISTANT: SELECT opposition FROM table_name_39 WHERE stadium = ""11,682 excl. exhibition match""" 2370,"###HUMAN: What is the Time when the Epicenter was Bam?, ###ASSISTANT: SELECT ""Time"" FROM table_32293 WHERE ""Epicenter"" = 'bam'" 2371,"###HUMAN: What is the interview number in Louisiana, and the swimsuit number is more than 9.1?, ###ASSISTANT: SELECT COUNT(interview) FROM table_name_19 WHERE country = ""louisiana"" AND swimsuit > 9.1" 2372,"###HUMAN: Where Bolton Wanderers is the home team, who is the away team?, ###ASSISTANT: SELECT ""Away team"" FROM table_41721 WHERE ""Home team"" = 'bolton wanderers'" 2373,"###HUMAN: what is days of hospital stay and death status of subject name elizabeth bateman?, ###ASSISTANT: SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.name = ""Elizabeth Bateman""" 2374,"###HUMAN: let me know the primary disease and name of the patient with patient id 7578., ###ASSISTANT: SELECT demographic.name, demographic.diagnosis FROM demographic WHERE demographic.subject_id = ""7578""" 2375,"###HUMAN: What is 1989, when 1999 is F, and when 1994 is 2R?, ###ASSISTANT: SELECT ""1989"" FROM table_41090 WHERE ""1999"" = 'f' AND ""1994"" = '2r'" 2376,"###HUMAN: What was the winning score on 7 jun 1976?, ###ASSISTANT: SELECT winning_score FROM table_name_4 WHERE date = ""7 jun 1976""" 2377,"###HUMAN: What percentage of the votes did Obama get in the county where McCain got 3648 votes?, ###ASSISTANT: SELECT ""Obama%"" FROM table_23747 WHERE ""McCain#"" = '3648'" 2378,"###HUMAN: Have I taken any courses that are among the most difficult in the NERS department ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'NERS' AND program_course.workload = (SELECT MAX(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON PROGRAM_COURSEalias1.course_id = COURSEalias1.course_id WHERE COURSEalias1.department = 'NERS') AND student_record.student_id = 1" 2379,"###HUMAN: how many patients whose diagnoses long title is neonatal hypoglycemia and lab test category is chemistry?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = ""Neonatal hypoglycemia"" AND lab.""CATEGORY"" = ""Chemistry""" 2380,"###HUMAN: what was the length of stay of patient 15135's last hospital stay?, ###ASSISTANT: SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 15135 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1" 2381,"###HUMAN: Opened prior to 1877 only 2.44km from Wellington, when did this station close?, ###ASSISTANT: SELECT closed FROM table_name_6 WHERE opened < 1877 AND distance_from_wellington = ""2.44km""" 2382,"###HUMAN: What is Dennis Kucinich, when Classification is 'Democrat'?, ###ASSISTANT: SELECT ""Dennis Kucinich"" FROM table_59428 WHERE ""Classification"" = 'democrat'" 2383,"###HUMAN: in the month of december are there any flights from ATLANTA to DENVER that stop in BOSTON, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'BOSTON' AND flight_stop.stop_airport = AIRPORT_SERVICE_2.airport_code AND flight.flight_id = flight_stop.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2384,"###HUMAN: What architecture type does the Ford Escort Wagon have?, ###ASSISTANT: SELECT architecture FROM table_name_73 WHERE original_vehicle = ""ford escort wagon""" 2385,"###HUMAN: when did patient 005-4471 first had the tube feeding residual discarded (ml) output since 08/08/2102?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'tube feeding residual discarded (ml)' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) >= '2102-08-08' ORDER BY intakeoutput.intakeoutputtime LIMIT 1" 2386,"###HUMAN: Questions where a given tag was added not by its author., ###ASSISTANT: SELECT q.Id AS ""post_link"", h.Text AS ""edited_tags"", q.OwnerUserId AS ""user_link"", q.CreationDate AS ""post_date"", h.UserId AS ""user_link"", h.CreationDate AS ""edit_date"" FROM PostHistory AS h, Posts AS q WHERE h.PostId = q.Id AND h.PostHistoryTypeId = 6 AND h.Text LIKE '%<' + '##Tag##' + '>%' AND h.UserId != q.OwnerUserId AND NOT EXISTS(SELECT Id FROM PostHistory AS g WHERE g.PostId = h.PostId AND (g.PostHistoryTypeId = 3 OR g.PostHistoryTypeId = 6) AND g.CreationDate < h.CreationDate AND g.Text LIKE '%<' + '##Tag##' + '>%') LIMIT 100" 2387,"###HUMAN: What is the name of the 9th ranked common?, ###ASSISTANT: SELECT common_of FROM table_1449176_1 WHERE rank = ""9th""" 2388,"###HUMAN: What is Ryan McCay's speed that has a rank better than 8?, ###ASSISTANT: SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = ""ryan mccay""" 2389,"###HUMAN: What Call sign has a City of license of higgston, ga?, ###ASSISTANT: SELECT call_sign FROM table_name_95 WHERE city_of_license = ""higgston, ga""" 2390,"###HUMAN: how many days after september 3rd did brian perform in stockholm ?, ###ASSISTANT: SELECT (SELECT ""date"" FROM table_203_855 WHERE ""city"" = 'stockholm') - 3" 2391,"###HUMAN: what is the number of patients born before 1821 who were discharged to skilled nursing facility?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""SHORT TERM HOSPITAL"" AND demographic.dob_year < ""1821""" 2392,"###HUMAN: What was the date that an away team score 11.22 (88)?, ###ASSISTANT: SELECT ""Date"" FROM table_57405 WHERE ""Away team score"" = '11.22 (88)'" 2393,"###HUMAN: what are the number of years maine has participated ?, ###ASSISTANT: SELECT ""years participated"" FROM table_203_502 WHERE ""team"" = 'maine'" 2394,"###HUMAN: When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?, ###ASSISTANT: SELECT COUNT(""Vehicle"") FROM table_27011 WHERE ""Clean electric grid California (San Francisco)"" = '100 g/mi (62 g/km)'" 2395,"###HUMAN: Show all dates of transactions whose type code is 'SALE', and count them by a line chart, and list x axis from high to low order., ###ASSISTANT: SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE transaction_type_code = ""SALE"" ORDER BY date_of_transaction DESC" 2396,"###HUMAN: Show the number of customers for each gender. Show scatter chart., ###ASSISTANT: SELECT gender, COUNT(*) FROM Customers GROUP BY gender" 2397,"###HUMAN: What is Quantity Made, when Manufacturer is 'Baldwin'?, ###ASSISTANT: SELECT quantity_made FROM table_name_3 WHERE manufacturer = ""baldwin""" 2398,"###HUMAN: Show the position of players and the corresponding number of players., ###ASSISTANT: SELECT position, COUNT(*) FROM match_season GROUP BY position" 2399,"###HUMAN: What were the reasons that venues closed in the 1990s?, ###ASSISTANT: SELECT ""Reason"" FROM table_43486 WHERE ""Closed"" = '1990s'" 2400,"###HUMAN: find the name of pilots who did not win the matches held in the country of Australia., ###ASSISTANT: SELECT name FROM pilot WHERE NOT pilot_id IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')" 2401,"###HUMAN: What is the highest championship that has 1 as the league cup, and 17 as the total?, ###ASSISTANT: SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = ""17""" 2402,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday, display in ascending by the the average of salary., ###ASSISTANT: SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(SALARY)" 2403,"###HUMAN: Name the verb meaning for half drosch, ###ASSISTANT: SELECT verb_meaning FROM table_1745843_9 WHERE part_2 = ""half drosch""" 2404,"###HUMAN: count the number of patients whose marital status is married and lab test name is albumin?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = ""MARRIED"" AND lab.label = ""Albumin""" 2405,"###HUMAN: How many patients admitted as clinic referral (premature) were diagnosed with percutaneous transluminal coronary angioplasty status?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = ""CLINIC REFERRAL/PREMATURE"" AND diagnoses.long_title = ""Percutaneous transluminal coronary angioplasty status""" 2406,"###HUMAN: What's the cores with the part number cl8064701477202?, ###ASSISTANT: SELECT ""Cores"" FROM table_13573 WHERE ""Part number(s)"" = 'cl8064701477202'" 2407,"###HUMAN: how many countries have at least 10 gold medals in the asian youth games ?, ###ASSISTANT: SELECT COUNT(""nation"") FROM table_203_747 WHERE ""gold"" >= 10" 2408,"###HUMAN: calculate the maximum age of patients with abdominal pain primary disease who were admitted to hospital for 43 days., ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = ""ABDOMINAL PAIN"" AND demographic.days_stay = ""43""" 2409,"###HUMAN: What is the Chinese title with a premiere rating of 31?, ###ASSISTANT: SELECT chinese_title FROM table_name_91 WHERE premiere = 31" 2410,"###HUMAN: Which mountain range includes Mount Hubbard?, ###ASSISTANT: SELECT ""Mountain Range"" FROM table_71991 WHERE ""Mountain Peak"" = 'mount hubbard'" 2411,"###HUMAN: what flights are available friday from PHILADELPHIA to OAKLAND, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2412,"###HUMAN: Final that has a Date of january 10, 2004 had what opponent?, ###ASSISTANT: SELECT opponent_in_the_final FROM table_name_23 WHERE date = ""january 10, 2004""" 2413,"###HUMAN: What are the numbers of wines for different grapes Plot them as bar chart, sort by the bar in desc., ###ASSISTANT: SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape DESC" 2414,"###HUMAN: Who was the visiting team at Lincoln Financial Field when the final score was 24-14?, ###ASSISTANT: SELECT ""Visiting Team"" FROM table_11235 WHERE ""Stadium"" = 'lincoln financial field' AND ""Final Score"" = '24-14'" 2415,"###HUMAN: How many customers do we have?, ###ASSISTANT: SELECT COUNT(*) FROM customers" 2416,"###HUMAN: What unit has an Avoirdupois value of 57.602 gr.?, ###ASSISTANT: SELECT ""Unit"" FROM table_37329 WHERE ""Avoirdupois value"" = '57.602 gr.'" 2417,"###HUMAN: What date was the result 6 2, 4 6, 6 4?, ###ASSISTANT: SELECT date FROM table_11636213_7 WHERE result = ""6–2, 4–6, 6–4""" 2418,"###HUMAN: How many teams scored exactly 38 points, ###ASSISTANT: SELECT COUNT(""Team"") FROM table_19215 WHERE ""Points For"" = '38'" 2419,"###HUMAN: was hot love released before run to me ?, ###ASSISTANT: SELECT (SELECT ""release date"" FROM table_204_742 WHERE ""single title"" = '""hot love""') < (SELECT ""release date"" FROM table_204_742 WHERE ""single title"" = '""run to me""')" 2420,"###HUMAN: the previous year, what were the five most common input events?, ###ASSISTANT: SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5" 2421,"###HUMAN: When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?, ###ASSISTANT: SELECT COUNT(""Division"") FROM table_40634 WHERE ""Regular Season"" = '2nd, northeast' AND ""Year"" < '2008'" 2422,"###HUMAN: Who was the away team in a tie no larger than 16 with forest green rovers at home?, ###ASSISTANT: SELECT ""Away team"" FROM table_78226 WHERE ""Tie no"" > '16' AND ""Home team"" = 'forest green rovers'" 2423,"###HUMAN: What is the largest number of consecutive starts for jason gildon?, ###ASSISTANT: SELECT MAX(""Consecutive starts"") FROM table_30622 WHERE ""Player"" = 'Jason Gildon'" 2424,"###HUMAN: What's the record when the attendance was 41,573?, ###ASSISTANT: SELECT ""Record"" FROM table_77731 WHERE ""Attendance"" = '41,573'" 2425,"###HUMAN: sepsis induced immunosuppression, ###ASSISTANT: SELECT * FROM table_train_27 WHERE immune_suppression = 1" 2426,"###HUMAN: what is the play when the company is cyprus theatre organisation?, ###ASSISTANT: SELECT ""play"" FROM table_79409 WHERE ""company"" = 'cyprus theatre organisation'" 2427,"###HUMAN: Give me the number of unmarried patients who were ordered a transferrin lab test., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = ""SINGLE"" AND lab.label = ""Transferrin""" 2428,"###HUMAN: Can you tell me the Opponent that has the Result of w 37-14?, ###ASSISTANT: SELECT opponent FROM table_name_25 WHERE result = ""w 37-14""" 2429,"###HUMAN: What is the Date with a Opponent with wimbledon, and a Result of won 2-0?, ###ASSISTANT: SELECT ""Date"" FROM table_77998 WHERE ""Opponent"" = 'wimbledon' AND ""Result"" = 'won 2-0'" 2430,"###HUMAN: How many wrestlers were born in nara, and have a completed 'career and other notes' section?, ###ASSISTANT: SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = ""Nara""" 2431,"###HUMAN: What is the zodiac sign for the English March?, ###ASSISTANT: SELECT ""Zodiac sign"" FROM table_60473 WHERE ""English name"" = 'march'" 2432,"###HUMAN: show me all the flights between OAKLAND and DENVER, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'OAKLAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 2433,"###HUMAN: only opponent to defeat mocho cota in 1994, ###ASSISTANT: SELECT ""winner"" FROM table_204_373 WHERE ""loser"" = 'mocho cota' AND ""date"" = 1994" 2434,"###HUMAN: When was the game where the home team score was 8.9 (57)?, ###ASSISTANT: SELECT ""Date"" FROM table_53070 WHERE ""Home team score"" = '8.9 (57)'" 2435,"###HUMAN: Top 150 users from China. Top 150 SO users from China, ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS ""#"", Id AS ""user_link"", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%sweden%' OR UPPER(Location) LIKE '%SWEDEN%' OR Location LIKE '%SWEDEN%' AND Reputation >= 0 ORDER BY Reputation DESC LIMIT 150" 2436,"###HUMAN: When was the successor who got his seat because of 'until august 2, 1813' seated?, ###ASSISTANT: SELECT ""Date successor seated"" FROM table_25067 WHERE ""Reason for change"" = 'Until August 2, 1813'" 2437,"###HUMAN: Who was the team when the category is field goal percentage?, ###ASSISTANT: SELECT team FROM table_28628309_6 WHERE category = ""Field goal percentage""" 2438,"###HUMAN: how many points scored by sportivo luque o, ###ASSISTANT: SELECT COUNT(""Points"") FROM table_21068 WHERE ""Team"" = 'Sportivo Luqueño'" 2439,"###HUMAN: What is the competition type of the event with a result of 3-2 and a score of 2-1?, ###ASSISTANT: SELECT ""Competition"" FROM table_68487 WHERE ""Result"" = '3-2' AND ""Score"" = '2-1'" 2440,"###HUMAN: How many new entries started in the round where winners from the previous round is 32?, ###ASSISTANT: SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = ""32""" 2441,"###HUMAN: which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday?, ###ASSISTANT: SELECT friday FROM table_18173916_8 WHERE monday = ""515 The Adventures of Tintin""" 2442,"###HUMAN: What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?, ###ASSISTANT: SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11" 2443,"###HUMAN: bmi 25 to 35 inclusive, ###ASSISTANT: SELECT * FROM table_train_234 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi <= 35" 2444,"###HUMAN: What is the year the institution Tougaloo College joined?, ###ASSISTANT: SELECT ""Joined"" FROM table_16187 WHERE ""Institution"" = 'Tougaloo College'" 2445,"###HUMAN: Who had Pole position for the French Grand Prix?, ###ASSISTANT: SELECT ""Pole position"" FROM table_11142 WHERE ""Race"" = 'french grand prix'" 2446,"###HUMAN: show me the airlines that fly from DENVER to SAN FRANCISCO, ###ASSISTANT: SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 2447,"###HUMAN: Name the record for verizon center 20,173, ###ASSISTANT: SELECT ""Record"" FROM table_21460 WHERE ""Location Attendance"" = 'Verizon Center 20,173'" 2448,"###HUMAN: what is the number of patients whose drug code is eryt250 and lab test fluid is cerebrospinal fliuid (csf)?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = ""ERYT250"" AND lab.fluid = ""Cerebrospinal Fluid (CSF)""" 2449,"###HUMAN: Name the total number of height for number 32, ###ASSISTANT: SELECT COUNT(height) FROM table_25360865_1 WHERE _number = 32" 2450,"###HUMAN: Compare the total number of each fate with a bar chart, show from high to low by the x axis., ###ASSISTANT: SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY Fate DESC" 2451,"###HUMAN: what were the new prescriptions of patient 97395 today compared to the prescription they received yesterday?, ###ASSISTANT: SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97395) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97395) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day')" 2452,"###HUMAN: What is the best time for a team with a first-qualifying time of 59.448?, ###ASSISTANT: SELECT best FROM table_name_6 WHERE qual_1 = ""59.448""" 2453,"###HUMAN: who write the episode that have 14.39 million viewers, ###ASSISTANT: SELECT written_by FROM table_19417244_2 WHERE us_viewers__millions_ = ""14.39""" 2454,"###HUMAN: When Thomas Clayton had a gain less than 71, what was the highest long value?, ###ASSISTANT: SELECT MAX(long) FROM table_name_40 WHERE name = ""thomas clayton"" AND gain < 71" 2455,"###HUMAN: Name the gdp per capita for haiti, ###ASSISTANT: SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = ""Haiti""" 2456,"###HUMAN: What is the total number of population in the land with an area of 149.32 km2?, ###ASSISTANT: SELECT COUNT(""Population"") FROM table_21283 WHERE ""Area km 2"" = '149.32'" 2457,"###HUMAN: Proportion of users who've asked no questions. Counts the number of users with Rep>=1000 who've asked no questions, and the total number of users with Rep>=1000., ###ASSISTANT: SELECT (SELECT COUNT(u.DisplayName) FROM Users AS u WHERE u.Reputation >= 1000) AS ""significant_users"", (SELECT COUNT(u.DisplayName) FROM Users AS u WHERE u.Id NOT IN (SELECT DISTINCT OwnerUserId FROM Posts WHERE PostTypeId = 1 AND OwnerUserId != '') AND u.Reputation >= 94000) AS ""with_no_questions""" 2458,"###HUMAN: What is Player, when Money ( $ ) is less than 387, and when Score is '73-76-74-72=295'?, ###ASSISTANT: SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295" 2459,"###HUMAN: What's the ijekavian translation of the ikavian word grijati?, ###ASSISTANT: SELECT ""Ijekavian"" FROM table_29854 WHERE ""Ikavian"" = 'grijati'" 2460,"###HUMAN: What date did the T328 that entered service on 18 June 1956 re-enter service?, ###ASSISTANT: SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = ""18 june 1956"" AND pre_conversion = ""t328""" 2461,"###HUMAN: Name the country for sky primafila 7 hd, ###ASSISTANT: SELECT country FROM table_15887683_6 WHERE television_service = ""Sky Primafila 7 HD""" 2462,"###HUMAN: Which nominating festival nominated Iao Lethem's film?, ###ASSISTANT: SELECT ""Nominating Festival"" FROM table_15380 WHERE ""Director(s)"" = 'iao lethem'" 2463,"###HUMAN: What is the largest number of Games Played with Losses of 3, and more Wins than 5?, ###ASSISTANT: SELECT MAX(""Games Played"") FROM table_11772 WHERE ""Losses"" = '3' AND ""Wins"" > '5'" 2464,"###HUMAN: What county has an IHSAA Football Class of A, and a Mascot of royals?, ###ASSISTANT: SELECT ""County"" FROM table_63746 WHERE ""IHSAA Football Class"" = 'a' AND ""Mascot"" = 'royals'" 2465,"###HUMAN: what is during the first hospital encounter maximum neutrophils value of patient 99647?, ###ASSISTANT: SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99647 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'neutrophils')" 2466,"###HUMAN: Overlap between a given tag and related ones., ###ASSISTANT: SELECT *, CAST(100.0 * without_tag / (without_tag + with_tag) AS FLOAT(18, 2)) AS perc_not_tag FROM (SELECT COUNT(p.Id) AS post_count, t.TagName, SUM(CASE WHEN p.Tags LIKE '%<##Tag##>%' THEN 1 ELSE 0 END) AS with_tag, SUM(CASE WHEN NOT p.Tags LIKE '%<##Tag##>%' THEN 1 ELSE 0 END) AS without_tag FROM Posts AS p JOIN PostTags AS pTags ON pTags.PostId = p.Id JOIN Tags AS t ON t.Id = pTags.TagId WHERE t.TagName LIKE '%##Tag##%' GROUP BY t.TagName) AS a ORDER BY post_count DESC" 2467,"###HUMAN: Give me a bar chart to show the revenue of the company that earns the highest revenue in each headquarter city., ###ASSISTANT: SELECT Headquarter, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter" 2468,"###HUMAN: What is the lowest Grid, when Laps is 21, when Manufacturer is Yamaha, and when Time is +18.802?, ###ASSISTANT: SELECT MIN(grid) FROM table_name_10 WHERE laps = 21 AND manufacturer = ""yamaha"" AND time = ""+18.802""" 2469,"###HUMAN: What's the lowest grid with and entrant of fred saunders?, ###ASSISTANT: SELECT MIN(""Grid"") FROM table_62894 WHERE ""Entrant"" = 'fred saunders'" 2470,"###HUMAN: What name was proposed on 12/30/1982 in rockingham county with a CERCLIS ID of nhd062004569?, ###ASSISTANT: SELECT ""Name"" FROM table_9427 WHERE ""Proposed"" = '12/30/1982' AND ""County"" = 'rockingham' AND ""CERCLIS ID"" = 'nhd062004569'" 2471,"###HUMAN: Name the stock for colt model mt6601, ###ASSISTANT: SELECT stock FROM table_12834315_4 WHERE colt_model_no = ""MT6601""" 2472,"###HUMAN: What year was the West Coast League established than the championships are greater than 0?, ###ASSISTANT: SELECT ""Established"" FROM table_36871 WHERE ""Championships"" > '0' AND ""League"" = 'west coast league'" 2473,"###HUMAN: Show the name of each party and the corresponding number of delegates from that party Plot them as bar chart, sort by the x axis from low to high please., ###ASSISTANT: SELECT T2.Party, SUM(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party" 2474,"###HUMAN: Which Institutional authority has a Rocket launch of rehnuma-10?, ###ASSISTANT: SELECT ""Institutional authority"" FROM table_57777 WHERE ""Rocket launch"" = 'rehnuma-10'" 2475,"###HUMAN: What are Utah's high points?, ###ASSISTANT: SELECT high_points FROM table_name_49 WHERE team = ""utah""" 2476,"###HUMAN: Give swimsuit scores of participants 8.847 in preliminary, ###ASSISTANT: SELECT ""Swimsuit"" FROM table_21281 WHERE ""Preliminary"" = '8.847'" 2477,"###HUMAN: i want a flight on CO from BOSTON to SAN FRANCISCO, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'CO'" 2478,"###HUMAN: The Catalog of ilps 9153 is from what region?, ###ASSISTANT: SELECT ""Region"" FROM table_8574 WHERE ""Catalog"" = 'ilps 9153'" 2479,"###HUMAN: What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55?, ###ASSISTANT: SELECT COUNT(february) FROM table_name_48 WHERE opponent = ""vancouver canucks"" AND game > 55" 2480,"###HUMAN: what was the name of the drug, which patient 52898 was last prescribed via right ear route since 02/2105?, ###ASSISTANT: SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52898) AND prescriptions.route = 'right ear' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-02' ORDER BY prescriptions.startdate DESC LIMIT 1" 2481,"###HUMAN: What is the average rank of one who is at 76 laps?, ###ASSISTANT: SELECT AVG(""Rank"") FROM table_10504 WHERE ""Laps"" = '76'" 2482,"###HUMAN: count the number of patients whose diagnoses short title is atrial fibrillation and drug route is tp?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = ""Atrial fibrillation"" AND prescriptions.route = ""TP""" 2483,"###HUMAN: What country is the film that has music of nino oliviero?, ###ASSISTANT: SELECT country FROM table_name_10 WHERE music = ""nino oliviero""" 2484,"###HUMAN: When can I take 421 ?, ###ASSISTANT: SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 421 AND course_offering.semester = semester.semester_id AND semester.semester_id > (SELECT SEMESTERalias1.semester_id FROM semester AS SEMESTERalias1 WHERE SEMESTERalias1.semester = 'WN' AND SEMESTERalias1.year = 2016) ORDER BY semester.semester_id LIMIT 1" 2485,"###HUMAN: Show the relationship between the number of schools in each county and total enrollment in each county by a scatter plot., ###ASSISTANT: SELECT COUNT(*), SUM(Enrollment) FROM School GROUP BY County" 2486,"###HUMAN: For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, I want to show by the X in desc., ###ASSISTANT: SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC" 2487,"###HUMAN: Who played Richmond at home?, ###ASSISTANT: SELECT home_team FROM table_14312471_7 WHERE away_team = ""Richmond""" 2488,"###HUMAN: What label is after 2004?, ###ASSISTANT: SELECT ""Label"" FROM table_53217 WHERE ""Year"" > '2004'" 2489,"###HUMAN: how many seats in a 734, ###ASSISTANT: SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = '734'" 2490,"###HUMAN: what is the name when the constituency number is 150?, ###ASSISTANT: SELECT ""Name"" FROM table_63371 WHERE ""Constituency number"" = '150'" 2491,"###HUMAN: WHAT PLACE WAS A SCORE 67-70=137?, ###ASSISTANT: SELECT place FROM table_name_48 WHERE score = 67 - 70 = 137" 2492,"###HUMAN: mention the discharge time and diagnosis icd9 code of subject id 42820., ###ASSISTANT: SELECT demographic.dischtime, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = ""42820""" 2493,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and department_id , and could you rank names from high to low order?, ###ASSISTANT: SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC" 2494,"###HUMAN: provide the number of patients whose primary disease is ruq pain and year of birth is less than 2112?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = ""RUQ PAIN"" AND demographic.dob_year < ""2112""" 2495,"###HUMAN: How many patients are with discharge location short term hospital and below age 67?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""SHORT TERM HOSPITAL"" AND demographic.age < ""67""" 2496,"###HUMAN: When was the church in Arnafjord built?, ###ASSISTANT: SELECT ""Year Built"" FROM table_59057 WHERE ""Location of the Church"" = 'arnafjord'" 2497,"###HUMAN: What was the result of the game that had 56,500 in attendance?, ###ASSISTANT: SELECT ""Result"" FROM table_59320 WHERE ""Attendance"" = '56,500'" 2498,"###HUMAN: How many rounds have School/club team of pan american?, ###ASSISTANT: SELECT SUM(round) FROM table_name_91 WHERE school_club_team = ""pan american""" 2499,"###HUMAN: What is the number of people in attendance when the time is 3:00?, ###ASSISTANT: SELECT ""Attendance"" FROM table_77393 WHERE ""Time"" = '3:00'" 2500,"###HUMAN: what is the number of patients whose admission type is elective and diagnoses long title is drug induced neutropenia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = ""ELECTIVE"" AND diagnoses.long_title = ""Drug induced neutropenia""" 2501,"###HUMAN: Which Place has a Country of united states, and Money ($) larger than 145,000, and a To par of 2, and a Score of 70-66-73-69=278?, ###ASSISTANT: SELECT ""Place"" FROM table_47467 WHERE ""Country"" = 'united states' AND ""Money ( $ )"" > '145,000' AND ""To par"" = '–2' AND ""Score"" = '70-66-73-69=278'" 2502,"###HUMAN: Show different locations and the number of performances at each location Visualize by bar chart, and sort x axis in desc order., ###ASSISTANT: SELECT Location, COUNT(*) FROM performance GROUP BY Location ORDER BY Location DESC" 2503,"###HUMAN: What team played against Al-Ismaily (team 1)?, ###ASSISTANT: SELECT ""Team 2"" FROM table_80411 WHERE ""Team 1"" = 'al-ismaily'" 2504,"###HUMAN: Among patients with alzheimer's disease, how many of them had a lab test for abnormal status of delta?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = ""Alzheimer's disease"" AND lab.flag = ""delta""" 2505,"###HUMAN: Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?, ###ASSISTANT: SELECT chassis FROM table_name_41 WHERE entrant = ""larrousse f1"" AND driver = ""aguri suzuki""" 2506,"###HUMAN: Visualize a bar chart for how many students are in each department?, and could you sort y axis in descending order?, ###ASSISTANT: SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC" 2507,"###HUMAN: What is Venue, when Extra is Pentathlon?, ###ASSISTANT: SELECT venue FROM table_name_39 WHERE extra = ""pentathlon""" 2508,"###HUMAN: what was the name of the lab test that patient 20801 last got in 04/last year., ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20801) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', labevents.charttime) = '04' ORDER BY labevents.charttime DESC LIMIT 1)" 2509,"###HUMAN: How much Frequency MHz has a Call sign of w264bg?, ###ASSISTANT: SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = ""w264bg""" 2510,"###HUMAN: How many counties have people before profit as the party, and a borough greater than 0?, ###ASSISTANT: SELECT SUM(county) FROM table_name_16 WHERE party = ""people before profit"" AND borough > 0" 2511,"###HUMAN: What are the ground where the crowd totals 19929?, ###ASSISTANT: SELECT ground FROM table_14312471_4 WHERE crowd = 19929" 2512,"###HUMAN: Create a pie chart showing how many headquarters across headquarters., ###ASSISTANT: SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters" 2513,"###HUMAN: Which rounds did the team Walther participate in?, ###ASSISTANT: SELECT ""Rounds"" FROM table_33761 WHERE ""Team"" = 'walther'" 2514,"###HUMAN: How much did the away team score at Victoria park?, ###ASSISTANT: SELECT away_team AS score FROM table_name_84 WHERE venue = ""victoria park""" 2515,"###HUMAN: which is the only year they went 1-1 at home ?, ###ASSISTANT: SELECT ""season"" FROM table_203_741 WHERE ""home"" = '1-1'" 2516,"###HUMAN: what is the number of days that have passed since the last time patient 28443 received a d5w intake on the current intensive care unit visit?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28443) AND icustays.outtime IS NULL) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'd5w' AND d_items.linksto = 'inputevents_cv') ORDER BY inputevents_cv.charttime DESC LIMIT 1" 2517,"###HUMAN: What was the score in the year 2004?, ###ASSISTANT: SELECT score FROM table_name_72 WHERE year = ""2004""" 2518,"###HUMAN: Which Country has a Top Team of jam, and an Edition of 31st?, ###ASSISTANT: SELECT ""Country"" FROM table_65795 WHERE ""Top Team"" = 'jam' AND ""Edition"" = '31st'" 2519,"###HUMAN: What is the score for the match that had a home team of Kidderminster Harriers?, ###ASSISTANT: SELECT ""Score"" FROM table_47393 WHERE ""Home team"" = 'kidderminster harriers'" 2520,"###HUMAN: What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?, ###ASSISTANT: SELECT ""IMED/Avicenna Listed"" FROM table_63242 WHERE ""Regional/Offshore"" = 'offshore' AND ""Country/Territory"" = 'saint kitts and nevis' AND ""Degree"" = 'md' AND ""Established"" < '2000'" 2521,"###HUMAN: What is the Attendance when Vida is the Away team?, ###ASSISTANT: SELECT AVG(""Attendance"") FROM table_8371 WHERE ""Away"" = 'vida'" 2522,"###HUMAN: which nation had the same total number of gold medals as japan ?, ###ASSISTANT: SELECT ""nation"" FROM table_203_653 WHERE ""nation"" <> 'japan' AND ""gold"" = (SELECT ""gold"" FROM table_203_653 WHERE ""nation"" = 'japan')" 2523,"###HUMAN: what is the number of home health care discharge patients who were admitted before 2197?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = ""HOME HEALTH CARE"" AND demographic.admityear < ""2197""" 2524,"###HUMAN: what is the difference of population in easton and reno ?, ###ASSISTANT: SELECT ABS((SELECT ""population"" FROM table_204_616 WHERE ""township"" = 'easton') - (SELECT ""population"" FROM table_204_616 WHERE ""township"" = 'reno'))" 2525,"###HUMAN: Name the 2010 for 2007 of a and 2012 of a, ###ASSISTANT: SELECT ""2010"" FROM table_15199 WHERE ""2007"" = 'a' AND ""2012"" = 'a'" 2526,"###HUMAN: What was the location when the opponent was Seattle Supersonics?, ###ASSISTANT: SELECT ""Location/Attendance"" FROM table_79061 WHERE ""Opponent"" = 'seattle supersonics'" 2527,"###HUMAN: What is the to par for the player with fewer than 148 total points?, ###ASSISTANT: SELECT SUM(to_par) FROM table_name_53 WHERE total < 148" 2528,"###HUMAN: What is the phone number of the station located at 53 Dayton Road?, ###ASSISTANT: SELECT ""Phone"" FROM table_56724 WHERE ""Address"" = '53 dayton road'" 2529,"###HUMAN: What was the method of resolution when Mikhail Ilyukhin's record was 4-0?, ###ASSISTANT: SELECT method FROM table_name_92 WHERE record = ""4-0""" 2530,"###HUMAN: Who was the opponent at the game attended by 45,000?, ###ASSISTANT: SELECT opponent_number FROM table_name_73 WHERE attendance = ""45,000""" 2531,"###HUMAN: For those records from the products and each product's manufacturer, give me the comparison about the average of code over the founder , and group by attribute founder, and show Founder in desc order., ###ASSISTANT: SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC" 2532,"###HUMAN: Parsing papers using Jeopardy! Questions published at ACL 2014, ###ASSISTANT: SELECT DISTINCT paper.paperid FROM dataset, keyphrase, paper, paperdataset, paperkeyphrase, venue WHERE dataset.datasetname = 'Jeopardy! Questions' AND keyphrase.keyphrasename = 'Parsing' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid AND paper.paperid = paperdataset.paperid AND paper.year = 2014 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL'" 2533,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of hire_date and the average of department_id bin hire_date by weekday, and order in desc by the the average of department id., ###ASSISTANT: SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) DESC" 2534,"###HUMAN: What is the release Date of Catalog RR 8655-2?, ###ASSISTANT: SELECT date FROM table_name_39 WHERE catalog = ""rr 8655-2""" 2535,"###HUMAN: how many patients stayed in hospital for more than 1 day and were procedured with spinal tap?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > ""2"" AND procedures.short_title = ""Spinal tap""" 2536,"###HUMAN: Users with at least one post in a reputation bracket., ###ASSISTANT: SELECT 'site://users/' + CAST(u.Id AS VARCHAR) + '|' + CAST(u.DisplayName AS VARCHAR) AS ""user"", SUM(p.Score) AS ""Total Score"", u.Reputation, u.LastAccessDate FROM Users AS u, Posts AS p WHERE u.Reputation >= @Repmin AND u.Reputation <= @Repmax AND u.Id = p.OwnerUserId AND p.PostTypeId = 1 AND DATEDIFF(day, u.LastAccessDate, GETDATE()) > 365 GROUP BY u.Reputation, u.Id, u.DisplayName, u.LastAccessDate HAVING COUNT(p.Id) = 1 AND SUM(p.Score) <= 1 ORDER BY u.LastAccessDate DESC" 2537,"###HUMAN: tell me the age and lab test abnormal status for patient with patient id 2560., ###ASSISTANT: SELECT demographic.age, lab.flag FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = ""2560""" 2538,"###HUMAN: what are the three most commonly prescribed drugs that were prescribed to the patients 40s within the same month after having been diagnosed with prim cardiomyopathy nec until 2 years ago?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'prim cardiomyopathy nec') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.age BETWEEN 40 AND 49 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.startdate, 'start of month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3" 2539,"###HUMAN: on 07/16/2105, patient 3918 has had any enfamiladdedrice po intake?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3918)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'enfamiladdedrice po' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) = '2105-07-16'" 2540,"###HUMAN: What was Olin Dutra's score?, ###ASSISTANT: SELECT score FROM table_name_88 WHERE player = ""olin dutra""" 2541,"###HUMAN: What is the 2004 value for the 2009 Grand slam tournaments?, ###ASSISTANT: SELECT 2004 FROM table_name_86 WHERE 2009 = ""grand slam tournaments""" 2542,"###HUMAN: Name the least overall for tony baker, ###ASSISTANT: SELECT MIN(""Overall"") FROM table_36892 WHERE ""Name"" = 'tony baker'" 2543,"###HUMAN: What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2?, ###ASSISTANT: SELECT COUNT(losses) FROM table_name_85 WHERE last_appearance = ""2003"" AND wins > 2" 2544,"###HUMAN: What is Mark Henry's brand?, ###ASSISTANT: SELECT brand FROM table_name_28 WHERE entrant = ""mark henry""" 2545,"###HUMAN: what is the yearly minimum dose of tube feeding flush (ml) that patient 016-17204 has taken until 11/2105?, ###ASSISTANT: SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-17204')) AND intakeoutput.celllabel = 'tube feeding flush (ml)' AND intakeoutput.cellpath LIKE '%intake%' AND STRFTIME('%y-%m', intakeoutput.intakeoutputtime) <= '2105-11' GROUP BY STRFTIME('%y', intakeoutput.intakeoutputtime)" 2546,"###HUMAN: Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?, ###ASSISTANT: SELECT SUM(""Top-25"") FROM table_35980 WHERE ""Top-5"" > '9' AND ""Wins"" < '11'" 2547,"###HUMAN: is patient 15945's arterial bp [diastolic] last measured on the last icu visit greater than first measured on the last icu visit?, ###ASSISTANT: SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15945) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime DESC LIMIT 1) > (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15945) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1)" 2548,"###HUMAN: How many dates do the dolphins have 6 points?, ###ASSISTANT: SELECT ""Date"" FROM table_22648 WHERE ""Dolphins points"" = '6'" 2549,"###HUMAN: what's the name of the procedure that patient 005-26011 got two times in 01/last year?, ###ASSISTANT: SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, COUNT(treatment.treatmenttime) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-26011')) AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', treatment.treatmenttime) = '01' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 = 2" 2550,"###HUMAN: Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering?, ###ASSISTANT: SELECT MAX(year) FROM table_name_82 WHERE engine = ""offenhauser l4"" AND chassis = ""kurtis kraft 500c"" AND entrant = ""federal engineering""" 2551,"###HUMAN: What surface has 2 as a cage dive?, ###ASSISTANT: SELECT ""Surface"" FROM table_70261 WHERE ""Cage dive"" = '2'" 2552,"###HUMAN: Which spike has a 2008 club Karava?, ###ASSISTANT: SELECT ""Spike"" FROM table_62736 WHERE ""2008 club"" = 'karava'" 2553,"###HUMAN: What is the content of la7 television service?, ###ASSISTANT: SELECT content FROM table_15887683_1 WHERE television_service = ""LA7""" 2554,"###HUMAN: was the the score when the tries was 743, ###ASSISTANT: SELECT points_against FROM table_14070062_4 WHERE points_for = ""743""" 2555,"###HUMAN: Show the average age for all female students and group them by first name in a bar chart, and display x axis in desc order please., ###ASSISTANT: SELECT Fname, AVG(Age) FROM Student WHERE Sex = 'F' GROUP BY Fname ORDER BY Fname DESC" 2556,"###HUMAN: Which player is featured for 2001-2002?, ###ASSISTANT: SELECT player FROM table_name_28 WHERE year = ""2001-2002""" 2557,"###HUMAN: what was the difference , in years between the founding of st. agnes and the founding of good shepherd ?, ###ASSISTANT: SELECT ABS((SELECT ""founded"" FROM table_204_540 WHERE ""name"" = 'st. agnes') - (SELECT ""founded"" FROM table_204_540 WHERE ""name"" = 'good shepherd'))" 2558,"###HUMAN: Jimmie Lee Sloas was the composer for what album?, ###ASSISTANT: SELECT album FROM table_name_44 WHERE composer_s_ = ""jimmie lee sloas""" 2559,"###HUMAN: What's the top year with the Chassis ats hs1?, ###ASSISTANT: SELECT MAX(year) FROM table_name_33 WHERE chassis = ""ats hs1""" 2560,"###HUMAN: What is the total point count of the youngest gymnast?, ###ASSISTANT: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1" 2561,"###HUMAN: If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?, ###ASSISTANT: SELECT ""Mountains classification"" FROM table_19834 WHERE ""Winner"" = 'Alejandro Valverde' AND ""Points classification"" = 'Erik Zabel'" 2562,"###HUMAN: What was the to par at the T5 for the player with a score of 74-69-66=209?, ###ASSISTANT: SELECT to_par FROM table_name_39 WHERE place = ""t5"" AND score = 74 - 69 - 66 = 209" 2563,"###HUMAN: On which date was the score 0 - 0?, ###ASSISTANT: SELECT ""Date"" FROM table_75946 WHERE ""Score"" = '0 - 0'" 2564,"###HUMAN: What is Television Service, when Content is Presentazione?, ###ASSISTANT: SELECT television_service FROM table_name_90 WHERE content = ""presentazione""" 2565,"###HUMAN: Which championship after 1985 had a winning score of 8 (68-72-69-71=280)?, ###ASSISTANT: SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)" 2566,"###HUMAN: Which Opponent has Attendances of 60,594?, ###ASSISTANT: SELECT opponent FROM table_name_34 WHERE attendance = ""60,594""" 2567,"###HUMAN: how many patients are married and diagnosed with depressive disorder, not elsewhere classified?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = ""MARRIED"" AND diagnoses.long_title = ""Depressive disorder, not elsewhere classified""" 2568,"###HUMAN: The season premiere aired on September 11, 2000 aired on how many networks?, ###ASSISTANT: SELECT COUNT(""Network"") FROM table_15923 WHERE ""Season premiere"" = 'September 11, 2000'" 2569,"###HUMAN: calculate the total number of female patients whose ethnic origin is unspecified/unknown, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = ""F"" AND demographic.ethnicity = ""UNKNOWN/NOT SPECIFIED""" 2570,"###HUMAN: A bar chart for what are the number of the names of photos taken with the lens brand 'Sigma' or 'Olympus'?, list in asc by the x-axis., ###ASSISTANT: SELECT T1.name, COUNT(T1.name) FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' GROUP BY T1.name ORDER BY T1.name" 2571,"###HUMAN: What is the value for model if processor is Kentsfield and brand name is Xeon?, ###ASSISTANT: SELECT model__list_ FROM table_2467150_2 WHERE processor = ""Kentsfield"" AND brand_name = ""Xeon""" 2572,"###HUMAN: How many million U.S. viewers wtched episode 69 of the series?, ###ASSISTANT: SELECT us_viewers__millions_ FROM table_27832075_2 WHERE series__number = 69" 2573,"###HUMAN: Name the % yes for yes votes for 78961, ###ASSISTANT: SELECT ""% YES"" FROM table_3352 WHERE ""YES votes"" = '78961'" 2574,"###HUMAN: Percentage of questions with high-scoring unaccepted answers by tag., ###ASSISTANT: SELECT t.TagName, COUNT(*) AS ""total_questions"", SUM(CASE WHEN p.AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) AS ""no_accepted_answer"", SUM(CASE WHEN p.AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) * 1.0 / COUNT(*) AS ""%_unaccepted"" FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE p.PostTypeId = 1 AND p.ClosedDate IS NULL AND EXISTS(SELECT 1 FROM Posts AS a WHERE a.PostTypeId = 2 AND a.ParentId = p.Id AND a.Score > 4) GROUP BY t.TagName HAVING COUNT(*) > 10 ORDER BY 4 DESC" 2575,"###HUMAN: Which Tie is from birmingham city?, ###ASSISTANT: SELECT tie_no FROM table_name_97 WHERE home_team = ""birmingham city""" 2576,"###HUMAN: how many contestants were from thailand ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_910 WHERE ""nationality"" = 'thailand'" 2577,"###HUMAN: What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?, ###ASSISTANT: SELECT SUM(""Byes"") FROM table_36426 WHERE ""Draws"" = '1' AND ""Wins"" = '5' AND ""Losses"" < '12'" 2578,"###HUMAN: What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?, ###ASSISTANT: SELECT ""Player"" FROM table_36656 WHERE ""NHL team"" = 'new york rangers' AND ""Pick #"" = '31'" 2579,"###HUMAN: What identities do the genus/species arabidopsis thaliana have?, ###ASSISTANT: SELECT ""Identity"" FROM table_20073 WHERE ""Genus/Species"" = 'Arabidopsis thaliana'" 2580,"###HUMAN: Show the minimum, maximum, average price for all products., ###ASSISTANT: SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM products" 2581,"###HUMAN: How many object dates does episode #16 have?, ###ASSISTANT: SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16" 2582,"###HUMAN: Draw a bar chart for what are the ids and names of the architects who built at least 3 bridges ?, rank in desc by the x-axis., ###ASSISTANT: SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.name DESC" 2583,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the average of manager_id bin hire_date by weekday in a bar chart, and show by the the average of manager id from high to low., ###ASSISTANT: SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) DESC" 2584,"###HUMAN: Distribution of id's in the user table., ###ASSISTANT: SELECT Id / 10000, COUNT(*) FROM Users GROUP BY Id / 10000 ORDER BY Id / 10000" 2585,"###HUMAN: Tell me the lowest gold for rank of 6 and total less than 2, ###ASSISTANT: SELECT MIN(gold) FROM table_name_16 WHERE rank = ""6"" AND total < 2" 2586,"###HUMAN: What is the Unami Delaware value for a Thomas value of nacha?, ###ASSISTANT: SELECT unami_delaware FROM table_name_18 WHERE thomas__1698_ = ""nacha""" 2587,"###HUMAN: When was satsuki dd-27 completed?, ###ASSISTANT: SELECT ""Completed"" FROM table_64457 WHERE ""Name"" = 'satsuki dd-27'" 2588,"###HUMAN: How many projects are there?, ###ASSISTANT: SELECT COUNT(*) FROM projects" 2589,"###HUMAN: What date has yani tseng as the runner (s)-up?, ###ASSISTANT: SELECT date FROM table_name_91 WHERE runner_s__up = ""yani tseng""" 2590,"###HUMAN: What time was the race for the country of france?, ###ASSISTANT: SELECT ""Time"" FROM table_66483 WHERE ""Country"" = 'france'" 2591,"###HUMAN: which location is listed previous to march 22 ?, ###ASSISTANT: SELECT ""location"" FROM table_203_704 WHERE id = (SELECT id FROM table_203_704 WHERE ""date"" = 'march 22') - 1" 2592,"###HUMAN: How many headquarters are there listed for HSBC?, ###ASSISTANT: SELECT COUNT(""Headquarters"") FROM table_21118 WHERE ""Company"" = 'HSBC'" 2593,"###HUMAN: list all nonstop flights from LOS ANGELES to PITTSBURGH which arrive before 1700 on tuesday, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((((((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time) AND date_day.day_number = 22 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) OR (date_day.day_number = 22 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND NOT ((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time))) AND flight.arrival_time < 1700) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LOS ANGELES' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0" 2594,"###HUMAN: What was the attendance on September 28?, ###ASSISTANT: SELECT MAX(""Attendance"") FROM table_75502 WHERE ""Date"" = 'september 28'" 2595,"###HUMAN: show me the earliest flight from NEWARK to SEATTLE, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEWARK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time = (SELECT MIN(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, flight AS FLIGHTalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'NEWARK' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'SEATTLE' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code)" 2596,"###HUMAN: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of manufacturer , and group by attribute name, and list Y in descending order., ###ASSISTANT: SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer DESC" 2597,"###HUMAN: Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6?, ###ASSISTANT: SELECT SUM(""Goals against"") FROM table_76289 WHERE ""Goals for"" > '10' AND ""Position"" = '3' AND ""Wins"" < '6'" 2598,"###HUMAN: Which nation finished with a time of 47.049?, ###ASSISTANT: SELECT ""Nation"" FROM table_75224 WHERE ""Time (sec.)"" = '47.049'" 2599,"###HUMAN: Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35, ###ASSISTANT: SELECT COUNT(played) FROM table_name_67 WHERE points = ""31-7"" AND position = 16 AND goals_for < 35" 2600,"###HUMAN: What's the lowest total when there's less than 16 bronze and more than 6 silver?, ###ASSISTANT: SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6" 2601,"###HUMAN: What is the award type for all Lowe awards?, ###ASSISTANT: SELECT ""Award"" FROM table_69966 WHERE ""Name"" = 'lowe'" 2602,"###HUMAN: What was the reading score in the year the science score was 96.13?, ###ASSISTANT: SELECT ""Reading"" FROM table_27576 WHERE ""Science"" = '96.13'" 2603,"###HUMAN: What Mayor is from the KRF Party?, ###ASSISTANT: SELECT ""Mayor"" FROM table_35421 WHERE ""Party"" = 'krf'" 2604,"###HUMAN: which township in pope county , arkansas has the smallest population ?, ###ASSISTANT: SELECT ""township"" FROM table_203_510 ORDER BY ""population"" LIMIT 1" 2605,"###HUMAN: What Australian sound is equivalent to e / /?, ###ASSISTANT: SELECT ""Australian"" FROM table_59742 WHERE ""Short vowels"" = 'e /ɛ/'" 2606,"###HUMAN: For the attribute All_Neutral and ACC_Percent, show their proportion by a pie chart., ###ASSISTANT: SELECT All_Neutral, ACC_Percent FROM basketball_match" 2607,"###HUMAN: What is the winning score of the match with a margin of 3 strokes?, ###ASSISTANT: SELECT winning_score FROM table_name_39 WHERE margin = ""3 strokes""" 2608,"###HUMAN: What is the minimum number of opponents?, ###ASSISTANT: SELECT MIN(""Opponents"") FROM table_73057" 2609,"###HUMAN: what is the monthly maximum of the weight of patient 012-58944 during the first hospital visit?, ###ASSISTANT: SELECT MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-58944' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL GROUP BY STRFTIME('%y-%m', patient.unitadmittime)" 2610,"###HUMAN: What two players had the highest rebounds for the October 14 game?, ###ASSISTANT: SELECT ""High rebounds"" FROM table_74185 WHERE ""Date"" = 'October 14'" 2611,"###HUMAN: What pole position did 2006 gehl championship finale have?, ###ASSISTANT: SELECT ""Pole position"" FROM table_45447 WHERE ""Race Name"" = '2006 gehl championship finale'" 2612,"###HUMAN: What is the Away captain with a Venue that is old trafford?, ###ASSISTANT: SELECT ""Away captain"" FROM table_7302 WHERE ""Venue"" = 'old trafford'" 2613,"###HUMAN: Name the title for production code 2t6908, ###ASSISTANT: SELECT title FROM table_18569389_1 WHERE production_code = ""2T6908""" 2614,"###HUMAN: What is the intergiro classification of stage 21?, ###ASSISTANT: SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21" 2615,"###HUMAN: Give the minimum age of patients whose admission type is urgent and were born before the year 2175., ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = ""URGENT"" AND demographic.dob_year > ""2175""" 2616,"###HUMAN: show me the latest flight on wednesday from ATLANTA to WASHINGTON, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time = (SELECT MAX(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, date_day AS DATE_DAYalias1, days AS DAYSalias1, flight AS FLIGHTalias1 WHERE (CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'WASHINGTON' AND DATE_DAYalias1.day_number = 23 AND DATE_DAYalias1.month_number = 4 AND DATE_DAYalias1.year = 1991 AND DAYSalias1.day_name = DATE_DAYalias1.day_name AND FLIGHTalias1.flight_days = DAYSalias1.days_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'ATLANTA' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code)" 2617,"###HUMAN: A bar chart about what are the memories and carriers of phones?, and order by the Y-axis in descending., ###ASSISTANT: SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY SUM(Memory_in_G) DESC" 2618,"###HUMAN: how many patients admitted before 2155 are diagnosed with other specified gastritis, with hemorrhage?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < ""2155"" AND diagnoses.long_title = ""Other specified gastritis, with hemorrhage""" 2619,"###HUMAN: What is the B Score when the total is more than 16.125, and position is 3rd?, ###ASSISTANT: SELECT SUM(""B Score"") FROM table_65946 WHERE ""Total"" > '16.125' AND ""Position"" = '3rd'" 2620,"###HUMAN: Which country had a place of t1, as well as a score of 72-68-70-73=283?, ###ASSISTANT: SELECT ""Country"" FROM table_50932 WHERE ""Place"" = 't1' AND ""Score"" = '72-68-70-73=283'" 2621,"###HUMAN: what is the name of first visitor on this chart ?, ###ASSISTANT: SELECT ""visitor"" FROM table_204_557 WHERE id = 1" 2622,"###HUMAN: Which team played Footscray?, ###ASSISTANT: SELECT ""Away team"" FROM table_11606 WHERE ""Home team"" = 'footscray'" 2623,"###HUMAN: What are the processors supported by a ddr2 memory and the nforce 550 model?, ###ASSISTANT: SELECT ""Processors Supported"" FROM table_39045 WHERE ""Memory"" = 'ddr2' AND ""Model"" = 'nforce 550'" 2624,"###HUMAN: Questions with answers, but no accepted answer., ###ASSISTANT: SELECT Id AS ""post_link"", AnswerCount FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND OwnerUserId = '##UserId:int##'" 2625,"###HUMAN: What is the party when the constituency is 1. Chennai North?, ###ASSISTANT: SELECT ""Party"" FROM table_25286 WHERE ""Constituency"" = '1. Chennai North'" 2626,"###HUMAN: Which Losses have a Wimmera FL of minyip murtoa?, ###ASSISTANT: SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = ""minyip murtoa""" 2627,"###HUMAN: Among patients whose birth year is before 2107, how many of them belonged to black/african american ethnic origin?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = ""BLACK/AFRICAN AMERICAN"" AND demographic.dob_year < ""2107""" 2628,"###HUMAN: Who did they play on August 12?, ###ASSISTANT: SELECT ""Opponent"" FROM table_79956 WHERE ""Date"" = 'august 12'" 2629,"###HUMAN: Provide me the list of patients on base drug prescription who havea hospital stay greater than three days., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > ""3"" AND prescriptions.drug_type = ""BASE""" 2630,"###HUMAN: What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?, ###ASSISTANT: SELECT SUM(year) FROM table_name_75 WHERE entrant = ""elf team tyrrell"" AND points = ""39"" AND chassis = ""tyrrell 007""" 2631,"###HUMAN: Venue of Pepsi arena involved what club?, ###ASSISTANT: SELECT ""Club"" FROM table_36909 WHERE ""Venue"" = 'pepsi arena'" 2632,"###HUMAN: What is Graham Gooch's nationality?, ###ASSISTANT: SELECT nationality FROM table_name_87 WHERE player = ""graham gooch""" 2633,"###HUMAN: Which Player has a To par of 2, and a Country of wales?, ###ASSISTANT: SELECT ""Player"" FROM table_60735 WHERE ""To par"" = '–2' AND ""Country"" = 'wales'" 2634,"###HUMAN: how much was patient 20898's body weight last measured in this month?, ###ASSISTANT: SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20898)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY chartevents.charttime DESC LIMIT 1" 2635,"###HUMAN: How many different counts for won points does Flavia Pennetta have?, ###ASSISTANT: SELECT COUNT(""Points won"") FROM table_3813 WHERE ""Player"" = 'Flavia Pennetta'" 2636,"###HUMAN: How many documents are created in each day? Bin the document date by year interval with a line chart., ###ASSISTANT: SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code" 2637,"###HUMAN: When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?, ###ASSISTANT: SELECT ""Started"" FROM table_46421 WHERE ""Country"" = 'eng' AND ""Loan Club"" = 'sunderland' AND ""End Source"" = 'south wales echo'" 2638,"###HUMAN: what is the name of the episode when the number of spectators was 5.60 millions?, ###ASSISTANT: SELECT ""Title"" FROM table_25663 WHERE ""Viewers (millions)"" = '5.60'" 2639,"###HUMAN: When did the episode title 'Duet For One' air?, ###ASSISTANT: SELECT ""Original air date"" FROM table_16360 WHERE ""Title"" = 'Duet for One'" 2640,"###HUMAN: how many patients had the drug code acet650r?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = ""ACET650R""" 2641,"###HUMAN: until 2104, what was the monthly minimum weight of patient 22517?, ###ASSISTANT: SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22517)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') AND STRFTIME('%y', chartevents.charttime) <= '2104' GROUP BY STRFTIME('%y-%m', chartevents.charttime)" 2642,"###HUMAN: What was the decision of the game when Montreal was the home team?, ###ASSISTANT: SELECT decision FROM table_name_90 WHERE home = ""montreal""" 2643,"###HUMAN: What is the 2004 that has a of grand slam tournaments in2006 ?, ###ASSISTANT: SELECT ""2004"" FROM table_40489 WHERE ""2006"" = 'grand slam tournaments'" 2644,"###HUMAN: Which divisions have 565 as the number of winning tickets?, ###ASSISTANT: SELECT ""Divisions"" FROM table_23618 WHERE ""Number of winning tickets"" = '565'" 2645,"###HUMAN: Average score per hundred views., ###ASSISTANT: WITH counts_cte AS (SELECT LAST_DATE_OF_MONTH(p.CreationDate) AS Cmonth, SUM(Score) AS Score, SUM(ViewCount) AS Views FROM Posts AS p WHERE PostTypeId = 1 GROUP BY LAST_DATE_OF_MONTH(p.CreationDate)) SELECT Cmonth, 100 * (CAST(Score AS FLOAT)) / (CAST(Views AS FLOAT)) AS ""score_per_view"" FROM counts_cte ORDER BY Cmonth" 2646,"###HUMAN: WHAT IS THE BUDGET FOR THE INCREDIBLES?, ###ASSISTANT: SELECT budget FROM table_name_28 WHERE film = ""the incredibles""" 2647,"###HUMAN: What's the average year for the name aida-wedo dorsa with a diameter less than 450?, ###ASSISTANT: SELECT AVG(""Year named"") FROM table_46408 WHERE ""Name"" = 'aida-wedo dorsa' AND ""Diameter (km)"" < '450'" 2648,"###HUMAN: how many patients during this year have received a sodium, urine test?, ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium, urine') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))" 2649,"###HUMAN: What is the total sum of the goals at competitions with more than 10 draws?, ###ASSISTANT: SELECT SUM(""Goals for"") FROM table_43363 WHERE ""Drawn"" > '10'" 2650,"###HUMAN: Which actor from Serbia was nominated for best actor in a supporting role?, ###ASSISTANT: SELECT actors_name FROM table_10236830_4 WHERE nomination = ""Best Actor in a Supporting Role"" AND country = ""Serbia""" 2651,"###HUMAN: Who wrote the episode that originally aired on March 1, 1998?, ###ASSISTANT: SELECT written_by FROM table_name_42 WHERE original_airdate = ""march 1, 1998""" 2652,"###HUMAN: With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?, ###ASSISTANT: SELECT number FROM table_name_15 WHERE builder = ""baldwin locomotive works"" AND works_number = 40864" 2653,"###HUMAN: Who was the incumbent when henry e. barbour ran?, ###ASSISTANT: SELECT candidates FROM table_1342379_5 WHERE incumbent = ""Henry E. Barbour""" 2654,"###HUMAN: Show the number of departments created in different year and bin creation time by year in a line chart, and I want to rank in ascending by the x-axis., ###ASSISTANT: SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation" 2655,"###HUMAN: Which venue was used 11 february 1996?, ###ASSISTANT: SELECT venue FROM table_name_45 WHERE date = ""11 february 1996""" 2656,"###HUMAN: What is the total number of seats with gavin duffy in series 4?, ###ASSISTANT: SELECT COUNT(""Seat"") FROM table_12149 WHERE ""Series 4"" = 'gavin duffy'" 2657,"###HUMAN: what is the number of patients whose marital status is single and primary disease is hypoxia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = ""SINGLE"" AND demographic.diagnosis = ""HYPOXIA""" 2658,"###HUMAN: Which driver won at the Sachsenring circuit?, ###ASSISTANT: SELECT winning_driver FROM table_1140114_5 WHERE circuit = ""Sachsenring""" 2659,"###HUMAN: NoSQL datastore questions by year., ###ASSISTANT: SELECT Tags.TagName, YEAR(DATE(Posts.CreationDate)) AS year, COUNT(Posts.Id) FROM Tags, PostTags, Posts WHERE Tags.TagName IN ('cassandra') AND Tags.Id = PostTags.TagId AND PostTags.PostId = Posts.Id AND Posts.CreationDate > '2013-01-01' AND Posts.CreationDate < '2021-01-01' GROUP BY Tags.TagName, YEAR(DATE(Posts.CreationDate)) ORDER BY Tags.TagName, year DESC" 2660,"###HUMAN: How many opponents did the Sun Devils play when they scored 41 points?, ###ASSISTANT: SELECT COUNT(""Opponent"") FROM table_2401 WHERE ""Sun Devils points"" = '41'" 2661,"###HUMAN: what was the highest three diagnosis, which had the highest three year mortality rate?, ###ASSISTANT: SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.charttime) > 3 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) AS c1 FROM (SELECT t1.subject_id, t1.icd9_code, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id GROUP BY admissions.subject_id, diagnoses_icd.icd9_code HAVING MIN(diagnoses_icd.charttime) = diagnoses_icd.charttime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.charttime) > 3 * 365) AS t2 JOIN patients ON t2.subject_id = patients.subject_id GROUP BY t2.icd9_code) AS t3) AS t4 WHERE t4.c2 <= 3)" 2662,"###HUMAN: Name the agg for seba united, ###ASSISTANT: SELECT agg FROM table_name_12 WHERE team_1 = ""seba united""" 2663,"###HUMAN: What was the attendance when the score was 88-98?, ###ASSISTANT: SELECT attendance FROM table_name_20 WHERE score = ""88-98""" 2664,"###HUMAN: What is the name of the race on 16 september?, ###ASSISTANT: SELECT ""Race Name"" FROM table_77933 WHERE ""Date"" = '16 september'" 2665,"###HUMAN: Which nationality is the player from the Philadelphia Flyers?, ###ASSISTANT: SELECT nationality FROM table_1473672_3 WHERE nhl_team = ""Philadelphia Flyers""" 2666,"###HUMAN: What was the minimum OTL amount?, ###ASSISTANT: SELECT MIN(""OTL"") FROM table_1961" 2667,"###HUMAN: Select All Javascript Questions and Accepted answers., ###ASSISTANT: SELECT QPosts.ViewCount, QPosts.LastActivityDate, QPosts.Title, QPosts.Id, QPosts.Body, QPosts.AcceptedAnswerId AS ""answer Id"", APosts.Body FROM Posts AS QPosts, Posts AS APosts, PostTags WHERE (QPosts.Id = PostTags.PostId) AND (PostTags.TagId = 3) AND (QPosts.PostTypeId = 1) AND APosts.Id = QPosts.AcceptedAnswerId LIMIT 20000" 2668,"###HUMAN: Who is the lead for the team with Nkeiruka Ezekh as second?, ###ASSISTANT: SELECT lead FROM table_name_59 WHERE second = ""nkeiruka ezekh""" 2669,"###HUMAN: what were the three most commonly prescribed medications during a year before for patients who were also prescribed with methylprednisolone sodium succ at the same time?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'methylprednisolone sodium succ' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3" 2670,"###HUMAN: what is age and days of hospital stay of subject name michelle medina?, ###ASSISTANT: SELECT demographic.age, demographic.days_stay FROM demographic WHERE demographic.name = ""Michelle Medina""" 2671,"###HUMAN: pm flights leaving SAN FRANCISCO arriving BOSTON, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.departure_time <= 2359 AND flight.departure_time >= 1200) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2672,"###HUMAN: What year was stage 8 reached?, ###ASSISTANT: SELECT year FROM table_name_54 WHERE stages = ""8""" 2673,"###HUMAN: what is marital status and age of subject name orville ford?, ###ASSISTANT: SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.name = ""Orville Ford""" 2674,"###HUMAN: What amount of points for were there when there was 52 points?, ###ASSISTANT: SELECT points_for FROM table_13399573_3 WHERE points = ""52""" 2675,"###HUMAN: What position did the draft pick going to saskatchewan play?, ###ASSISTANT: SELECT position FROM table_28059992_5 WHERE cfl_team = ""Saskatchewan""" 2676,"###HUMAN: What season features writer Michael Poryes?, ###ASSISTANT: SELECT ""Season #"" FROM table_72254 WHERE ""Written by"" = 'Michael Poryes'" 2677,"###HUMAN: Name the sum of frequency will call sign of k259aw, ###ASSISTANT: SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = ""k259aw""" 2678,"###HUMAN: Name the operator with berths more than 1 and depth of 12.5-15.5, ###ASSISTANT: SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = ""12.5-15.5""" 2679,"###HUMAN: Which claim processing stage has the most claims? Show the claim status name., ###ASSISTANT: SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY COUNT(*) DESC LIMIT 1" 2680,"###HUMAN: acute or poorly controlled medical illness: blood pressure > 180 mmhg systolic or 100 mmhg diastolic; myocardial infarction within 6 months; uncompensated congestive heart failure ( nyha class iii or iv ) , severe renal, hepatic or gastrointestinal disease that could alter drug pharmacokinetics; blood glucose > 180 mg / dl on repeated testing at entry into study or need for insulin therapy, ###ASSISTANT: SELECT * FROM table_train_135 WHERE systolic_blood_pressure_sbp > 180 OR diastolic_blood_pressure_dbp > 100 OR myocardial_infarction = 1 OR heart_disease = 1 OR renal_disease = 1 OR hepatic_disease = 1 OR gastrointestinal_disease = 1 OR blood_glucose > 180" 2681,"###HUMAN: Besides a general elective , would RCSSCI 396 fulfill any requirements ?, ###ASSISTANT: SELECT DISTINCT program_course.category FROM course, program_course WHERE course.department = 'RCSSCI' AND course.number = 396 AND program_course.course_id = course.course_id" 2682,"###HUMAN: give me the number of patients whose insurance is government and admission location is emergency room admit?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = ""Government"" AND demographic.admission_location = ""EMERGENCY ROOM ADMIT""" 2683,"###HUMAN: Return a bar chart on how many students are older than 20 in each dorm?, and I want to rank in ascending by the Y., ###ASSISTANT: SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY COUNT(*)" 2684,"###HUMAN: give me the flights on tuesday from LOS ANGELES to PITTSBURGH, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 22 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LOS ANGELES' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2685,"###HUMAN: How many draws did Mortlake have when the losses were more than 5?, ###ASSISTANT: SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = ""mortlake""" 2686,"###HUMAN: How many themes are there where the order # is 9?, ###ASSISTANT: SELECT COUNT(""Theme"") FROM table_28505 WHERE ""Order #"" = '9'" 2687,"###HUMAN: what is the first tournament listed ?, ###ASSISTANT: SELECT ""tournament"" FROM table_204_328 WHERE id = 1" 2688,"###HUMAN: provide the number of patients whose ethnicity is hispanic or latino and procedure short title is ptca?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = ""HISPANIC OR LATINO"" AND procedures.short_title = ""PTCA""" 2689,"###HUMAN: how many patients under the age of 83 stayed in the hospital for atleast a day?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < ""83"" AND demographic.days_stay > ""0""" 2690,"###HUMAN: Which Incumbent has a District of massachusetts 8?, ###ASSISTANT: SELECT incumbent FROM table_name_47 WHERE district = ""massachusetts 8""" 2691,"###HUMAN: Which state spent the most revenue towards schools and whats the state average score, ###ASSISTANT: SELECT T2.state, T3.average_scale_score FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code JOIN ndecoreexcel_math_grade8 AS T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY SUM(T1.t_fed_rev) DESC LIMIT 1" 2692,"###HUMAN: Name the courses that are worth 16 credits ., ###ASSISTANT: SELECT DISTINCT name, number FROM course WHERE credits = 16 AND department = 'EECS'" 2693,"###HUMAN: How may draws did libertad have?, ###ASSISTANT: SELECT COUNT(draws) FROM table_14889048_2 WHERE team = ""Libertad""" 2694,"###HUMAN: how many female patients had the procedure short title parent infus nutrit sub?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = ""F"" AND procedures.short_title = ""Parent infus nutrit sub""" 2695,"###HUMAN: Give me the number of the dates when the max temperature was higher than 85, and display from high to low by the Y., ###ASSISTANT: SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 ORDER BY COUNT(date) DESC" 2696,"###HUMAN: patient 006-98330's potassium last measured on the first hospital visit is less than the first value measured on the first hospital visit?, ###ASSISTANT: SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-98330' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) AND lab.labname = 'potassium' ORDER BY lab.labresulttime DESC LIMIT 1) < (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-98330' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) AND lab.labname = 'potassium' ORDER BY lab.labresulttime LIMIT 1)" 2697,"###HUMAN: what is 2010 when 2006 is 3r?, ###ASSISTANT: SELECT ""2010"" FROM table_47843 WHERE ""2006"" = '3r'" 2698,"###HUMAN: What is the highest silver that has 57 as the total, with a bronze greater than 20?, ###ASSISTANT: SELECT MAX(""Silver"") FROM table_63028 WHERE ""Total"" = '57' AND ""Bronze"" > '20'" 2699,"###HUMAN: Visualize the total smallest rating of different movie title using a pie chart., ###ASSISTANT: SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title" 2700,"###HUMAN: what was patient 13897's daily average value of body weight until 07/2104?, ###ASSISTANT: SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13897)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') AND STRFTIME('%y-%m', chartevents.charttime) <= '2104-07' GROUP BY STRFTIME('%y-%m-%d', chartevents.charttime)" 2701,"###HUMAN: what's the number of patients who left the hospital in 2101?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2101'" 2702,"###HUMAN: Search: Posts by specific two Tags., ###ASSISTANT: SELECT P.Id AS ""post_link"", P.Tags, P.CreationDate FROM Posts AS P WHERE P.AnswerCount > 0 AND P.Tags LIKE '%##Tag1##%' AND P.Tags LIKE '%##Tag2##%' ORDER BY P.CreationDate DESC LIMIT 50000" 2703,"###HUMAN: Plot the total number by grouped by nationality as a bar graph, I want to list by the Y in ascending., ###ASSISTANT: SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality ORDER BY COUNT(*)" 2704,"###HUMAN: What is the average finish when winnings equals $71,200?, ###ASSISTANT: SELECT ""Avg. Finish"" FROM table_24649 WHERE ""Winnings"" = '$71,200'" 2705,"###HUMAN: What is WSU Year(s), when Pro Year(s) is 1974-77?, ###ASSISTANT: SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = ""1974-77""" 2706,"###HUMAN: Top 2000 Stack Overflow Users From Netherlands By Reputation. Top 2000 SO users from Netherlands or Netherlands based cities., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Position, DisplayName, Reputation, WebsiteUrl, Location, WebsiteUrl, AboutMe, 'http://stackoverflow.com/users/' + CAST(Id AS TEXT(10)) AS ProfileUrl FROM Users WHERE UPPER(Location) LIKE '%NETHERLANDS%' OR UPPER(Location) LIKE '%NEDERLAND%' OR UPPER(Location) LIKE N'%AMSTERDAM%' OR UPPER(Location) LIKE N'%EINDHOVEN%' OR UPPER(Location) LIKE N'%UTRECHT%' OR UPPER(Location) LIKE N'%NIJMEGEN%' OR UPPER(Location) LIKE N'%ROTTERDAM%' OR UPPER(Location) LIKE N'%HAAG%' ORDER BY Reputation DESC LIMIT 2000" 2707,"###HUMAN: Show the transaction type and the number of transactions by a bar chart, and show in descending by the transaction_type., ###ASSISTANT: SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type DESC" 2708,"###HUMAN: who is the first loser listed on this chart ?, ###ASSISTANT: SELECT ""loser"" FROM table_204_373 WHERE id = 1" 2709,"###HUMAN: What is the Ratt of the year with a 78 long?, ###ASSISTANT: SELECT ratt FROM table_name_97 WHERE long = ""78""" 2710,"###HUMAN: How many students are advised by each rank of faculty? List the rank and the number of students Plot them as bar chart, I want to display from low to high by the Rank please., ###ASSISTANT: SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank ORDER BY Rank" 2711,"###HUMAN: Who was the architect that built the Electric Railway Chambers before 1915?, ###ASSISTANT: SELECT architect FROM table_name_43 WHERE built < 1915 AND building = ""electric railway chambers""" 2712,"###HUMAN: What players have a position of F?, ###ASSISTANT: SELECT player FROM table_name_2 WHERE position = ""f""" 2713,"###HUMAN: Find Questions with one tag and specific answer text., ###ASSISTANT: SELECT P.Id AS ""post_link"", P.Tags FROM Posts AS P, PostTags AS Pt, Tags AS T WHERE P.Id = Pt.PostId AND T.Id = Pt.TagId AND T.TagName = '##tag1##' AND P.PostTypeId = 1 AND P.AnswerCount > 0 AND NOT P.AcceptedAnswerId IS NULL AND NOT (SELECT P2.Id FROM Posts AS P2 WHERE P2.Id = P.AcceptedAnswerId AND P2.Body LIKE '%##text##%') IS NULL AND (SELECT COUNT(Pt.TagId) FROM PostTags AS Pt WHERE Pt.PostId = P.Id) = 1" 2714,"###HUMAN: Who was the away team against Newton Heath?, ###ASSISTANT: SELECT ""Away team"" FROM table_59909 WHERE ""Home team"" = 'newton heath'" 2715,"###HUMAN: On what Date was the Score of 3 6, 6 4, 3 6, 6 1, 6 2, ###ASSISTANT: SELECT SUM(""Date"") FROM table_56197 WHERE ""Score"" = '3–6, 6–4, 3–6, 6–1, 6–2'" 2716,"###HUMAN: what's the number of hours that have passed since patient 013-38992 first stayed in ward 561 during this hospital visit?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '013-38992' AND patient.wardid = 561 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1" 2717,"###HUMAN: Which athlete, has an 18.55 result, ###ASSISTANT: SELECT ""Athlete"" FROM table_79341 WHERE ""Result"" = '18.55'" 2718,"###HUMAN: What position did the BMW vehicle made in 2006 hold?, ###ASSISTANT: SELECT ""Position"" FROM table_71693 WHERE ""Vehicle"" = 'bmw' AND ""Year"" = '2006'" 2719,"###HUMAN: Return a bar chart about the distribution of personal_name and author_id ., ###ASSISTANT: SELECT personal_name, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name" 2720,"###HUMAN: what are the flights from DALLAS to BOSTON for tomorrow night or evening, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((((flight.departure_time BETWEEN 1800 AND 2200) OR (NOT flight.departure_time BETWEEN 601 AND 1759)) AND date_day.day_number = 20 AND date_day.month_number = 1 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2721,"###HUMAN: find the number of patients who were admitted to the hospital in the last year., ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')" 2722,"###HUMAN: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of price , and group by attribute name, and rank by the y axis from low to high., ###ASSISTANT: SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Price" 2723,"###HUMAN: What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36?, ###ASSISTANT: SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = 54 AND staying_councillors > 36" 2724,"###HUMAN: On what date was the crowd size of 71,789?, ###ASSISTANT: SELECT date FROM table_name_35 WHERE attendance = ""71,789""" 2725,"###HUMAN: Name the date for adelaide for westpac stadium, ###ASSISTANT: SELECT date FROM table_16388439_3 WHERE home_team = ""Adelaide"" AND ground = ""Westpac Stadium""" 2726,"###HUMAN: How many total smartphones were shipped during the quarter 2012 Q1?, ###ASSISTANT: SELECT COUNT(""Total"") FROM table_974 WHERE ""Quarter"" = '2012 Q1'" 2727,"###HUMAN: When was the audio book with target number 069 69 released?, ###ASSISTANT: SELECT release_date FROM table_20174050_1 WHERE target__number = ""069 69""" 2728,"###HUMAN: what song was this artist on after utabito ?, ###ASSISTANT: SELECT ""title"" FROM table_204_643 WHERE ""release"" > (SELECT ""release"" FROM table_204_643 WHERE ""title"" = 'utabito (歌人 singer?)') ORDER BY ""release"" LIMIT 1" 2729,"###HUMAN: name the nations that won at least 2 gold medals ., ###ASSISTANT: SELECT ""nation"" FROM table_204_771 WHERE ""gold"" >= 2" 2730,"###HUMAN: What's the score on february 18 when the visitors are the montreal canadiens?, ###ASSISTANT: SELECT ""Score"" FROM table_7871 WHERE ""Visitor"" = 'montreal canadiens' AND ""Date"" = 'february 18'" 2731,"###HUMAN: How many players are from each country. Show a pie chart., ###ASSISTANT: SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name" 2732,"###HUMAN: What was the score of the game that had a loss of Chad Fox (3 3)?, ###ASSISTANT: SELECT ""Score"" FROM table_75469 WHERE ""Loss"" = 'chad fox (3–3)'" 2733,"###HUMAN: Which Record that has a Loss of mays (0-3)?, ###ASSISTANT: SELECT ""Record"" FROM table_14565 WHERE ""Loss"" = 'mays (0-3)'" 2734,"###HUMAN: If points against was 371, what is the drawn?, ###ASSISTANT: SELECT ""Drawn"" FROM table_74944 WHERE ""Points against"" = '371'" 2735,"###HUMAN: When the home team was fitzroy, what did the away team score?, ###ASSISTANT: SELECT ""Away team score"" FROM table_77741 WHERE ""Home team"" = 'fitzroy'" 2736,"###HUMAN: Find the id of the customers who have order status both 'On Road' and 'Shipped'., ###ASSISTANT: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" 2737,"###HUMAN: Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?, ###ASSISTANT: SELECT away_team FROM table_name_17 WHERE home_team = ""south dragons"" AND score = ""94-81""" 2738,"###HUMAN: In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?, ###ASSISTANT: SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'" 2739,"###HUMAN: Who won the Mixed doubles when Juliane Schenk won the Women's Singles?, ###ASSISTANT: SELECT ""Mixed doubles"" FROM table_80153 WHERE ""Women's singles"" = 'juliane schenk'" 2740,"###HUMAN: patients with controlled hypertension ( sitting diastolic bp < 95 mmhg and / or sitting systolic bp < 160 mmhg ) , right bundle branch block ( complete or partial ) , and pacemakers may be included in the study., ###ASSISTANT: SELECT * FROM table_train_130 WHERE hypertension = 1 OR (diastolic_blood_pressure_dbp < 95 OR systolic_blood_pressure_sbp < 160) OR right_bundle_branch_block = 1" 2741,"###HUMAN: List the number of documents for each receipt date and bin by weekday in a bar chart, I want to list in ascending by the total number please., ###ASSISTANT: SELECT receipt_date, COUNT(receipt_date) FROM Documents ORDER BY COUNT(receipt_date)" 2742,"###HUMAN: Bar graph to show the total number from different allergytype, and order by the x axis from high to low., ###ASSISTANT: SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType DESC" 2743,"###HUMAN: Original title of das leben der anderen had what director?, ###ASSISTANT: SELECT ""Director"" FROM table_39380 WHERE ""Original title"" = 'das leben der anderen'" 2744,"###HUMAN: What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?, ###ASSISTANT: SELECT AVG(goals) FROM table_name_81 WHERE team = ""kairat"" AND season = ""2002"" AND apps > 29" 2745,"###HUMAN: What is the Total Apps when League Cup Apps is 0 (1), and position is df?, ###ASSISTANT: SELECT total_apps FROM table_name_55 WHERE league_cup_apps = ""0 (1)"" AND position = ""df""" 2746,"###HUMAN: What school did draft pick from round 3 go to?, ###ASSISTANT: SELECT ""School"" FROM table_40871 WHERE ""Round"" = '3'" 2747,"###HUMAN: What is Score, when Date is 10 July 2011?, ###ASSISTANT: SELECT ""Score"" FROM table_44803 WHERE ""Date"" = '10 july 2011'" 2748,"###HUMAN: Good Question Without Good Answer: High Question / Top Answer Score Ratio. Divide the question score by the score of the top answer and sort in decreasing order. Shows questions for which no good solution exist: most of those are either good feature requests or mathematical impossibilities., ###ASSISTANT: SELECT q.Id AS ""post_link"", q.Score AS ""Question Score"", MAX(a.Score) AS ""Top Answer Score"", CAST(q.Score AS FLOAT) / CAST(CASE WHEN MAX(a.Score) = 0 THEN 1 ELSE MAX(a.Score) END AS FLOAT) AS Ratio FROM Posts AS q INNER JOIN Posts AS a ON q.PostTypeId = 1 AND a.ParentId = q.Id GROUP BY q.Id, q.Score ORDER BY Ratio DESC LIMIT 100" 2749,"###HUMAN: was attendance higher week 4 or week 8 ?, ###ASSISTANT: SELECT ""week"" FROM table_203_790 WHERE ""week"" IN (4, 8) ORDER BY ""attendance"" DESC LIMIT 1" 2750,"###HUMAN: What country did Chris Witty represent?, ###ASSISTANT: SELECT nation FROM table_name_50 WHERE name = ""chris witty""" 2751,"###HUMAN: What venue was the 2000 AFC Asian Cup qualification held at?, ###ASSISTANT: SELECT venue FROM table_name_9 WHERE competition = ""2000 afc asian cup qualification""" 2752,"###HUMAN: Name the finish for lee janzen, ###ASSISTANT: SELECT finish FROM table_name_94 WHERE player = ""lee janzen""" 2753,"###HUMAN: count the number of patients whose death status is 0 and procedure icd9 code is 3512?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = ""0"" AND procedures.icd9_code = ""3512""" 2754,"###HUMAN: count the number of patients who underwent therapeu plasmapheresis two or more times in a year before., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'therapeu plasmapheresis') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 >= 2" 2755,"###HUMAN: Display a bar chart for what are the names of the technicians and how many machines are they assigned to repair?, and could you rank in ascending by the X-axis?, ###ASSISTANT: SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY Name" 2756,"###HUMAN: For those employees who did not have any job in the past, show me about the distribution of job_id and the amount of job_id , and group by attribute job_id in a bar chart., ###ASSISTANT: SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID" 2757,"###HUMAN: Closed questions with reasons, sorted by date., ###ASSISTANT: SELECT p.Id AS ""post_link"", ph.CreationDate AS ""closure_date"", ph.Comment AS ""close_reason"", ph.Text AS Voters FROM PostHistory AS ph INNER JOIN Posts AS p ON p.Id = ph.PostId WHERE ph.PostHistoryTypeId = 10 ORDER BY ph.CreationDate DESC" 2758,"###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of manager_id over the job_id , and group by attribute job_id by a bar chart, and list total number from low to high order please., ###ASSISTANT: SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> ""null"" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID)" 2759,"###HUMAN: WHAT IS THE ATTENDANCE WITH A READING AWAY TEAM?, ###ASSISTANT: SELECT attendance FROM table_name_24 WHERE away_team = ""reading""" 2760,"###HUMAN: When did the United Kingdom format a stereo LP?, ###ASSISTANT: SELECT ""Date"" FROM table_48398 WHERE ""Region"" = 'united kingdom' AND ""Format"" = 'stereo lp'" 2761,"###HUMAN: what is the status in vestal, ###ASSISTANT: SELECT status FROM table_18159601_1 WHERE city = ""Vestal""" 2762,"###HUMAN: whats the difference in the systemicmean of patient 017-88691 last measured on the current intensive care unit visit compared to the value second to last measured on the current intensive care unit visit?, ###ASSISTANT: SELECT (SELECT vitalperiodic.systemicmean FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.systemicmean IS NULL ORDER BY vitalperiodic.observationtime DESC LIMIT 1) - (SELECT vitalperiodic.systemicmean FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.systemicmean IS NULL ORDER BY vitalperiodic.observationtime DESC LIMIT 1 OFFSET 1)" 2763,"###HUMAN: count the number of patients whose admission year is less than 2156 and procedure long title is laryngoscopy and other tracheoscopy?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < ""2156"" AND procedures.long_title = ""Laryngoscopy and other tracheoscopy""" 2764,"###HUMAN: Give me the comparison about the sum of meter_100 over the meter_200 , and group by attribute meter_200, and could you list x-axis from high to low order?, ###ASSISTANT: SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC" 2765,"###HUMAN: When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?, ###ASSISTANT: SELECT COUNT(""Heat"") FROM table_45035 WHERE ""Mark"" = '7.29' AND ""Name"" = 'virgen benavides' AND ""Lane"" < '2'" 2766,"###HUMAN: what is the capacity when the code is d4f bi-fuel 732?, ###ASSISTANT: SELECT ""Capacity"" FROM table_14849 WHERE ""Code"" = 'd4f bi-fuel 732'" 2767,"###HUMAN: Where do Stack Overflow users come from?., ###ASSISTANT: SELECT u.Location, u.Id, u.Reputation FROM Users AS u WHERE u.Location = 'Cheyenne, WY'" 2768,"###HUMAN: What is the Date with a Result of 8 2, and a Score with 6 2?, ###ASSISTANT: SELECT ""Date"" FROM table_11174 WHERE ""Result"" = '8–2' AND ""Score"" = '6–2'" 2769,"###HUMAN: what was the date the last person on the list left office ?, ###ASSISTANT: SELECT ""left office"" FROM table_204_668 ORDER BY id DESC LIMIT 1" 2770,"###HUMAN: How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?, ###ASSISTANT: SELECT COUNT(""Round of 16"") FROM table_28578 WHERE ""Round of 32"" = 'Lakpa Tashi Sherpa ( BHU ) W PTS 12-5'" 2771,"###HUMAN: which competition took place in 2008 but had only one event ?, ###ASSISTANT: SELECT ""competition"" FROM table_204_975 GROUP BY ""competition"" HAVING COUNT(""event"") = 1" 2772,"###HUMAN: Away result of 0 3, and a Season of 1969-70 is what competition?, ###ASSISTANT: SELECT ""Competition"" FROM table_75507 WHERE ""Away result"" = '0–3' AND ""Season"" = '1969-70'" 2773,"###HUMAN: out of total number of patients who had a lab test for total protein in urine, how many of them belonged to christian scientist belief?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = ""CHRISTIAN SCIENTIST"" AND lab.label = ""Total Protein, Urine""" 2774,"###HUMAN: how many teams had a manner of departure due to there contract being terminated ?, ###ASSISTANT: SELECT COUNT(""team"") FROM table_203_450 WHERE ""manner of departure"" = 'contract terminated'" 2775,"###HUMAN: Show the minimum, average, and maximum age of all students., ###ASSISTANT: SELECT MIN(age), AVG(age), MAX(age) FROM Student" 2776,"###HUMAN: In the system where Sunday is ny yitru kizhamai, what is Saturday?, ###ASSISTANT: SELECT ""Saturday Shani (Saturn)"" FROM table_17783 WHERE ""Sunday Surya (the Sun)"" = 'ஞாயிற்று கிழமை Nyāyitru kizhamai'" 2777,"###HUMAN: What is the average number of golds for teams in rank 17 with more than 4 silver?, ###ASSISTANT: SELECT AVG(gold) FROM table_name_13 WHERE rank = ""17"" AND silver > 4" 2778,"###HUMAN: What was the highest Pick for Lonnie Brockman before round 9?, ###ASSISTANT: SELECT MAX(pick) FROM table_name_30 WHERE player = ""lonnie brockman"" AND round < 9" 2779,"###HUMAN: How many average plays have points greater than 14, with an against greater than 17?, ###ASSISTANT: SELECT AVG(""Played"") FROM table_42627 WHERE ""Points"" > '14' AND ""Against"" > '17'" 2780,"###HUMAN: What are distinct locations where tracks are located?, ###ASSISTANT: SELECT DISTINCT location FROM track" 2781,"###HUMAN: What was the attendance at the Red Sox game that had a loss of Wakefield (7 10)?, ###ASSISTANT: SELECT ""Attendance"" FROM table_57043 WHERE ""Loss"" = 'wakefield (7–10)'" 2782,"###HUMAN: Who was the deceased spouse who was married for 4 years?, ###ASSISTANT: SELECT ""Deceased Spouse"" FROM table_26633 WHERE ""Length of Marriage"" = '4 years'" 2783,"###HUMAN: What are the campuses that opened in 1958?, ###ASSISTANT: SELECT campus FROM campuses WHERE year = 1958" 2784,"###HUMAN: What site(s) for tv station tv3?, ###ASSISTANT: SELECT site FROM table_1601792_4 WHERE television_station = ""TV3""" 2785,"###HUMAN: What actor made a film in 1957?, ###ASSISTANT: SELECT name FROM table_name_30 WHERE year = ""1957""" 2786,"###HUMAN: Return a pie chart about the proportion of All_Home and the sum of School_ID., ###ASSISTANT: SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home" 2787,"###HUMAN: Is there a professor assigned to teach Other classes next Winter ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017" 2788,"###HUMAN: What is the total balance of savings accounts not belonging to someone with the name Brown?, ###ASSISTANT: SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'" 2789,"###HUMAN: Migrated questions to posted questions ratio., ###ASSISTANT: SELECT p.Id, COUNT(pht.Name) FROM Posts AS p, PostTypes AS pt, PostHistoryTypes AS pht, PostHistory AS ph WHERE p.Id = ph.PostId AND ph.PostHistoryTypeId = pht.Id AND p.PostTypeId = pt.Id AND pt.Name = 'Question' AND pht.Id IN (17, 35, 36) GROUP BY p.Id ORDER BY p.Id" 2790,"###HUMAN: Show the number of faculty for each rank in a bar chart., ###ASSISTANT: SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank" 2791,"###HUMAN: What was the smallest crowd for a Melbourne away game?, ###ASSISTANT: SELECT MIN(crowd) FROM table_name_83 WHERE away_team = ""melbourne""" 2792,"###HUMAN: What classes does Prof. Ej Westlake teach in Spring 2005 ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Ej Westlake%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester AND semester.year = 2005" 2793,"###HUMAN: when did patient 017-49375 had the first intake on 04/14/this year?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-49375')) AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m-%d', intakeoutput.intakeoutputtime) = '04-14' ORDER BY intakeoutput.intakeoutputtime LIMIT 1" 2794,"###HUMAN: If the player is Hashan Tillakaratne, what is the catches minimum?, ###ASSISTANT: SELECT MIN(catches) FROM table_26041144_16 WHERE player = ""Hashan Tillakaratne""" 2795,"###HUMAN: What is the Outcome of the match with Partner Andoni Vivanco?, ###ASSISTANT: SELECT ""Outcome"" FROM table_50160 WHERE ""Partner"" = 'andoni vivanco'" 2796,"###HUMAN: Count of questions, comments, answers with tag over time., ###ASSISTANT: SELECT DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109') AS ""week"", COUNT(DISTINCT Posts.Id) AS Posts, COUNT(Posts.AcceptedAnswerId) * 100 / COUNT(DISTINCT Posts.Id) AS PercentWithAcceptedAnswer, SUM(Posts.AnswerCount) AS Answers, SUM(Posts.CommentCount) AS Comments FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName LIKE 'bigcommerce' AND PostTypeId = 1 AND CreationDate > '2013-01-06' GROUP BY DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109') ORDER BY 'week' DESC" 2797,"###HUMAN: i need ground transportation in SEATTLE, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'SEATTLE' AND ground_service.city_code = city.city_code" 2798,"###HUMAN: posts closed in sep, oct, or nov, with reasons., ###ASSISTANT: SELECT YEAR(Posts.ClosedDate) AS y, MONTH(Posts.ClosedDate) AS m, CAST(YEAR(Posts.ClosedDate) AS TEXT(10)) + '/' + CAST(MONTH(Posts.ClosedDate) AS TEXT(19)) AS ym, COUNT(CONCAT('http://programmers.stackexchange.com/q/', Posts.Id)) AS Questions FROM PostHistory JOIN Posts ON Posts.Id = PostHistory.PostId WHERE Posts.ClosedDate >= '2012-01-01' AND PostHistoryTypeId = 10 AND PostHistory.Comment != 1 GROUP BY YEAR(Posts.ClosedDate), MONTH(Posts.ClosedDate) ORDER BY 1 DESC, 2 DESC" 2799,"###HUMAN: what is the arrival time where the station code is awy?, ###ASSISTANT: SELECT ""Arrival"" FROM table_19516 WHERE ""Station Code"" = 'AWY'" 2800,"###HUMAN: What is the lowest number of silver medals with a rank of 4 and total medals greater than 1?, ###ASSISTANT: SELECT MIN(silver) FROM table_name_68 WHERE rank = 4 AND total > 1" 2801,"###HUMAN: count the number of patients whose age is less than 43 and lab test name is epithelial cells?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < ""43"" AND lab.label = ""Epithelial Cells""" 2802,"###HUMAN: what is the number of goals scored in the algarve cup on march 5 , 2002 ?, ###ASSISTANT: SELECT ""scored"" FROM table_204_346 WHERE ""date"" = '5 march 2002'" 2803,"###HUMAN: Who won in 1988 with a total less than 287?, ###ASSISTANT: SELECT ""Player"" FROM table_64946 WHERE ""Total"" < '287' AND ""Year(s) won"" = '1988'" 2804,"###HUMAN: what is the title of the episode with production code '2arg09'?, ###ASSISTANT: SELECT ""Title"" FROM table_29439 WHERE ""Production code"" = '2ARG09'" 2805,"###HUMAN: what party had the least number of seats ?, ###ASSISTANT: SELECT ""party"" FROM table_203_798 ORDER BY ""seats"" LIMIT 1" 2806,"###HUMAN: What are the classes offered for Other next Winter ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017" 2807,"###HUMAN: How many people wrote the episode that had 7.26 million u.s. viewers?, ###ASSISTANT: SELECT COUNT(written_by) FROM table_28037619_2 WHERE us_viewers__million_ = ""7.26""" 2808,"###HUMAN: What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko?, ###ASSISTANT: SELECT MAX(""Laps"") FROM table_78424 WHERE ""Grid"" > '14' AND ""Time/Retired"" = '+ 2 laps' AND ""Driver"" = 'helmut marko'" 2809,"###HUMAN: What are all the album titles, in alphabetical order?, ###ASSISTANT: SELECT title FROM album ORDER BY title" 2810,"###HUMAN: Where attendance is 79,431 what is date?, ###ASSISTANT: SELECT ""Date"" FROM table_55954 WHERE ""Attendance"" = '79,431'" 2811,"###HUMAN: how many patients whose diagnoses long title is cellulitis and abscess of leg, except foot and drug route is po?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = ""Cellulitis and abscess of leg, except foot"" AND prescriptions.route = ""PO""" 2812,"###HUMAN: Which Country has a Network of channel 1?, ###ASSISTANT: SELECT ""Country"" FROM table_40037 WHERE ""Network"" = 'channel 1'" 2813,"###HUMAN: neutrophil count >= 1500 / mm3, ###ASSISTANT: SELECT * FROM table_dev_35 WHERE neutrophil_count >= 1500" 2814,"###HUMAN: how many companies had over $ 1,000,000 profit ?, ###ASSISTANT: SELECT COUNT(""name of\nconcern"") FROM table_203_320 WHERE ""profit\n(thou.\npln)"" > 1000000" 2815,"###HUMAN: What are the played points difference?, ###ASSISTANT: SELECT played FROM table_name_82 WHERE points_difference = ""points difference""" 2816,"###HUMAN: What chassis did the porsche flat-4 use before 1958?, ###ASSISTANT: SELECT ""Chassis"" FROM table_80210 WHERE ""Engine"" = 'porsche flat-4' AND ""Year"" < '1958'" 2817,"###HUMAN: What number (#) is associated with the Name Ron Baxter?, ###ASSISTANT: SELECT COUNT(_number) FROM table_12032893_1 WHERE name = ""Ron Baxter""" 2818,"###HUMAN: Draw a bar chart of name versus age, and I want to rank by the x axis in asc., ###ASSISTANT: SELECT Name, Age FROM editor ORDER BY Name" 2819,"###HUMAN: Which Margin of victory has a Runner(s)-up of mark o'meara?, ###ASSISTANT: SELECT margin_of_victory FROM table_name_19 WHERE runner_s__up = ""mark o'meara""" 2820,"###HUMAN: what is the number of patients who were admitted before the year 2115 for insertion of non-drug-eluting coronary artery stent(s)?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < ""2115"" AND procedures.long_title = ""Insertion of non-drug-eluting coronary artery stent(s)""" 2821,"###HUMAN: What is the sequencer when ion torrent pgm is 200-400 bp?, ###ASSISTANT: SELECT ""Sequencer"" FROM table_17773 WHERE ""Ion Torrent PGM"" = '200-400 bp'" 2822,"###HUMAN: give me the number of patients whose admission type is emergency and lab test name is creatine kinase, mb isoenzyme?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = ""EMERGENCY"" AND lab.label = ""Creatine Kinase, MB Isoenzyme""" 2823,"###HUMAN: How much absorption in nm does the orange dye have?, ###ASSISTANT: SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = ""orange""" 2824,"###HUMAN: how many games were played in september 1978 ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_565 WHERE ""date"" = 9 AND ""date"" = 1978" 2825,"###HUMAN: Which year has a total of 0 points and a chassis of Toleman tg181?, ###ASSISTANT: SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = ""toleman tg181""" 2826,"###HUMAN: I want to see International Economics courses of 3 credits ., ###ASSISTANT: SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%International Economics%' OR name LIKE '%International Economics%') AND credits = 3" 2827,"###HUMAN: What episode number in the series was directed by John Behring?, ###ASSISTANT: SELECT MAX(""No in Series"") FROM table_24187 WHERE ""Directed by"" = 'John Behring'" 2828,"###HUMAN: What was the home score for the Home team Melbourne?, ###ASSISTANT: SELECT ""Home team score"" FROM table_10710 WHERE ""Home team"" = 'melbourne'" 2829,"###HUMAN: When 1927 is the founded year how many measurements of enrollment in 2012 are there?, ###ASSISTANT: SELECT COUNT(enrollment__2012_) FROM table_2076516_1 WHERE founded = 1927" 2830,"###HUMAN: how many patients died after being diagnosed in 2104 with hematuria in the same hospital encounter?, ###ASSISTANT: SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime, t1.patienthealthsystemstayid FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hematuria') AS t1 GROUP BY t1.uniquepid HAVING MIN(t1.diagnosistime) = t1.diagnosistime AND STRFTIME('%y', t1.diagnosistime) = '2104') AS t2 JOIN (SELECT patient.uniquepid, patient.patienthealthsystemstayid, patient.hospitaldischargetime FROM patient WHERE patient.hospitaldischargestatus = 'expired') AS t3 ON t2.uniquepid = t3.uniquepid WHERE t2.patienthealthsystemstayid = t3.patienthealthsystemstayid" 2831,"###HUMAN: What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817?, ###ASSISTANT: SELECT census_ranking FROM table_name_93 WHERE area_km_2 < 9.94 AND population < 817" 2832,"###HUMAN: What is the away team when the home team is Cheltenham Town?, ###ASSISTANT: SELECT away_team FROM table_name_5 WHERE home_team = ""cheltenham town""" 2833,"###HUMAN: which competition did this competitor compete in next after the world indoor championships in 2008 ?, ###ASSISTANT: SELECT ""competition"" FROM table_204_622 WHERE id = (SELECT id FROM table_204_622 WHERE ""competition"" = 'world indoor championships' AND ""year"" = 2008) + 1" 2834,"###HUMAN: What is the subject when the highest mark is 79?, ###ASSISTANT: SELECT subject FROM table_29842201_1 WHERE highest_mark = 79" 2835,"###HUMAN: Which 2010 stat featured the tournament of the Olympic Games?, ###ASSISTANT: SELECT 2010 FROM table_name_2 WHERE tournament = ""olympic games""" 2836,"###HUMAN: Which Position has a Player of patrick macdonald?, ###ASSISTANT: SELECT ""Position"" FROM table_56631 WHERE ""Player"" = 'patrick macdonald'" 2837,"###HUMAN: Which Perth's gold coast and Adelaide were yes when Auckland was no?, ###ASSISTANT: SELECT ""Perth"" FROM table_68328 WHERE ""Gold Coast"" = 'yes' AND ""Adelaide"" = 'yes' AND ""Auckland"" = 'no'" 2838,"###HUMAN: Show me a bar chart comparing the total number of captains of different classes, order from high to low by the the number of class., ###ASSISTANT: SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY COUNT(Class) DESC" 2839,"###HUMAN: Percent closed per canonical tag., ###ASSISTANT: WITH canon AS (SELECT Tags.Id, Count, Tags.TagName AS otag, COALESCE(c.TargetTagName, b.TargetTagName, a.TargetTagName, TagName) AS tagname FROM Tags LEFT JOIN TagSynonyms AS a ON (a.SourceTagName = TagName) LEFT JOIN TagSynonyms AS b ON (b.SourceTagName = a.TargetTagName) LEFT JOIN TagSynonyms AS c ON (c.SourceTagName = b.TargetTagName)) SELECT TagName, COUNT(*) AS closed, MAX(canon.Count) AS questions, CAST(COUNT(*) AS FLOAT) / MAX(canon.Count) AS percentclosed FROM Posts AS p LEFT JOIN PostTags AS pt ON p.Id = pt.PostId LEFT JOIN canon ON pt.TagId = canon.Id WHERE PostTypeId = 1 AND NOT ClosedDate IS NULL AND canon.Count >= 1000 GROUP BY TagName ORDER BY CAST(COUNT(*) AS FLOAT) / MAX(canon.Count) DESC" 2840,"###HUMAN: Find those themes and years for all exhibitions with ticket prices lower than 15, show me a stacked bar chart that groups by themes, counts year, and the x-axis is Year., ###ASSISTANT: SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Theme" 2841,"###HUMAN: Name the county for mccain being 38.78%, ###ASSISTANT: SELECT ""County"" FROM table_23739 WHERE ""McCain%"" = '38.78%'" 2842,"###HUMAN: what is the overall number of times when the calendar showed october 6, ###ASSISTANT: SELECT COUNT(""Record"") FROM table_29866 WHERE ""Date"" = 'October 6'" 2843,"###HUMAN: What is the admission time and for how many days did the subject id 4333 stay in the hospital?, ###ASSISTANT: SELECT demographic.days_stay, demographic.admittime FROM demographic WHERE demographic.subject_id = ""4333""" 2844,"###HUMAN: How many different set of candidates were there when the incumbent was david e. finley?, ###ASSISTANT: SELECT COUNT(candidates) FROM table_1346137_4 WHERE incumbent = ""David E. Finley""" 2845,"###HUMAN: how many patients have stayed in the hospital for more than 14 days with a ou drug route?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > ""14"" AND prescriptions.route = ""OU""" 2846,"###HUMAN: What was the nationality of the sunk ship named Rinos?, ###ASSISTANT: SELECT nationality FROM table_name_52 WHERE fate = ""sunk"" AND ship = ""rinos""" 2847,"###HUMAN: What livery belongs to the steam Locomotive type builder that was building before 1989?, ###ASSISTANT: SELECT livery FROM table_name_69 WHERE year_built < 1989 AND locomotive_type = ""steam""" 2848,"###HUMAN: For those employees who did not have any job in the past, give me the trend about department_id over hire_date , I want to order in desc by the X-axis., ###ASSISTANT: SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC" 2849,"###HUMAN: Who is the player from round 8?, ###ASSISTANT: SELECT ""Player"" FROM table_50913 WHERE ""Round"" = '8'" 2850,"###HUMAN: What is Gold, when Total is 6?, ###ASSISTANT: SELECT gold FROM table_name_79 WHERE total = 6" 2851,"###HUMAN: who won the election after s. sivaprakasam in the fifth pondicherry assembly ?, ###ASSISTANT: SELECT ""name of m.l.a."" FROM table_204_54 WHERE ""pondicherry assembly"" = 'fifth'" 2852,"###HUMAN: Top 10 tags with top 5 tags., ###ASSISTANT: SELECT Tags FROM Posts WHERE Tags IN (SELECT Tags FROM Tags ORDER BY Count DESC LIMIT 10) LIMIT 5" 2853,"###HUMAN: How many premio are there when 'Artist of the Year' was the categoria?, ###ASSISTANT: SELECT COUNT(""Premio"") FROM table_29563 WHERE ""Categor\u00eda"" = 'Artist of the Year'" 2854,"###HUMAN: Can you tell me the highest Points that has the Played smaller than 30?, ###ASSISTANT: SELECT MAX(points) FROM table_name_67 WHERE played < 30" 2855,"###HUMAN: what is drug route and drug dose of drug name miconazole 2% cream?, ###ASSISTANT: SELECT prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = ""Miconazole 2% Cream""" 2856,"###HUMAN: Name the total number of weeks for si te vas and peak less than 7 and year less than 2000, ###ASSISTANT: SELECT COUNT(""Weeks on Chart"") FROM table_75128 WHERE ""Track"" = 'si te vas' AND ""Peak"" < '7' AND ""Year"" < '2000'" 2857,"###HUMAN: What is the minimum sum?, ###ASSISTANT: SELECT MIN(""Total"") FROM table_30281" 2858,"###HUMAN: what was the total replete w/fiber dose for patient 22517?, ###ASSISTANT: SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22517)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'replete w/fiber' AND d_items.linksto = 'inputevents_cv')" 2859,"###HUMAN: What is the name for the 2012 CN Sabadell?, ###ASSISTANT: SELECT ""Name"" FROM table_9225 WHERE ""2012 club"" = 'cn sabadell'" 2860,"###HUMAN: Which Saturday has a Name of confederation?, ###ASSISTANT: SELECT saturday FROM table_name_68 WHERE name = ""confederation""" 2861,"###HUMAN: find the number of patients who were born before the year 2120 and their drug route is ivpca., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < ""2120"" AND prescriptions.route = ""IVPCA""" 2862,"###HUMAN: Find the last names of the members of the club 'Bootup Baltimore'., ###ASSISTANT: SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" 2863,"###HUMAN: does each congressman have a party listed ?, ###ASSISTANT: SELECT COUNT(*) = 0 FROM table_203_409 WHERE ""party"" IS NULL" 2864,"###HUMAN: what year had the most candidates elected ?, ###ASSISTANT: SELECT ""year of election"" FROM table_203_330 ORDER BY ""candidates elected"" DESC LIMIT 1" 2865,"###HUMAN: just count how many patients have been prescribed spironolactone in 2105., ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'spironolactone' AND STRFTIME('%y', prescriptions.startdate) = '2105')" 2866,"###HUMAN: What are the different first names for customers from Brazil who have also had an invoice?, ###ASSISTANT: SELECT DISTINCT T1.firstname FROM customer AS T1 JOIN invoice AS T2 ON T1.customerid = T2.customerid WHERE T1.country = ""Brazil""" 2867,"###HUMAN: What is the highest number listed?, ###ASSISTANT: SELECT MAX(""Number"") FROM table_17426" 2868,"###HUMAN: what is the most expensive flight from BOSTON to DALLAS, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND fare.one_direction_cost = (SELECT MAX(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'DALLAS' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id" 2869,"###HUMAN: Which polling firm put T. Papadopoulos at 31%?, ###ASSISTANT: SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = ""31%""" 2870,"###HUMAN: is the total score for december 26 the same score as january 2 ?, ###ASSISTANT: SELECT (SELECT ""score"" FROM table_203_517 WHERE ""date"" = 'december 26') = (SELECT ""score"" FROM table_203_517 WHERE ""date"" = 'january 2')" 2871,"###HUMAN: what is the last d5 1/2ns dose that patient 65962 was prescribed in 05/2103?, ###ASSISTANT: SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65962) AND prescriptions.drug = 'd5 1/2ns' AND STRFTIME('%y-%m', prescriptions.startdate) = '2103-05' ORDER BY prescriptions.startdate DESC LIMIT 1" 2872,"###HUMAN: How many poles were there in 1996?, ###ASSISTANT: SELECT MIN(""Poles"") FROM table_2508 WHERE ""Year"" = '1996'" 2873,"###HUMAN: when was patient 007-16517 prescribed for the last time a medication via inhale medication in the current hospital visit?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL)) AND medication.routeadmin = 'inhale' ORDER BY medication.drugstarttime DESC LIMIT 1" 2874,"###HUMAN: How many teams were in the series championnat de france formula renault 2.0?, ###ASSISTANT: SELECT team FROM table_26124171_1 WHERE series = ""Championnat de France Formula Renault 2.0""" 2875,"###HUMAN: is patient 25696's urea nitrogen last measured on the last hospital visit greater than second to last measured on the last hospital visit?, ###ASSISTANT: SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25696 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen') ORDER BY labevents.charttime DESC LIMIT 1) > (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25696 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen') ORDER BY labevents.charttime DESC LIMIT 1 OFFSET 1)" 2876,"###HUMAN: How man 3-dart averages did gary anderson have?, ###ASSISTANT: SELECT COUNT(3 AS _dart_average) FROM table_24549777_1 WHERE player = ""Gary Anderson""" 2877,"###HUMAN: What is the area of the civil parish kilworth and townland monadrishane?, ###ASSISTANT: SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = ""Kilworth"" AND townland = ""Monadrishane""" 2878,"###HUMAN: WHAT IS THE NAME WITH 01.0 10 light street?, ###ASSISTANT: SELECT ""Name"" FROM table_61421 WHERE ""Street address"" = '01.0 10 light street'" 2879,"###HUMAN: What is the location when KO is the method, the result is a win, and the record is 2-0?, ###ASSISTANT: SELECT ""Location"" FROM table_61734 WHERE ""Method"" = 'ko' AND ""Result"" = 'win' AND ""Record"" = '2-0'" 2880,"###HUMAN: For all storms with at least 1 death, show me the name and the total number of deaths with a bar chart, order by the bar in descending., ###ASSISTANT: SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Name DESC" 2881,"###HUMAN: What bran is the callsign dytc-fm?, ###ASSISTANT: SELECT ""Branding"" FROM table_28307 WHERE ""Callsign"" = 'DYTC-FM'" 2882,"###HUMAN: Who write episode number 48 in the series?, ###ASSISTANT: SELECT written_by FROM table_2453243_5 WHERE no_in_series = ""48""" 2883,"###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and commission_pct in a bar chart, and order in asc by the y axis., ###ASSISTANT: SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT" 2884,"###HUMAN: For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, and show Y-axis in descending order., ###ASSISTANT: SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) DESC" 2885,"###HUMAN: What is the smallest sales area (m ) that has 4,094/m and more than 2 stores?, ###ASSISTANT: SELECT MIN(""Sales area (m\u00b2)"") FROM table_4413 WHERE ""Sales per area"" = '€4,094/m²' AND ""No. of stores"" > '2'" 2886,"###HUMAN: What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?, ###ASSISTANT: SELECT MAX(""Current branch opened"") FROM table_41561 WHERE ""Neighborhood"" = 'w. portland park'" 2887,"###HUMAN: what is the maximum age of patients primarily diagnosed with posterior communicating aneurysm/sda before the admission year 2203?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = ""POSTERIOR COMMUNICATING ANEURYSM/SDA"" AND demographic.admityear >= ""2203""" 2888,"###HUMAN: On what Date is there a Home team score of 8.15 (63)?, ###ASSISTANT: SELECT ""Date"" FROM table_4590 WHERE ""Home team score"" = '8.15 (63)'" 2889,"###HUMAN: What 300 -level classes do you have available for the Spring or Summer term ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = course_offering.semester AND semester.year = 2016" 2890,"###HUMAN: What was the attendance when Essendon played as the home team?, ###ASSISTANT: SELECT COUNT(""Crowd"") FROM table_54764 WHERE ""Home team"" = 'essendon'" 2891,"###HUMAN: Return a bar chart on what is the state and enrollment of the colleges where have any students who got accepted in the tryout decision., ###ASSISTANT: SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" 2892,"###HUMAN: how many total cars did chevrolet manufacture ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_604 WHERE ""manufacturer"" = 'chevrolet'" 2893,"###HUMAN: What is the highest crude death rate when deaths are 3 433 and average population is greater than 298?, ###ASSISTANT: SELECT MAX(""Crude death rate (per 1000)"") FROM table_13038 WHERE ""Deaths"" = '3 433' AND ""Average population (x 1000)"" > '298'" 2894,"###HUMAN: How tall is nerlens noel?, ###ASSISTANT: SELECT ""Height"" FROM table_57174 WHERE ""Player"" = 'nerlens noel'" 2895,"###HUMAN: What is the number of 40 to 44 when the 50 to 54 is less than 4,184, and the 15 to 17 is less than 3?, ###ASSISTANT: SELECT COUNT(""40 to 44"") FROM table_77332 WHERE ""50 to 54"" < '4,184' AND ""15 to 17"" < '3'" 2896,"###HUMAN: Who directed the film that Avie Luthra received an award for?, ###ASSISTANT: SELECT director_s_ FROM table_name_63 WHERE recipient = ""avie luthra""" 2897,"###HUMAN: What is the home score with a crowd larger than 25,603?, ###ASSISTANT: SELECT ""Home team score"" FROM table_56904 WHERE ""Crowd"" > '25,603'" 2898,"###HUMAN: What 2006 has q2 as the 2007?, ###ASSISTANT: SELECT 2006 FROM table_name_34 WHERE 2007 = ""q2""" 2899,"###HUMAN: what were the three most frequent drugs prescribed to patients with an age 60 or above after they had been diagnosed with adv eff arom analgsc nec during a year before within 2 months?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'adv eff arom analgsc nec') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.age >= 60 AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3" 2900,"###HUMAN: What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?, ###ASSISTANT: SELECT ""Score"" FROM table_43908 WHERE ""Away team"" = 'gold coast blaze' AND ""Home team"" = 'adelaide 36ers'" 2901,"###HUMAN: In what year is the status of won?, ###ASSISTANT: SELECT year FROM table_name_72 WHERE status = ""won""" 2902,"###HUMAN: What is the sum of number of wins that have earnings of more than ( )2,864,342 and money list rank of 3?, ###ASSISTANT: SELECT SUM(""Wins"") FROM table_70144 WHERE ""Earnings (\u20ac)"" > '2,864,342' AND ""Money list rank"" = '3'" 2903,"###HUMAN: what is the number of patients admitted to hospital since 2103?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) >= '2103'" 2904,"###HUMAN: what is the highest round when the overall is less than 17?, ###ASSISTANT: SELECT MAX(""Round"") FROM table_44649 WHERE ""Overall"" < '17'" 2905,"###HUMAN: What is Hasan Shah's hometown?, ###ASSISTANT: SELECT hometown FROM table_name_40 WHERE name = ""hasan shah""" 2906,"###HUMAN: list the top three most common drugs that patients are prescribed with during the same month after being diagnosed with hypocalcemia - due to rhabdomyolysis until 2 years ago., ###ASSISTANT: SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypocalcemia - due to rhabdomyolysis' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.drugstarttime, 'start of month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 3" 2907,"###HUMAN: what is the record where the opponent is central connecticut?, ###ASSISTANT: SELECT ""Record"" FROM table_73538 WHERE ""Opponent"" = 'Central Connecticut'" 2908,"###HUMAN: What was the October 22 record?, ###ASSISTANT: SELECT ""Record"" FROM table_29595 WHERE ""Date"" = 'October 22'" 2909,"###HUMAN: Which School has a Mascot of squires?, ###ASSISTANT: SELECT school FROM table_name_35 WHERE mascot = ""squires""" 2910,"###HUMAN: What's the attendance when the week was more than 16?, ###ASSISTANT: SELECT attendance FROM table_name_95 WHERE week > 16" 2911,"###HUMAN: did levaquin, dextrose 50 % in water (d50w) iv syringe, or d50 during this hospital encounter be prescribed to patient 018-20179?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaldischargetime IS NULL)) AND medication.drugname IN ('levaquin', 'dextrose 50 % in water (d50w) iv syringe', 'd50')" 2912,"###HUMAN: At what times is 473 taught during the Summer terms ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 473 AND semester.semester IN ('SP', 'Summer', 'SS') AND semester.semester_id = course_offering.semester AND semester.year = 2016" 2913,"###HUMAN: What is the time of songs that have the writer Aaron Schroeder and Wally Gold?, ###ASSISTANT: SELECT time FROM table_name_55 WHERE writer_s_ = ""aaron schroeder and wally gold""" 2914,"###HUMAN: What was the tonnage of the Great Britain ship Batna?, ###ASSISTANT: SELECT ""Tonnage"" FROM table_32996 WHERE ""Nationality"" = 'great britain' AND ""Ship"" = 'batna'" 2915,"###HUMAN: What is the most points when the goals against are 354 and games less than 82?, ###ASSISTANT: SELECT MAX(""Points"") FROM table_6919 WHERE ""Goals against"" = '354' AND ""Games"" < '82'" 2916,"###HUMAN: Which constructor has a race called I News of the World Trophy?, ###ASSISTANT: SELECT constructor FROM table_name_91 WHERE race_name = ""i news of the world trophy""" 2917,"###HUMAN: What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?, ###ASSISTANT: SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = ""Marc Lieb Richard Lietz""" 2918,"###HUMAN: What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin?, ###ASSISTANT: SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = ""ruby-throated hummingbird""" 2919,"###HUMAN: Name the least yes for dublin south, ###ASSISTANT: SELECT MIN(""Yes"") FROM table_1577 WHERE ""Constituency"" = 'Dublin South'" 2920,"###HUMAN: how many candidates with party being democratic and dbeingtrict being new york5, ###ASSISTANT: SELECT COUNT(""Candidates"") FROM table_18209 WHERE ""Party"" = 'Democratic' AND ""District"" = 'New York5'" 2921,"###HUMAN: What is the height in ft for the rockets from 1973-78?, ###ASSISTANT: SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = ""1973-78""" 2922,"###HUMAN: Name the high rebounds for charlotte, ###ASSISTANT: SELECT ""High rebounds"" FROM table_29729 WHERE ""Team"" = 'Charlotte'" 2923,"###HUMAN: Who was the opponent at the Staples Center?, ###ASSISTANT: SELECT ""Opponent"" FROM table_51557 WHERE ""Arena"" = 'staples center'" 2924,"###HUMAN: Which club has 1 runners-up with 0 winners and 2 third place earned?, ###ASSISTANT: SELECT ""Club"" FROM table_50722 WHERE ""Runners-up"" = '1' AND ""Winners"" = '0' AND ""Third"" = '2'" 2925,"###HUMAN: For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)" 2926,"###HUMAN: First elected in 1807 1817 in what district?, ###ASSISTANT: SELECT district FROM table_2668336_17 WHERE first_elected = ""1807 1817""" 2927,"###HUMAN: List the problem id and log id which are assigned to the staff named Rylan Homenick., ###ASSISTANT: SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = ""Rylan"" AND T1.staff_last_name = ""Homenick""" 2928,"###HUMAN: Show the type of school and the number of buses for each type in a bar chart, show by the Type in ascending., ###ASSISTANT: SELECT Type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T2.Type ORDER BY Type" 2929,"###HUMAN: What was the aggregate score that had a 1-2 second leg score?, ###ASSISTANT: SELECT ""Aggregate"" FROM table_78933 WHERE ""2nd leg"" = '1-2'" 2930,"###HUMAN: What are the different card type codes?, ###ASSISTANT: SELECT DISTINCT card_type_code FROM customers_cards" 2931,"###HUMAN: what is the type movinig to alianza atl tico?, ###ASSISTANT: SELECT type FROM table_name_28 WHERE moving_to = ""alianza atlético""" 2932,"###HUMAN: what is maximum age of patients whose gender is m and insurance is self pay?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = ""M"" AND demographic.insurance = ""Self Pay""" 2933,"###HUMAN: tell me the drug that was prescribed to patient 029-7028 for the last time in their first hospital encounter?, ###ASSISTANT: SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-7028' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY medication.drugstarttime DESC LIMIT 1" 2934,"###HUMAN: How many maximum points did Curtis scored?, ###ASSISTANT: SELECT MAX(""Points"") FROM table_28031 WHERE ""Player"" = 'Curtis'" 2935,"###HUMAN: what team comes before confey, ###ASSISTANT: SELECT ""team"" FROM table_204_772 WHERE id = (SELECT id FROM table_204_772 WHERE ""team"" = 'confey') - 1" 2936,"###HUMAN: what is the most recent year gardnar mulloy played as a partner and score was 12 10, 8 10, 12 10, 6 2?, ###ASSISTANT: SELECT MAX(year) FROM table_name_29 WHERE partner = ""gardnar mulloy"" AND score = ""12–10, 8–10, 12–10, 6–2""" 2937,"###HUMAN: At what stadium was the final score 31-28?, ###ASSISTANT: SELECT ""Stadium"" FROM table_71510 WHERE ""Final Score"" = '31-28'" 2938,"###HUMAN: Questions answered before they were asked., ###ASSISTANT: SELECT a.Id AS ""post_link"" FROM Posts AS q JOIN Posts AS a ON a.ParentId = q.Id WHERE q.CreationDate > a.CreationDate ORDER BY a.CreationDate DESC" 2939,"###HUMAN: what was the only tribunal to pronounce zero sentences ?, ###ASSISTANT: SELECT ""tribunal"" FROM table_203_303 WHERE ""total"" = 0" 2940,"###HUMAN: How many introductory phrases are there with 'the w rd' is 'unrequited gov'?, ###ASSISTANT: SELECT COUNT(""Introductory phrase"") FROM table_28001 WHERE ""The W\u00f8rd"" = 'Unrequited Gov'" 2941,"###HUMAN: what is the number of patients whose days of hospital stay is greater than 1 and diagnoses icd9 code is 3970?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > ""1"" AND diagnoses.icd9_code = ""3970""" 2942,"###HUMAN: what was the total of the suprapubic urine output that patient 028-34632 had on the first icu visit?, ###ASSISTANT: SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-34632') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND intakeoutput.celllabel = 'suprapubic urine' AND intakeoutput.cellpath LIKE '%output%'" 2943,"###HUMAN: What was the Away Team of Blackpool's Home game?, ###ASSISTANT: SELECT ""Away team"" FROM table_40750 WHERE ""Home team"" = 'blackpool'" 2944,"###HUMAN: Who wrote when the original airdate is April 5, 1987?, ###ASSISTANT: SELECT ""Written by"" FROM table_24864 WHERE ""Original air date"" = 'April 5, 1987'" 2945,"###HUMAN: At what venue did the match where the home team scored 8.6 (54) take place?, ###ASSISTANT: SELECT ""Venue"" FROM table_33293 WHERE ""Home team score"" = '8.6 (54)'" 2946,"###HUMAN: is there any history of microbiology test results for patient 61751's bile during the last month?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 61751) AND microbiologyevents.spec_type_desc = 'bile' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')" 2947,"###HUMAN: What is Method, when Time is '3:20'?, ###ASSISTANT: SELECT ""Method"" FROM table_58771 WHERE ""Time"" = '3:20'" 2948,"###HUMAN: What is the number of contestants who are 5'7' and exactly 26 years of age?, ###ASSISTANT: SELECT COUNT(""Contestant"") FROM table_27692 WHERE ""Height (ft)"" = '5''7' AND ""Age"" = '26'" 2949,"###HUMAN: What Rider has a Grid of 21?, ###ASSISTANT: SELECT ""Rider"" FROM table_50881 WHERE ""Grid"" = '21'" 2950,"###HUMAN: If the Plain stop is , what is the Non- stop?, ###ASSISTANT: SELECT ""Non- stop"" FROM table_9325 WHERE ""Plain stop"" = 'ㄷ'" 2951,"###HUMAN: find the number of patients on additive type drug prescription who have diagnoses icd9 code 78791., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = ""78791"" AND prescriptions.drug_type = ""ADDITIVE""" 2952,"###HUMAN: WHAT POSITION IS 273?, ###ASSISTANT: SELECT position FROM table_name_26 WHERE overall = 273" 2953,"###HUMAN: What Secretary has a Social AO of lieke de boer?, ###ASSISTANT: SELECT secretary FROM table_name_12 WHERE social_ao = ""lieke de boer""" 2954,"###HUMAN: What is the year that has points larger than 20?, ###ASSISTANT: SELECT COUNT(year) FROM table_name_84 WHERE points > 20" 2955,"###HUMAN: has patient 20441 ever had a arterial bp [diastolic] of greater than 73.0 when they came to the hospital first time?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20441 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') AND chartevents.valuenum > 73.0" 2956,"###HUMAN: provide the number of patients whose lab test name is potassium, urine and lab test result is abnormal., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = ""abnormal"" AND lab.label = ""Potassium, Urine""" 2957,"###HUMAN: Find the address and staff number of the shops that do not have any happy hour. Visualize by bar chart., ###ASSISTANT: SELECT Address, Num_of_staff FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM happy_hour)" 2958,"###HUMAN: indicate the daily maximum amount of heartrate for patient 002-4486 on the first icu visit., ###ASSISTANT: SELECT MAX(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND NOT vitalperiodic.heartrate IS NULL GROUP BY STRFTIME('%y-%m-%d', vitalperiodic.observationtime)" 2959,"###HUMAN: What's the release price of a processor that has a frequency of 3.2 ghz and 1 6.4 gt/s qpi I/O?, ###ASSISTANT: SELECT ""Release price ( USD )"" FROM table_63644 WHERE ""Frequency"" = '3.2 ghz' AND ""I/O bus"" = '1 × 6.4 gt/s qpi'" 2960,"###HUMAN: What is Website, when License is Apache License 2.0?, ###ASSISTANT: SELECT ""Website"" FROM table_49047 WHERE ""License"" = 'apache license 2.0'" 2961,"###HUMAN: Count the number of inpatient hospital admission patients who have neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues/bone marrow transplant as their primary disease., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = ""TRANSFER FROM HOSP/EXTRAM"" AND demographic.diagnosis = ""NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT""" 2962,"###HUMAN: how many competitors competed in the semifinal 2 ?, ###ASSISTANT: SELECT COUNT(""name"") FROM table_204_547" 2963,"###HUMAN: What is the average number of draws for Mortlake club when they have less than 0 wins?, ###ASSISTANT: SELECT AVG(""Draws"") FROM table_64313 WHERE ""Club"" = 'mortlake' AND ""Wins"" < '0'" 2964,"###HUMAN: Which teacher will teach Lyric , Elegy , and Iambus this semester ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.name LIKE '%Lyric , Elegy , and Iambus%' AND semester.semester = 'WN' AND semester.year = 2016" 2965,"###HUMAN: I want to know the HP model with a #HDD of 1 of sides of ds, ###ASSISTANT: SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = ""ds""" 2966,"###HUMAN: provide the number of patients whose marital status is widowed and lab test name is metamyelocytes?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = ""WIDOWED"" AND lab.label = ""Metamyelocytes""" 2967,"###HUMAN: Get me the number of patients with acidosis primary disease and have short title of procedure skin & subq dx proc nec., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = ""ACIDOSIS"" AND procedures.short_title = ""Skin & subq dx proc NEC""" 2968,"###HUMAN: What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju?, ###ASSISTANT: SELECT ""Modern equivalent"" FROM table_7759 WHERE ""Post-1009 province"" = 'gyeongsang -do' AND ""Administrative district"" = 'jinju -mok' AND ""Province of Silla"" = 'gangju'" 2969,"###HUMAN: Who was the host of the premiere on November 10, 2007?, ###ASSISTANT: SELECT ""Host"" FROM table_7052 WHERE ""Premiere"" = 'november 10, 2007'" 2970,"###HUMAN: Name the replaced by for 8 july 2009, ###ASSISTANT: SELECT ""Replaced by"" FROM table_2665 WHERE ""Date of appointment"" = '8 July 2009'" 2971,"###HUMAN: Which circuit was the atcc round 7 at?, ###ASSISTANT: SELECT ""Circuit"" FROM table_61212 WHERE ""Series"" = 'atcc round 7'" 2972,"###HUMAN: what was the last time that patient 022-98345 had volume (ml) propofol taken on 08/25/2102?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-98345')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'volume (ml) propofol' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) = '2102-08-25' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1" 2973,"###HUMAN: i would like a flight from WASHINGTON to BOSTON on 8 20 at 1524, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 20 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time = 1524 AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code" 2974,"###HUMAN: show me flights from BALTIMORE to DALLAS, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code" 2975,"###HUMAN: In Spring or Summer what courses are on offer that meet the Other requirement ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%Other%' AND semester.semester IN ('SP', 'SS', 'SU') AND semester.year = 2016" 2976,"###HUMAN: What was the score for a no. 21 tie?, ###ASSISTANT: SELECT ""Score"" FROM table_51039 WHERE ""Tie no"" = '21'" 2977,"###HUMAN: what is the number of patients with hispanic/latino ethnicity and with diagnosis icd9 code 42741?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = ""HISPANIC OR LATINO"" AND diagnoses.icd9_code = ""42741""" 2978,"###HUMAN: Top SO users from NYC., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY u.Reputation DESC) AS ""#"", u.Id AS ""user_link"", u.Reputation, u.Location FROM Users AS u JOIN Badges AS b ON u.Id = b.UserId WHERE b.Name = 'javascript' AND b.Class = 3 AND u.Reputation >= 1000 AND (LOWER(u.Location) LIKE '%nyc%' OR UPPER(Location) LIKE '%NY, NY%' OR LOWER(Location) LIKE '%staten%' OR LOWER(Location) LIKE '%bronx%' OR LOWER(Location) LIKE '%queens%' OR LOWER(Location) LIKE '%new york, ny%' OR LOWER(Location) LIKE '%manhattan%' OR LOWER(Location) LIKE '%brooklyn%') ORDER BY u.Reputation DESC" 2979,"###HUMAN: Which team has a home field at Glenferrie Oval?, ###ASSISTANT: SELECT ""Home team"" FROM table_32433 WHERE ""Venue"" = 'glenferrie oval'" 2980,"###HUMAN: What is Record, when Date is 'March 1'?, ###ASSISTANT: SELECT ""Record"" FROM table_8365 WHERE ""Date"" = 'march 1'" 2981,"###HUMAN: what is patient 027-82318's average value for cpk-mb index?, ###ASSISTANT: SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND lab.labname = 'cpk-mb index'" 2982,"###HUMAN: What is the title of the first episode of the season that begin on february 27, 1954?, ###ASSISTANT: SELECT ""Title"" FROM table_20317 WHERE ""Original air date"" = 'February 27, 1954'" 2983,"###HUMAN: What is the date when Miranda Gore Browne was runner-up?, ###ASSISTANT: SELECT ""Finale"" FROM table_30849 WHERE ""Runners-up"" = 'Miranda Gore Browne'" 2984,"###HUMAN: Who was the director for the film produced by River Films?, ###ASSISTANT: SELECT ""Director"" FROM table_40914 WHERE ""Producer"" = 'river films'" 2985,"###HUMAN: what is the number of patients with acute vascular insufficiency of intestine who are less than 50 years of age?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < ""50"" AND diagnoses.long_title = ""Acute vascular insufficiency of intestine""" 2986,"###HUMAN: How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?, ###ASSISTANT: SELECT COUNT(""Pumpers"") FROM table_8401 WHERE ""Cars"" = '1' AND ""Staffing"" = 'volunteer' AND ""Brigade"" = 'grovedale' AND ""Tankers"" < '1'" 2987,"###HUMAN: Name the least frequency Mhz with call sign of k202ag, ###ASSISTANT: SELECT MIN(""Frequency MHz"") FROM table_37040 WHERE ""Call sign"" = 'k202ag'" 2988,"###HUMAN: what is the highest gnis feature id# link a[ ] b[ ] when the name a[ ] is upper dewey lake dam?, ###ASSISTANT: SELECT MAX(""GNIS Feature ID # Link A[\u203a ] B[\u203a ]"") FROM table_14299 WHERE ""Name A[\u203a ]"" = 'upper dewey lake dam'" 2989,"###HUMAN: what are the cheapest round trip flights from DENVER to ATLANTA, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND fare.round_trip_cost = (SELECT MIN(FAREalias1.round_trip_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'DENVER' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'ATLANTA' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id" 2990,"###HUMAN: what is the maximum lead margin on august 5, 2008?, ###ASSISTANT: SELECT MAX(""Lead Margin"") FROM table_72802 WHERE ""Dates administered"" = 'August 5, 2008'" 2991,"###HUMAN: Tell me the score of misa eguchi eri hozumi, ###ASSISTANT: SELECT score FROM table_name_62 WHERE opponents = ""misa eguchi eri hozumi""" 2992,"###HUMAN: calculate the maximum days of hospitalization for patients with s/p hanging primary disease., ###ASSISTANT: SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = ""S/P HANGING""" 2993,"###HUMAN: how many mean elevation with lowest point being gulf of mexico and state being texas, ###ASSISTANT: SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = ""Gulf of Mexico"" AND state = ""Texas""" 2994,"###HUMAN: How many tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club?, ###ASSISTANT: SELECT ""Tries for"" FROM table_4940 WHERE ""Losing bonus"" = '5' AND ""Club"" = 'maesteg celtic rfc'" 2995,"###HUMAN: male and female subjects, ###ASSISTANT: SELECT * FROM table_train_258 WHERE gender = 'male' OR gender = 'female'" 2996,"###HUMAN: What is the 2011 Australian Open and a 2010 QF?, ###ASSISTANT: SELECT ""2011"" FROM table_12787 WHERE ""Tournament"" = 'australian open' AND ""2010"" = 'qf'" 2997,"###HUMAN: When was Lachlan Dale born?, ###ASSISTANT: SELECT ""D.O.B."" FROM table_36220 WHERE ""Surname"" = 'dale' AND ""First"" = 'lachlan'" 2998,"###HUMAN: How large was the crowd when the away team was melbourne?, ###ASSISTANT: SELECT ""Crowd"" FROM table_32310 WHERE ""Away team"" = 'melbourne'" 2999,"###HUMAN: had patient 9964 received any laboratory test during this hospital visit?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9964 AND admissions.dischtime IS NULL)"