Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
1,200 | ###HUMAN: what was the first time patient 24894 received calcium, total in a lab test during the first hospital visit?, ###ASSISTANT: SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calcium, total') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24894 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY labevents.charttime LIMIT 1 |
1,201 | ###HUMAN: tell me the number of stations tv azteca owns ., ###ASSISTANT: SELECT COUNT("network name") FROM table_204_796 WHERE "owner" = 'tv azteca' |
1,202 | ###HUMAN: What place has the score of 67-74=141?, ###ASSISTANT: SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141 |
1,203 | ###HUMAN: What is the census ranking for the Perth parish?, ###ASSISTANT: SELECT census_ranking FROM table_176524_2 WHERE official_name = "Perth" |
1,204 | ###HUMAN: Who was the home team on March 5, 2008?, ###ASSISTANT: SELECT "Home" FROM table_10100 WHERE "Date" = 'march 5, 2008' |
1,205 | ###HUMAN: how many player with no being 12, ###ASSISTANT: SELECT COUNT(player) FROM table_12962773_5 WHERE no = 12 |
1,206 | ###HUMAN: Which driver has a # smaller than 40, less than 151 points, and Winnings of $84,400?, ###ASSISTANT: SELECT "Make" FROM table_12045 WHERE "Car #" < '40' AND "Points" < '151' AND "Winnings" = '$84,400' |
1,207 | ###HUMAN: How many documents in different starting date? Return a line chart grouping by starting date., ###ASSISTANT: SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Date_in_Location_From |
1,208 | ###HUMAN: How many places have an Artist of august , and a Draw smaller than 6?, ###ASSISTANT: SELECT COUNT("Place") FROM table_64729 WHERE "Artist" = 'augustė' AND "Draw" < '6' |
1,209 | ###HUMAN: On what date was game 3?, ###ASSISTANT: SELECT "Date" FROM table_79596 WHERE "Game" = '3' |
1,210 | ###HUMAN: What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?, ###ASSISTANT: SELECT region_4__australia_ FROM table_240936_2 WHERE region_1__us_ = "January 16, 2007" |
1,211 | ###HUMAN: What is the highest React that has a 7.61 Mark and a heat bigger than 1?, ###ASSISTANT: SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 1 |
1,212 | ###HUMAN: What year was USF founded?, ###ASSISTANT: SELECT date_founded FROM table_1160660_1 WHERE acronym = "USF" |
1,213 | ###HUMAN: what is the position in table when the team is hartlepool united?, ###ASSISTANT: SELECT "Position in table" FROM table_64562 WHERE "Team" = 'hartlepool united' |
1,214 | ###HUMAN: What was the position of the player from Butler High School?, ###ASSISTANT: SELECT "Position" FROM table_17065 WHERE "School" = 'Butler High School' |
1,215 | ###HUMAN: what is age and religion of subject id 84129?, ###ASSISTANT: SELECT demographic.age, demographic.religion FROM demographic WHERE demographic.subject_id = "84129" |
1,216 | ###HUMAN: how many prescriptions for multivitamins have been ordered?, ###ASSISTANT: SELECT COUNT(*) FROM medication WHERE medication.drugname = 'multivitamins' |
1,217 | ###HUMAN: Which analog channel is Fox on?, ###ASSISTANT: SELECT "Analog Channel" FROM table_52794 WHERE "Network" = 'fox' |
1,218 | ###HUMAN: first opponent to defeat mocho cota in mexico city, ###ASSISTANT: SELECT "winner" FROM table_204_373 WHERE "loser" = 'mocho cota' AND "location" = 'mexico city' ORDER BY "date" LIMIT 1 |
1,219 | ###HUMAN: what is admission time and drug dose of subject id 74032?, ###ASSISTANT: SELECT demographic.admittime, prescriptions.drug_dose FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "74032" |
1,220 | ###HUMAN: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of salary over the job_id , and group by attribute job_id, I want to order in descending by the JOB_ID please., ###ASSISTANT: SELECT JOB_ID, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC |
1,221 | ###HUMAN: What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?, ###ASSISTANT: SELECT MAX("Aug 2013") FROM table_51528 WHERE "Nov 2011" < '968' AND "Jul 2012" = '31' AND "Jun 2011" > '30' |
1,222 | ###HUMAN: How many rounds were on July 10?, ###ASSISTANT: SELECT COUNT("Round") FROM table_24626 WHERE "Date" = 'July 10' |
1,223 | ###HUMAN: what country lost the most ships to u-502 ?, ###ASSISTANT: SELECT "nationality" FROM table_203_268 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1 |
1,224 | ###HUMAN: how many hours have it been since the first time patient 027-140654 received procedures during their current hospital encounter?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-140654' AND patient.hospitaldischargetime IS NULL)) ORDER BY treatment.treatmenttime LIMIT 1 |
1,225 | ###HUMAN: What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?, ###ASSISTANT: SELECT "District" FROM table_15822 WHERE "Counties Represented" = 'baltimore county' AND "Committee" = 'health and government operations' AND "First Elected" < '2002' |
1,226 | ###HUMAN: what is the number of routes that intersect highway 91 ?, ###ASSISTANT: SELECT COUNT("intersecting routes") FROM table_203_333 |
1,227 | ###HUMAN: Who is the home side when the away side scores 11.15 (81)?, ###ASSISTANT: SELECT "Home team" FROM table_33617 WHERE "Away team score" = '11.15 (81)' |
1,228 | ###HUMAN: What is the frequency of the dates (bin into weekday interval) that had the top 5 cloud cover rates? You can draw me a bar chart for this purpose, and could you sort from low to high by the y-axis?, ###ASSISTANT: SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date) |
1,229 | ###HUMAN: what is the diagnosis icd9 code for patient name kurt buczek?, ###ASSISTANT: SELECT diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Kurt Buczek" |
1,230 | ###HUMAN: Find dates and attendance for exhibitions that happened in 2004, show me the attendance by date with a bar chart., ###ASSISTANT: SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004 |
1,231 | ###HUMAN: Short Favorited Commented Questions with no Answers., ###ASSISTANT: SELECT Id AS "post_link", Tags FROM Posts WHERE LENGTH(Body) < 100 AND PostTypeId = 1 AND ClosedDate IS NULL AND DeletionDate IS NULL AND CommunityOwnedDate IS NULL AND AnswerCount = 0 AND CommentCount > 0 AND FavoriteCount > 0 |
1,232 | ###HUMAN: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of price , and group by attribute name, I want to show from high to low by the x axis., ###ASSISTANT: SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC |
1,233 | ###HUMAN: Which club lost exactly 7 matches?, ###ASSISTANT: SELECT "Club" FROM table_74082 WHERE "Lost" = '7' |
1,234 | ###HUMAN: What is Tie no, when Date is '18 Nov 1989', and when Home Team is 'Doncaster Rovers'?, ###ASSISTANT: SELECT tie_no FROM table_name_32 WHERE date = "18 nov 1989" AND home_team = "doncaster rovers" |
1,235 | ###HUMAN: On August 22, how many people came to the game?, ###ASSISTANT: SELECT "Attendance" FROM table_67152 WHERE "Date" = 'august 22' |
1,236 | ###HUMAN: What is the latest year any of the incumbents were first elected?, ###ASSISTANT: SELECT MAX(first_elected) FROM table_1342270_42 |
1,237 | ###HUMAN: count the number of people who were prescribed chlorhexidine gluconate 0.12% oral rinse within 2 months following a diagnosis of oth spf gastrt w hmrhg until 2102., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'oth spf gastrt w hmrhg') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2102') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'chlorhexidine gluconate 0.12% oral rinse' AND STRFTIME('%y', prescriptions.startdate) <= '2102') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') |
1,238 | ###HUMAN: when was the last time since 04/2104 that patient 88659 was prescribed vial and iso-osmotic dextrose at the same time?, ###ASSISTANT: SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'vial' AND admissions.subject_id = 88659 AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-04') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'iso-osmotic dextrose' AND admissions.subject_id = 88659 AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-04') AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) ORDER BY t1.startdate DESC LIMIT 1 |
1,239 | ###HUMAN: Name the ppv for sky famiglia and dar 16:9 for mtv dance, ###ASSISTANT: SELECT "PPV" FROM table_20379 WHERE "Package/Option" = 'Sky Famiglia' AND "DAR" = '16:9' AND "Television service" = 'MTV Dance' |
1,240 | ###HUMAN: Show institution names along with the number of proteins for each institution in a bar chart, and order by the y-axis in desc., ###ASSISTANT: SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id ORDER BY COUNT(*) DESC |
1,241 | ###HUMAN: what is the record when the round is before 3 and the time si 4:59?, ###ASSISTANT: SELECT "Record" FROM table_48174 WHERE "Round" < '3' AND "Time" = '4:59' |
1,242 | ###HUMAN: A line chart for finding the number of the enrollment date for all the tests that have 'Pass' result., ###ASSISTANT: SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" GROUP BY date_of_enrolment |
1,243 | ###HUMAN: When was 11-8 the record?, ###ASSISTANT: SELECT date FROM table_name_43 WHERE record = "11-8" |
1,244 | ###HUMAN: provide the number of patients whose primary disease is left colon cancer and age is less than 67?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT COLON CANCER" AND demographic.age < "67" |
1,245 | ###HUMAN: What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million?, ###ASSISTANT: SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4 |
1,246 | ###HUMAN: What surface was played on with a score of 6 4, 6 3 and on 4 May 1992?, ###ASSISTANT: SELECT "Surface" FROM table_41299 WHERE "Score" = '6–4, 6–3' AND "Date" = '4 may 1992' |
1,247 | ###HUMAN: Average Accepted Answer Score by Question Score for Users Like Me., ###ASSISTANT: SELECT Questions.Score AS QuestionScore, AVG(Answers.Score) AS AnswerScore FROM Posts AS Questions INNER JOIN PostTags ON Questions.Id = PostTags.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id INNER JOIN Posts AS Answers ON Answers.Id = Questions.AcceptedAnswerId WHERE Questions.Score BETWEEN 1 AND 20 AND Tags.TagName IN ('javascript', 'css', 'html', 'css3', 'html5') AND Answers.OwnerUserId = 918414 GROUP BY Questions.Score |
1,248 | ###HUMAN: WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?, ###ASSISTANT: SELECT "Manufacturer" FROM table_47681 WHERE "Laps" = '24' AND "Time/Retired" = '+1.965' |
1,249 | ###HUMAN: in what year was the last design of passenger baseplates for vehicle registration issued in vermont ?, ###ASSISTANT: SELECT MAX("first issued") FROM table_203_498 |
1,250 | ###HUMAN: What day was the oppenent the detroit lions?, ###ASSISTANT: SELECT "Date" FROM table_19500 WHERE "Opponent" = 'Detroit Lions' |
1,251 | ###HUMAN: What is the market value of every comapny in the banking industry ordered by sales and profits? Return a bar chart., ###ASSISTANT: SELECT Company, Market_Value FROM company WHERE Main_Industry = 'Banking' ORDER BY Sales_billion, Profits_billion |
1,252 | ###HUMAN: tell me the name of the last specimen test patient 26612 had received in 12/2102?, ###ASSISTANT: SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26612) AND STRFTIME('%y-%m', microbiologyevents.charttime) = '2102-12' ORDER BY microbiologyevents.charttime DESC LIMIT 1 |
1,253 | ###HUMAN: what are the new prescriptions today of patient 006-47576 compared to the prescriptions yesterday?, ###ASSISTANT: SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '006-47576') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '006-47576') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') |
1,254 | ###HUMAN: For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of code , and group by attribute founder, show by the X from high to low please., ###ASSISTANT: SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC |
1,255 | ###HUMAN: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and price , and group by attribute headquarter, and rank y-axis from low to high order please., ###ASSISTANT: SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Price |
1,256 | ###HUMAN: When was the game that ended with a score of 6-4?, ###ASSISTANT: SELECT date FROM table_name_38 WHERE score = "6-4" |
1,257 | ###HUMAN: How many goals were scored by Eugene Galekovi ?, ###ASSISTANT: SELECT goals FROM table_name_54 WHERE player = "eugene galeković" |
1,258 | ###HUMAN: Plot total number of memory in g by grouped by carrier as a bar graph, display by the sum memory in g in asc., ###ASSISTANT: SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY SUM(Memory_in_G) |
1,259 | ###HUMAN: Which Source has a Remainder of 15%, and a Topinka of 26%?, ###ASSISTANT: SELECT "Source" FROM table_75308 WHERE "Remainder" = '15%' AND "Topinka (R)" = '26%' |
1,260 | ###HUMAN: What is the date of the Cubs game when the Cubs had a record of 1-0?, ###ASSISTANT: SELECT date FROM table_name_2 WHERE record = "1-0" |
1,261 | ###HUMAN: give the number of patients whose drug code is phen10i and lab test category is blood gas., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "PHEN10I" AND lab."CATEGORY" = "Blood Gas" |
1,262 | ###HUMAN: How many patients were admitted with pure hyperglyceridemia before 2187?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2187" AND diagnoses.long_title = "Pure hyperglyceridemia" |
1,263 | ###HUMAN: What is the name of the artist that issued the single on 23 February?, ###ASSISTANT: SELECT "Artist" FROM table_9850 WHERE "Issue Date(s)" = '23 february' |
1,264 | ###HUMAN: What is the result of the game on April 17 against Los Angeles?, ###ASSISTANT: SELECT "Result" FROM table_8232 WHERE "Road Team" = 'los angeles' AND "Date" = 'april 17' |
1,265 | ###HUMAN: List the record from the game where Wildcats had 48 points., ###ASSISTANT: SELECT record FROM table_24561550_1 WHERE wildcats_points = 48 |
1,266 | ###HUMAN: show me the flights from PHILADELPHIA to DALLAS with 1 stop, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.stops = 1 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code |
1,267 | ###HUMAN: Show all card type codes and the number of cards in each type., ###ASSISTANT: SELECT card_type_code, COUNT(*) FROM customers_cards GROUP BY card_type_code |
1,268 | ###HUMAN: Name the song choice for michael jackson, ###ASSISTANT: SELECT "Song choice" FROM table_23048 WHERE "Original artist" = 'Michael Jackson' |
1,269 | ###HUMAN: How many points did the ESC Riverrats Geretsried, who lost more than 3 games, score?, ###ASSISTANT: SELECT SUM(points) FROM table_name_17 WHERE lost > 3 AND name = "esc riverrats geretsried" |
1,270 | ###HUMAN: How big was the crowd when the away team was Richmond?, ###ASSISTANT: SELECT crowd FROM table_name_4 WHERE away_team = "richmond" |
1,271 | ###HUMAN: Name the cyrillic name for melenci, ###ASSISTANT: SELECT "Cyrillic Name Other Names" FROM table_3334 WHERE "Settlement" = 'Melenci' |
1,272 | ###HUMAN: current alcohol abuse, ###ASSISTANT: SELECT * FROM table_train_185 WHERE alcohol_abuse = 1 |
1,273 | ###HUMAN: For week number of the top 40, what was the results?, ###ASSISTANT: SELECT result FROM table_22736523_1 WHERE week__number = "Top 40" |
1,274 | ###HUMAN: Number of posts in past 30 days., ###ASSISTANT: SELECT COUNT(*) FROM Posts WHERE PostTypeId IN (1, 2) AND CreationDate >= DATEADD(DAY, -30, GETDATE()) |
1,275 | ###HUMAN: What are the age groups for the Big League World Series?, ###ASSISTANT: SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series" |
1,276 | ###HUMAN: What is the money with a Score of 76-70-75-72=293?, ###ASSISTANT: SELECT "Money ( \u00a3 )" FROM table_58997 WHERE "Score" = '76-70-75-72=293' |
1,277 | ###HUMAN: give me the number of patients whose language is cape and age is less than 67?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "CAPE" AND demographic.age < "67" |
1,278 | ###HUMAN: Which year has an Organization of new york yankees, and a Team of johnson city yankees?, ###ASSISTANT: SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees" |
1,279 | ###HUMAN: calculate the minimum age of patients who are 83 years of age or older and were hospitalized for 43 days., ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.age >= "83" AND demographic.days_stay = "43" |
1,280 | ###HUMAN: What are the names of storms that did not affect two or more regions?, ###ASSISTANT: SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 |
1,281 | ###HUMAN: What is the average pick of player paul maclean, who had a draft before 1978?, ###ASSISTANT: SELECT AVG("Pick") FROM table_12802 WHERE "Player" = 'paul maclean' AND "Draft" < '1978' |
1,282 | ###HUMAN: Name the class for boten, ###ASSISTANT: SELECT class FROM table_1745843_9 WHERE part_3 = "boten" |
1,283 | ###HUMAN: Name the segment 1 for episode # 2/225, ###ASSISTANT: SELECT "Segment 1" FROM table_26635 WHERE "Episode #" = '2/225' |
1,284 | ###HUMAN: Find retaggable AS questions that are open or don't roomba., ###ASSISTANT: SELECT Id AS "post_link", Body, Tags, Score, AnswerCount, CommentCount FROM Posts WHERE PostTypeId = 1 AND ((Score <= 0 AND AnswerCount > 0 AND (AcceptedAnswerId = NULL OR AcceptedAnswerId > 0)) OR (Score = 0 AND CommentCount > 0) OR (Score > 0)) ORDER BY CreationDate DESC LIMIT 1000 |
1,285 | ###HUMAN: what are the four most frequent specimen tests that patients had within the same month after having been diagnosed with 29-30 comp wks gestation until 2104?, ###ASSISTANT: SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = '29-30 comp wks gestation') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104') AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', microbiologyevents.charttime) <= '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 4 |
1,286 | ###HUMAN: Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494?, ###ASSISTANT: SELECT director FROM table_name_12 WHERE series = "mm" AND production_num < 6494 AND release_date = "1934-09-15" |
1,287 | ###HUMAN: Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5?, ###ASSISTANT: SELECT MAX(pick__number) FROM table_name_32 WHERE name = "william middleton" AND round > 5 |
1,288 | ###HUMAN: count the number of patients who have had a remove fb from periton procedure performed two or more times since 2104., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'remove fb from periton') AND STRFTIME('%y', procedures_icd.charttime) >= '2104' GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 >= 2 |
1,289 | ###HUMAN: Which Fictional narrator has a Published as serial of february july 1912, all-story?, ###ASSISTANT: SELECT "Fictional narrator" FROM table_14163 WHERE "Published as serial" = 'february–july 1912, all-story' |
1,290 | ###HUMAN: Would EEB 412 qualify for ULCS ?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'EEB' AND course.number = 412 AND program_course.category LIKE '%ULCS%' |
1,291 | ###HUMAN: Which time/retired has a qual of 144.02?, ###ASSISTANT: SELECT time_retired FROM table_name_75 WHERE qual = 144.02 |
1,292 | ###HUMAN: did patient 030-6441 have a wound care procedure at other hospitals?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '030-6441' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '030-6441' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'wound care' |
1,293 | ###HUMAN: count the number of patients who until 4 years ago have been prescribed acd-a for crrt., ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'acd-a for crrt' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-4 year')) |
1,294 | ###HUMAN: In season is 2008 09, how many wins did they have?, ###ASSISTANT: SELECT "W (OT/SO)" FROM table_23959 WHERE "Season" = '2008–09' |
1,295 | ###HUMAN: How many people scored the most points during the game on December 10?, ###ASSISTANT: SELECT COUNT(high_points) FROM table_27756014_6 WHERE date = "December 10" |
1,296 | ###HUMAN: For the match with a home team score of 11.14 (80), what was the venue?, ###ASSISTANT: SELECT "Venue" FROM table_33317 WHERE "Home team score" = '11.14 (80)' |
1,297 | ###HUMAN: How many positions are there for RB1 Motorsports?, ###ASSISTANT: SELECT COUNT("Position") FROM table_3588 WHERE "Team(s)" = 'RB1 Motorsports' |
1,298 | ###HUMAN: what is minimum days of hospital stay of patients whose age is greater than or equal to 41?, ###ASSISTANT: SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.age >= "41" |
1,299 | ###HUMAN: Who is every high points for the Pistons team?, ###ASSISTANT: SELECT high_points FROM table_23248910_9 WHERE team = "Pistons" |