Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
1,500 | ###HUMAN: Which Record has an Attendance of 24,597?, ###ASSISTANT: SELECT record FROM table_name_62 WHERE attendance = "24,597" |
1,501 | ###HUMAN: Who had a finish of t15?, ###ASSISTANT: SELECT "Player" FROM table_62596 WHERE "Finish" = 't15' |
1,502 | ###HUMAN: In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?, ###ASSISTANT: SELECT "Lyrics" FROM table_62642 WHERE "Date" = 'august 10, 2005' AND "Catalog number" = 'tocp-66427' |
1,503 | ###HUMAN: What are all the calendar dates? Show a bar chart binning calendar date by weekday., ###ASSISTANT: SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar |
1,504 | ###HUMAN: Show the names and ids of tourist attractions that are visited at most once. Plot them as pie chart., ###ASSISTANT: SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID |
1,505 | ###HUMAN: What is the Branding for Group Owner Qantam of Cape Cod, LLC?, ###ASSISTANT: SELECT "Branding" FROM table_36 WHERE "Group owner" = 'Qantam of Cape Cod, LLC' |
1,506 | ###HUMAN: What was the Competition on November 16, 2007?, ###ASSISTANT: SELECT "Competition" FROM table_9053 WHERE "Date" = 'november 16, 2007' |
1,507 | ###HUMAN: Which television service has italian for its language?, ###ASSISTANT: SELECT television_service FROM table_name_46 WHERE language = "italian" |
1,508 | ###HUMAN: English title of am lie had what year?, ###ASSISTANT: SELECT "Year" FROM table_39379 WHERE "English title" = 'amélie' |
1,509 | ###HUMAN: Name the professor or teacher teaching CICS 301 ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'CICS' AND course.number = 301 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id |
1,510 | ###HUMAN: WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?, ###ASSISTANT: SELECT AVG("Goals for") FROM table_61007 WHERE "Draws" < '6' AND "Losses" < '7' |
1,511 | ###HUMAN: Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009?, ###ASSISTANT: SELECT MIN(inhabitants) FROM table_name_4 WHERE mayor = "matteo renzi" AND election > 2009 |
1,512 | ###HUMAN: what was henrick malberg 's first film ?, ###ASSISTANT: SELECT "original title" FROM table_204_91 ORDER BY "year" LIMIT 1 |
1,513 | ###HUMAN: Find the names and average salaries of all departments whose average salary is greater than 42000, and rank by the dept_name in ascending., ###ASSISTANT: SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name |
1,514 | ###HUMAN: When are all years that the champion is Ji Min Jeong?, ###ASSISTANT: SELECT year FROM table_15315816_1 WHERE champion = "Ji Min Jeong" |
1,515 | ###HUMAN: What upper-level MUSICOL classes are available in the Summer ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MUSICOL' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2016 |
1,516 | ###HUMAN: what is the location when the score is w 105-99?, ###ASSISTANT: SELECT location FROM table_name_58 WHERE score = "w 105-99" |
1,517 | ###HUMAN: Which entrant has a year after 1999?, ###ASSISTANT: SELECT "Entrant" FROM table_69468 WHERE "Year" > '1999' |
1,518 | ###HUMAN: What is the highest Year, when Opponent is #2 Syracuse?, ###ASSISTANT: SELECT MAX(year) FROM table_name_52 WHERE opponent = "#2 syracuse" |
1,519 | ###HUMAN: Who did the Raptors play when their record was 45-36?, ###ASSISTANT: SELECT "Team" FROM table_842 WHERE "Record" = '45-36' |
1,520 | ###HUMAN: for the first time until 31 months ago, when was patient 7165 prescribed insulin human regular and labetalol hcl at the same time?, ###ASSISTANT: SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'insulin human regular' AND admissions.subject_id = 7165 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-31 month')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'labetalol hcl' AND admissions.subject_id = 7165 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-31 month')) AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) ORDER BY t1.startdate LIMIT 1 |
1,521 | ###HUMAN: What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?, ###ASSISTANT: SELECT "Bleeding time" FROM table_20137 WHERE "Prothrombin time" = 'Unaffected' AND "Platelet count" = 'Unaffected' |
1,522 | ###HUMAN: how many patients whose drug code is teraz5 and lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "TERAZ5" AND lab.fluid = "Urine" |
1,523 | ###HUMAN: On what date did the woman married to Louis II become consort?, ###ASSISTANT: SELECT "Became Consort" FROM table_61634 WHERE "Spouse" = 'louis ii' |
1,524 | ###HUMAN: When Richmond is the away team, what is the crowd size?, ###ASSISTANT: SELECT crowd FROM table_name_23 WHERE away_team = "richmond" |
1,525 | ###HUMAN: Of the upper level classes , how many have labs ?, ###ASSISTANT: SELECT COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_lab = 'Y' AND program_course.category LIKE '%ULCS%' |
1,526 | ###HUMAN: Return a bar chart about the distribution of meter_600 and ID , list in asc by the names please., ###ASSISTANT: SELECT meter_600, ID FROM swimmer ORDER BY meter_600 |
1,527 | ###HUMAN: is the heart rate of patient 1902's body last measured on the current intensive care unit visit less than the value second to last measured on the current intensive care unit 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 = 1902) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' 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 = 1902) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime DESC LIMIT 1 OFFSET 1) |
1,528 | ###HUMAN: cirrhosis of the liver, portal hypertension, or esophageal varices, ###ASSISTANT: SELECT * FROM table_dev_22 WHERE liver_disease = 1 OR portal_hypertension = 1 OR esophageal_varices = 1 |
1,529 | ###HUMAN: what was the four most common specimen test ordered in this year?, ###ASSISTANT: SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 4 |
1,530 | ###HUMAN: What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist?, ###ASSISTANT: SELECT MIN("Draw") FROM table_13971 WHERE "Artist" = 'anastasia prikhodko' AND "Place" > '1' |
1,531 | ###HUMAN: , order by the bars from low to high., ###ASSISTANT: SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry |
1,532 | ###HUMAN: What is the type if the organization name is Gamma RHO Lambda 1?, ###ASSISTANT: SELECT "Type" FROM table_27646 WHERE "Organization" = 'Gamma Rho Lambda 1' |
1,533 | ###HUMAN: How many losses have byes greater than 2?, ###ASSISTANT: SELECT COUNT("Losses") FROM table_42494 WHERE "Byes" > '2' |
1,534 | ###HUMAN: What is the motive before 2007?, ###ASSISTANT: SELECT "Motive" FROM table_14685 WHERE "Year" < '2007' |
1,535 | ###HUMAN: For those employees who was hired before 2002-06-21, give me the comparison about the sum of salary over the hire_date bin hire_date by time by a bar chart, order by the y axis in descending., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) DESC |
1,536 | ###HUMAN: Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against?, ###ASSISTANT: SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63 |
1,537 | ###HUMAN: What team was the opponent when the score was 7 1?, ###ASSISTANT: SELECT "Opponent" FROM table_71565 WHERE "Score" = '7–1' |
1,538 | ###HUMAN: What is the record for the result w 33-3?, ###ASSISTANT: SELECT record FROM table_name_4 WHERE result = "w 33-3" |
1,539 | ###HUMAN: What were the revising conventions commentary with a denunciation of 21?, ###ASSISTANT: SELECT "revising convention(s)" FROM table_2206 WHERE "Denunciations (September 2011)" = '21' |
1,540 | ###HUMAN: Who wrote the episodes that had a viewership of 7.14?, ###ASSISTANT: SELECT "Written by" FROM table_27186 WHERE "U.S. viewers (millions)" = '7.14' |
1,541 | ###HUMAN: Who's the captain of the team whose head coach is Alistair Edwards?, ###ASSISTANT: SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards" |
1,542 | ###HUMAN: View Statistics for all questions., ###ASSISTANT: SELECT AVG(ViewCount) AS AvgViews, STDEV(ViewCount) AS StDevViews, COUNT(*) AS N FROM Posts WHERE PostTypeId = 1 |
1,543 | ###HUMAN: Scatter plot to show department id on x axis and sum salary on y axis., ###ASSISTANT: SELECT DEPARTMENT_ID, SUM(SALARY) FROM employees GROUP BY DEPARTMENT_ID |
1,544 | ###HUMAN: Return the name of the category to which the film 'HUNGER ROOF' belongs., ###ASSISTANT: SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' |
1,545 | ###HUMAN: until 8 months ago, when was the first time that patient 002-56583 was prescribed medication via dialysis?, ###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 = '002-56583')) AND medication.routeadmin = 'dialysis' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-8 month') ORDER BY medication.drugstarttime LIMIT 1 |
1,546 | ###HUMAN: what country is listed before france ?, ###ASSISTANT: SELECT "nation" FROM table_203_374 WHERE id = (SELECT id FROM table_203_374 WHERE "nation" = 'france') - 1 |
1,547 | ###HUMAN: Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type Show bar chart, I want to sort X-axis from low to high order please., ###ASSISTANT: SELECT Affiliation, SUM(Enrollment) FROM university WHERE Founded > 1850 GROUP BY Affiliation ORDER BY Affiliation |
1,548 | ###HUMAN: List all the participant ids and their details using a bar chart, and rank from high to low by the X-axis., ###ASSISTANT: SELECT Participant_Details, Participant_ID FROM Participants ORDER BY Participant_Details DESC |
1,549 | ###HUMAN: how many patients were diagnosed with stroke during the same month last year after prophylactic antibacterials - for transplant/hiv., ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'prophylactic antibacterials - for transplant/hiv' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'stroke' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 WHERE t1.treatmenttime < t2.diagnosistime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.diagnosistime, 'start of month') |
1,550 | ###HUMAN: tell me all the airports near WESTCHESTER COUNTY, ###ASSISTANT: SELECT DISTINCT airport.airport_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'WESTCHESTER COUNTY' |
1,551 | ###HUMAN: For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart., ###ASSISTANT: SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter |
1,552 | ###HUMAN: What is the largest silver number when the rank is smaller than 1?, ###ASSISTANT: SELECT MAX(silver) FROM table_name_92 WHERE rank < 1 |
1,553 | ###HUMAN: Who was the outgoing manager when the incoming manager was augusto in cio?, ###ASSISTANT: SELECT "Outgoing manage" FROM table_61752 WHERE "Incoming manager" = 'augusto inácio' |
1,554 | ###HUMAN: What was the venue after 2012?, ###ASSISTANT: SELECT "Venue" FROM table_79308 WHERE "Year" > '2012' |
1,555 | ###HUMAN: Name the score for hawthorn opponent, ###ASSISTANT: SELECT score FROM table_name_64 WHERE opponent = "hawthorn" |
1,556 | ###HUMAN: how much are patient 5252's differences in heart rate second measured on the first intensive care unit visit compared to the value first measured on the first intensive care unit 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 = 5252) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1 OFFSET 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 = 5252) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1) |
1,557 | ###HUMAN: count the number of patients whose discharge location is home health care and admission year is less than 2158?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.admityear < "2158" |
1,558 | ###HUMAN: How many years did the new york giants win with a result of 15-7 at lincoln financial field?, ###ASSISTANT: SELECT COUNT("Year") FROM table_47791 WHERE "Location" = 'lincoln financial field' AND "Winner" = 'new york giants' AND "Result" = '15-7' |
1,559 | ###HUMAN: What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?, ###ASSISTANT: SELECT "Cooper" FROM table_67359 WHERE "Ashmolean" < '21' AND "Hahland" < '4' |
1,560 | ###HUMAN: What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt?, ###ASSISTANT: SELECT "Election" FROM table_60550 WHERE "2nd Member" = 'frederick knight' AND "1st Member" = 'sir edmund lechmere, bt' |
1,561 | ###HUMAN: show me cheap flights from BALTIMORE to DALLAS, ###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, city AS CITY_0, city AS CITY_1, city AS CITY_2, fare, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'DALLAS' AND flight.to_airport = AIRPORT_SERVICE_2.airport_code) AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias3, airport_service AS AIRPORT_SERVICEalias4, airport_service AS AIRPORT_SERVICEalias5, city AS CITYalias3, city AS CITYalias4, city AS CITYalias5, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'BALTIMORE' AND CITYalias5.city_code = AIRPORT_SERVICEalias5.city_code AND CITYalias5.city_name = 'DALLAS' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias3.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias5.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id |
1,562 | ###HUMAN: find the number of patients with blood gas lab test category who were hospitalized for more than 7 days., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "7" AND lab."CATEGORY" = "Blood Gas" |
1,563 | ###HUMAN: How many ERP W is it that has a Call sign of w273bs?, ###ASSISTANT: SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = "w273bs" |
1,564 | ###HUMAN: Who is the club that has 30 points?, ###ASSISTANT: SELECT "Club" FROM table_808 WHERE "Points" = '30' |
1,565 | ###HUMAN: What is the site of the game with a Record of 6-2?, ###ASSISTANT: SELECT "Game site" FROM table_32451 WHERE "Record" = '6-2' |
1,566 | ###HUMAN: Can you compare the account balances of customers with the letter 'a' in their names using a bar graph., ###ASSISTANT: SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' |
1,567 | ###HUMAN: Who was the finalist in Miami?, ###ASSISTANT: SELECT finalist FROM table_name_7 WHERE tournament = "miami" |
1,568 | ###HUMAN: what is the total number of patients who were admitted to the hospital?, ###ASSISTANT: SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions |
1,569 | ###HUMAN: What is the tie number when Wigan Athletic is the home team?, ###ASSISTANT: SELECT "Tie no" FROM table_8010 WHERE "Home team" = 'wigan athletic' |
1,570 | ###HUMAN: how many patients were prescribed 10 ml vial : calcium chloride 10 % iv soln during the same month after the diagnosis of sinus tachycardia, since 4 years ago?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sinus tachycardia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '10 ml vial : calcium chloride 10 % iv soln' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t2 WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.drugstarttime, 'start of month') |
1,571 | ###HUMAN: How many losses had a total of 17 and more than 10 wins?, ###ASSISTANT: SELECT COUNT("Losses") FROM table_39747 WHERE "Total" = '17' AND "Wins" > '10' |
1,572 | ###HUMAN: What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What, ###ASSISTANT: SELECT "Date" FROM table_49576 WHERE "Place" = 'chernivtsi' AND "Race winners" = 'etienne bax / kaspars stupelis' |
1,573 | ###HUMAN: how many patients whose age is less than 41 and lab test category is chemistry?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab."CATEGORY" = "Chemistry" |
1,574 | ###HUMAN: specify the age of patient paul edwards, ###ASSISTANT: SELECT demographic.age FROM demographic WHERE demographic.name = "Paul Edwards" |
1,575 | ###HUMAN: Name the least field goals for chantel hilliard, ###ASSISTANT: SELECT MIN("Field Goals") FROM table_25693 WHERE "Player" = 'Chantel Hilliard' |
1,576 | ###HUMAN: For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993., ###ASSISTANT: SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = "sasol jordan" |
1,577 | ###HUMAN: Who is the player who played for the Miami Sol and went to school at North Carolina State?, ###ASSISTANT: SELECT "Player" FROM table_50402 WHERE "New WNBA Team" = 'miami sol' AND "College/Country/Team" = 'north carolina state' |
1,578 | ###HUMAN: What is the date where the result was L 27-10 in a week before week 9?, ###ASSISTANT: SELECT date FROM table_name_94 WHERE week < 9 AND result = "l 27-10" |
1,579 | ###HUMAN: Who vacated his post when his successor was formally installed on May 11, 1966?, ###ASSISTANT: SELECT "Vacator" FROM table_22348 WHERE "Date of successors formal installation" = 'May 11, 1966' |
1,580 | ###HUMAN: What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?, ###ASSISTANT: SELECT MIN("Cuts made") FROM table_42349 WHERE "Top-25" < '6' AND "Wins" < '0' |
1,581 | ###HUMAN: what is the least silver for germany when gold is more than 4?, ###ASSISTANT: SELECT MIN("Silver") FROM table_66454 WHERE "Nation" = 'germany' AND "Gold" > '4' |
1,582 | ###HUMAN: What is the competition when aggregate is 1 4?, ###ASSISTANT: SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4" |
1,583 | ###HUMAN: what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?, ###ASSISTANT: SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91 |
1,584 | ###HUMAN: What was Eduardo Romero's score?, ###ASSISTANT: SELECT score FROM table_name_59 WHERE player = "eduardo romero" |
1,585 | ###HUMAN: What is the mascot of Hammond Tech?, ###ASSISTANT: SELECT "Mascot" FROM table_65664 WHERE "City" = 'hammond' AND "School" = 'hammond tech' |
1,586 | ###HUMAN: What is the lowest number of wins with more than 113 points in 4th rank?, ###ASSISTANT: SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = "4th" |
1,587 | ###HUMAN: how many gold 's has brazil won ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_360 WHERE "gold" = 'brazil' |
1,588 | ###HUMAN: What kind of round was played when Hanne Skak Jensen faced Austria?, ###ASSISTANT: SELECT "Round" FROM table_3277 WHERE "Against" = 'Austria' |
1,589 | ###HUMAN: What was the type of sussex?, ###ASSISTANT: SELECT "Type" FROM table_357 WHERE "Name" = 'Sussex' |
1,590 | ###HUMAN: when was patient 20066's arterial bp [diastolic] first measured less than 43.0 on the first icu visit?, ###ASSISTANT: SELECT chartevents.charttime 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 = 20066) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime 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') AND chartevents.valuenum < 43.0 ORDER BY chartevents.charttime LIMIT 1 |
1,591 | ###HUMAN: What is the total amount of settlement made for all the settlements?, ###ASSISTANT: SELECT SUM(amount_settled) FROM settlements |
1,592 | ###HUMAN: What is the highest cited paper by jeff dean ?, ###ASSISTANT: SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'jeff dean' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC |
1,593 | ###HUMAN: What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?, ###ASSISTANT: SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2 |
1,594 | ###HUMAN: How many weeks had a Result of w 20 6?, ###ASSISTANT: SELECT SUM(week) FROM table_name_24 WHERE result = "w 20–6" |
1,595 | ###HUMAN: What is the combined attendance of all games that had a result of w 35-14?, ###ASSISTANT: SELECT SUM("Attendance") FROM table_78334 WHERE "Result" = 'w 35-14' |
1,596 | ###HUMAN: how many patients whose admission year is less than 2111 and item id is 51446?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2111" AND lab.itemid = "51446" |
1,597 | ###HUMAN: what is the next whitworth size -lrb- in -rrb- below 1/8 ?, ###ASSISTANT: SELECT "whitworth size (in)" FROM table_204_828 WHERE id = (SELECT id FROM table_204_828 WHERE "whitworth size (in)" = '1/8') + 1 |
1,598 | ###HUMAN: How many ranks by average for the couple Tana and Stuart?, ###ASSISTANT: SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Tana and Stuart" |
1,599 | ###HUMAN: What is the share of votes with 3,567,021 NDC votes?, ###ASSISTANT: SELECT "Share of votes" FROM table_9551 WHERE "Number of NDC votes" = '3,567,021' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.