Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
2,700 | ###HUMAN: what was patient 13897's daily average value of body weight until 07/2104?, ###ASSISTANT: SELECT AVG(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 = 13897)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') AND STRFTIME('%y-%m', chartevents.charttime) <= '2104-07' GROUP BY STRFTIME('%y-%m-%d', chartevents.charttime) |
2,701 | ###HUMAN: what's the number of patients who left the hospital in 2101?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2101' |
2,702 | ###HUMAN: Search: Posts by specific two Tags., ###ASSISTANT: SELECT P.Id AS "post_link", P.Tags, P.CreationDate FROM Posts AS P WHERE P.AnswerCount > 0 AND P.Tags LIKE '%##Tag1##%' AND P.Tags LIKE '%##Tag2##%' ORDER BY P.CreationDate DESC LIMIT 50000 |
2,703 | ###HUMAN: Plot the total number by grouped by nationality as a bar graph, I want to list by the Y in ascending., ###ASSISTANT: SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality ORDER BY COUNT(*) |
2,704 | ###HUMAN: What is the average finish when winnings equals $71,200?, ###ASSISTANT: SELECT "Avg. Finish" FROM table_24649 WHERE "Winnings" = '$71,200' |
2,705 | ###HUMAN: What is WSU Year(s), when Pro Year(s) is 1974-77?, ###ASSISTANT: SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = "1974-77" |
2,706 | ###HUMAN: Top 2000 Stack Overflow Users From Netherlands By Reputation. Top 2000 SO users from Netherlands or Netherlands based cities., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Position, DisplayName, Reputation, WebsiteUrl, Location, WebsiteUrl, AboutMe, 'http://stackoverflow.com/users/' + CAST(Id AS TEXT(10)) AS ProfileUrl FROM Users WHERE UPPER(Location) LIKE '%NETHERLANDS%' OR UPPER(Location) LIKE '%NEDERLAND%' OR UPPER(Location) LIKE N'%AMSTERDAM%' OR UPPER(Location) LIKE N'%EINDHOVEN%' OR UPPER(Location) LIKE N'%UTRECHT%' OR UPPER(Location) LIKE N'%NIJMEGEN%' OR UPPER(Location) LIKE N'%ROTTERDAM%' OR UPPER(Location) LIKE N'%HAAG%' ORDER BY Reputation DESC LIMIT 2000 |
2,707 | ###HUMAN: Show the transaction type and the number of transactions by a bar chart, and show in descending by the transaction_type., ###ASSISTANT: SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type DESC |
2,708 | ###HUMAN: who is the first loser listed on this chart ?, ###ASSISTANT: SELECT "loser" FROM table_204_373 WHERE id = 1 |
2,709 | ###HUMAN: What is the Ratt of the year with a 78 long?, ###ASSISTANT: SELECT ratt FROM table_name_97 WHERE long = "78" |
2,710 | ###HUMAN: How many students are advised by each rank of faculty? List the rank and the number of students Plot them as bar chart, I want to display from low to high by the Rank please., ###ASSISTANT: SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank ORDER BY Rank |
2,711 | ###HUMAN: Who was the architect that built the Electric Railway Chambers before 1915?, ###ASSISTANT: SELECT architect FROM table_name_43 WHERE built < 1915 AND building = "electric railway chambers" |
2,712 | ###HUMAN: What players have a position of F?, ###ASSISTANT: SELECT player FROM table_name_2 WHERE position = "f" |
2,713 | ###HUMAN: Find Questions with one tag and specific answer text., ###ASSISTANT: SELECT P.Id AS "post_link", P.Tags FROM Posts AS P, PostTags AS Pt, Tags AS T WHERE P.Id = Pt.PostId AND T.Id = Pt.TagId AND T.TagName = '##tag1##' AND P.PostTypeId = 1 AND P.AnswerCount > 0 AND NOT P.AcceptedAnswerId IS NULL AND NOT (SELECT P2.Id FROM Posts AS P2 WHERE P2.Id = P.AcceptedAnswerId AND P2.Body LIKE '%##text##%') IS NULL AND (SELECT COUNT(Pt.TagId) FROM PostTags AS Pt WHERE Pt.PostId = P.Id) = 1 |
2,714 | ###HUMAN: Who was the away team against Newton Heath?, ###ASSISTANT: SELECT "Away team" FROM table_59909 WHERE "Home team" = 'newton heath' |
2,715 | ###HUMAN: On what Date was the Score of 3 6, 6 4, 3 6, 6 1, 6 2, ###ASSISTANT: SELECT SUM("Date") FROM table_56197 WHERE "Score" = '3–6, 6–4, 3–6, 6–1, 6–2' |
2,716 | ###HUMAN: what's the number of hours that have passed since patient 013-38992 first stayed in ward 561 during this hospital visit?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '013-38992' AND patient.wardid = 561 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1 |
2,717 | ###HUMAN: Which athlete, has an 18.55 result, ###ASSISTANT: SELECT "Athlete" FROM table_79341 WHERE "Result" = '18.55' |
2,718 | ###HUMAN: What position did the BMW vehicle made in 2006 hold?, ###ASSISTANT: SELECT "Position" FROM table_71693 WHERE "Vehicle" = 'bmw' AND "Year" = '2006' |
2,719 | ###HUMAN: Return a bar chart about the distribution of personal_name and author_id ., ###ASSISTANT: SELECT personal_name, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name |
2,720 | ###HUMAN: what are the flights from DALLAS to BOSTON for tomorrow night or evening, ###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.departure_time BETWEEN 1800 AND 2200) OR (NOT flight.departure_time BETWEEN 601 AND 1759)) AND date_day.day_number = 20 AND date_day.month_number = 1 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code |
2,721 | ###HUMAN: find the number of patients who were admitted to the hospital in the last year., ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') |
2,722 | ###HUMAN: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of price , and group by attribute name, and rank by the y axis from low to high., ###ASSISTANT: SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Price |
2,723 | ###HUMAN: What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36?, ###ASSISTANT: SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = 54 AND staying_councillors > 36 |
2,724 | ###HUMAN: On what date was the crowd size of 71,789?, ###ASSISTANT: SELECT date FROM table_name_35 WHERE attendance = "71,789" |
2,725 | ###HUMAN: Name the date for adelaide for westpac stadium, ###ASSISTANT: SELECT date FROM table_16388439_3 WHERE home_team = "Adelaide" AND ground = "Westpac Stadium" |
2,726 | ###HUMAN: How many total smartphones were shipped during the quarter 2012 Q1?, ###ASSISTANT: SELECT COUNT("Total") FROM table_974 WHERE "Quarter" = '2012 Q1' |
2,727 | ###HUMAN: When was the audio book with target number 069 69 released?, ###ASSISTANT: SELECT release_date FROM table_20174050_1 WHERE target__number = "069 69" |
2,728 | ###HUMAN: what song was this artist on after utabito ?, ###ASSISTANT: SELECT "title" FROM table_204_643 WHERE "release" > (SELECT "release" FROM table_204_643 WHERE "title" = 'utabito (歌人 singer?)') ORDER BY "release" LIMIT 1 |
2,729 | ###HUMAN: name the nations that won at least 2 gold medals ., ###ASSISTANT: SELECT "nation" FROM table_204_771 WHERE "gold" >= 2 |
2,730 | ###HUMAN: What's the score on february 18 when the visitors are the montreal canadiens?, ###ASSISTANT: SELECT "Score" FROM table_7871 WHERE "Visitor" = 'montreal canadiens' AND "Date" = 'february 18' |
2,731 | ###HUMAN: How many players are from each country. Show a pie chart., ###ASSISTANT: SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name |
2,732 | ###HUMAN: What was the score of the game that had a loss of Chad Fox (3 3)?, ###ASSISTANT: SELECT "Score" FROM table_75469 WHERE "Loss" = 'chad fox (3–3)' |
2,733 | ###HUMAN: Which Record that has a Loss of mays (0-3)?, ###ASSISTANT: SELECT "Record" FROM table_14565 WHERE "Loss" = 'mays (0-3)' |
2,734 | ###HUMAN: If points against was 371, what is the drawn?, ###ASSISTANT: SELECT "Drawn" FROM table_74944 WHERE "Points against" = '371' |
2,735 | ###HUMAN: When the home team was fitzroy, what did the away team score?, ###ASSISTANT: SELECT "Away team score" FROM table_77741 WHERE "Home team" = 'fitzroy' |
2,736 | ###HUMAN: Find the id of the customers who have order status both 'On Road' and 'Shipped'., ###ASSISTANT: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped" |
2,737 | ###HUMAN: Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?, ###ASSISTANT: SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-81" |
2,738 | ###HUMAN: In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?, ###ASSISTANT: SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem' |
2,739 | ###HUMAN: Who won the Mixed doubles when Juliane Schenk won the Women's Singles?, ###ASSISTANT: SELECT "Mixed doubles" FROM table_80153 WHERE "Women's singles" = 'juliane schenk' |
2,740 | ###HUMAN: patients with controlled hypertension ( sitting diastolic bp < 95 mmhg and / or sitting systolic bp < 160 mmhg ) , right bundle branch block ( complete or partial ) , and pacemakers may be included in the study., ###ASSISTANT: SELECT * FROM table_train_130 WHERE hypertension = 1 OR (diastolic_blood_pressure_dbp < 95 OR systolic_blood_pressure_sbp < 160) OR right_bundle_branch_block = 1 |
2,741 | ###HUMAN: List the number of documents for each receipt date and bin by weekday in a bar chart, I want to list in ascending by the total number please., ###ASSISTANT: SELECT receipt_date, COUNT(receipt_date) FROM Documents ORDER BY COUNT(receipt_date) |
2,742 | ###HUMAN: Bar graph to show the total number from different allergytype, and order by the x axis from high to low., ###ASSISTANT: SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType DESC |
2,743 | ###HUMAN: Original title of das leben der anderen had what director?, ###ASSISTANT: SELECT "Director" FROM table_39380 WHERE "Original title" = 'das leben der anderen' |
2,744 | ###HUMAN: What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?, ###ASSISTANT: SELECT AVG(goals) FROM table_name_81 WHERE team = "kairat" AND season = "2002" AND apps > 29 |
2,745 | ###HUMAN: What is the Total Apps when League Cup Apps is 0 (1), and position is df?, ###ASSISTANT: SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df" |
2,746 | ###HUMAN: What school did draft pick from round 3 go to?, ###ASSISTANT: SELECT "School" FROM table_40871 WHERE "Round" = '3' |
2,747 | ###HUMAN: What is Score, when Date is 10 July 2011?, ###ASSISTANT: SELECT "Score" FROM table_44803 WHERE "Date" = '10 july 2011' |
2,748 | ###HUMAN: Good Question Without Good Answer: High Question / Top Answer Score Ratio. Divide the question score by the score of the top answer and sort in decreasing order.
Shows questions for which no good solution exist: most of those are either good feature requests or mathematical impossibilities., ###ASSISTANT: SELECT q.Id AS "post_link", q.Score AS "Question Score", MAX(a.Score) AS "Top Answer Score", CAST(q.Score AS FLOAT) / CAST(CASE WHEN MAX(a.Score) = 0 THEN 1 ELSE MAX(a.Score) END AS FLOAT) AS Ratio FROM Posts AS q INNER JOIN Posts AS a ON q.PostTypeId = 1 AND a.ParentId = q.Id GROUP BY q.Id, q.Score ORDER BY Ratio DESC LIMIT 100 |
2,749 | ###HUMAN: was attendance higher week 4 or week 8 ?, ###ASSISTANT: SELECT "week" FROM table_203_790 WHERE "week" IN (4, 8) ORDER BY "attendance" DESC LIMIT 1 |
2,750 | ###HUMAN: What country did Chris Witty represent?, ###ASSISTANT: SELECT nation FROM table_name_50 WHERE name = "chris witty" |
2,751 | ###HUMAN: What venue was the 2000 AFC Asian Cup qualification held at?, ###ASSISTANT: SELECT venue FROM table_name_9 WHERE competition = "2000 afc asian cup qualification" |
2,752 | ###HUMAN: Name the finish for lee janzen, ###ASSISTANT: SELECT finish FROM table_name_94 WHERE player = "lee janzen" |
2,753 | ###HUMAN: count the number of patients whose death status is 0 and procedure icd9 code is 3512?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "3512" |
2,754 | ###HUMAN: count the number of patients who underwent therapeu plasmapheresis two or more times in a year before., ###ASSISTANT: SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'therapeu plasmapheresis') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 >= 2 |
2,755 | ###HUMAN: Display a bar chart for what are the names of the technicians and how many machines are they assigned to repair?, and could you rank in ascending by the X-axis?, ###ASSISTANT: SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY Name |
2,756 | ###HUMAN: For those employees who did not have any job in the past, show me about the distribution of job_id and the amount of job_id , and group by attribute job_id in a bar chart., ###ASSISTANT: SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID |
2,757 | ###HUMAN: Closed questions with reasons, sorted by date., ###ASSISTANT: SELECT p.Id AS "post_link", ph.CreationDate AS "closure_date", ph.Comment AS "close_reason", ph.Text AS Voters FROM PostHistory AS ph INNER JOIN Posts AS p ON p.Id = ph.PostId WHERE ph.PostHistoryTypeId = 10 ORDER BY ph.CreationDate DESC |
2,758 | ###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, give me the comparison about the sum of manager_id over the job_id , and group by attribute job_id by a bar chart, and list total number from low to high order please., ###ASSISTANT: SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) |
2,759 | ###HUMAN: WHAT IS THE ATTENDANCE WITH A READING AWAY TEAM?, ###ASSISTANT: SELECT attendance FROM table_name_24 WHERE away_team = "reading" |
2,760 | ###HUMAN: When did the United Kingdom format a stereo LP?, ###ASSISTANT: SELECT "Date" FROM table_48398 WHERE "Region" = 'united kingdom' AND "Format" = 'stereo lp' |
2,761 | ###HUMAN: what is the status in vestal, ###ASSISTANT: SELECT status FROM table_18159601_1 WHERE city = "Vestal" |
2,762 | ###HUMAN: whats the difference in the systemicmean of patient 017-88691 last measured on the current intensive care unit visit compared to the value second to last measured on the current intensive care unit visit?, ###ASSISTANT: SELECT (SELECT vitalperiodic.systemicmean FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.systemicmean IS NULL ORDER BY vitalperiodic.observationtime DESC LIMIT 1) - (SELECT vitalperiodic.systemicmean FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.systemicmean IS NULL ORDER BY vitalperiodic.observationtime DESC LIMIT 1 OFFSET 1) |
2,763 | ###HUMAN: count the number of patients whose admission year is less than 2156 and procedure long title is laryngoscopy and other tracheoscopy?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2156" AND procedures.long_title = "Laryngoscopy and other tracheoscopy" |
2,764 | ###HUMAN: Give me the comparison about the sum of meter_100 over the meter_200 , and group by attribute meter_200, and could you list x-axis from high to low order?, ###ASSISTANT: SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC |
2,765 | ###HUMAN: When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?, ###ASSISTANT: SELECT COUNT("Heat") FROM table_45035 WHERE "Mark" = '7.29' AND "Name" = 'virgen benavides' AND "Lane" < '2' |
2,766 | ###HUMAN: what is the capacity when the code is d4f bi-fuel 732?, ###ASSISTANT: SELECT "Capacity" FROM table_14849 WHERE "Code" = 'd4f bi-fuel 732' |
2,767 | ###HUMAN: Where do Stack Overflow users come from?., ###ASSISTANT: SELECT u.Location, u.Id, u.Reputation FROM Users AS u WHERE u.Location = 'Cheyenne, WY' |
2,768 | ###HUMAN: What is the Date with a Result of 8 2, and a Score with 6 2?, ###ASSISTANT: SELECT "Date" FROM table_11174 WHERE "Result" = '8–2' AND "Score" = '6–2' |
2,769 | ###HUMAN: what was the date the last person on the list left office ?, ###ASSISTANT: SELECT "left office" FROM table_204_668 ORDER BY id DESC LIMIT 1 |
2,770 | ###HUMAN: How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?, ###ASSISTANT: SELECT COUNT("Round of 16") FROM table_28578 WHERE "Round of 32" = 'Lakpa Tashi Sherpa ( BHU ) W PTS 12-5' |
2,771 | ###HUMAN: which competition took place in 2008 but had only one event ?, ###ASSISTANT: SELECT "competition" FROM table_204_975 GROUP BY "competition" HAVING COUNT("event") = 1 |
2,772 | ###HUMAN: Away result of 0 3, and a Season of 1969-70 is what competition?, ###ASSISTANT: SELECT "Competition" FROM table_75507 WHERE "Away result" = '0–3' AND "Season" = '1969-70' |
2,773 | ###HUMAN: out of total number of patients who had a lab test for total protein in urine, how many of them belonged to christian scientist belief?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "CHRISTIAN SCIENTIST" AND lab.label = "Total Protein, Urine" |
2,774 | ###HUMAN: how many teams had a manner of departure due to there contract being terminated ?, ###ASSISTANT: SELECT COUNT("team") FROM table_203_450 WHERE "manner of departure" = 'contract terminated' |
2,775 | ###HUMAN: Show the minimum, average, and maximum age of all students., ###ASSISTANT: SELECT MIN(age), AVG(age), MAX(age) FROM Student |
2,776 | ###HUMAN: In the system where Sunday is ny yitru kizhamai, what is Saturday?, ###ASSISTANT: SELECT "Saturday Shani (Saturn)" FROM table_17783 WHERE "Sunday Surya (the Sun)" = 'ஞாயிற்று கிழமை Nyāyitru kizhamai' |
2,777 | ###HUMAN: What is the average number of golds for teams in rank 17 with more than 4 silver?, ###ASSISTANT: SELECT AVG(gold) FROM table_name_13 WHERE rank = "17" AND silver > 4 |
2,778 | ###HUMAN: What was the highest Pick for Lonnie Brockman before round 9?, ###ASSISTANT: SELECT MAX(pick) FROM table_name_30 WHERE player = "lonnie brockman" AND round < 9 |
2,779 | ###HUMAN: How many average plays have points greater than 14, with an against greater than 17?, ###ASSISTANT: SELECT AVG("Played") FROM table_42627 WHERE "Points" > '14' AND "Against" > '17' |
2,780 | ###HUMAN: What are distinct locations where tracks are located?, ###ASSISTANT: SELECT DISTINCT location FROM track |
2,781 | ###HUMAN: What was the attendance at the Red Sox game that had a loss of Wakefield (7 10)?, ###ASSISTANT: SELECT "Attendance" FROM table_57043 WHERE "Loss" = 'wakefield (7–10)' |
2,782 | ###HUMAN: Who was the deceased spouse who was married for 4 years?, ###ASSISTANT: SELECT "Deceased Spouse" FROM table_26633 WHERE "Length of Marriage" = '4 years' |
2,783 | ###HUMAN: What are the campuses that opened in 1958?, ###ASSISTANT: SELECT campus FROM campuses WHERE year = 1958 |
2,784 | ###HUMAN: What site(s) for tv station tv3?, ###ASSISTANT: SELECT site FROM table_1601792_4 WHERE television_station = "TV3" |
2,785 | ###HUMAN: What actor made a film in 1957?, ###ASSISTANT: SELECT name FROM table_name_30 WHERE year = "1957" |
2,786 | ###HUMAN: Return a pie chart about the proportion of All_Home and the sum of School_ID., ###ASSISTANT: SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home |
2,787 | ###HUMAN: Is there a professor assigned to teach Other classes next Winter ?, ###ASSISTANT: SELECT DISTINCT instructor.name 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 INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017 |
2,788 | ###HUMAN: What is the total balance of savings accounts not belonging to someone with the name Brown?, ###ASSISTANT: SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown' |
2,789 | ###HUMAN: Migrated questions to posted questions ratio., ###ASSISTANT: SELECT p.Id, COUNT(pht.Name) FROM Posts AS p, PostTypes AS pt, PostHistoryTypes AS pht, PostHistory AS ph WHERE p.Id = ph.PostId AND ph.PostHistoryTypeId = pht.Id AND p.PostTypeId = pt.Id AND pt.Name = 'Question' AND pht.Id IN (17, 35, 36) GROUP BY p.Id ORDER BY p.Id |
2,790 | ###HUMAN: Show the number of faculty for each rank in a bar chart., ###ASSISTANT: SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank |
2,791 | ###HUMAN: What was the smallest crowd for a Melbourne away game?, ###ASSISTANT: SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "melbourne" |
2,792 | ###HUMAN: What classes does Prof. Ej Westlake teach in Spring 2005 ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Ej Westlake%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester AND semester.year = 2005 |
2,793 | ###HUMAN: when did patient 017-49375 had the first intake on 04/14/this year?, ###ASSISTANT: SELECT 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 = '017-49375')) AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m-%d', intakeoutput.intakeoutputtime) = '04-14' ORDER BY intakeoutput.intakeoutputtime LIMIT 1 |
2,794 | ###HUMAN: If the player is Hashan Tillakaratne, what is the catches minimum?, ###ASSISTANT: SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne" |
2,795 | ###HUMAN: What is the Outcome of the match with Partner Andoni Vivanco?, ###ASSISTANT: SELECT "Outcome" FROM table_50160 WHERE "Partner" = 'andoni vivanco' |
2,796 | ###HUMAN: Count of questions, comments, answers with tag over time., ###ASSISTANT: SELECT DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109') AS "week", COUNT(DISTINCT Posts.Id) AS Posts, COUNT(Posts.AcceptedAnswerId) * 100 / COUNT(DISTINCT Posts.Id) AS PercentWithAcceptedAnswer, SUM(Posts.AnswerCount) AS Answers, SUM(Posts.CommentCount) AS Comments FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName LIKE 'bigcommerce' AND PostTypeId = 1 AND CreationDate > '2013-01-06' GROUP BY DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109') ORDER BY 'week' DESC |
2,797 | ###HUMAN: i need ground transportation in SEATTLE, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'SEATTLE' AND ground_service.city_code = city.city_code |
2,798 | ###HUMAN: posts closed in sep, oct, or nov, with reasons., ###ASSISTANT: SELECT YEAR(Posts.ClosedDate) AS y, MONTH(Posts.ClosedDate) AS m, CAST(YEAR(Posts.ClosedDate) AS TEXT(10)) + '/' + CAST(MONTH(Posts.ClosedDate) AS TEXT(19)) AS ym, COUNT(CONCAT('http://programmers.stackexchange.com/q/', Posts.Id)) AS Questions FROM PostHistory JOIN Posts ON Posts.Id = PostHistory.PostId WHERE Posts.ClosedDate >= '2012-01-01' AND PostHistoryTypeId = 10 AND PostHistory.Comment != 1 GROUP BY YEAR(Posts.ClosedDate), MONTH(Posts.ClosedDate) ORDER BY 1 DESC, 2 DESC |
2,799 | ###HUMAN: what is the arrival time where the station code is awy?, ###ASSISTANT: SELECT "Arrival" FROM table_19516 WHERE "Station Code" = 'AWY' |