Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
2,100
###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"
2,101
###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
2,102
###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"
2,103
###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"
2,104
###HUMAN: What Week 4 has a Week 2 of samantha speer?, ###ASSISTANT: SELECT "Week 4" FROM table_12982 WHERE "Week 2" = 'samantha speer'
2,105
###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')
2,106
###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'
2,107
###HUMAN: Name the date for visiting team of denver broncos, ###ASSISTANT: SELECT "Date" FROM table_67107 WHERE "Visiting Team" = 'denver broncos'
2,108
###HUMAN: What was the game number of the game played against Charlotte?, ###ASSISTANT: SELECT COUNT("Game") FROM table_7818 WHERE "Team" = 'charlotte'
2,109
###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
2,110
###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'
2,111
###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
2,112
###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
2,113
###HUMAN: name the total number of timeslot for number 1, ###ASSISTANT: SELECT COUNT(timeslot) FROM table_19834691_4 WHERE _number = 1
2,114
###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
2,115
###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
2,116
###HUMAN: What was the B segmint for Netlix S03E01?, ###ASSISTANT: SELECT "Segment B" FROM table_35545 WHERE "Netflix" = 's03e01'
2,117
###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
2,118
###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
2,119
###HUMAN: Who was the arranger of ' '?, ###ASSISTANT: SELECT "Arranger(s)" FROM table_76990 WHERE "Title" = 'ขอโทษ'
2,120
###HUMAN: Which highest number of Seats has votes of 244,867?, ###ASSISTANT: SELECT MAX("Seats") FROM table_52371 WHERE "Votes" = '244,867'
2,121
###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'
2,122
###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
2,123
###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
2,124
###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"
2,125
###HUMAN: Which Proto-Oceanic has a Proto-Polynesian of *lima?, ###ASSISTANT: SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima"
2,126
###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'
2,127
###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
2,128
###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'
2,129
###HUMAN: What is the lowest overall with more than 17 rounds?, ###ASSISTANT: SELECT MIN("Overall") FROM table_70973 WHERE "Round" > '17'
2,130
###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
2,131
###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
2,132
###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
2,133
###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"
2,134
###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'))
2,135
###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
2,136
###HUMAN: WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?, ###ASSISTANT: SELECT AVG(week) FROM table_name_5 WHERE date = "july 25"
2,137
###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'
2,138
###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))
2,139
###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
2,140
###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
2,141
###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"
2,142
###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
2,143
###HUMAN: Which teachers teach in classroom 109? Give me their last names., ###ASSISTANT: SELECT lastname FROM teachers WHERE classroom = 109
2,144
###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"
2,145
###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')))
2,146
###HUMAN: What is the official target date for the Swedish Krona?, ###ASSISTANT: SELECT "Official target date" FROM table_70218 WHERE "Currency" = 'swedish krona'
2,147
###HUMAN: Where was the location for Arras Paul Arras?, ###ASSISTANT: SELECT "Location" FROM table_7194 WHERE "Opponent" = 'arras paul arras'
2,148
###HUMAN: What was the record on March 22?, ###ASSISTANT: SELECT "Record" FROM table_51373 WHERE "Date" = 'march 22'
2,149
###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"
2,150
###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"
2,151
###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'
2,152
###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
2,153
###HUMAN: When was the song by Andy Gibb issued?, ###ASSISTANT: SELECT "Issue Date(s)" FROM table_39490 WHERE "Artist" = 'andy gibb'
2,154
###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"
2,155
###HUMAN: What is every value when Mitchell is 676?, ###ASSISTANT: SELECT value FROM table_1818471_1 WHERE mitchell = 676
2,156
###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
2,157
###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"
2,158
###HUMAN: When 142900 is the population what is the highest rank?, ###ASSISTANT: SELECT MAX("Rank") FROM table_25794 WHERE "Population" = '142900'
2,159
###HUMAN: With which association did estribillo ii run as Horse 1?, ###ASSISTANT: SELECT "Association" FROM table_10578 WHERE "Horse 1" = 'estribillo ii'
2,160
###HUMAN: how many latitudes have 0.081 (sqmi) of water?, ###ASSISTANT: SELECT COUNT("Latitude") FROM table_22459 WHERE "Water (sqmi)" = '0.081'
2,161
###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'
2,162
###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
2,163
###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
2,164
###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
2,165
###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')
2,166
###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'
2,167
###HUMAN: Who was in 4th when in 6th is Air Traffic?, ###ASSISTANT: SELECT "Fourth" FROM table_72843 WHERE "Sixth" = 'Air Traffic'
2,168
###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'
2,169
###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')
2,170
###HUMAN: how many winnings does jeff gordon have?, ###ASSISTANT: SELECT "Winnings" FROM table_3897 WHERE "Driver" = 'Jeff Gordon'
2,171
###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'
2,172
###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')
2,173
###HUMAN: University of Minnesota of had what Deloria & Boas?, ###ASSISTANT: SELECT "Deloria & Boas" FROM table_6745 WHERE "University of Minnesota" = 'ṭ'
2,174
###HUMAN: What Site had an Attendance of 45,000?, ###ASSISTANT: SELECT site FROM table_name_20 WHERE attendance = "45,000"
2,175
###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'
2,176
###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%')))
2,177
###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"
2,178
###HUMAN: What was the lowest attendance at a week 15 game?, ###ASSISTANT: SELECT MIN("Attendance") FROM table_41737 WHERE "Week" = '15'
2,179
###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'
2,180
###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)
2,181
###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"
2,182
###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)
2,183
###HUMAN: What is the average lifespan of a baseball player?, ###ASSISTANT: SELECT AVG(death_year - birth_year) FROM player
2,184
###HUMAN: Which Tournament has a 1984 of 1r?, ###ASSISTANT: SELECT "Tournament" FROM table_34849 WHERE "1984" = '1r'
2,185
###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
2,186
###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
2,187
###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
2,188
###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"
2,189
###HUMAN: What is the rank of Manuel Cortina Mart nez?, ###ASSISTANT: SELECT rank FROM table_name_46 WHERE athletes = "manuel cortina martínez"
2,190
###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"
2,191
###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
2,192
###HUMAN: Which party does the incumbent first elected in 1994 belong to?, ###ASSISTANT: SELECT "Party" FROM table_18113 WHERE "First elected" = '1994'
2,193
###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"
2,194
###HUMAN: How many campuses exist are in the county of LA?, ###ASSISTANT: SELECT COUNT(*) FROM campuses WHERE county = "Los Angeles"
2,195
###HUMAN: Who was the winner for the Rome to Teramo course?, ###ASSISTANT: SELECT winner FROM table_name_97 WHERE course = "rome to teramo"
2,196
###HUMAN: How many losses does Central Blues have?, ###ASSISTANT: SELECT MAX(losses) FROM table_26200568_16 WHERE club = "Central Blues"
2,197
###HUMAN: What is the first year of the European Championships competition?, ###ASSISTANT: SELECT MIN("Year") FROM table_68767 WHERE "Competition" = 'european championships'
2,198
###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"
2,199
###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