Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
700
###HUMAN: What is the class of team liqui moly equipe, which has less than 71 laps?, ###ASSISTANT: SELECT "Class" FROM table_48102 WHERE "Laps" < '71' AND "Team" = 'liqui moly equipe'
701
###HUMAN: If the playoff berth is 17, what is the AFC championship number?, ###ASSISTANT: SELECT "AFC Championships" FROM table_23060 WHERE "Playoff Berths" = '17'
702
###HUMAN: What was the range of finishing position for 15 awarded platinum points?, ###ASSISTANT: SELECT finishing_position FROM table_11254821_2 WHERE points_awarded__platinum_ = 15
703
###HUMAN: What is the attendance number for December 2, 1979?, ###ASSISTANT: SELECT SUM("Attendance") FROM table_70615 WHERE "Date" = 'december 2, 1979'
704
###HUMAN: How many seconds is a shuttle run that give 2 points?, ###ASSISTANT: SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2
705
###HUMAN: Questions Using Popular Tags In January 2019. Questions Using Popular Tags In January 2019 Tags with rate of use over 4 times on this site., ###ASSISTANT: SELECT Id AS "post_link", Id, CreationDate, AnswerCount, CommentCount, rate.TagId FROM Posts, PostTags, (SELECT COUNT(PostId) AS Rate, TagId FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.CreationDate < '2019-03-01' AND Posts.CreationDate > '2019-01-01' GROUP BY TagId, TagName HAVING COUNT(PostId) > 4) AS rate WHERE rate.TagId = PostTags.TagId AND Posts.Id = PostId AND CreationDate > '2019-01-01' AND CreationDate < '2019-01-03' AND DeletionDate IS NULL AND AnswerCount > 0 AND CommentCount > 0
706
###HUMAN: In what place is the player with a score of 72-66-75=213?, ###ASSISTANT: SELECT place FROM table_name_13 WHERE score = 72 - 66 - 75 = 213
707
###HUMAN: What is the location attendance of the game with a 27-22 record?, ###ASSISTANT: SELECT "Location Attendance" FROM table_38827 WHERE "Record" = '27-22'
708
###HUMAN: how many patients are admitted under urgency and followed the procedure colonoscopy?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.short_title = "Colonoscopy"
709
###HUMAN: What is the amount of assists for richmond kickers and points larger than 24, ###ASSISTANT: SELECT SUM(assists) FROM table_name_32 WHERE club = "richmond kickers" AND points > 24
710
###HUMAN: what was the four most often given procedures for patients 40s?, ###ASSISTANT: SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4
711
###HUMAN: Who was the Republican when the green was Harold Burbank?, ###ASSISTANT: SELECT republican FROM table_name_27 WHERE green = "harold burbank"
712
###HUMAN: How big (in km2) is Persarmenia?, ###ASSISTANT: SELECT "Area (km\u00b2)" FROM table_26375 WHERE "Province (ashkharh)" = 'Persarmenia'
713
###HUMAN: What is the score March 27?, ###ASSISTANT: SELECT score FROM table_name_55 WHERE date = "march 27"
714
###HUMAN: Top 10 Meta users from Nigeria., ###ASSISTANT: SELECT * FROM Users WHERE Location LIKE '%Nigeria' ORDER BY Reputation DESC LIMIT 10
715
###HUMAN: How many pints does the Cambrian Welfare RFC have?, ###ASSISTANT: SELECT points_for FROM table_name_50 WHERE club = "cambrian welfare rfc"
716
###HUMAN: What kind of Sanskrit has a Kannada of uttara ?, ###ASSISTANT: SELECT "Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" FROM table_35105 WHERE "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" = 'uttara ಉತ್ತರಾ'
717
###HUMAN: How is the marriage of who became queen on 30 October 1816 husband's accession?, ###ASSISTANT: SELECT "Marriage" FROM table_6115 WHERE "Became Queen" = '30 october 1816 husband''s accession'
718
###HUMAN: How many customers live in Prague city?, ###ASSISTANT: SELECT COUNT(*) FROM customers WHERE city = "Prague"
719
###HUMAN: What was the rating/share for 18-49 for the episode that had 5.90 million viewers?, ###ASSISTANT: SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
720
###HUMAN: Return a bar chart on what are the different ship flags, and how many ships have each?, list by the Y-axis in descending., ###ASSISTANT: SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY COUNT(*) DESC
721
###HUMAN: provide the admission time and marital status of subject id 6983., ###ASSISTANT: SELECT demographic.marital_status, demographic.admittime FROM demographic WHERE demographic.subject_id = "6983"
722
###HUMAN: Which format has january 21, 2002 as the date?, ###ASSISTANT: SELECT "Format" FROM table_44036 WHERE "Date" = 'january 21, 2002'
723
###HUMAN: What is the link of rnaz that predicts an alignment of input?, ###ASSISTANT: SELECT "Link" FROM table_34127 WHERE "Alignment Alignment: predicts an alignment , ." = 'input' AND "Name" = 'rnaz'
724
###HUMAN: What kind of Week 4 has a Week 9 of all housemates?, ###ASSISTANT: SELECT "Week 4" FROM table_59962 WHERE "Week 9" = 'all housemates'
725
###HUMAN: What was the transfer fee for the player moving in the winter window and ending in a year after 2010?, ###ASSISTANT: SELECT "Transfer fee" FROM table_7726 WHERE "Ends" > '2010' AND "Transfer window" = 'winter'
726
###HUMAN: Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?, ###ASSISTANT: SELECT SUM("Year") FROM table_67776 WHERE "Role" = 'narrator' AND "Radio Station/Production Company" = 'bbc audiobooks' AND "Release/Air Date" = '13 november 2008'
727
###HUMAN: Show team id vs acc_percent as scatter plot use a different color for each All_Games, ###ASSISTANT: SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Games
728
###HUMAN: what is the number of delegates younger than 20 ?, ###ASSISTANT: SELECT COUNT("contestant") FROM table_204_20 WHERE "age" < 20
729
###HUMAN: Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?, ###ASSISTANT: SELECT "Team" FROM table_65384 WHERE "Qualification" = 'entry to the 2004 chinese super league' AND "2002 Position" < '6' AND "2003 Position" < '9' AND "Total Position" > '3.5'
730
###HUMAN: current plasma creatinine >= 0.5 mg / dl, ###ASSISTANT: SELECT * FROM table_train_111 WHERE plasma_creatinine >= 0.5
731
###HUMAN: count the number of patients whose diagnoses short title is acute uri nos and lab test fluid is ascites?, ###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 = "Acute uri NOS" AND lab.fluid = "Ascites"
732
###HUMAN: Which Winner has a Runner-up of larne, and a Season of 2003 04?, ###ASSISTANT: SELECT winner FROM table_name_13 WHERE runner_up = "larne" AND season = "2003–04"
733
###HUMAN: What year was USF founded?, ###ASSISTANT: SELECT "Date founded" FROM table_262 WHERE "Acronym" = 'USF'
734
###HUMAN: which country/countries has the same number of total metals as thailand ?, ###ASSISTANT: SELECT "nation" FROM table_204_183 WHERE "nation" <> 'thailand' AND "total" = (SELECT "total" FROM table_204_183 WHERE "nation" = 'thailand')
735
###HUMAN: Visualize a scatter chart about the correlation between Credits and DNO ., ###ASSISTANT: SELECT Credits, DNO FROM Course ORDER BY Credits
736
###HUMAN: During the week does 588 usually have 2 or 3 lectures ?, ###ASSISTANT: SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday, semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 588 AND semester.semester_id = course_offering.semester ORDER BY semester.semester_id DESC LIMIT 10
737
###HUMAN: Top 1000 reputation whores in C++ tag., ###ASSISTANT: SELECT Users.Id AS Id, Users.DisplayName AS "user_link", SUM(Answers.Score) * 10 AS Reputation FROM Posts AS Answers INNER JOIN Posts AS Questions ON Questions.Id = Answers.ParentId INNER JOIN Users AS Users ON Answers.OwnerUserId = Users.Id INNER JOIN PostTags ON PostTags.PostId = Answers.ParentId INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Answers.PostTypeId = 2 AND (LOWER(Users.Location) LIKE '%spain%' OR LOWER(Users.Location) LIKE '%espa a%') AND NOT Answers.OwnerUserId IS NULL AND Tags.TagName = 'c++' AND (Questions.ClosedDate != '' OR Questions.Score < 0) GROUP BY Users.Id, Users.DisplayName ORDER BY Reputation DESC LIMIT 1000
738
###HUMAN: what was the name of the mission previous to cosmos 300 ?, ###ASSISTANT: SELECT "name" FROM table_204_633 WHERE id = (SELECT id FROM table_204_633 WHERE "name" = 'cosmos 300') - 1
739
###HUMAN: How many grids had a Time/Retired of +4 laps?, ###ASSISTANT: SELECT COUNT("Grid") FROM table_43494 WHERE "Time/Retired" = '+4 laps'
740
###HUMAN: how many featured guests are there in total ?, ###ASSISTANT: SELECT COUNT("featured guest(s)") FROM table_204_184
741
###HUMAN: In what place did the golfer representing Zimbabwe finish?, ###ASSISTANT: SELECT place FROM table_name_60 WHERE country = "zimbabwe"
742
###HUMAN: How many total songs has the order #1, ###ASSISTANT: SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = "1"
743
###HUMAN: In what season was the overall record 29-7?, ###ASSISTANT: SELECT "Season" FROM table_19441 WHERE "Overall" = '29-7'
744
###HUMAN: What is the English title for Ansikte Mot Ansikte?, ###ASSISTANT: SELECT "English title" FROM table_68616 WHERE "Original title" = 'ansikte mot ansikte'
745
###HUMAN: Which gc37-01 v10 engine has the fewest points?, ###ASSISTANT: SELECT MIN("Points") FROM table_15328 WHERE "Engine" = 'gc37-01 v10'
746
###HUMAN: how many patients whose admission location is phys referral/normal deli and discharge location is home?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.discharge_location = "HOME"
747
###HUMAN: How many players played each position Plot them as bar chart, and rank in asc by the y-axis., ###ASSISTANT: SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*)
748
###HUMAN: Which venue has 16 against?, ###ASSISTANT: SELECT venue FROM table_name_5 WHERE against = 16
749
###HUMAN: What is the pick # when the new jersey devils is the nhl team?, ###ASSISTANT: SELECT "Pick #" FROM table_30854 WHERE "NHL team" = 'New Jersey Devils'
750
###HUMAN: what is the mchc difference/difference of patient 032-17571 second measured on the last hospital visit compared to the first value measured on the last hospital visit?, ###ASSISTANT: SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-17571' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND lab.labname = 'mchc' ORDER BY lab.labresulttime LIMIT 1 OFFSET 1) - (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-17571' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND lab.labname = 'mchc' ORDER BY lab.labresulttime LIMIT 1)
751
###HUMAN: provide the number of patients whose diagnoses long title is antineoplastic and immunosuppressive drugs causing adverse effects in therapeutic use and drug type is main?, ###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 = "Antineoplastic and immunosuppressive drugs causing adverse effects in therapeutic use" AND prescriptions.drug_type = "MAIN"
752
###HUMAN: What is Score, when Attendance is 2,444?, ###ASSISTANT: SELECT score FROM table_name_33 WHERE attendance = "2,444"
753
###HUMAN: Between which years were there 241 fokker 70 model cabins built?, ###ASSISTANT: SELECT period FROM table_name_43 WHERE built < 241 AND model = "fokker 70"
754
###HUMAN: Name the republican steve sauerberg for august 12, 2008, ###ASSISTANT: SELECT "Republican: Steve Sauerberg" FROM table_21037 WHERE "Dates administered" = 'August 12, 2008'
755
###HUMAN: how long did bernard pilon serve in the canadian army ?, ###ASSISTANT: SELECT "military service" - "military service" FROM table_204_608 WHERE "name" = 'bernard pilon'
756
###HUMAN: What is the Money of the T4 Place Player with a Score of 71-66-74-67=278?, ###ASSISTANT: SELECT AVG(money___) AS $__ FROM table_name_64 WHERE place = "t4" AND score = 71 - 66 - 74 - 67 = 278
757
###HUMAN: How many female patients have a prescription for aspirin ec?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.drug = "Aspirin EC"
758
###HUMAN: what is the number of hours elapsed since the last time patient 033-22108 had a d5w intake on the current intensive care unit visit?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = '033-22108') AND patient.unitdischargetime IS NULL) AND intakeoutput.celllabel = 'd5w' AND intakeoutput.cellpath LIKE '%intake%' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1
759
###HUMAN: What was the date of the game when Atlanta was the home team?, ###ASSISTANT: SELECT "Date" FROM table_51441 WHERE "Home" = 'atlanta'
760
###HUMAN: Who is the Trainer with the Year of 2013?, ###ASSISTANT: SELECT trainer FROM table_name_33 WHERE year = "2013"
761
###HUMAN: what is the dose of sodium bicarbonate that is first prescribed to patient 10811 since 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 = 10811) AND prescriptions.drug = 'sodium bicarbonate' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2103-05' ORDER BY prescriptions.startdate LIMIT 1
762
###HUMAN: In what Round was Pick 138?, ###ASSISTANT: SELECT SUM("Round") FROM table_39413 WHERE "Pick" = '138'
763
###HUMAN: What years did the player with a t71 finish win?, ###ASSISTANT: SELECT "Year(s) won" FROM table_60790 WHERE "Finish" = 't71'
764
###HUMAN: What is the defective year for the regular year of 29 days and month sequence of 2?, ###ASSISTANT: SELECT MAX("Defective Year") FROM table_30897 WHERE "Regular Year" = '29 days' AND "Month Sequence" = '2'
765
###HUMAN: What is the name of the technician whose team is not 'NYY', and count them by a bar chart, ###ASSISTANT: SELECT Name, COUNT(Name) FROM technician WHERE Team <> "NYY" GROUP BY Name
766
###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, find hire_date and the sum of employee_id bin hire_date by weekday, and visualize them by a bar chart, and sort in desc by the y-axis., ###ASSISTANT: SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) DESC
767
###HUMAN: Who was the finalist when the MVP was Romain Sato?, ###ASSISTANT: SELECT "Finalist" FROM table_2095 WHERE "MVP" = 'Romain Sato'
768
###HUMAN: Which clubs have one or more members whose advisor is '1121'?, ###ASSISTANT: SELECT DISTINCT t1.clubname 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 t3.advisor = 1121
769
###HUMAN: what is the drug that patient 19352 was prescribed for within 2 days after the diagnosis of hx traumatic fracture until 22 months ago?, ###ASSISTANT: SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 19352 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx traumatic fracture') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-22 month')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 19352 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-22 month')) 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 day')
770
###HUMAN: Visualize the general trend of sum share count over the date of transaction, sort in descending by the X-axis., ###ASSISTANT: SELECT date_of_transaction, SUM(share_count) FROM Transactions ORDER BY date_of_transaction DESC
771
###HUMAN: What is the Late Middle English equivalent of the Anglian g, g?, ###ASSISTANT: SELECT late_middle_english FROM table_28177800_5 WHERE late_old_english__anglian_ = "æg, ǣg"
772
###HUMAN: What was the episode number for 'Going Bodmin'?, ###ASSISTANT: SELECT MAX("Episode No.") FROM table_24058 WHERE "Title" = 'Going Bodmin'
773
###HUMAN: How many touchdowns were scored by William Cole?, ###ASSISTANT: SELECT "Touchdowns" FROM table_39585 WHERE "Player" = 'william cole'
774
###HUMAN: Give me the comparison about All_Games_Percent over the ACC_Regular_Season , and sort in descending by the bars., ###ASSISTANT: SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY ACC_Regular_Season DESC
775
###HUMAN: What rounds did RML Racing Silverline and James Nash compete?, ###ASSISTANT: SELECT "Rounds" FROM table_65927 WHERE "Team" = 'rml racing silverline' AND "Drivers" = 'james nash'
776
###HUMAN: Name the score for pacers visitor on 14 april 2008, ###ASSISTANT: SELECT "Score" FROM table_11226 WHERE "Visitor" = 'pacers' AND "Date" = '14 april 2008'
777
###HUMAN: Show birthdates of the professors in charge of ACCT-211 and bin the date by year interval in a line chart, display X-axis in asc order., ###ASSISTANT: SELECT EMP_DOB, COUNT(EMP_DOB) FROM EMPLOYEE AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211" ORDER BY EMP_DOB
778
###HUMAN: Which City has a Result of w, and a Competition of international friendly (unofficial match), and a Score of 1-0?, ###ASSISTANT: SELECT "City" FROM table_37478 WHERE "Result" = 'w' AND "Competition" = 'international friendly (unofficial match)' AND "Score" = '1-0'
779
###HUMAN: What is the 1995 value with of the 1993 ATP Masters Series?, ###ASSISTANT: SELECT "1995" FROM table_34222 WHERE "1993" = 'atp masters series'
780
###HUMAN: What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186?, ###ASSISTANT: SELECT AVG("Pick #") FROM table_6626 WHERE "Position" = 'wide receiver' AND "College" = 'southern miss' AND "Overall" < '186'
781
###HUMAN: When was the first beatification in Korea that was canonised before 1984?, ###ASSISTANT: SELECT MIN("Beatified") FROM table_32112 WHERE "Place" = 'korea' AND "Canonised" < '1984'
782
###HUMAN: What horse does todd pletcher ride with odds of 14.20-1?, ###ASSISTANT: SELECT "Horse name" FROM table_55341 WHERE "Jockey" = 'todd pletcher' AND "Post Time Odds" = '14.20-1'
783
###HUMAN: how many episodes in the serie were title 'the key, ###ASSISTANT: SELECT COUNT("No. in series") FROM table_74425 WHERE "Title" = 'The Key'
784
###HUMAN: get the number of patients with diagnoses icd9 code 99662 who had ascitic fluid lab test done., ###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.icd9_code = "99662" AND lab.fluid = "Ascites"
785
###HUMAN: What school is in Ligonier?, ###ASSISTANT: SELECT school FROM table_name_11 WHERE location = "ligonier"
786
###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and manager_id , and rank total number in descending order please., ###ASSISTANT: SELECT PHONE_NUMBER, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID DESC
787
###HUMAN: How many schools did Derrick Green attend?, ###ASSISTANT: SELECT COUNT("School") FROM table_17075 WHERE "Player" = 'Derrick Green'
788
###HUMAN: what is admission type and procedure long title of subject id 2560?, ###ASSISTANT: SELECT demographic.admission_type, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560"
789
###HUMAN: What rank is Germany?, ###ASSISTANT: SELECT rank FROM table_name_74 WHERE country = "germany"
790
###HUMAN: When the Away team is south melbourne, what's the Home team score?, ###ASSISTANT: SELECT "Home team score" FROM table_77872 WHERE "Away team" = 'south melbourne'
791
###HUMAN: Where did the cable-stayed Badong Bridge open in 2005?, ###ASSISTANT: SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge"
792
###HUMAN: Draw a bar chart of dept code versus the total number, order y axis in descending order., ###ASSISTANT: SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY COUNT(*) DESC
793
###HUMAN: What is the second leg for Team 1 Servette?, ###ASSISTANT: SELECT "2nd leg" FROM table_60354 WHERE "Team 1" = 'servette'
794
###HUMAN: how many days has passed since patient 005-4471 received his first diagnosis of post spinal surgery - cervical on their current hospital encounter?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471' AND patient.hospitaldischargetime IS NULL)) AND diagnosis.diagnosisname = 'post spinal surgery - cervical' ORDER BY diagnosis.diagnosistime LIMIT 1
795
###HUMAN: Whcih was the Class AAA in school year 2006-07?, ###ASSISTANT: SELECT class_aAA FROM table_name_85 WHERE school_year = "2006-07"
796
###HUMAN: What Russian has an Avoirdupois value of 0.686 gr?, ###ASSISTANT: SELECT russian FROM table_name_16 WHERE avoirdupois_value = "0.686 gr"
797
###HUMAN: List the positions of players whose average number of points scored by that position is larger than 20, compare the number of positions, and order total number in descending order., ###ASSISTANT: SELECT Position, COUNT(Position) FROM player GROUP BY Position HAVING AVG(Points) >= 20 ORDER BY COUNT(Position) DESC
798
###HUMAN: What player has The United States as the country, with t2 as the place?, ###ASSISTANT: SELECT player FROM table_name_9 WHERE country = "united states" AND place = "t2"
799
###HUMAN: What is Apogee, when Inclination is 65 , and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?, ###ASSISTANT: SELECT "Apogee" FROM table_12858 WHERE "Inclination" = '65°' AND "Launch date/time ( GMT )" = '15 february 1973, 01:11'