Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
2,300 | ###HUMAN: I want the sum of year for mark barron, ###ASSISTANT: SELECT SUM(year) FROM table_name_11 WHERE player_name = "mark barron" |
2,301 | ###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" |
2,302 | ###HUMAN: What was the away team that faced Carlton?, ###ASSISTANT: SELECT "Away team" FROM table_32245 WHERE "Home team" = 'carlton' |
2,303 | ###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' |
2,304 | ###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' |
2,305 | ###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' |
2,306 | ###HUMAN: Which study included autoimmune disease and inflammation?, ###ASSISTANT: SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation" |
2,307 | ###HUMAN: What title was released in 1971?, ###ASSISTANT: SELECT title FROM table_name_54 WHERE year = 1971 |
2,308 | ###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 |
2,309 | ###HUMAN: Who is the club that has 30 points?, ###ASSISTANT: SELECT club FROM table_13564637_5 WHERE points = "30" |
2,310 | ###HUMAN: Average frequency with ERP W of 62?, ###ASSISTANT: SELECT AVG("Frequency MHz") FROM table_47008 WHERE "ERP W" = '62' |
2,311 | ###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) |
2,312 | ###HUMAN: give the description of diagnoses icd9 code e8120., ###ASSISTANT: SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "E8120" |
2,313 | ###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') |
2,314 | ###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 |
2,315 | ###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 |
2,316 | ###HUMAN: how many competitions did jifar participate in before joining the 10000m ?, ###ASSISTANT: SELECT COUNT("competition") FROM table_203_189 WHERE "notes" <> 10000 |
2,317 | ###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' |
2,318 | ###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 |
2,319 | ###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" |
2,320 | ###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 |
2,321 | ###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) |
2,322 | ###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)" |
2,323 | ###HUMAN: What is the Rank of the Character with Tenure of 2011?, ###ASSISTANT: SELECT rank FROM table_name_2 WHERE tenure = "2011" |
2,324 | ###HUMAN: in how many dates the game was 2, ###ASSISTANT: SELECT COUNT("Date") FROM table_31453 WHERE "Game" = '2' |
2,325 | ###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' |
2,326 | ###HUMAN: Which opponent has a Season of 2010/11?, ###ASSISTANT: SELECT opponent FROM table_name_7 WHERE season = "2010/11" |
2,327 | ###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' |
2,328 | ###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" |
2,329 | ###HUMAN: What are the names and ages of editors? Show me a bar chart., ###ASSISTANT: SELECT Name, Age FROM editor |
2,330 | ###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 |
2,331 | ###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 |
2,332 | ###HUMAN: with a record of 73-82 what was the date?, ###ASSISTANT: SELECT "Date" FROM table_11261 WHERE "Record" = '73-82' |
2,333 | ###HUMAN: who is at the top out of the riders ?, ###ASSISTANT: SELECT "rider" FROM table_203_166 ORDER BY "pos" LIMIT 1 |
2,334 | ###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') |
2,335 | ###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 |
2,336 | ###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 |
2,337 | ###HUMAN: What is To Par, when Player is 'Tommy Bolt'?, ###ASSISTANT: SELECT to_par FROM table_name_55 WHERE player = "tommy bolt" |
2,338 | ###HUMAN: Name the maximum wins for 68.75%, ###ASSISTANT: SELECT MAX("Wins") FROM table_20326 WHERE "Success Rate" = '68.75%' |
2,339 | ###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." |
2,340 | ###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 |
2,341 | ###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 |
2,342 | ###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' |
2,343 | ###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" |
2,344 | ###HUMAN: Who scored the most points in Game 49?, ###ASSISTANT: SELECT high_points FROM table_11960407_5 WHERE game = 49 |
2,345 | ###HUMAN: Which entrant has a Mclaren m7c Chassis?, ###ASSISTANT: SELECT "Entrant" FROM table_14649 WHERE "Chassis" = 'mclaren m7c' |
2,346 | ###HUMAN: On what date was the opponent the Miami Dolphins?, ###ASSISTANT: SELECT date FROM table_name_30 WHERE opponent = "miami dolphins" |
2,347 | ###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 |
2,348 | ###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' |
2,349 | ###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%') |
2,350 | ###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' |
2,351 | ###HUMAN: What player was drafted by the philadelphia union?, ###ASSISTANT: SELECT "Player" FROM table_27735 WHERE "MLS Team" = 'Philadelphia Union' |
2,352 | ###HUMAN: What are the years of participation for pickerington north?, ###ASSISTANT: SELECT "Years of Participation" FROM table_21685 WHERE "School" = 'Pickerington North' |
2,353 | ###HUMAN: What is the average lap of the race with a 23 finish?, ###ASSISTANT: SELECT AVG("Laps") FROM table_15315 WHERE "Finish" = '23' |
2,354 | ###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 |
2,355 | ###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)" |
2,356 | ###HUMAN: For the verb dhoa, what is the 2VF?, ###ASSISTANT: SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = "dhoa" |
2,357 | ###HUMAN: Which episode 4 has a Star of anna powierza?, ###ASSISTANT: SELECT episode_4 FROM table_name_87 WHERE star = "anna powierza" |
2,358 | ###HUMAN: Which Season has 95 Points?, ###ASSISTANT: SELECT "Season" FROM table_14917 WHERE "Points" = '95' |
2,359 | ###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' |
2,360 | ###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" |
2,361 | ###HUMAN: What is Team, when Game is 77?, ###ASSISTANT: SELECT team FROM table_name_90 WHERE game = 77 |
2,362 | ###HUMAN: Which city has spanish news on the website ultimahora.com ?, ###ASSISTANT: SELECT "City" FROM table_70836 WHERE "Language" = 'spanish' AND "Website" = 'ultimahora.com' |
2,363 | ###HUMAN: Who is sezen aksu's producer?, ###ASSISTANT: SELECT "Producer(s)" FROM table_47475 WHERE "Songwriter(s)" = 'sezen aksu' |
2,364 | ###HUMAN: What was the purpose of the Quay test blast?, ###ASSISTANT: SELECT purpose FROM table_name_54 WHERE name = "quay" |
2,365 | ###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') |
2,366 | ###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' |
2,367 | ###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' |
2,368 | ###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' |
2,369 | ###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" |
2,370 | ###HUMAN: What is the Time when the Epicenter was Bam?, ###ASSISTANT: SELECT "Time" FROM table_32293 WHERE "Epicenter" = 'bam' |
2,371 | ###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 |
2,372 | ###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' |
2,373 | ###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" |
2,374 | ###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" |
2,375 | ###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' |
2,376 | ###HUMAN: What was the winning score on 7 jun 1976?, ###ASSISTANT: SELECT winning_score FROM table_name_4 WHERE date = "7 jun 1976" |
2,377 | ###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' |
2,378 | ###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 |
2,379 | ###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" |
2,380 | ###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 |
2,381 | ###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" |
2,382 | ###HUMAN: What is Dennis Kucinich, when Classification is 'Democrat'?, ###ASSISTANT: SELECT "Dennis Kucinich" FROM table_59428 WHERE "Classification" = 'democrat' |
2,383 | ###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 |
2,384 | ###HUMAN: What architecture type does the Ford Escort Wagon have?, ###ASSISTANT: SELECT architecture FROM table_name_73 WHERE original_vehicle = "ford escort wagon" |
2,385 | ###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 |
2,386 | ###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 |
2,387 | ###HUMAN: What is the name of the 9th ranked common?, ###ASSISTANT: SELECT common_of FROM table_1449176_1 WHERE rank = "9th" |
2,388 | ###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" |
2,389 | ###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" |
2,390 | ###HUMAN: how many days after september 3rd did brian perform in stockholm ?, ###ASSISTANT: SELECT (SELECT "date" FROM table_203_855 WHERE "city" = 'stockholm') - 3 |
2,391 | ###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" |
2,392 | ###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)' |
2,393 | ###HUMAN: what are the number of years maine has participated ?, ###ASSISTANT: SELECT "years participated" FROM table_203_502 WHERE "team" = 'maine' |
2,394 | ###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)' |
2,395 | ###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 |
2,396 | ###HUMAN: Show the number of customers for each gender. Show scatter chart., ###ASSISTANT: SELECT gender, COUNT(*) FROM Customers GROUP BY gender |
2,397 | ###HUMAN: What is Quantity Made, when Manufacturer is 'Baldwin'?, ###ASSISTANT: SELECT quantity_made FROM table_name_3 WHERE manufacturer = "baldwin" |
2,398 | ###HUMAN: Show the position of players and the corresponding number of players., ###ASSISTANT: SELECT position, COUNT(*) FROM match_season GROUP BY position |
2,399 | ###HUMAN: What were the reasons that venues closed in the 1990s?, ###ASSISTANT: SELECT "Reason" FROM table_43486 WHERE "Closed" = '1990s' |