Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
1,800 | ###HUMAN: How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?, ###ASSISTANT: SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = "collegno" AND population < 50137 |
1,801 | ###HUMAN: What 7:00 has a 10:00 of dirty sexy money?, ###ASSISTANT: SELECT "7:00" FROM table_67978 WHERE "10:00" = 'dirty sexy money' |
1,802 | ###HUMAN: Did I mark all my questions as accepted?., ###ASSISTANT: SELECT Id AS "post_link", * FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND ClosedDate IS NULL AND AnswerCount > 0 AND OwnerUserId = '##ownerid##' |
1,803 | ###HUMAN: If the driver is Milka Duno, what is the name of the team?, ###ASSISTANT: SELECT "Team" FROM table_21872 WHERE "Driver" = 'Milka Duno' |
1,804 | ###HUMAN: In what place did Dave Barr score?, ###ASSISTANT: SELECT "Place" FROM table_8817 WHERE "Player" = 'dave barr' |
1,805 | ###HUMAN: What is the average laps for a grid larger than 2, for a ferrari that got in an accident?, ###ASSISTANT: SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = "accident" AND constructor = "ferrari" |
1,806 | ###HUMAN: how many patients are diagnosed with primary disease copd exacerbation?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COPD EXACERBATION" |
1,807 | ###HUMAN: What Country's Content is TV Locale?, ###ASSISTANT: SELECT "Country" FROM table_40678 WHERE "Content" = 'tv locale' |
1,808 | ###HUMAN: Who had the high rebounds when the record was 14 7?, ###ASSISTANT: SELECT "High rebounds" FROM table_29843 WHERE "Record" = '14–7' |
1,809 | ###HUMAN: Name the money for p draig harrington, ###ASSISTANT: SELECT "Money ( \u00a3 )" FROM table_68355 WHERE "Player" = 'pádraig harrington' |
1,810 | ###HUMAN: Which Date has a Record of 19 16 8?, ###ASSISTANT: SELECT "Date" FROM table_64405 WHERE "Record" = '19–16–8' |
1,811 | ###HUMAN: Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?, ###ASSISTANT: SELECT "Monday Mona/ M\u00e1ni" FROM table_66876 WHERE "Thursday Thunor / Thor" = 'tongersdei' |
1,812 | ###HUMAN: What's the loss for September 16?, ###ASSISTANT: SELECT "Loss" FROM table_79725 WHERE "Date" = 'september 16' |
1,813 | ###HUMAN: Name the number of week for game site being memorial stadium for buffalo bills, ###ASSISTANT: SELECT COUNT(week) FROM table_14940519_1 WHERE game_site = "Memorial Stadium" AND opponent = "Buffalo Bills" |
1,814 | ###HUMAN: Where did the Vit ria de Set bal club place in the 2006-2007 season?, ###ASSISTANT: SELECT "2006-2007 season" FROM table_51904 WHERE "Club" = 'vitória de setúbal' |
1,815 | ###HUMAN: How many students does each advisor have. Show scatter chart., ###ASSISTANT: SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor |
1,816 | ###HUMAN: tell me the maximum hospital cost if there is a gstr/ddnts nos w hmrhg this year?, ###ASSISTANT: SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr/ddnts nos w hmrhg')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY cost.hadm_id) AS t1 |
1,817 | ###HUMAN: Name the birth of the person married 24 may 1935, ###ASSISTANT: SELECT "Birth" FROM table_68311 WHERE "Marriage" = '24 may 1935' |
1,818 | ###HUMAN: How many attended during the game with a score of 80-94?, ###ASSISTANT: SELECT SUM(attendance) FROM table_name_52 WHERE score = "80-94" |
1,819 | ###HUMAN: Draw a bar chart of asset make versus the number of asset make, and display in asc by the X., ###ASSISTANT: SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make |
1,820 | ###HUMAN: How many cop apps in the season with fewer than 12 league apps?, ###ASSISTANT: SELECT SUM("Cup Apps") FROM table_32374 WHERE "League Apps" < '12' |
1,821 | ###HUMAN: What competition has the club villareal?, ###ASSISTANT: SELECT competition FROM table_name_89 WHERE club = "villareal" |
1,822 | ###HUMAN: when was joe clark first elected ?, ###ASSISTANT: SELECT "first elected" FROM table_203_214 WHERE "member" = 'joe clark' |
1,823 | ###HUMAN: Bar graph to show how many nationality from different nationality, list in desc by the total number., ###ASSISTANT: SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY COUNT(Nationality) DESC |
1,824 | ###HUMAN: what are the top five frequent prescribed drugs that were prescribed to patients aged 20s in the same hospital encounter after they had been diagnosed with quadriplegia-partial until 2104?, ###ASSISTANT: SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'quadriplegia-partial' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.age BETWEEN 20 AND 29 AND STRFTIME('%y', medication.drugstarttime) <= '2104') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5 |
1,825 | ###HUMAN: In which venue did the competition on 11 October 2008 take place?, ###ASSISTANT: SELECT "Venue" FROM table_14524 WHERE "Date" = '11 october 2008' |
1,826 | ###HUMAN: Display a bar chart for what are the different card types, and how many cards are there of each?, ###ASSISTANT: SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code |
1,827 | ###HUMAN: count the number of patients whose days of hospital stay is greater than 17 and diagnoses long title is diabetes with renal manifestations, type i [juvenile type], not stated as uncontrolled?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "17" AND diagnoses.long_title = "Diabetes with renal manifestations, type I [juvenile type], not stated as uncontrolled" |
1,828 | ###HUMAN: give me the number of patients less than 45 years who were hospitalized for more than 20 days., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "45" AND demographic.days_stay > "20" |
1,829 | ###HUMAN: Which venue does Mardan sponsor?, ###ASSISTANT: SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = "Mardan" |
1,830 | ###HUMAN: Who was the runner-up in season five?, ###ASSISTANT: SELECT runner_up FROM table_16331144_1 WHERE season = "Five" |
1,831 | ###HUMAN: what's the transmission where turbo is yes (mitsubishi td04-16t ), ###ASSISTANT: SELECT "Transmission" FROM table_16484 WHERE "Turbo" = 'Yes (Mitsubishi TD04-16t )' |
1,832 | ###HUMAN: What is the lowest round of Ed Smith, who had a pick lower than 19?, ###ASSISTANT: SELECT MIN("Round") FROM table_35935 WHERE "Player" = 'ed smith' AND "Pick" > '19' |
1,833 | ###HUMAN: count the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft; myomectomy/sda and lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Urine" |
1,834 | ###HUMAN: The plural abbreviation of ll. uses what plural word?, ###ASSISTANT: SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll." |
1,835 | ###HUMAN: list flights from INDIANAPOLIS to MEMPHIS with fares on monday, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM fare, flight, flight_fare WHERE ((flight.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 = 21 AND DATE_DAYalias0.month_number = 2 AND DATE_DAYalias0.year = 1991)) AND flight.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 = 'MEMPHIS'))) AND flight.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 = 'INDIANAPOLIS'))) AND fare.fare_basis_code IN (SELECT FARE_BASISalias0.fare_basis_code FROM fare_basis AS FARE_BASISalias0 WHERE FARE_BASISalias0.basis_days IN (SELECT DAYSalias1.days_code FROM days AS DAYSalias1 WHERE DAYSalias1.day_name IN (SELECT DATE_DAYalias1.day_name FROM date_day AS DATE_DAYalias1 WHERE DATE_DAYalias1.day_number = 21 AND DATE_DAYalias1.month_number = 2 AND DATE_DAYalias1.year = 1991))) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id |
1,836 | ###HUMAN: What date is the 1:00 pm game at arrowhead stadium?, ###ASSISTANT: SELECT date FROM table_name_37 WHERE time___et__ = "1:00 pm" AND game_site = "arrowhead stadium" |
1,837 | ###HUMAN: What is draft detail of the document with id 7?, ###ASSISTANT: SELECT draft_details FROM document_drafts WHERE document_id = 7 |
1,838 | ###HUMAN: What is the Jump 2 of the person that has a Jump 3 of 7.77?, ###ASSISTANT: SELECT "Jump 2" FROM table_32520 WHERE "Jump 3" = '7.77' |
1,839 | ###HUMAN: Give me a pie to show how many directed by from different directed by., ###ASSISTANT: SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by |
1,840 | ###HUMAN: What is Ariel 3's COSPAR ID?, ###ASSISTANT: SELECT cospar_id FROM table_name_3 WHERE satellite = "ariel 3" |
1,841 | ###HUMAN: in a year before d5 1/2ns, labetalol or insulin were prescribed for patient 10266?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10266) AND prescriptions.drug IN ('d5 1/2ns', 'labetalol', 'insulin') AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') |
1,842 | ###HUMAN: Top 100 posts by view count., ###ASSISTANT: SELECT CONCAT('id', 'post_link'), ViewCount, CreationDate, Score FROM Posts ORDER BY ViewCount DESC LIMIT 100 |
1,843 | ###HUMAN: What Chassis has g Tyres before 1987?, ###ASSISTANT: SELECT "Chassis" FROM table_71124 WHERE "Tyres" = 'g' AND "Year" < '1987' |
1,844 | ###HUMAN: Which channel comes out of Israel?, ###ASSISTANT: SELECT channel FROM table_name_83 WHERE country = "israel" |
1,845 | ###HUMAN: how many patients are diagnosed with nb obsrv suspct infect and tested under hematology category in lab?, ###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.short_title = "NB obsrv suspct infect" AND lab."CATEGORY" = "Hematology" |
1,846 | ###HUMAN: In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?, ###ASSISTANT: SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas" |
1,847 | ###HUMAN: What is Accolade, when Year is less than 2002, when Publication is 'Rolling Stone', and when Rank is '48'?, ###ASSISTANT: SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48 |
1,848 | ###HUMAN: For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) |
1,849 | ###HUMAN: what are the flights and fares from BOSTON to PHILADELPHIA, ###ASSISTANT: SELECT DISTINCT fare.fare_id, flight.airline_code, flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code |
1,850 | ###HUMAN: what is the last treaty morocco ratified ?, ###ASSISTANT: SELECT "treaty" FROM table_203_109 ORDER BY "ratified" DESC LIMIT 1 |
1,851 | ###HUMAN: had patient 13806 been prescribed vancomycin hcl, phenylephrine or d5w (excel bag) until 2102?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13806) AND prescriptions.drug IN ('vancomycin hcl', 'phenylephrine', 'd5w (excel bag)') AND STRFTIME('%y', prescriptions.startdate) <= '2102' |
1,852 | ###HUMAN: Name the 2012 for 2009 of 1r, ###ASSISTANT: SELECT "2012" FROM table_58551 WHERE "2009" = '1r' |
1,853 | ###HUMAN: What nurses are on call with block floor 1 and block code 1? Tell me their names., ###ASSISTANT: SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1 |
1,854 | ###HUMAN: Find posts with broken MathJax (single dollar sign)., ###ASSISTANT: SELECT Id AS "post_link", Body, CreationDate AS "date" FROM Posts WHERE Body LIKE '%$%' AND NOT Body LIKE '%$%$%' |
1,855 | ###HUMAN: how many patients whose admission type is urgent and primary disease is mesenteric ischemia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.diagnosis = "MESENTERIC ISCHEMIA" |
1,856 | ###HUMAN: What is the Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2, ###ASSISTANT: SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = "spiral galaxy" AND apparent_magnitude > 12.2 |
1,857 | ###HUMAN: Who was the young rider classification when Alessandro Petacchi won?, ###ASSISTANT: SELECT "Young rider classification" FROM table_30586 WHERE "Winner" = 'Alessandro Petacchi' |
1,858 | ###HUMAN: Total number of posts by months., ###ASSISTANT: SELECT COUNT(*) FROM Posts |
1,859 | ###HUMAN: what are the four most frequently ordered lab tests for patients who had previously received ven cath renal dialysis within the same month, in 2104?, ###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 = 'ven cath renal dialysis') AND STRFTIME('%y', procedures_icd.charttime) = '2104') AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', labevents.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.itemid) AS t3 WHERE t3.c1 <= 4) |
1,860 | ###HUMAN: What is Status, when Newspaper/Magazine is Al-Thawra?, ###ASSISTANT: SELECT status FROM table_name_24 WHERE newspaper_magazine = "al-thawra" |
1,861 | ###HUMAN: Where Date is september 13, 1998 what is result?, ###ASSISTANT: SELECT result FROM table_name_89 WHERE date = "september 13, 1998" |
1,862 | ###HUMAN: If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?, ###ASSISTANT: SELECT "Primary cartridge" FROM table_28657 WHERE "Year of introduction" = '1962' AND "Country of origin" = 'Denmark' |
1,863 | ###HUMAN: Which 3rd run has rank of 8?, ###ASSISTANT: SELECT "3rd run" FROM table_79697 WHERE "Rank" = '8' |
1,864 | ###HUMAN: For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by time., ###ASSISTANT: SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' |
1,865 | ###HUMAN: What is the type of allergy Cat?, ###ASSISTANT: SELECT allergytype FROM allergy_type WHERE allergy = "Cat" |
1,866 | ###HUMAN: Which venue did Luke Blackwell serve as captain?, ###ASSISTANT: SELECT "Venue" FROM table_18796 WHERE "Captain" = 'Luke Blackwell' |
1,867 | ###HUMAN: When the driver peter gethin has a grid less than 25, what is the average number of laps?, ###ASSISTANT: SELECT AVG("Laps") FROM table_55351 WHERE "Driver" = 'peter gethin' AND "Grid" < '25' |
1,868 | ###HUMAN: How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?, ###ASSISTANT: SELECT SUM("Attendance") FROM table_35910 WHERE "Visitor" = 'cleveland' AND "Leading scorer" = 'larry hughes(33)' |
1,869 | ###HUMAN: What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06), ###ASSISTANT: SELECT "Original Team" FROM table_489 WHERE "Result" = '08 Fired in week 10 (2008-03-06)' |
1,870 | ###HUMAN: what is the total number of title ?, ###ASSISTANT: SELECT COUNT("subject") FROM table_204_265 |
1,871 | ###HUMAN: who won the south after esc geretsried did during the 2006-07 season ?, ###ASSISTANT: SELECT "south" FROM table_204_1 WHERE id = (SELECT id FROM table_204_1 WHERE "south" = 'esc geretsried') + 1 |
1,872 | ###HUMAN: Where is the home ground for the club coached by nick pantsaras and founded before 1946?, ###ASSISTANT: SELECT "Home Ground" FROM table_44900 WHERE "Founded" < '1946' AND "Coach" = 'nick pantsaras' |
1,873 | ###HUMAN: How many years were g Tyres and Minardi m187 used?, ###ASSISTANT: SELECT AVG(year) FROM table_name_82 WHERE tyres = "g" AND chassis = "minardi m187" |
1,874 | ###HUMAN: What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?, ###ASSISTANT: SELECT "Result" FROM table_78664 WHERE "Location" = 'riverfront stadium' AND "Opponent" = 'miami dolphins' |
1,875 | ###HUMAN: Who directed the totle 'tjockare n vatten'?, ###ASSISTANT: SELECT "Directed by" FROM table_20709 WHERE "Title" = 'Tjockare än vatten' |
1,876 | ###HUMAN: When did the archbishop that was ordained a bishop on July 25, 1902 die?, ###ASSISTANT: SELECT "Died" FROM table_44491 WHERE "Ordained Bishop" = 'july 25, 1902' |
1,877 | ###HUMAN: How many rain figures are provided for sunlight hours in 1966?, ###ASSISTANT: SELECT COUNT("Rain") FROM table_17829 WHERE "Sunlight hours" = '1966' |
1,878 | ###HUMAN: Show the different countries and the number of members from each with a bar chart, rank by the bar in ascending., ###ASSISTANT: SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY Country |
1,879 | ###HUMAN: Bar chart of total number of height from each sex, ###ASSISTANT: SELECT Sex, SUM(Height) FROM people GROUP BY Sex |
1,880 | ###HUMAN: what was the first time until 05/2100 patient 002-52932 was prescribed a medication via a misc route?, ###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 = '002-52932')) AND medication.routeadmin = 'misc' AND STRFTIME('%y-%m', medication.drugstarttime) <= '2100-05' ORDER BY medication.drugstarttime LIMIT 1 |
1,881 | ###HUMAN: how many times have there been helps by damon stoudamire (13), ###ASSISTANT: SELECT COUNT("Record") FROM table_802 WHERE "High assists" = 'Damon Stoudamire (13)' |
1,882 | ###HUMAN: Show all payment method codes and the number of orders for each code. Visualize by pie chart., ###ASSISTANT: SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code |
1,883 | ###HUMAN: For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and sort y axis in ascending order., ###ASSISTANT: SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) |
1,884 | ###HUMAN: When was the film directed by Pen-Ek Ratanaruang released?, ###ASSISTANT: SELECT date FROM table_name_13 WHERE director = "pen-ek ratanaruang" |
1,885 | ###HUMAN: Which rider had a speed of 104.630mph?, ###ASSISTANT: SELECT "Rider" FROM table_52741 WHERE "Speed" = '104.630mph' |
1,886 | ###HUMAN: what is the total number of apps and goals for luther blissett ?, ###ASSISTANT: SELECT "apps" + "goals" FROM table_204_340 WHERE "name" = 'luther blissett' |
1,887 | ###HUMAN: Parts Plus sponsors what driver?, ###ASSISTANT: SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus" |
1,888 | ###HUMAN: What is the place when the performance is 60.73m?, ###ASSISTANT: SELECT place FROM table_name_65 WHERE performance = "60.73m" |
1,889 | ###HUMAN: What year was Sam Kazman a producer?, ###ASSISTANT: SELECT year FROM table_name_35 WHERE producer = "sam kazman" |
1,890 | ###HUMAN: which team had the largest goal difference ?, ###ASSISTANT: SELECT "team" FROM table_203_254 ORDER BY ABS("difference") DESC LIMIT 1 |
1,891 | ###HUMAN: how many days have elapsed since the first time patient 30826 stayed in the ward 12 during this hospital encounter?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30826 AND admissions.dischtime IS NULL)) AND transfers.wardid = 12 ORDER BY transfers.intime LIMIT 1 |
1,892 | ###HUMAN: What loan expires date has a Date of 29 december 2003?, ###ASSISTANT: SELECT "Loan expires" FROM table_13239 WHERE "Date" = '29 december 2003' |
1,893 | ###HUMAN: Who was the partner that played against Serena Williams Venus Williams?, ###ASSISTANT: SELECT "Partner" FROM table_9885 WHERE "Opponents in the final" = 'serena williams venus williams' |
1,894 | ###HUMAN: What is the name of party with most number of members?, ###ASSISTANT: SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1 |
1,895 | ###HUMAN: What is the call sign for channel 6?, ###ASSISTANT: SELECT "Callsign" FROM table_28631 WHERE "Channel" = '6' |
1,896 | ###HUMAN: What date has a set 4 of 25-19?, ###ASSISTANT: SELECT "Date" FROM table_42037 WHERE "Set 4" = '25-19' |
1,897 | ###HUMAN: how many patients were admitted before the year 2135 under procedure icd9 code 3893?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2135" AND procedures.icd9_code = "3893" |
1,898 | ###HUMAN: What was the total effic for the quarterbacks?, ###ASSISTANT: SELECT MIN("Effic") FROM table_9027 WHERE "Name" = 'total' |
1,899 | ###HUMAN: When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?, ###ASSISTANT: SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = "yoweri museveni" AND year = 1993 |