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