Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
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'