Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
2,500
###HUMAN: what is the number of patients whose admission type is elective and diagnoses long title is drug induced neutropenia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.long_title = "Drug induced neutropenia"
2,501
###HUMAN: Which Place has a Country of united states, and Money ($) larger than 145,000, and a To par of 2, and a Score of 70-66-73-69=278?, ###ASSISTANT: SELECT "Place" FROM table_47467 WHERE "Country" = 'united states' AND "Money ( $ )" > '145,000' AND "To par" = '–2' AND "Score" = '70-66-73-69=278'
2,502
###HUMAN: Show different locations and the number of performances at each location Visualize by bar chart, and sort x axis in desc order., ###ASSISTANT: SELECT Location, COUNT(*) FROM performance GROUP BY Location ORDER BY Location DESC
2,503
###HUMAN: What team played against Al-Ismaily (team 1)?, ###ASSISTANT: SELECT "Team 2" FROM table_80411 WHERE "Team 1" = 'al-ismaily'
2,504
###HUMAN: Among patients with alzheimer's disease, how many of them had a lab test for abnormal status of delta?, ###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 = "Alzheimer's disease" AND lab.flag = "delta"
2,505
###HUMAN: Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?, ###ASSISTANT: SELECT chassis FROM table_name_41 WHERE entrant = "larrousse f1" AND driver = "aguri suzuki"
2,506
###HUMAN: Visualize a bar chart for how many students are in each department?, and could you sort y axis in descending order?, ###ASSISTANT: SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC
2,507
###HUMAN: What is Venue, when Extra is Pentathlon?, ###ASSISTANT: SELECT venue FROM table_name_39 WHERE extra = "pentathlon"
2,508
###HUMAN: what was the name of the lab test that patient 20801 last got in 04/last year., ###ASSISTANT: SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20801) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', labevents.charttime) = '04' ORDER BY labevents.charttime DESC LIMIT 1)
2,509
###HUMAN: How much Frequency MHz has a Call sign of w264bg?, ###ASSISTANT: SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w264bg"
2,510
###HUMAN: How many counties have people before profit as the party, and a borough greater than 0?, ###ASSISTANT: SELECT SUM(county) FROM table_name_16 WHERE party = "people before profit" AND borough > 0
2,511
###HUMAN: What are the ground where the crowd totals 19929?, ###ASSISTANT: SELECT ground FROM table_14312471_4 WHERE crowd = 19929
2,512
###HUMAN: Create a pie chart showing how many headquarters across headquarters., ###ASSISTANT: SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters
2,513
###HUMAN: Which rounds did the team Walther participate in?, ###ASSISTANT: SELECT "Rounds" FROM table_33761 WHERE "Team" = 'walther'
2,514
###HUMAN: How much did the away team score at Victoria park?, ###ASSISTANT: SELECT away_team AS score FROM table_name_84 WHERE venue = "victoria park"
2,515
###HUMAN: which is the only year they went 1-1 at home ?, ###ASSISTANT: SELECT "season" FROM table_203_741 WHERE "home" = '1-1'
2,516
###HUMAN: what is the number of days that have passed since the last time patient 28443 received a d5w intake on the current intensive care unit visit?, ###ASSISTANT: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) 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 = 28443) AND icustays.outtime IS NULL) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'd5w' AND d_items.linksto = 'inputevents_cv') ORDER BY inputevents_cv.charttime DESC LIMIT 1
2,517
###HUMAN: What was the score in the year 2004?, ###ASSISTANT: SELECT score FROM table_name_72 WHERE year = "2004"
2,518
###HUMAN: Which Country has a Top Team of jam, and an Edition of 31st?, ###ASSISTANT: SELECT "Country" FROM table_65795 WHERE "Top Team" = 'jam' AND "Edition" = '31st'
2,519
###HUMAN: What is the score for the match that had a home team of Kidderminster Harriers?, ###ASSISTANT: SELECT "Score" FROM table_47393 WHERE "Home team" = 'kidderminster harriers'
2,520
###HUMAN: What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?, ###ASSISTANT: SELECT "IMED/Avicenna Listed" FROM table_63242 WHERE "Regional/Offshore" = 'offshore' AND "Country/Territory" = 'saint kitts and nevis' AND "Degree" = 'md' AND "Established" < '2000'
2,521
###HUMAN: What is the Attendance when Vida is the Away team?, ###ASSISTANT: SELECT AVG("Attendance") FROM table_8371 WHERE "Away" = 'vida'
2,522
###HUMAN: which nation had the same total number of gold medals as japan ?, ###ASSISTANT: SELECT "nation" FROM table_203_653 WHERE "nation" <> 'japan' AND "gold" = (SELECT "gold" FROM table_203_653 WHERE "nation" = 'japan')
2,523
###HUMAN: what is the number of home health care discharge patients who were admitted before 2197?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.admityear < "2197"
2,524
###HUMAN: what is the difference of population in easton and reno ?, ###ASSISTANT: SELECT ABS((SELECT "population" FROM table_204_616 WHERE "township" = 'easton') - (SELECT "population" FROM table_204_616 WHERE "township" = 'reno'))
2,525
###HUMAN: Name the 2010 for 2007 of a and 2012 of a, ###ASSISTANT: SELECT "2010" FROM table_15199 WHERE "2007" = 'a' AND "2012" = 'a'
2,526
###HUMAN: What was the location when the opponent was Seattle Supersonics?, ###ASSISTANT: SELECT "Location/Attendance" FROM table_79061 WHERE "Opponent" = 'seattle supersonics'
2,527
###HUMAN: What is the to par for the player with fewer than 148 total points?, ###ASSISTANT: SELECT SUM(to_par) FROM table_name_53 WHERE total < 148
2,528
###HUMAN: What is the phone number of the station located at 53 Dayton Road?, ###ASSISTANT: SELECT "Phone" FROM table_56724 WHERE "Address" = '53 dayton road'
2,529
###HUMAN: What was the method of resolution when Mikhail Ilyukhin's record was 4-0?, ###ASSISTANT: SELECT method FROM table_name_92 WHERE record = "4-0"
2,530
###HUMAN: Who was the opponent at the game attended by 45,000?, ###ASSISTANT: SELECT opponent_number FROM table_name_73 WHERE attendance = "45,000"
2,531
###HUMAN: For those records from the products and each product's manufacturer, give me the comparison about the average of code over the founder , and group by attribute founder, and show Founder in desc order., ###ASSISTANT: SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC
2,532
###HUMAN: Parsing papers using Jeopardy! Questions published at ACL 2014, ###ASSISTANT: SELECT DISTINCT paper.paperid FROM dataset, keyphrase, paper, paperdataset, paperkeyphrase, venue WHERE dataset.datasetname = 'Jeopardy! Questions' AND keyphrase.keyphrasename = 'Parsing' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid AND paper.paperid = paperdataset.paperid AND paper.year = 2014 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL'
2,533
###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, a bar chart shows the distribution of hire_date and the average of department_id bin hire_date by weekday, and order in desc by the the average of department id., ###ASSISTANT: SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) DESC
2,534
###HUMAN: What is the release Date of Catalog RR 8655-2?, ###ASSISTANT: SELECT date FROM table_name_39 WHERE catalog = "rr 8655-2"
2,535
###HUMAN: how many patients stayed in hospital for more than 1 day and were procedured with spinal tap?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "2" AND procedures.short_title = "Spinal tap"
2,536
###HUMAN: Users with at least one post in a reputation bracket., ###ASSISTANT: SELECT 'site://users/' + CAST(u.Id AS VARCHAR) + '|' + CAST(u.DisplayName AS VARCHAR) AS "user", SUM(p.Score) AS "Total Score", u.Reputation, u.LastAccessDate FROM Users AS u, Posts AS p WHERE u.Reputation >= @Repmin AND u.Reputation <= @Repmax AND u.Id = p.OwnerUserId AND p.PostTypeId = 1 AND DATEDIFF(day, u.LastAccessDate, GETDATE()) > 365 GROUP BY u.Reputation, u.Id, u.DisplayName, u.LastAccessDate HAVING COUNT(p.Id) = 1 AND SUM(p.Score) <= 1 ORDER BY u.LastAccessDate DESC
2,537
###HUMAN: tell me the age and lab test abnormal status for patient with patient id 2560., ###ASSISTANT: SELECT demographic.age, lab.flag FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560"
2,538
###HUMAN: what are the three most commonly prescribed drugs that were prescribed to the patients 40s within the same month after having been diagnosed with prim cardiomyopathy nec until 2 years ago?, ###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 = 'prim cardiomyopathy nec') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-2 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 BETWEEN 40 AND 49 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.startdate, 'start of month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3
2,539
###HUMAN: on 07/16/2105, patient 3918 has had any enfamiladdedrice po intake?, ###ASSISTANT: SELECT COUNT(*) > 0 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 = 3918)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'enfamiladdedrice po' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) = '2105-07-16'
2,540
###HUMAN: What was Olin Dutra's score?, ###ASSISTANT: SELECT score FROM table_name_88 WHERE player = "olin dutra"
2,541
###HUMAN: What is the 2004 value for the 2009 Grand slam tournaments?, ###ASSISTANT: SELECT 2004 FROM table_name_86 WHERE 2009 = "grand slam tournaments"
2,542
###HUMAN: Name the least overall for tony baker, ###ASSISTANT: SELECT MIN("Overall") FROM table_36892 WHERE "Name" = 'tony baker'
2,543
###HUMAN: What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2?, ###ASSISTANT: SELECT COUNT(losses) FROM table_name_85 WHERE last_appearance = "2003" AND wins > 2
2,544
###HUMAN: What is Mark Henry's brand?, ###ASSISTANT: SELECT brand FROM table_name_28 WHERE entrant = "mark henry"
2,545
###HUMAN: what is the yearly minimum dose of tube feeding flush (ml) that patient 016-17204 has taken until 11/2105?, ###ASSISTANT: SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-17204')) AND intakeoutput.celllabel = 'tube feeding flush (ml)' AND intakeoutput.cellpath LIKE '%intake%' AND STRFTIME('%y-%m', intakeoutput.intakeoutputtime) <= '2105-11' GROUP BY STRFTIME('%y', intakeoutput.intakeoutputtime)
2,546
###HUMAN: Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?, ###ASSISTANT: SELECT SUM("Top-25") FROM table_35980 WHERE "Top-5" > '9' AND "Wins" < '11'
2,547
###HUMAN: is patient 15945's arterial bp [diastolic] last measured on the last icu visit greater than first measured on the last icu visit?, ###ASSISTANT: SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15945) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime DESC LIMIT 1) > (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15945) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1)
2,548
###HUMAN: How many dates do the dolphins have 6 points?, ###ASSISTANT: SELECT "Date" FROM table_22648 WHERE "Dolphins points" = '6'
2,549
###HUMAN: what's the name of the procedure that patient 005-26011 got two times in 01/last year?, ###ASSISTANT: SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, COUNT(treatment.treatmenttime) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-26011')) AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', treatment.treatmenttime) = '01' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 = 2
2,550
###HUMAN: Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering?, ###ASSISTANT: SELECT MAX(year) FROM table_name_82 WHERE engine = "offenhauser l4" AND chassis = "kurtis kraft 500c" AND entrant = "federal engineering"
2,551
###HUMAN: What surface has 2 as a cage dive?, ###ASSISTANT: SELECT "Surface" FROM table_70261 WHERE "Cage dive" = '2'
2,552
###HUMAN: Which spike has a 2008 club Karava?, ###ASSISTANT: SELECT "Spike" FROM table_62736 WHERE "2008 club" = 'karava'
2,553
###HUMAN: What is the content of la7 television service?, ###ASSISTANT: SELECT content FROM table_15887683_1 WHERE television_service = "LA7"
2,554
###HUMAN: was the the score when the tries was 743, ###ASSISTANT: SELECT points_against FROM table_14070062_4 WHERE points_for = "743"
2,555
###HUMAN: Show the average age for all female students and group them by first name in a bar chart, and display x axis in desc order please., ###ASSISTANT: SELECT Fname, AVG(Age) FROM Student WHERE Sex = 'F' GROUP BY Fname ORDER BY Fname DESC
2,556
###HUMAN: Which player is featured for 2001-2002?, ###ASSISTANT: SELECT player FROM table_name_28 WHERE year = "2001-2002"
2,557
###HUMAN: what was the difference , in years between the founding of st. agnes and the founding of good shepherd ?, ###ASSISTANT: SELECT ABS((SELECT "founded" FROM table_204_540 WHERE "name" = 'st. agnes') - (SELECT "founded" FROM table_204_540 WHERE "name" = 'good shepherd'))
2,558
###HUMAN: Jimmie Lee Sloas was the composer for what album?, ###ASSISTANT: SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas"
2,559
###HUMAN: What's the top year with the Chassis ats hs1?, ###ASSISTANT: SELECT MAX(year) FROM table_name_33 WHERE chassis = "ats hs1"
2,560
###HUMAN: What is the total point count of the youngest gymnast?, ###ASSISTANT: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1
2,561
###HUMAN: If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?, ###ASSISTANT: SELECT "Mountains classification" FROM table_19834 WHERE "Winner" = 'Alejandro Valverde' AND "Points classification" = 'Erik Zabel'
2,562
###HUMAN: What was the to par at the T5 for the player with a score of 74-69-66=209?, ###ASSISTANT: SELECT to_par FROM table_name_39 WHERE place = "t5" AND score = 74 - 69 - 66 = 209
2,563
###HUMAN: On which date was the score 0 - 0?, ###ASSISTANT: SELECT "Date" FROM table_75946 WHERE "Score" = '0 - 0'
2,564
###HUMAN: What is Television Service, when Content is Presentazione?, ###ASSISTANT: SELECT television_service FROM table_name_90 WHERE content = "presentazione"
2,565
###HUMAN: Which championship after 1985 had a winning score of 8 (68-72-69-71=280)?, ###ASSISTANT: SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)
2,566
###HUMAN: Which Opponent has Attendances of 60,594?, ###ASSISTANT: SELECT opponent FROM table_name_34 WHERE attendance = "60,594"
2,567
###HUMAN: how many patients are married and diagnosed with depressive disorder, not elsewhere classified?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.long_title = "Depressive disorder, not elsewhere classified"
2,568
###HUMAN: The season premiere aired on September 11, 2000 aired on how many networks?, ###ASSISTANT: SELECT COUNT("Network") FROM table_15923 WHERE "Season premiere" = 'September 11, 2000'
2,569
###HUMAN: calculate the total number of female patients whose ethnic origin is unspecified/unknown, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "UNKNOWN/NOT SPECIFIED"
2,570
###HUMAN: A bar chart for what are the number of the names of photos taken with the lens brand 'Sigma' or 'Olympus'?, list in asc by the x-axis., ###ASSISTANT: SELECT T1.name, COUNT(T1.name) FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' GROUP BY T1.name ORDER BY T1.name
2,571
###HUMAN: What is the value for model if processor is Kentsfield and brand name is Xeon?, ###ASSISTANT: SELECT model__list_ FROM table_2467150_2 WHERE processor = "Kentsfield" AND brand_name = "Xeon"
2,572
###HUMAN: How many million U.S. viewers wtched episode 69 of the series?, ###ASSISTANT: SELECT us_viewers__millions_ FROM table_27832075_2 WHERE series__number = 69
2,573
###HUMAN: Name the % yes for yes votes for 78961, ###ASSISTANT: SELECT "% YES" FROM table_3352 WHERE "YES votes" = '78961'
2,574
###HUMAN: Percentage of questions with high-scoring unaccepted answers by tag., ###ASSISTANT: SELECT t.TagName, COUNT(*) AS "total_questions", SUM(CASE WHEN p.AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) AS "no_accepted_answer", SUM(CASE WHEN p.AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) * 1.0 / COUNT(*) AS "%_unaccepted" FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE p.PostTypeId = 1 AND p.ClosedDate IS NULL AND EXISTS(SELECT 1 FROM Posts AS a WHERE a.PostTypeId = 2 AND a.ParentId = p.Id AND a.Score > 4) GROUP BY t.TagName HAVING COUNT(*) > 10 ORDER BY 4 DESC
2,575
###HUMAN: Which Tie is from birmingham city?, ###ASSISTANT: SELECT tie_no FROM table_name_97 WHERE home_team = "birmingham city"
2,576
###HUMAN: how many contestants were from thailand ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_910 WHERE "nationality" = 'thailand'
2,577
###HUMAN: What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?, ###ASSISTANT: SELECT SUM("Byes") FROM table_36426 WHERE "Draws" = '1' AND "Wins" = '5' AND "Losses" < '12'
2,578
###HUMAN: What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?, ###ASSISTANT: SELECT "Player" FROM table_36656 WHERE "NHL team" = 'new york rangers' AND "Pick #" = '31'
2,579
###HUMAN: What identities do the genus/species arabidopsis thaliana have?, ###ASSISTANT: SELECT "Identity" FROM table_20073 WHERE "Genus/Species" = 'Arabidopsis thaliana'
2,580
###HUMAN: Show the minimum, maximum, average price for all products., ###ASSISTANT: SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM products
2,581
###HUMAN: How many object dates does episode #16 have?, ###ASSISTANT: SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16
2,582
###HUMAN: Draw a bar chart for what are the ids and names of the architects who built at least 3 bridges ?, rank in desc by the x-axis., ###ASSISTANT: SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.name DESC
2,583
###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, show me about the distribution of hire_date and the average of manager_id bin hire_date by weekday in a bar chart, and show by the the average of manager id from high to low., ###ASSISTANT: SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) DESC
2,584
###HUMAN: Distribution of id's in the user table., ###ASSISTANT: SELECT Id / 10000, COUNT(*) FROM Users GROUP BY Id / 10000 ORDER BY Id / 10000
2,585
###HUMAN: Tell me the lowest gold for rank of 6 and total less than 2, ###ASSISTANT: SELECT MIN(gold) FROM table_name_16 WHERE rank = "6" AND total < 2
2,586
###HUMAN: What is the Unami Delaware value for a Thomas value of nacha?, ###ASSISTANT: SELECT unami_delaware FROM table_name_18 WHERE thomas__1698_ = "nacha"
2,587
###HUMAN: When was satsuki dd-27 completed?, ###ASSISTANT: SELECT "Completed" FROM table_64457 WHERE "Name" = 'satsuki dd-27'
2,588
###HUMAN: How many projects are there?, ###ASSISTANT: SELECT COUNT(*) FROM projects
2,589
###HUMAN: What date has yani tseng as the runner (s)-up?, ###ASSISTANT: SELECT date FROM table_name_91 WHERE runner_s__up = "yani tseng"
2,590
###HUMAN: What time was the race for the country of france?, ###ASSISTANT: SELECT "Time" FROM table_66483 WHERE "Country" = 'france'
2,591
###HUMAN: which location is listed previous to march 22 ?, ###ASSISTANT: SELECT "location" FROM table_203_704 WHERE id = (SELECT id FROM table_203_704 WHERE "date" = 'march 22') - 1
2,592
###HUMAN: How many headquarters are there listed for HSBC?, ###ASSISTANT: SELECT COUNT("Headquarters") FROM table_21118 WHERE "Company" = 'HSBC'
2,593
###HUMAN: list all nonstop flights from LOS ANGELES to PITTSBURGH which arrive before 1700 on tuesday, ###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, date_day, days, flight WHERE (((((((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time) AND date_day.day_number = 22 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) OR (date_day.day_number = 22 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND NOT ((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time))) AND flight.arrival_time < 1700) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LOS ANGELES' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0
2,594
###HUMAN: What was the attendance on September 28?, ###ASSISTANT: SELECT MAX("Attendance") FROM table_75502 WHERE "Date" = 'september 28'
2,595
###HUMAN: show me the earliest flight from NEWARK to SEATTLE, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEWARK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time = (SELECT MIN(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, flight AS FLIGHTalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'NEWARK' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'SEATTLE' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code)
2,596
###HUMAN: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of manufacturer , and group by attribute name, and list Y in descending order., ###ASSISTANT: SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer DESC
2,597
###HUMAN: Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6?, ###ASSISTANT: SELECT SUM("Goals against") FROM table_76289 WHERE "Goals for" > '10' AND "Position" = '3' AND "Wins" < '6'
2,598
###HUMAN: Which nation finished with a time of 47.049?, ###ASSISTANT: SELECT "Nation" FROM table_75224 WHERE "Time (sec.)" = '47.049'
2,599
###HUMAN: Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35, ###ASSISTANT: SELECT COUNT(played) FROM table_name_67 WHERE points = "31-7" AND position = 16 AND goals_for < 35