Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
2,800
###HUMAN: What is the lowest number of silver medals with a rank of 4 and total medals greater than 1?, ###ASSISTANT: SELECT MIN(silver) FROM table_name_68 WHERE rank = 4 AND total > 1
2,801
###HUMAN: count the number of patients whose age is less than 43 and lab test name is epithelial cells?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "43" AND lab.label = "Epithelial Cells"
2,802
###HUMAN: what is the number of goals scored in the algarve cup on march 5 , 2002 ?, ###ASSISTANT: SELECT "scored" FROM table_204_346 WHERE "date" = '5 march 2002'
2,803
###HUMAN: Who won in 1988 with a total less than 287?, ###ASSISTANT: SELECT "Player" FROM table_64946 WHERE "Total" < '287' AND "Year(s) won" = '1988'
2,804
###HUMAN: what is the title of the episode with production code '2arg09'?, ###ASSISTANT: SELECT "Title" FROM table_29439 WHERE "Production code" = '2ARG09'
2,805
###HUMAN: what party had the least number of seats ?, ###ASSISTANT: SELECT "party" FROM table_203_798 ORDER BY "seats" LIMIT 1
2,806
###HUMAN: What are the classes offered for Other next Winter ?, ###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_offering.course_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017
2,807
###HUMAN: How many people wrote the episode that had 7.26 million u.s. viewers?, ###ASSISTANT: SELECT COUNT(written_by) FROM table_28037619_2 WHERE us_viewers__million_ = "7.26"
2,808
###HUMAN: What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko?, ###ASSISTANT: SELECT MAX("Laps") FROM table_78424 WHERE "Grid" > '14' AND "Time/Retired" = '+ 2 laps' AND "Driver" = 'helmut marko'
2,809
###HUMAN: What are all the album titles, in alphabetical order?, ###ASSISTANT: SELECT title FROM album ORDER BY title
2,810
###HUMAN: Where attendance is 79,431 what is date?, ###ASSISTANT: SELECT "Date" FROM table_55954 WHERE "Attendance" = '79,431'
2,811
###HUMAN: how many patients whose diagnoses long title is cellulitis and abscess of leg, except foot and drug route is po?, ###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.long_title = "Cellulitis and abscess of leg, except foot" AND prescriptions.route = "PO"
2,812
###HUMAN: Which Country has a Network of channel 1?, ###ASSISTANT: SELECT "Country" FROM table_40037 WHERE "Network" = 'channel 1'
2,813
###HUMAN: neutrophil count >= 1500 / mm3, ###ASSISTANT: SELECT * FROM table_dev_35 WHERE neutrophil_count >= 1500
2,814
###HUMAN: how many companies had over $ 1,000,000 profit ?, ###ASSISTANT: SELECT COUNT("name of\nconcern") FROM table_203_320 WHERE "profit\n(thou.\npln)" > 1000000
2,815
###HUMAN: What are the played points difference?, ###ASSISTANT: SELECT played FROM table_name_82 WHERE points_difference = "points difference"
2,816
###HUMAN: What chassis did the porsche flat-4 use before 1958?, ###ASSISTANT: SELECT "Chassis" FROM table_80210 WHERE "Engine" = 'porsche flat-4' AND "Year" < '1958'
2,817
###HUMAN: What number (#) is associated with the Name Ron Baxter?, ###ASSISTANT: SELECT COUNT(_number) FROM table_12032893_1 WHERE name = "Ron Baxter"
2,818
###HUMAN: Draw a bar chart of name versus age, and I want to rank by the x axis in asc., ###ASSISTANT: SELECT Name, Age FROM editor ORDER BY Name
2,819
###HUMAN: Which Margin of victory has a Runner(s)-up of mark o'meara?, ###ASSISTANT: SELECT margin_of_victory FROM table_name_19 WHERE runner_s__up = "mark o'meara"
2,820
###HUMAN: what is the number of patients who were admitted before the year 2115 for insertion of non-drug-eluting coronary artery stent(s)?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2115" AND procedures.long_title = "Insertion of non-drug-eluting coronary artery stent(s)"
2,821
###HUMAN: What is the sequencer when ion torrent pgm is 200-400 bp?, ###ASSISTANT: SELECT "Sequencer" FROM table_17773 WHERE "Ion Torrent PGM" = '200-400 bp'
2,822
###HUMAN: give me the number of patients whose admission type is emergency and lab test name is creatine kinase, mb isoenzyme?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.label = "Creatine Kinase, MB Isoenzyme"
2,823
###HUMAN: How much absorption in nm does the orange dye have?, ###ASSISTANT: SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = "orange"
2,824
###HUMAN: how many games were played in september 1978 ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_565 WHERE "date" = 9 AND "date" = 1978
2,825
###HUMAN: Which year has a total of 0 points and a chassis of Toleman tg181?, ###ASSISTANT: SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = "toleman tg181"
2,826
###HUMAN: I want to see International Economics courses of 3 credits ., ###ASSISTANT: SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%International Economics%' OR name LIKE '%International Economics%') AND credits = 3
2,827
###HUMAN: What episode number in the series was directed by John Behring?, ###ASSISTANT: SELECT MAX("No in Series") FROM table_24187 WHERE "Directed by" = 'John Behring'
2,828
###HUMAN: What was the home score for the Home team Melbourne?, ###ASSISTANT: SELECT "Home team score" FROM table_10710 WHERE "Home team" = 'melbourne'
2,829
###HUMAN: When 1927 is the founded year how many measurements of enrollment in 2012 are there?, ###ASSISTANT: SELECT COUNT(enrollment__2012_) FROM table_2076516_1 WHERE founded = 1927
2,830
###HUMAN: how many patients died after being diagnosed in 2104 with hematuria in the same hospital encounter?, ###ASSISTANT: SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime, t1.patienthealthsystemstayid FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hematuria') AS t1 GROUP BY t1.uniquepid HAVING MIN(t1.diagnosistime) = t1.diagnosistime AND STRFTIME('%y', t1.diagnosistime) = '2104') AS t2 JOIN (SELECT patient.uniquepid, patient.patienthealthsystemstayid, patient.hospitaldischargetime FROM patient WHERE patient.hospitaldischargestatus = 'expired') AS t3 ON t2.uniquepid = t3.uniquepid WHERE t2.patienthealthsystemstayid = t3.patienthealthsystemstayid
2,831
###HUMAN: What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817?, ###ASSISTANT: SELECT census_ranking FROM table_name_93 WHERE area_km_2 < 9.94 AND population < 817
2,832
###HUMAN: What is the away team when the home team is Cheltenham Town?, ###ASSISTANT: SELECT away_team FROM table_name_5 WHERE home_team = "cheltenham town"
2,833
###HUMAN: which competition did this competitor compete in next after the world indoor championships in 2008 ?, ###ASSISTANT: SELECT "competition" FROM table_204_622 WHERE id = (SELECT id FROM table_204_622 WHERE "competition" = 'world indoor championships' AND "year" = 2008) + 1
2,834
###HUMAN: What is the subject when the highest mark is 79?, ###ASSISTANT: SELECT subject FROM table_29842201_1 WHERE highest_mark = 79
2,835
###HUMAN: Which 2010 stat featured the tournament of the Olympic Games?, ###ASSISTANT: SELECT 2010 FROM table_name_2 WHERE tournament = "olympic games"
2,836
###HUMAN: Which Position has a Player of patrick macdonald?, ###ASSISTANT: SELECT "Position" FROM table_56631 WHERE "Player" = 'patrick macdonald'
2,837
###HUMAN: Which Perth's gold coast and Adelaide were yes when Auckland was no?, ###ASSISTANT: SELECT "Perth" FROM table_68328 WHERE "Gold Coast" = 'yes' AND "Adelaide" = 'yes' AND "Auckland" = 'no'
2,838
###HUMAN: Show me a bar chart comparing the total number of captains of different classes, order from high to low by the the number of class., ###ASSISTANT: SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY COUNT(Class) DESC
2,839
###HUMAN: Percent closed per canonical tag., ###ASSISTANT: WITH canon AS (SELECT Tags.Id, Count, Tags.TagName AS otag, COALESCE(c.TargetTagName, b.TargetTagName, a.TargetTagName, TagName) AS tagname FROM Tags LEFT JOIN TagSynonyms AS a ON (a.SourceTagName = TagName) LEFT JOIN TagSynonyms AS b ON (b.SourceTagName = a.TargetTagName) LEFT JOIN TagSynonyms AS c ON (c.SourceTagName = b.TargetTagName)) SELECT TagName, COUNT(*) AS closed, MAX(canon.Count) AS questions, CAST(COUNT(*) AS FLOAT) / MAX(canon.Count) AS percentclosed FROM Posts AS p LEFT JOIN PostTags AS pt ON p.Id = pt.PostId LEFT JOIN canon ON pt.TagId = canon.Id WHERE PostTypeId = 1 AND NOT ClosedDate IS NULL AND canon.Count >= 1000 GROUP BY TagName ORDER BY CAST(COUNT(*) AS FLOAT) / MAX(canon.Count) DESC
2,840
###HUMAN: Find those themes and years for all exhibitions with ticket prices lower than 15, show me a stacked bar chart that groups by themes, counts year, and the x-axis is Year., ###ASSISTANT: SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Theme
2,841
###HUMAN: Name the county for mccain being 38.78%, ###ASSISTANT: SELECT "County" FROM table_23739 WHERE "McCain%" = '38.78%'
2,842
###HUMAN: what is the overall number of times when the calendar showed october 6, ###ASSISTANT: SELECT COUNT("Record") FROM table_29866 WHERE "Date" = 'October 6'
2,843
###HUMAN: What is the admission time and for how many days did the subject id 4333 stay in the hospital?, ###ASSISTANT: SELECT demographic.days_stay, demographic.admittime FROM demographic WHERE demographic.subject_id = "4333"
2,844
###HUMAN: How many different set of candidates were there when the incumbent was david e. finley?, ###ASSISTANT: SELECT COUNT(candidates) FROM table_1346137_4 WHERE incumbent = "David E. Finley"
2,845
###HUMAN: how many patients have stayed in the hospital for more than 14 days with a ou drug route?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "14" AND prescriptions.route = "OU"
2,846
###HUMAN: What was the nationality of the sunk ship named Rinos?, ###ASSISTANT: SELECT nationality FROM table_name_52 WHERE fate = "sunk" AND ship = "rinos"
2,847
###HUMAN: What livery belongs to the steam Locomotive type builder that was building before 1989?, ###ASSISTANT: SELECT livery FROM table_name_69 WHERE year_built < 1989 AND locomotive_type = "steam"
2,848
###HUMAN: For those employees who did not have any job in the past, give me the trend about department_id over hire_date , I want to order in desc by the X-axis., ###ASSISTANT: SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC
2,849
###HUMAN: Who is the player from round 8?, ###ASSISTANT: SELECT "Player" FROM table_50913 WHERE "Round" = '8'
2,850
###HUMAN: What is Gold, when Total is 6?, ###ASSISTANT: SELECT gold FROM table_name_79 WHERE total = 6
2,851
###HUMAN: who won the election after s. sivaprakasam in the fifth pondicherry assembly ?, ###ASSISTANT: SELECT "name of m.l.a." FROM table_204_54 WHERE "pondicherry assembly" = 'fifth'
2,852
###HUMAN: Top 10 tags with top 5 tags., ###ASSISTANT: SELECT Tags FROM Posts WHERE Tags IN (SELECT Tags FROM Tags ORDER BY Count DESC LIMIT 10) LIMIT 5
2,853
###HUMAN: How many premio are there when 'Artist of the Year' was the categoria?, ###ASSISTANT: SELECT COUNT("Premio") FROM table_29563 WHERE "Categor\u00eda" = 'Artist of the Year'
2,854
###HUMAN: Can you tell me the highest Points that has the Played smaller than 30?, ###ASSISTANT: SELECT MAX(points) FROM table_name_67 WHERE played < 30
2,855
###HUMAN: what is drug route and drug dose of drug name miconazole 2% cream?, ###ASSISTANT: SELECT prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Miconazole 2% Cream"
2,856
###HUMAN: Name the total number of weeks for si te vas and peak less than 7 and year less than 2000, ###ASSISTANT: SELECT COUNT("Weeks on Chart") FROM table_75128 WHERE "Track" = 'si te vas' AND "Peak" < '7' AND "Year" < '2000'
2,857
###HUMAN: What is the minimum sum?, ###ASSISTANT: SELECT MIN("Total") FROM table_30281
2,858
###HUMAN: what was the total replete w/fiber dose for patient 22517?, ###ASSISTANT: SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22517)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'replete w/fiber' AND d_items.linksto = 'inputevents_cv')
2,859
###HUMAN: What is the name for the 2012 CN Sabadell?, ###ASSISTANT: SELECT "Name" FROM table_9225 WHERE "2012 club" = 'cn sabadell'
2,860
###HUMAN: Which Saturday has a Name of confederation?, ###ASSISTANT: SELECT saturday FROM table_name_68 WHERE name = "confederation"
2,861
###HUMAN: find the number of patients who were born before the year 2120 and their drug route is ivpca., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2120" AND prescriptions.route = "IVPCA"
2,862
###HUMAN: Find the last names of the members of the club 'Bootup Baltimore'., ###ASSISTANT: SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore"
2,863
###HUMAN: does each congressman have a party listed ?, ###ASSISTANT: SELECT COUNT(*) = 0 FROM table_203_409 WHERE "party" IS NULL
2,864
###HUMAN: what year had the most candidates elected ?, ###ASSISTANT: SELECT "year of election" FROM table_203_330 ORDER BY "candidates elected" DESC LIMIT 1
2,865
###HUMAN: just count how many patients have been prescribed spironolactone in 2105., ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'spironolactone' AND STRFTIME('%y', prescriptions.startdate) = '2105')
2,866
###HUMAN: What are the different first names for customers from Brazil who have also had an invoice?, ###ASSISTANT: SELECT DISTINCT T1.firstname FROM customer AS T1 JOIN invoice AS T2 ON T1.customerid = T2.customerid WHERE T1.country = "Brazil"
2,867
###HUMAN: What is the highest number listed?, ###ASSISTANT: SELECT MAX("Number") FROM table_17426
2,868
###HUMAN: what is the most expensive flight from BOSTON to DALLAS, ###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, 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 = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND fare.one_direction_cost = (SELECT MAX(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'DALLAS' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id
2,869
###HUMAN: Which polling firm put T. Papadopoulos at 31%?, ###ASSISTANT: SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%"
2,870
###HUMAN: is the total score for december 26 the same score as january 2 ?, ###ASSISTANT: SELECT (SELECT "score" FROM table_203_517 WHERE "date" = 'december 26') = (SELECT "score" FROM table_203_517 WHERE "date" = 'january 2')
2,871
###HUMAN: what is the last d5 1/2ns dose that patient 65962 was prescribed in 05/2103?, ###ASSISTANT: SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65962) AND prescriptions.drug = 'd5 1/2ns' AND STRFTIME('%y-%m', prescriptions.startdate) = '2103-05' ORDER BY prescriptions.startdate DESC LIMIT 1
2,872
###HUMAN: How many poles were there in 1996?, ###ASSISTANT: SELECT MIN("Poles") FROM table_2508 WHERE "Year" = '1996'
2,873
###HUMAN: when was patient 007-16517 prescribed for the last time a medication via inhale medication in the current hospital visit?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL)) AND medication.routeadmin = 'inhale' ORDER BY medication.drugstarttime DESC LIMIT 1
2,874
###HUMAN: How many teams were in the series championnat de france formula renault 2.0?, ###ASSISTANT: SELECT team FROM table_26124171_1 WHERE series = "Championnat de France Formula Renault 2.0"
2,875
###HUMAN: is patient 25696's urea nitrogen last measured on the last hospital visit greater than second to last measured on the last hospital visit?, ###ASSISTANT: SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25696 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen') ORDER BY labevents.charttime DESC LIMIT 1) > (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25696 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen') ORDER BY labevents.charttime DESC LIMIT 1 OFFSET 1)
2,876
###HUMAN: How man 3-dart averages did gary anderson have?, ###ASSISTANT: SELECT COUNT(3 AS _dart_average) FROM table_24549777_1 WHERE player = "Gary Anderson"
2,877
###HUMAN: What is the area of the civil parish kilworth and townland monadrishane?, ###ASSISTANT: SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane"
2,878
###HUMAN: WHAT IS THE NAME WITH 01.0 10 light street?, ###ASSISTANT: SELECT "Name" FROM table_61421 WHERE "Street address" = '01.0 10 light street'
2,879
###HUMAN: What is the location when KO is the method, the result is a win, and the record is 2-0?, ###ASSISTANT: SELECT "Location" FROM table_61734 WHERE "Method" = 'ko' AND "Result" = 'win' AND "Record" = '2-0'
2,880
###HUMAN: For all storms with at least 1 death, show me the name and the total number of deaths with a bar chart, order by the bar in descending., ###ASSISTANT: SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Name DESC
2,881
###HUMAN: What bran is the callsign dytc-fm?, ###ASSISTANT: SELECT "Branding" FROM table_28307 WHERE "Callsign" = 'DYTC-FM'
2,882
###HUMAN: Who write episode number 48 in the series?, ###ASSISTANT: SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48"
2,883
###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 job_id and commission_pct in a bar chart, and order in asc by the y axis., ###ASSISTANT: SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT
2,884
###HUMAN: For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, and show Y-axis in descending order., ###ASSISTANT: SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) DESC
2,885
###HUMAN: What is the smallest sales area (m ) that has 4,094/m and more than 2 stores?, ###ASSISTANT: SELECT MIN("Sales area (m\u00b2)") FROM table_4413 WHERE "Sales per area" = '€4,094/m²' AND "No. of stores" > '2'
2,886
###HUMAN: What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?, ###ASSISTANT: SELECT MAX("Current branch opened") FROM table_41561 WHERE "Neighborhood" = 'w. portland park'
2,887
###HUMAN: what is the maximum age of patients primarily diagnosed with posterior communicating aneurysm/sda before the admission year 2203?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" AND demographic.admityear >= "2203"
2,888
###HUMAN: On what Date is there a Home team score of 8.15 (63)?, ###ASSISTANT: SELECT "Date" FROM table_4590 WHERE "Home team score" = '8.15 (63)'
2,889
###HUMAN: What 300 -level classes do you have available for the Spring or Summer term ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = course_offering.semester AND semester.year = 2016
2,890
###HUMAN: What was the attendance when Essendon played as the home team?, ###ASSISTANT: SELECT COUNT("Crowd") FROM table_54764 WHERE "Home team" = 'essendon'
2,891
###HUMAN: Return a bar chart on what is the state and enrollment of the colleges where have any students who got accepted in the tryout decision., ###ASSISTANT: SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'
2,892
###HUMAN: how many total cars did chevrolet manufacture ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_604 WHERE "manufacturer" = 'chevrolet'
2,893
###HUMAN: What is the highest crude death rate when deaths are 3 433 and average population is greater than 298?, ###ASSISTANT: SELECT MAX("Crude death rate (per 1000)") FROM table_13038 WHERE "Deaths" = '3 433' AND "Average population (x 1000)" > '298'
2,894
###HUMAN: How tall is nerlens noel?, ###ASSISTANT: SELECT "Height" FROM table_57174 WHERE "Player" = 'nerlens noel'
2,895
###HUMAN: What is the number of 40 to 44 when the 50 to 54 is less than 4,184, and the 15 to 17 is less than 3?, ###ASSISTANT: SELECT COUNT("40 to 44") FROM table_77332 WHERE "50 to 54" < '4,184' AND "15 to 17" < '3'
2,896
###HUMAN: Who directed the film that Avie Luthra received an award for?, ###ASSISTANT: SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra"
2,897
###HUMAN: What is the home score with a crowd larger than 25,603?, ###ASSISTANT: SELECT "Home team score" FROM table_56904 WHERE "Crowd" > '25,603'
2,898
###HUMAN: What 2006 has q2 as the 2007?, ###ASSISTANT: SELECT 2006 FROM table_name_34 WHERE 2007 = "q2"
2,899
###HUMAN: what were the three most frequent drugs prescribed to patients with an age 60 or above after they had been diagnosed with adv eff arom analgsc nec during a year before within 2 months?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime 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 = 'adv eff arom analgsc nec') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.age >= 60 AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) 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') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3