Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
2,200 | ###HUMAN: What is the Score with a Home with hornets?, ###ASSISTANT: SELECT score FROM table_name_54 WHERE home = "hornets" |
2,201 | ###HUMAN: what is the number of patients whose diagnoses long title is surgical operation with anastomosis, bypass, or graft, with natural or artificial tissues used as implant causing abnormal patient reaction, or later complication, without mention of misadventure at time of operation and drug type is base?, ###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 = "Surgical operation with anastomosis, bypass, or graft, with natural or artificial tissues used as implant causing abnormal patient reaction, or later complication, without mention of misadventure at time of operation" AND prescriptions.drug_type = "BASE" |
2,202 | ###HUMAN: Which team classification has malaysian team classification of mncf continental team?, ###ASSISTANT: SELECT "Team classification" FROM table_2615 WHERE "Malaysian team classification" = 'MNCF Continental Team' |
2,203 | ###HUMAN: How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4?, ###ASSISTANT: SELECT SUM(cuts_made) FROM table_name_62 WHERE wins < 1 AND top_5 = 1 AND top_10 > 4 |
2,204 | ###HUMAN: Give me a histogram, that simply displays the last name of the employee and the corresponding manager id, could you show by the x-axis in asc?, ###ASSISTANT: SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY LAST_NAME |
2,205 | ###HUMAN: Which Wins has Podiums of 0, and a Series of masters of formula 3?, ###ASSISTANT: SELECT wins FROM table_name_40 WHERE podiums = "0" AND series = "masters of formula 3" |
2,206 | ###HUMAN: What team picked 80?, ###ASSISTANT: SELECT team FROM table_name_94 WHERE pick = 80 |
2,207 | ###HUMAN: what are the three most frequent drugs that were prescribed to female patients of the 50s within 2 months after having been diagnosed with drug-induced delirium?, ###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 = 'drug-induced delirium')) 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 IN (SELECT patients.subject_id FROM patients WHERE patients.gender = 'f') AND admissions.age BETWEEN 50 AND 59) 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 |
2,208 | ###HUMAN: Who directed the episode with production code 177605?, ###ASSISTANT: SELECT "Directed by" FROM table_73969 WHERE "Production code" = '177605' |
2,209 | ###HUMAN: How many enrolment students in each month? Return a bar chart binning date of enrolment by month interval, and I want to order in asc by the y-axis., ###ASSISTANT: SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment ORDER BY COUNT(date_of_enrolment) |
2,210 | ###HUMAN: how much does norepinephrine 4 mg/250 ml ns cost to take?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'norepinephrine 4 mg/250 ml ns') |
2,211 | ###HUMAN: give me the number of patients whose primary disease is liver transplant and days of hospital stay is greater than 8?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LIVER TRANSPLANT" AND demographic.days_stay > "8" |
2,212 | ###HUMAN: R/A Flags Before and After HNQ., ###ASSISTANT: SELECT COUNT(*) FROM Votes WHERE VoteTypeId = 4 AND CreationDate > '2018-10-18 00:00:00.000' |
2,213 | ###HUMAN: What was the margin of victory for the Mississippi Gulf Resort Classic?, ###ASSISTANT: SELECT "Margin of victory" FROM table_68002 WHERE "Tournament" = 'mississippi gulf resort classic' |
2,214 | ###HUMAN: who was the last ranked competitor in group a ?, ###ASSISTANT: SELECT "name" FROM table_204_741 ORDER BY "rank" DESC LIMIT 1 |
2,215 | ###HUMAN: How many events resulted in a top-25 less than 2?, ###ASSISTANT: SELECT COUNT("Events") FROM table_38401 WHERE "Top-25" < '2' |
2,216 | ###HUMAN: What are the names of all genres in alphabetical order, combined with its ratings?, ###ASSISTANT: SELECT g_name, rating FROM genre ORDER BY g_name |
2,217 | ###HUMAN: What is the name of the driver in 1955?, ###ASSISTANT: SELECT "Driver" FROM table_57940 WHERE "Year" = '1955' |
2,218 | ###HUMAN: until 09/2103 has patient 3118 had any drain out #1 jackson pratt output?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3118)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'drain out #1 jackson pratt' AND d_items.linksto = 'outputevents') AND STRFTIME('%y-%m', outputevents.charttime) <= '2103-09' |
2,219 | ###HUMAN: what was the last baekje temple ?, ###ASSISTANT: SELECT "temple name" FROM table_204_465 ORDER BY "period of reign" DESC LIMIT 1 |
2,220 | ###HUMAN: What was the record in the game against Eskimos?, ###ASSISTANT: SELECT record FROM table_23685152_2 WHERE opponent = "Eskimos" |
2,221 | ###HUMAN: What courses I am required to take before MUSED 370 ?, ###ASSISTANT: SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT_RECORDalias0.student_id = 1) AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'MUSED' AND COURSE_1.number = 370 |
2,222 | ###HUMAN: what is the date when the opponent# is iowa?, ###ASSISTANT: SELECT date FROM table_name_42 WHERE opponent_number = "iowa" |
2,223 | ###HUMAN: Return a bar chart on how many hours do the students spend studying in each department?, could you sort in descending by the sum stu hrs please?, ###ASSISTANT: SELECT DEPT_CODE, SUM(STU_HRS) FROM STUDENT GROUP BY DEPT_CODE ORDER BY SUM(STU_HRS) DESC |
2,224 | ###HUMAN: Show id from each meter 400, and sort y-axis in ascending order., ###ASSISTANT: SELECT meter_400, ID FROM swimmer ORDER BY ID |
2,225 | ###HUMAN: What class in the word with part 4 'giheizan'?, ###ASSISTANT: SELECT class FROM table_1745843_8 WHERE part_4 = "giheizan" |
2,226 | ###HUMAN: What was the score with the opponent being New Zealand Warriors?, ###ASSISTANT: SELECT score FROM table_name_67 WHERE opponent = "new zealand warriors" |
2,227 | ###HUMAN: What shooter has wc munich as the event, and 8 as the rank points?, ###ASSISTANT: SELECT shooter FROM table_name_43 WHERE event = "wc munich" AND rank_points = "8" |
2,228 | ###HUMAN: What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?, ###ASSISTANT: SELECT "T. Papadopoulos" FROM table_69604 WHERE "I. Kasoulidis" = '27.1%' |
2,229 | ###HUMAN: Give the maximum product price for each product type in a pie chart., ###ASSISTANT: SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code |
2,230 | ###HUMAN: What is the average top-25 value for majors that have more than 0 wins?, ###ASSISTANT: SELECT AVG("Top-25") FROM table_51787 WHERE "Wins" > '0' |
2,231 | ###HUMAN: were patient 018-47575 in the emergency room?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '018-47575' AND patient.hospitaladmitsource = 'emergency department' |
2,232 | ###HUMAN: What team played in front of 28,536 at an away stadium?, ###ASSISTANT: SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536 |
2,233 | ###HUMAN: which nationality is top on the chart, ###ASSISTANT: SELECT "nationality" FROM table_204_866 WHERE id = 1 |
2,234 | ###HUMAN: What is the number of bronze when the total is smaller than 1?, ###ASSISTANT: SELECT AVG(bronze) FROM table_name_58 WHERE total < 1 |
2,235 | ###HUMAN: which club had a total of only four wins ?, ###ASSISTANT: SELECT "club" FROM table_204_135 WHERE "wins" = 4 |
2,236 | ###HUMAN: What is the average cap number in scotland in 1986 1998 leass than 69?, ###ASSISTANT: SELECT COUNT("Average") FROM table_54656 WHERE "Caps" < '69' AND "Scotland career" = '1986–1998' |
2,237 | ###HUMAN: What school has rebels as their mascot?, ###ASSISTANT: SELECT school FROM table_name_8 WHERE mascot = "rebels" |
2,238 | ###HUMAN: Stacked bar of date in locaton to and the number of date in locaton to colored by Location_Code, order by the Y in ascending., ###ASSISTANT: SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Location_Code ORDER BY COUNT(Date_in_Locaton_To) |
2,239 | ###HUMAN: Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver?, ###ASSISTANT: SELECT SUM(silver) FROM table_name_69 WHERE gold = 0 AND bronze < 0 |
2,240 | ###HUMAN: Who is the candidate that had 10 fired in week 2 (1-27-2005)?, ###ASSISTANT: SELECT candidate FROM table_name_45 WHERE result = "10 fired in week 2 (1-27-2005)" |
2,241 | ###HUMAN: List the last name of the students who do not have any food type allergy and count them in a bart chart., ###ASSISTANT: SELECT LName, COUNT(LName) FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.AllergyType = "food") GROUP BY LName |
2,242 | ###HUMAN: provide the number of patients who died primarily due to fall on stair/step nec., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Fall on stair/step NEC" |
2,243 | ###HUMAN: Bronze smaller than 5, and a Silver larger than 0 is which nation?, ###ASSISTANT: SELECT nation FROM table_name_66 WHERE bronze < 5 AND silver > 0 |
2,244 | ###HUMAN: Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?, ###ASSISTANT: SELECT "Constructor" FROM table_57592 WHERE "Tyre" = 'c' AND "Pole position" = 'eugenio castellotti' |
2,245 | ###HUMAN: tell me the price of a procedure called agent specific therapy - calcium channel blockers overdose?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'agent specific therapy - calcium channel blockers overdose') |
2,246 | ###HUMAN: Which years had a jersey number 55, ###ASSISTANT: SELECT "Years for Rockets" FROM table_17156 WHERE "No.(s)" = '55' |
2,247 | ###HUMAN: What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant?, ###ASSISTANT: SELECT MIN(year) FROM table_name_40 WHERE points < 3 AND entrant = "parmalat forti ford" |
2,248 | ###HUMAN: out of all their times , which one was fastest ?, ###ASSISTANT: SELECT "time" FROM table_204_547 ORDER BY "time" LIMIT 1 |
2,249 | ###HUMAN: Which flight had an aircraft of vickers viscount type 794?, ###ASSISTANT: SELECT "Flight" FROM table_47704 WHERE "Aircraft" = 'vickers viscount type 794' |
2,250 | ###HUMAN: Who held the Communications Rep position in 2011?, ###ASSISTANT: SELECT 2011 FROM table_name_65 WHERE position = "communications rep" |
2,251 | ###HUMAN: What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?, ###ASSISTANT: SELECT "Latitude" FROM table_64769 WHERE "Land ( sqmi )" < '34.401' AND "GEO ID" < '3807157722' AND "Longitude" = '-98.475995' |
2,252 | ###HUMAN: For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the headquarter , and group by attribute headquarter, display y axis from high to low order., ###ASSISTANT: SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code DESC |
2,253 | ###HUMAN: Who was the runner up the season that Sagawa Express came in fourth?, ###ASSISTANT: SELECT "Runner-up" FROM table_31143 WHERE "Fourth place" = 'Sagawa Express' |
2,254 | ###HUMAN: when is the first time that patient 002-52932 has had a heartrate measured until 03/10/2100?, ###ASSISTANT: SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-52932')) AND NOT vitalperiodic.heartrate IS NULL AND STRFTIME('%y-%m-%d', vitalperiodic.observationtime) <= '2100-03-10' ORDER BY vitalperiodic.observationtime LIMIT 1 |
2,255 | ###HUMAN: Name the women's doubles for frederik kj rholm elsner, ###ASSISTANT: SELECT "Women's doubles" FROM table_15026 WHERE "Men's singles" = 'frederik kjærholm elsner' |
2,256 | ###HUMAN: On February 26, who was the leading scorer?, ###ASSISTANT: SELECT "Leading scorer" FROM table_56464 WHERE "Date" = 'february 26' |
2,257 | ###HUMAN: how many patients are below 49 years of age and admitted under the year 2198?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "49" AND demographic.admityear < "2198" |
2,258 | ###HUMAN: What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?, ###ASSISTANT: SELECT COUNT(top_10) FROM table_name_87 WHERE events > 16 AND top_5 > 5 |
2,259 | ###HUMAN: give me the number of patients whose days of hospital stay is greater than 26 and diagnoses short title is joint replaced knee?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "26" AND diagnoses.short_title = "Joint replaced knee" |
2,260 | ###HUMAN: In the election earlier than 2012 how many Inhabitants had a Party of five star movement?, ###ASSISTANT: SELECT SUM(inhabitants) FROM table_name_57 WHERE party = "five star movement" AND election < 2012 |
2,261 | ###HUMAN: In what Distance has a Venue of sale?, ###ASSISTANT: SELECT distance FROM table_name_36 WHERE venue = "sale" |
2,262 | ###HUMAN: List the number of the phone numbers of all employees., ###ASSISTANT: SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone |
2,263 | ###HUMAN: what is the difference in percentage of lead shot at 25 yards between cylinder and skeet 1 barrels ?, ###ASSISTANT: SELECT ABS((SELECT "percentage of lead shot in 30-inch circle at 40 yards" FROM table_203_112 WHERE "choke" = 'cylinder') - (SELECT "percentage of lead shot in 30-inch circle at 40 yards" FROM table_203_112 WHERE "choke" = 'skeet 1')) |
2,264 | ###HUMAN: What is the record of game 42, which had a clemmensen decision?, ###ASSISTANT: SELECT "Record" FROM table_44824 WHERE "Decision" = 'clemmensen' AND "Game" = '42' |
2,265 | ###HUMAN: give me the number of patients whose ethnicity is asian and age is less than 80?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.age < "80" |
2,266 | ###HUMAN: Find the enrollment date for all the tests that have 'Pass' result, and count them by a bar chart, sort by the Y from low to high please., ###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" ORDER BY COUNT(date_of_enrolment) |
2,267 | ###HUMAN: What is the description and code of the type of service that is performed the most often?, ###ASSISTANT: SELECT T1.service_type_description, T1.service_type_code FROM ref_service_types AS T1 JOIN services AS T2 ON T1.service_type_code = T2.service_type_code GROUP BY T1.service_type_code ORDER BY COUNT(*) DESC LIMIT 1 |
2,268 | ###HUMAN: What is the Attendance of New Zealand Scores in bold?, ###ASSISTANT: SELECT "Attendance" FROM table_65097 WHERE "Date" = 'new zealand scores in bold' |
2,269 | ###HUMAN: What code is used to represent the currency of Croatian Kuna?, ###ASSISTANT: SELECT code FROM table_name_34 WHERE currency = "croatian kuna" |
2,270 | ###HUMAN: Give me a bar chart for mean max(score) of each year, and sort by the y-axis in ascending., ###ASSISTANT: SELECT Year, AVG(MAX(Score)) FROM wine ORDER BY AVG(MAX(Score)) |
2,271 | ###HUMAN: what is the name of a procedure that patient 73713 has been given for two times since 70 months ago?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73713) AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-70 month') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2) |
2,272 | ###HUMAN: What is the number of tries for that has 30 tries against?, ###ASSISTANT: SELECT "Tries for" FROM table_69514 WHERE "Tries against" = '30' |
2,273 | ###HUMAN: Who is the player who had more than 1,052 points?, ###ASSISTANT: SELECT "Player" FROM table_34511 WHERE "Points" > '1,052' |
2,274 | ###HUMAN: how long did it take the german team to finish the race ?, ###ASSISTANT: SELECT "time" FROM table_203_160 WHERE "nation" = 'germany' |
2,275 | ###HUMAN: When Connie Shaw took GREEK 695 , who was the teacher ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.department = 'GREEK' AND course.number = 695 AND student.firstname LIKE 'Connie' AND student.lastname LIKE 'Shaw' |
2,276 | ###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, visualize a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, and rank sum salary from high to low order., ###ASSISTANT: SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(SALARY) DESC |
2,277 | ###HUMAN: what is the game when on november 27?, ###ASSISTANT: SELECT SUM("Game") FROM table_77372 WHERE "November" = '27' |
2,278 | ###HUMAN: What is the proportion of the number of schools in different counties?, ###ASSISTANT: SELECT County, COUNT(*) FROM School GROUP BY County |
2,279 | ###HUMAN: provide the number of patients whose gender is f and drug name is phenytoin sodium?, ###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 = "Phenytoin Sodium" |
2,280 | ###HUMAN: what was year was the first arizona license plate made ?, ###ASSISTANT: SELECT MIN("first issued") FROM table_203_82 |
2,281 | ###HUMAN: Which Lead has a Nation of switzerland?, ###ASSISTANT: SELECT lead FROM table_name_15 WHERE nation = "switzerland" |
2,282 | ###HUMAN: What is the smallest draws for a player larger than 2 with a 100% wins?, ###ASSISTANT: SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100 |
2,283 | ###HUMAN: How many students that has a GPA lower than average? Show me a pie chart grouping by student's first name., ###ASSISTANT: SELECT STU_FNAME, COUNT(STU_FNAME) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME |
2,284 | ###HUMAN: Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount., ###ASSISTANT: SELECT amount_settled, amount_claimed FROM claims ORDER BY amount_settled LIMIT 1 |
2,285 | ###HUMAN: What machine has 5 as the place?, ###ASSISTANT: SELECT "Machine" FROM table_40931 WHERE "Place" = '5' |
2,286 | ###HUMAN: How many students participated in tryouts for each college by descennding count?, ###ASSISTANT: SELECT COUNT(*), cname FROM tryout GROUP BY cname ORDER BY COUNT(*) DESC |
2,287 | ###HUMAN: When momoiro clover z is the vocalist how many japanese titles are there?, ###ASSISTANT: SELECT COUNT("Japanese title") FROM table_2460 WHERE "Vocalist" = 'Momoiro Clover Z' |
2,288 | ###HUMAN: What was the attendance at war memorial stadium?, ###ASSISTANT: SELECT "Attenmdance" FROM table_4855 WHERE "Stadium" = 'war memorial stadium' |
2,289 | ###HUMAN: What's the total amount of USSR that has more than 0 gold, less than 85 silver and more than 6 bronze?, ###ASSISTANT: SELECT MIN("Total") FROM table_14012 WHERE "Gold" > '0' AND "Bronze" > '6' AND "Nation" = 'ussr' AND "Silver" < '85' |
2,290 | ###HUMAN: What is the position of the team that played at the venue, Central, Gomel?, ###ASSISTANT: SELECT position_in_1999 FROM table_name_71 WHERE venue = "central, gomel" |
2,291 | ###HUMAN: Which player had a total of 152?, ###ASSISTANT: SELECT player FROM table_name_60 WHERE total = "152" |
2,292 | ###HUMAN: For patient Kurt Buczek, specify the location he was admitted to and his death status, ###ASSISTANT: SELECT demographic.expire_flag, demographic.admission_location FROM demographic WHERE demographic.name = "Kurt Buczek" |
2,293 | ###HUMAN: Who had the fastest lap when the winning driver was kristian ghedina?, ###ASSISTANT: SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Kristian Ghedina" |
2,294 | ###HUMAN: In what district was the successor seated August 31, 1943?, ###ASSISTANT: SELECT "District" FROM table_24498 WHERE "Date successor seated" = 'August 31, 1943' |
2,295 | ###HUMAN: How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?, ###ASSISTANT: SELECT COUNT("Silver") FROM table_42700 WHERE "Gold" > '2' AND "Bronze" < '35' AND "Nation" = 'china' AND "Total" > '26' |
2,296 | ###HUMAN: What are all the distinct payment types?, ###ASSISTANT: SELECT DISTINCT payment_type_code FROM payments |
2,297 | ###HUMAN: what is the name of the drug which patient 012-4131 was prescribed during the same day after having received a therapeutic antibacterials - third generation cephalosporin procedure until 08/2105?, ###ASSISTANT: SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-4131') AND treatment.treatmentname = 'therapeutic antibacterials - third generation cephalosporin' AND STRFTIME('%y-%m', treatment.treatmenttime) <= '2105-08') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-4131') AND STRFTIME('%y-%m', medication.drugstarttime) <= '2105-08') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.drugstarttime AND DATETIME(t1.treatmenttime, 'start of day') = DATETIME(t2.drugstarttime, 'start of day') |
2,298 | ###HUMAN: What year was the 4th Place Team of the Wyoming Angus, Johnstown, Co?, ###ASSISTANT: SELECT COUNT("Year") FROM table_64334 WHERE "4th Place Team" = 'wyoming angus, johnstown, co' |
2,299 | ###HUMAN: TOP 50 users from Bangladesh. Lists the top 50 users (ranked by reputation) that are located in Calicut/Kozhikode, Kerala, India according to their profile information.
Thanks to http://data.stackexchange.com/stackoverflow/qe/1157/top-100-users-from-greece, ###ASSISTANT: SELECT Id, DisplayName, Reputation, WebsiteUrl, Location, LastAccessDate FROM Users WHERE Location LIKE '%Bangladesh%' ORDER BY Reputation DESC LIMIT 150 |