Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
1,300 | ###HUMAN: what is the price for amylase, body fluid?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'amylase, body fluid')) |
1,301 | ###HUMAN: Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number?, ###ASSISTANT: SELECT COUNT("Frequency (MHz)") FROM table_5631 WHERE "Type" = 'primary' AND "Call letters" = 'ktbb-fm' |
1,302 | ###HUMAN: A bar chart shows the distribution of All_Home and the amount of All_Home , and group by attribute All_Home, and sort by the x axis from high to low., ###ASSISTANT: SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC |
1,303 | ###HUMAN: How many types of valves were used on this engine that was built on 1902-05?, ###ASSISTANT: SELECT COUNT(valves) FROM table_25695027_1 WHERE years_built = "1902-05" |
1,304 | ###HUMAN: Who won with the fastest lap of daijiro hiura on March 29?, ###ASSISTANT: SELECT race_winner FROM table_name_97 WHERE fastest_lap = "daijiro hiura" AND date = "march 29" |
1,305 | ###HUMAN: since 2100 what are the five most frequently ordered lab tests for patients 40s?, ###ASSISTANT: SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND STRFTIME('%y', lab.labresulttime) >= '2100' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 5 |
1,306 | ###HUMAN: What is the Elevation (m) of the Peak with a Prominence (m) larger than 2,143 and Col (m) of 2012?, ###ASSISTANT: SELECT "Elevation (m)" FROM table_79478 WHERE "Prominence (m)" > '2,143' AND "Col (m)" = '2012' |
1,307 | ###HUMAN: What is the country of the airport with the highest elevation?, ###ASSISTANT: SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 |
1,308 | ###HUMAN: What was the losing bonus that had 1 draw and a 10 try bonus?, ###ASSISTANT: SELECT losing_bonus FROM table_name_51 WHERE drawn = "1" AND try_bonus = "10" |
1,309 | ###HUMAN: List the first name and last name of customers have the amount of outstanding between 1000 and 3000., ###ASSISTANT: SELECT first_name, last_name FROM customers WHERE amount_outstanding BETWEEN 1000 AND 3000 |
1,310 | ###HUMAN: What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?, ###ASSISTANT: SELECT "Shuttle Run (sec)" FROM table_56767 WHERE "2.4km Run (min:sec)" = '12:21-13:00' |
1,311 | ###HUMAN: Which highest Round has a Result of loss?, ###ASSISTANT: SELECT MAX(round) FROM table_name_27 WHERE result = "loss" |
1,312 | ###HUMAN: Name the publication date when the fictional date is 2112, ###ASSISTANT: SELECT publication_date FROM table_name_25 WHERE fictional_date = "2112" |
1,313 | ###HUMAN: What township is 28.597 square miles of land?, ###ASSISTANT: SELECT "Township" FROM table_22466 WHERE "Land ( sqmi )" = '28.597' |
1,314 | ###HUMAN: For those employees who did not have any job in the past, a bar chart shows the distribution of job_id and the sum of employee_id , and group by attribute job_id, and display from low to high by the sum employee id., ###ASSISTANT: SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) |
1,315 | ###HUMAN: What is the lowest number of laps obtained by driver Nick Heidfeld?, ###ASSISTANT: SELECT MIN(laps) FROM table_name_32 WHERE driver = "nick heidfeld" |
1,316 | ###HUMAN: Show the name of each county along with the corresponding number of delegates from that county., ###ASSISTANT: SELECT County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_Id |
1,317 | ###HUMAN: give me the top four most common diagnoses since 1 year ago., ###ASSISTANT: SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4 |
1,318 | ###HUMAN: what is drug type of drug name cephalexin?, ###ASSISTANT: SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Cephalexin" |
1,319 | ###HUMAN: What is the career SR with a 1r in 1985?, ###ASSISTANT: SELECT career_sr FROM table_name_43 WHERE 1985 = "1r" |
1,320 | ###HUMAN: What party was first elected in 1974?, ###ASSISTANT: SELECT party FROM table_1341453_7 WHERE first_elected = 1974 |
1,321 | ###HUMAN: SELECT TOP 10 Id AS [Post Link] FROM Posts ORDER BY CreationDate DESC., ###ASSISTANT: SELECT Id AS "post_link" FROM Posts ORDER BY CreationDate DESC LIMIT 10 |
1,322 | ###HUMAN: what is lab test name of subject name kelly gallardo?, ###ASSISTANT: SELECT lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Kelly Gallardo" |
1,323 | ###HUMAN: How many attended the game on 12/17 with stephen jackson as the leading scorer?, ###ASSISTANT: SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/17" |
1,324 | ###HUMAN: what is the least number of points that daly won in a single seasons, ###ASSISTANT: SELECT MIN("points") FROM table_204_722 |
1,325 | ###HUMAN: what is the number of patients who have had a tpn d9.0 intake until 2103?, ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'tpn d9.0' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y', inputevents_cv.charttime) <= '2103')) |
1,326 | ###HUMAN: count the number of patients whose year of death is less than or equal to 2186 and diagnoses long title is hyperacusis?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2186.0" AND diagnoses.long_title = "Hyperacusis" |
1,327 | ###HUMAN: Return the number of the categories of music festivals that have the result 'Awarded'., ###ASSISTANT: SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category |
1,328 | ###HUMAN: how many patients under the age of 80 years had their lab test fluid as joint fluid?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "80" AND lab.fluid = "Joint Fluid" |
1,329 | ###HUMAN: What is listed under L when the ends won is 21?, ###ASSISTANT: SELECT MAX("L") FROM table_31228 WHERE "Ends Won" = '21' |
1,330 | ###HUMAN: What job is at red bank?, ###ASSISTANT: SELECT "Occupation" FROM table_15803 WHERE "Residence" = 'red bank' |
1,331 | ###HUMAN: What is the score of the game against away team queens park rangers on 23 january 1982?, ###ASSISTANT: SELECT "Score" FROM table_59579 WHERE "Date" = '23 january 1982' AND "Away team" = 'queens park rangers' |
1,332 | ###HUMAN: How much do the tickets cost for August 7, 1987?, ###ASSISTANT: SELECT "Ticket price(s)" FROM table_1845 WHERE "Date(s)" = 'August 7, 1987' |
1,333 | ###HUMAN: How many finals had more than 0 goals and 8 assists?, ###ASSISTANT: SELECT "Finals" FROM table_63272 WHERE "Goals" > '0' AND "Assists" = '8' |
1,334 | ###HUMAN: After 15:45 A.M. , what upper level electives are available next Spring-Summer ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.start_time > '15:45' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2017 |
1,335 | ###HUMAN: When did Deng Xuan first win Women's singles?, ###ASSISTANT: SELECT MIN("Year") FROM table_71765 WHERE "Women's singles" = 'deng xuan' |
1,336 | ###HUMAN: Who is the away team that played home team Footscray?, ###ASSISTANT: SELECT "Away team" FROM table_55219 WHERE "Home team" = 'footscray' |
1,337 | ###HUMAN: provide the number of patients whose admission year is less than 2133 and drug route is po?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2133" AND prescriptions.route = "PO" |
1,338 | ###HUMAN: What Rank has a Team of roma?, ###ASSISTANT: SELECT "Rank" FROM table_12517 WHERE "Team" = 'roma' |
1,339 | ###HUMAN: What is the population of northfield parish that has an area less than 342.4?, ###ASSISTANT: SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = "northfield" |
1,340 | ###HUMAN: What are 12 -credit Anthropology of Contemporary American Culture courses ?, ###ASSISTANT: SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Anthropology of Contemporary American Culture%' OR name LIKE '%Anthropology of Contemporary American Culture%') AND credits = 12 |
1,341 | ###HUMAN: In what grid did Richard Robarts make 36 laps?, ###ASSISTANT: SELECT SUM("Grid") FROM table_54515 WHERE "Driver" = 'richard robarts' AND "Laps" < '36' |
1,342 | ###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time, order total number in asc order., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(SALARY) |
1,343 | ###HUMAN: How many members did Europe have the year that America had 403892?, ###ASSISTANT: SELECT europe FROM table_1914090_2 WHERE america = 403892 |
1,344 | ###HUMAN: how many patients were diagnosed for laparoscopic surgical procedure converted to open procedure and the death status is 0?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.long_title = "Laparoscopic surgical procedure converted to open procedure" |
1,345 | ###HUMAN: For those employees who did not have any job in the past, find hire_date and the sum of manager_id bin hire_date by weekday, and visualize them by a bar chart, and rank by the total number of manager id in asc please., ###ASSISTANT: SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(MANAGER_ID) |
1,346 | ###HUMAN: What is the time/retired of Driver Masten Gregory Carroll Shelby when the constructor was Maserati, the Grid was larger than 10 and there were more than 2 laps?, ###ASSISTANT: SELECT "Time/Retired" FROM table_11847 WHERE "Grid" > '10' AND "Laps" > '2' AND "Constructor" = 'maserati' AND "Driver" = 'masten gregory carroll shelby' |
1,347 | ###HUMAN: How many hebrew forms are there for the arabic form yuktibu ?, ###ASSISTANT: SELECT COUNT("Hebrew Form") FROM table_30036 WHERE "Arabic form" = 'yuktibu يكتب' |
1,348 | ###HUMAN: Which round was Joe Taylor selected in?, ###ASSISTANT: SELECT SUM(round) FROM table_name_40 WHERE player = "joe taylor" |
1,349 | ###HUMAN: A bar chart for what are the number of the descriptions of the service types with product price above 100?, and could you list in descending by the how many service type description please?, ###ASSISTANT: SELECT Service_Type_Description, COUNT(Service_Type_Description) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 GROUP BY Service_Type_Description ORDER BY COUNT(Service_Type_Description) DESC |
1,350 | ###HUMAN: Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz, ###ASSISTANT: SELECT "Davids team" FROM table_2908 WHERE "Lees team" = 'Jack Dee and Peter Serafinowicz' |
1,351 | ###HUMAN: If a variant without niqqud is as final letter: or , what is the phonetic realisation?, ###ASSISTANT: SELECT "Phonetic Realisation" FROM table_56984 WHERE "without Niqqud" = 'as final letter: ו or יו' |
1,352 | ###HUMAN: Sublimetext post counts by date., ###ASSISTANT: SELECT TIME_TO_STR(CreationDate, '%d') AS "day", TIME_TO_STR(CreationDate, '%M') AS "month", TIME_TO_STR(CreationDate, '%Y') AS "year", COUNT(*) FROM Posts WHERE (STR_POSITION(Tags, '<sublimetext>') > 0) GROUP BY TIME_TO_STR(CreationDate, '%d'), TIME_TO_STR(CreationDate, '%M'), TIME_TO_STR(CreationDate, '%Y') |
1,353 | ###HUMAN: What was the year Bernadette Peters was a nominee for the Tony award?, ###ASSISTANT: SELECT SUM(year) FROM table_name_67 WHERE award = "tony award" AND nominee = "bernadette peters" |
1,354 | ###HUMAN: what is death status of subject id 3343?, ###ASSISTANT: SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = "3343" |
1,355 | ###HUMAN: Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4?, ###ASSISTANT: SELECT MAX(field_goals) FROM table_name_76 WHERE touchdowns = 0 AND points > 4 |
1,356 | ###HUMAN: What are the purchase details of transactions with amount bigger than 10000, and count them by a bar chart, list by the the number of purchase details from low to high., ###ASSISTANT: SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY COUNT(purchase_details) |
1,357 | ###HUMAN: What is Part 1, when Part 3 is 'heldu'?, ###ASSISTANT: SELECT part_1 FROM table_name_83 WHERE part_3 = "heldu" |
1,358 | ###HUMAN: What school/club had pick 33?, ###ASSISTANT: SELECT school_club_team FROM table_name_31 WHERE pick = 33 |
1,359 | ###HUMAN: Who is the h.s. principal during 1973-1974?, ###ASSISTANT: SELECT hs_principal FROM table_name_81 WHERE year = "1973-1974" |
1,360 | ###HUMAN: What is the highest field goals when there were more than 1 touchdown and 0 extra points?, ###ASSISTANT: SELECT MAX("Field goals") FROM table_75348 WHERE "Touchdowns" > '1' AND "Extra points" > '0' |
1,361 | ###HUMAN: when did patient 14054 get discharged from hospital for the first time since 2105?, ###ASSISTANT: SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 14054 AND STRFTIME('%y', admissions.dischtime) >= '2105' ORDER BY admissions.dischtime LIMIT 1 |
1,362 | ###HUMAN: What role was at the Sydney Film Festival in 2008?, ###ASSISTANT: SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = "sydney film festival" |
1,363 | ###HUMAN: What is the 2007 value with a 1r in 2009?, ###ASSISTANT: SELECT "2007" FROM table_63515 WHERE "2009" = '1r' |
1,364 | ###HUMAN: What was the number of fatalities for the Viscount 700?, ###ASSISTANT: SELECT fatalities FROM table_name_71 WHERE aircraft = "viscount 700" |
1,365 | ###HUMAN: What are the different statement ids on accounts, and the number of accounts for each?, ###ASSISTANT: SELECT statement_id, COUNT(*) FROM accounts GROUP BY statement_id |
1,366 | ###HUMAN: what is the cpu for the calculator with 28 kb of ram and display size 128 64 pixels 21 8 characters?, ###ASSISTANT: SELECT "CPU" FROM table_17130 WHERE "RAM" = '28 KB of RAM' AND "Display Size" = '128×64 pixels 21×8 characters' |
1,367 | ###HUMAN: what is june 10-11 when march 27-29 is 149?, ###ASSISTANT: SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149" |
1,368 | ###HUMAN: What is the Shirt No for Henry Bell Cisnero whose height is less than 190?, ###ASSISTANT: SELECT MAX("Shirt No") FROM table_64515 WHERE "Height" < '190' AND "Player" = 'henry bell cisnero' |
1,369 | ###HUMAN: Which tournament had a 2010 finish of 4R?, ###ASSISTANT: SELECT "Tournament" FROM table_68293 WHERE "2010" = '4r' |
1,370 | ###HUMAN: when was the first time patient 006-124193 was prescribed medication through the iv flush route since 14 months ago?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-124193')) AND medication.routeadmin = 'iv flush' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-14 month') ORDER BY medication.drugstarttime LIMIT 1 |
1,371 | ###HUMAN: Just list the first name of the employee and show the location id of the corresponding department using a bar chart., ###ASSISTANT: SELECT FIRST_NAME, LOCATION_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID |
1,372 | ###HUMAN: What was the discipline for the euroboss championship?, ###ASSISTANT: SELECT "Discipline" FROM table_8627 WHERE "Championship" = 'euroboss' |
1,373 | ###HUMAN: Negative questions with a single negative-but-accepted answer this year., ###ASSISTANT: SELECT q.Id AS "post_link", q.Score AS "Q Score", a.Score AS "A Score" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND q.Score < 0 AND a.Score < 0 AND q.CreationDate > '2016-01-01 01:01:01' AND q.ClosedDate > '2016-01-01 01:01:01' AND NOT q.AcceptedAnswerId IS NULL AND q.AnswerCount = 1 ORDER BY q.CreationDate DESC |
1,374 | ###HUMAN: Bar chart x axis year y axis the number of year, ###ASSISTANT: SELECT year, COUNT(year) FROM home_game |
1,375 | ###HUMAN: what is the cost of a drug, permethrin?, ###ASSISTANT: SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'permethrin') |
1,376 | ###HUMAN: What was the score for the game that had an attendance of 41,087?, ###ASSISTANT: SELECT "Score" FROM table_68420 WHERE "Attendance" = '41,087' |
1,377 | ###HUMAN: Name the density for, ###ASSISTANT: SELECT density FROM table_2013618_1 WHERE traditional = "古田縣" |
1,378 | ###HUMAN: List the number of the names of products that are not in any event, and rank x axis from high to low order please., ###ASSISTANT: SELECT Product_Name, COUNT(Product_Name) FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events) GROUP BY Product_Name ORDER BY Product_Name DESC |
1,379 | ###HUMAN: provide the time of admission and prescribed drug for the patient with patient id 18480., ###ASSISTANT: SELECT demographic.admittime, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "18480" |
1,380 | ###HUMAN: count the number of patients whose marital status is widowed 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.marital_status = "WIDOWED" AND procedures.long_title = "Laryngoscopy and other tracheoscopy" |
1,381 | ###HUMAN: How many lessons did the customer with the first name Ray take?, ###ASSISTANT: SELECT COUNT(*) FROM lessons AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray" |
1,382 | ###HUMAN: If the qatari female is 918, what is the total number of females?, ###ASSISTANT: SELECT "Total Female" FROM table_3509 WHERE "Qatari Female" = '918' |
1,383 | ###HUMAN: show me all direct flights from DALLAS FORT WORTH to either SAN FRANCISCO or OAKLAND, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS FORT WORTH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND ((flight.to_airport = AIRPORT_SERVICE_2.airport_code AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'SAN FRANCISCO') OR (flight.to_airport = AIRPORT_SERVICE_3.airport_code AND CITY_3.city_code = AIRPORT_SERVICE_3.city_code AND CITY_3.city_name = 'OAKLAND'))) AND flight.connections = 0 |
1,384 | ###HUMAN: what is the county when the year left is 1998?, ###ASSISTANT: SELECT county FROM table_name_36 WHERE year_left = "1998" |
1,385 | ###HUMAN: When Grey's Anatomy aired at 9:30 what aired at 9:00?, ###ASSISTANT: SELECT "9:00" FROM table_42062 WHERE "9:30" = 'grey''s anatomy' |
1,386 | ###HUMAN: Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?, ###ASSISTANT: SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 1 |
1,387 | ###HUMAN: Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?, ###ASSISTANT: SELECT "ZX Spectrum" FROM table_36826 WHERE "Year" > '1984' AND "Genre" = 'arcade/strategy' |
1,388 | ###HUMAN: After December 19, what is the Game number with a Record of 21 4 7?, ###ASSISTANT: SELECT COUNT("Game") FROM table_38946 WHERE "Record" = '21–4–7' AND "December" > '19' |
1,389 | ###HUMAN: What are the distinct buildings with capacities of greater than 50?, ###ASSISTANT: SELECT DISTINCT building FROM classroom WHERE capacity > 50 |
1,390 | ###HUMAN: Are they any Other classes offered next Winter ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017 |
1,391 | ###HUMAN: Bar chart x axis dept code y axis minimal stu gpa, and display Y-axis in descending order., ###ASSISTANT: SELECT DEPT_CODE, MIN(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY MIN(STU_GPA) DESC |
1,392 | ###HUMAN: provide the maximum age of patients whose marital status is widowed and stayed in the hospital for 23 days., ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.days_stay = "23" |
1,393 | ###HUMAN: No Decision listed above has a visitor of Montreal., ###ASSISTANT: SELECT decision FROM table_name_62 WHERE visitor = "montreal" |
1,394 | ###HUMAN: Which requirements do I need to meet for a CS-LSA degree ?, ###ASSISTANT: SELECT DISTINCT program_requirement.additional_req, program_requirement.category, program_requirement.min_credit, program.name FROM program, program_requirement WHERE program.name LIKE '%CS-LSA%' AND program.program_id = program_requirement.program_id |
1,395 | ###HUMAN: What player had the high point on July 7?, ###ASSISTANT: SELECT high_points FROM table_name_21 WHERE date = "july 7" |
1,396 | ###HUMAN: When did the team play an away game against the Toronto Eagles?, ###ASSISTANT: SELECT "Date" FROM table_7343 WHERE "Away" = 'toronto eagles' |
1,397 | ###HUMAN: What Golden point(s) scorer has the Away Brisbane Broncos and Home South Sydney Rabbitohs?, ###ASSISTANT: SELECT golden_point_s__scorer FROM table_name_14 WHERE away = "brisbane broncos" AND home = "south sydney rabbitohs" |
1,398 | ###HUMAN: What is Party, when Minister is 'Franco Frattini'?, ###ASSISTANT: SELECT party FROM table_name_55 WHERE minister = "franco frattini" |
1,399 | ###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 job_id and the average of employee_id , and group by attribute job_id in a bar chart, could you rank in ascending by the X-axis?, ###ASSISTANT: SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.