Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
1,600
###HUMAN: Which highest overall figure had Robert Alford as a name and a round of more than 2?, ###ASSISTANT: SELECT MAX(overall) FROM table_name_89 WHERE name = "robert alford" AND round > 2
1,601
###HUMAN: Name the total number of points for newell's old boys, ###ASSISTANT: SELECT COUNT(points) FROM table_17968282_1 WHERE team = "Newell's Old Boys"
1,602
###HUMAN: May I sign up for 100 -level classes in Spring or Summer term ?, ###ASSISTANT: SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN (DERIVED_TABLEalias0.course_id) AND NOT COURSEalias0.course_id IN (SELECT DISTINCT COURSE_PREREQUISITEalias0.course_id FROM course_prerequisite AS COURSE_PREREQUISITEalias0 WHERE NOT COURSE_PREREQUISITEalias0.pre_course_id IN (DERIVED_TABLEalias0.course_id)) AND COURSEalias0.department = 'EECS' AND COURSEalias0.number BETWEEN 100 AND 100 + 100 AND SEMESTERalias0.semester IN ('SP', 'SS', 'SU') AND SEMESTERalias0.semester_id = COURSE_OFFERINGalias0.semester AND SEMESTERalias0.year = 2016
1,603
###HUMAN: What song was in french?, ###ASSISTANT: SELECT "Song" FROM table_76347 WHERE "Language" = 'french'
1,604
###HUMAN: What's the name of the episode associated with Nick production number 342?, ###ASSISTANT: SELECT "Episode title" FROM table_28767 WHERE "Nick prod. #" = '342'
1,605
###HUMAN: What Leading scorer had a Score of 80 112?, ###ASSISTANT: SELECT leading_scorer FROM table_name_98 WHERE score = "80–112"
1,606
###HUMAN: was the value of patient 016-38131's bun last measured on the current hospital visit less than they were first measured on the current hospital visit?, ###ASSISTANT: SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bun' ORDER BY lab.labresulttime DESC LIMIT 1) < (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bun' ORDER BY lab.labresulttime LIMIT 1)
1,607
###HUMAN: What is on at 5pm on the channel where As the World Turns is on at 2pm?, ###ASSISTANT: SELECT "5:00 pm" FROM table_61209 WHERE "2:00 pm" = 'as the world turns'
1,608
###HUMAN: Are there any sections of EECS 767 offered after 07:30 P.M. ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '07:30' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 767 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
1,609
###HUMAN: Name the most interview for minnesota and average more than 7.901, ###ASSISTANT: SELECT MAX("Interview") FROM table_57084 WHERE "State" = 'minnesota' AND "Average" > '7.901'
1,610
###HUMAN: In the game where the Hornets were the home team and Clippers the visiting team, what is the score?, ###ASSISTANT: SELECT "Score" FROM table_56666 WHERE "Home" = 'hornets' AND "Visitor" = 'clippers'
1,611
###HUMAN: Tag Usage - Presentation Frameworks., ###ASSISTANT: SELECT t.TagName, COUNT(p.Id) AS Posts, SUM(CASE WHEN p.AnswerCount > 0 THEN 1 ELSE 0 END) AS Answered FROM Tags AS t INNER JOIN PostTags AS pta ON t.Id = pta.TagId INNER JOIN Posts AS p ON p.Id = pta.PostId AND p.PostTypeId = 1 WHERE t.TagName IN ('angular', 'ember.js', 'reactjs', 'vuejs2') GROUP BY t.TagName
1,612
###HUMAN: What was the highest money when the score was 69-68-67-69=273?, ###ASSISTANT: SELECT MAX("Money ( $ )") FROM table_62549 WHERE "Score" = '69-68-67-69=273'
1,613
###HUMAN: Who were the opponents during week 14?, ###ASSISTANT: SELECT opponent FROM table_name_53 WHERE week = 14
1,614
###HUMAN: tell me patient 10624's minimum bands value this month?, ###ASSISTANT: SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10624) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bands') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')
1,615
###HUMAN: After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?, ###ASSISTANT: SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = "ferrari v8" AND points < 23
1,616
###HUMAN: What are the nationalities and the taotal ages of journalists. Visualize by a bar chart., ###ASSISTANT: SELECT Nationality, SUM(Age) FROM journalist GROUP BY Nationality
1,617
###HUMAN: Which award was given for the role of Elphaba in 2009?, ###ASSISTANT: SELECT "Award" FROM table_43430 WHERE "Role" = 'elphaba' AND "Year" = '2009'
1,618
###HUMAN: What was the result when incumbent Tom Steed was elected?, ###ASSISTANT: SELECT result FROM table_1342198_36 WHERE incumbent = "Tom Steed"
1,619
###HUMAN: Term Ending smaller than 2018, and a Nationality of new zealand what is the name?, ###ASSISTANT: SELECT "Name" FROM table_5255 WHERE "Term Ending" < '2018' AND "Nationality" = 'new zealand'
1,620
###HUMAN: What is the name of series episode 11-02's segment c?, ###ASSISTANT: SELECT segment_c FROM table_15187735_11 WHERE series_ep = "11-02"
1,621
###HUMAN: Can you tell me the High rebounds that has the Date of november 5?, ###ASSISTANT: SELECT high_rebounds FROM table_name_16 WHERE date = "november 5"
1,622
###HUMAN: A bar chart shows the number of appellations whose score is higher than 93, and ordered by Name., ###ASSISTANT: SELECT Appelation, COUNT(Appelation) FROM wine WHERE Score > 93 GROUP BY Appelation ORDER BY Name
1,623
###HUMAN: what is minimum age of patients whose days of hospital stay is 29 and admission year is greater than or equal to 2107?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.days_stay = "29" AND demographic.admityear >= "2107"
1,624
###HUMAN: Which Surface has a Week of march 1?, ###ASSISTANT: SELECT "Surface" FROM table_8542 WHERE "Week" = 'march 1'
1,625
###HUMAN: Find the names of all the product characteristics., ###ASSISTANT: SELECT DISTINCT characteristic_name FROM CHARACTERISTICS
1,626
###HUMAN: on what date did the bears win by a difference of 27 points ?, ###ASSISTANT: SELECT "date" FROM table_204_207 WHERE "result" = 'w' AND "result" - "result" = 27
1,627
###HUMAN: Who was in 2nd leg when Boca Juniors was in home (1st leg)?, ###ASSISTANT: SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Boca Juniors"
1,628
###HUMAN: how many times did debbie black block, ###ASSISTANT: SELECT blocks FROM table_19722233_5 WHERE player = "Debbie Black"
1,629
###HUMAN: Who had the decision goal when the record was 7-7-2?, ###ASSISTANT: SELECT decision FROM table_name_83 WHERE record = "7-7-2"
1,630
###HUMAN: what were the top four most common drugs that followed during the same hospital visit for the patients who were given lt heart angiocardiogram during the previous year?, ###ASSISTANT: SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id 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 = 'lt heart angiocardiogram') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4
1,631
###HUMAN: Show the name, home city, and age for all drivers., ###ASSISTANT: SELECT name, home_city, age FROM driver
1,632
###HUMAN: how many patients are admitted urgently and lab tested for bilirubin,direct?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "Bilirubin, Direct"
1,633
###HUMAN: what is the number of patients whose marital status is married and procedure long title is percutaneous [endoscopic] gastrostomy [peg]?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Percutaneous [endoscopic] gastrostomy [PEG]"
1,634
###HUMAN: Which is the highest Rd 1 has a Province of utrecht and a Rd 4 larger than 0?, ###ASSISTANT: SELECT MAX(rd_1) FROM table_name_70 WHERE province = "utrecht" AND rd_4 > 0
1,635
###HUMAN: how old is the youngest person for each job?, and could you order x-axis from low to high order?, ###ASSISTANT: SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job
1,636
###HUMAN: what was the teams final record, ###ASSISTANT: SELECT "results\nteam record" FROM table_204_123 ORDER BY "week" DESC LIMIT 1
1,637
###HUMAN: What is the average number in attendance on September 16?, ###ASSISTANT: SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
1,638
###HUMAN: What classes are required to declare a major in CLARCH ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%CLARCH%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id
1,639
###HUMAN: How many original air dates were there for the episode with production code 212?, ###ASSISTANT: SELECT COUNT(original_air_date) FROM table_23937219_3 WHERE prod_code = 212
1,640
###HUMAN: what is the capacity when the acceleration 1-100km/h is 11.1 s?, ###ASSISTANT: SELECT capacity FROM table_name_39 WHERE acceleration_0_100km_h = "11.1 s"
1,641
###HUMAN: Name the To par of payne stewart?, ###ASSISTANT: SELECT to_par FROM table_name_4 WHERE player = "payne stewart"
1,642
###HUMAN: what is minimum age of patients whose primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement and days of hospital stay is 20?, ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " AND demographic.days_stay = "20"
1,643
###HUMAN: how many employees does vitol have ?, ###ASSISTANT: SELECT "employees" FROM table_203_83 WHERE "company" = 'vitol'
1,644
###HUMAN: What was E.J. 'Dutch' Harrison's lowest To Par?, ###ASSISTANT: SELECT MIN("To par") FROM table_70516 WHERE "Player" = 'e.j. "dutch" harrison'
1,645
###HUMAN: count the number of private health insurance patients who had transplant from cadaver., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Transplant cadaver donor"
1,646
###HUMAN: Name the centennial for location, ###ASSISTANT: SELECT "Centennial" FROM table_20448 WHERE "Information" = 'Location'
1,647
###HUMAN: What are the invoice dates, order ids, and order details for all invoices?, ###ASSISTANT: SELECT T1.invoice_date, T1.order_id, T2.order_details FROM invoices AS T1 JOIN orders AS T2 ON T1.order_id = T2.order_id
1,648
###HUMAN: give me the number of patients whose primary disease is newborn and lab test abnormal status is abnormal?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND lab.flag = "abnormal"
1,649
###HUMAN: what is the home city for the stadion src mladost?, ###ASSISTANT: SELECT "Home city" FROM table_44912 WHERE "Stadium" = 'stadion src mladost'
1,650
###HUMAN: How close am I to the sportsmanship badge?., ###ASSISTANT: WITH CandidatePosts AS (SELECT ParentId AS postId FROM Posts AS p WHERE p.OwnerUserId = '##UserId##' AND p.PostTypeId = 2 AND p.Score > 0) SELECT p1.Id AS "post_link", p1.OwnerUserId AS "user_link", Body FROM Posts AS p1 JOIN CandidatePosts AS cp ON cp.postId = p1.ParentId WHERE p1.OwnerUserId != '##UserId##' ORDER BY p1.Score DESC
1,651
###HUMAN: list ground transportation in BALTIMORE, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'BALTIMORE' AND ground_service.city_code = city.city_code
1,652
###HUMAN: How many players are listed for the school/club team Washington?, ###ASSISTANT: SELECT COUNT("Name") FROM table_20094 WHERE "School/Club Team" = 'Washington'
1,653
###HUMAN: What type of chipset is in the Precision t3400 model with the PCI Express graphics?, ###ASSISTANT: SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400"
1,654
###HUMAN: Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100., ###ASSISTANT: SELECT dorm_name, gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100
1,655
###HUMAN: For those payments processed with Visa, bin the payment day into the Day of Week interval and compute the total amount payment as the Y-axis., ###ASSISTANT: SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa'
1,656
###HUMAN: Tell me the highest total when the horse is spender s, ###ASSISTANT: SELECT MAX(total) FROM table_name_99 WHERE horse = "spender s"
1,657
###HUMAN: What is the air date for 'there goes the bride'?, ###ASSISTANT: SELECT "Original air date" FROM table_19608 WHERE "Title" = 'There Goes the Bride'
1,658
###HUMAN: list the flights from ST. PAUL to SAN JOSE and from ST. PAUL to HOUSTON, ###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, flight WHERE ((flight.to_airport = AIRPORT_SERVICE_1.airport_code AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN JOSE') OR (flight.to_airport = AIRPORT_SERVICE_2.airport_code AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'HOUSTON')) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PAUL' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
1,659
###HUMAN: Give me a bar chart about the number of platforms in different locations, and I want to list from high to low by the total number please., ###ASSISTANT: SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY SUM(Number_of_Platforms) DESC
1,660
###HUMAN: what is the wins when the f/laps is test driver and team is lotus racing?, ###ASSISTANT: SELECT "Wins" FROM table_44077 WHERE "F/Laps" = 'test driver' AND "Team" = 'lotus racing'
1,661
###HUMAN: What was the final record for the game in which Dirk Nowitzki (19) had the high points?, ###ASSISTANT: SELECT "Record" FROM table_21474 WHERE "High points" = 'Dirk Nowitzki (19)'
1,662
###HUMAN: What is the record where high assists is pierce (6)?, ###ASSISTANT: SELECT "Record" FROM table_17290 WHERE "High assists" = 'Pierce (6)'
1,663
###HUMAN: Which Chinese has a Pali of atappa?, ###ASSISTANT: SELECT "Chinese" FROM table_45211 WHERE "Pali" = 'atappa'
1,664
###HUMAN: what are the four most frequently ordered microbiology tests for patients who received glucose - d5ns earlier within 2 months since 2 years ago?, ###ASSISTANT: SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'glucose - d5ns' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT patient.uniquepid, microlab.culturesite, microlab.culturetakentime FROM microlab JOIN patient ON microlab.patientunitstayid = patient.patientunitstayid WHERE DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.culturetakentime AND DATETIME(t2.culturetakentime) BETWEEN DATETIME(t1.treatmenttime) AND DATETIME(t1.treatmenttime, '+2 month') GROUP BY t2.culturesite) AS t3 WHERE t3.c1 <= 4
1,665
###HUMAN: what was the number of aneurysm resection / repair procedures that were performed a year before?, ###ASSISTANT: SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'aneurysm resection / repair' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
1,666
###HUMAN: count the number of patients whose ethnicity is asian and diagnoses long title is suicide and self-inflicted injury by hanging?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.long_title = "Suicide and self-inflicted injury by hanging"
1,667
###HUMAN: What is the total number of losses for the Team of Montreal with Goals For larger than 29?, ###ASSISTANT: SELECT COUNT("Losses") FROM table_11770 WHERE "Goals For" > '29' AND "Team" = 'montreal'
1,668
###HUMAN: what is the side-chain polarity for the amino acid with the 1-letter v?, ###ASSISTANT: SELECT "Side-chain polarity" FROM table_55835 WHERE "1-Letter" = 'v'
1,669
###HUMAN: What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?, ###ASSISTANT: SELECT AVG(cuts_made) FROM table_name_93 WHERE top_10 = 11 AND wins < 1
1,670
###HUMAN: count the number of patients born before the year 2049., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2049"
1,671
###HUMAN: give me the number of patients whose primary disease is newborn and procedure icd9 code is 5361?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND procedures.icd9_code = "5361"
1,672
###HUMAN: What are the open dates and years for the shop named Apple?, ###ASSISTANT: SELECT open_date, open_year FROM shop WHERE shop_name = "Apple"
1,673
###HUMAN: specify the type and route of administration of drug digoxin, ###ASSISTANT: SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Digoxin"
1,674
###HUMAN: return me the paper after 2000 in VLDB conference with more than 200 citations ., ###ASSISTANT: SELECT publication.title FROM conference, publication WHERE conference.name = 'VLDB' AND publication.cid = conference.cid AND publication.citation_num > 200 AND publication.year > 2000
1,675
###HUMAN: May I look at my transcript ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, semester.semester, semester.year, student_record.grade FROM course, semester, student_record WHERE student_record.course_id = course.course_id AND student_record.semester = semester.semester_id AND student_record.student_id = 1
1,676
###HUMAN: All questions with a *single* tag., ###ASSISTANT: SELECT Id AS "post_link", AnswerCount FROM Posts WHERE PostTypeId = 1 AND Tags = CONCAT('<', '##Tag:string##', '>') AND ClosedDate IS NULL ORDER BY CreationDate DESC
1,677
###HUMAN: Show me a scatter plot of time of purchase and age for ., ###ASSISTANT: SELECT Time_of_purchase, Age FROM member
1,678
###HUMAN: actually what are the nonstop flights from LAS VEGAS to BURBANK on saturday 5 22, ###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 ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BURBANK' AND date_day.day_number = 22 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LAS VEGAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0
1,679
###HUMAN: What shirt No has a Birth Date of April 12, 1986 (age27)?, ###ASSISTANT: SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = "april 12, 1986 (age27)"
1,680
###HUMAN: What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?, ###ASSISTANT: SELECT MIN("Lost") FROM table_34592 WHERE "Position" > '6' AND "Drawn" = '7' AND "Points" < '15'
1,681
###HUMAN: What was the grid for Bruno Junqueira for Dale Coyne Racing?, ###ASSISTANT: SELECT grid FROM table_name_45 WHERE team = "dale coyne racing" AND driver = "bruno junqueira"
1,682
###HUMAN: what is the number of patients whose lab test fluid is urine?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.fluid = "Urine"
1,683
###HUMAN: what is the number of patients with discharge location as snf diagnosed with primary disease hyperglycemia?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "HYPERGLYCEMIA"
1,684
###HUMAN: what was the organism found in the last urine, catheter specimen microbiology test for patient 025-19271 in their last hospital visit?, ###ASSISTANT: SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND microlab.culturesite = 'urine, catheter specimen' ORDER BY microlab.culturetakentime DESC LIMIT 1
1,685
###HUMAN: how many patients who have private insurance stayed in hospital for more than 9 days?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.days_stay > "9"
1,686
###HUMAN: get data for inverted index assignment., ###ASSISTANT: SELECT Id, Body, Tags FROM Posts WHERE CreationDate LIKE '%2018%' LIMIT 1000
1,687
###HUMAN: In what year was Yauco, which had over 42,043 people in 2010, founded?, ###ASSISTANT: SELECT AVG("Founded") FROM table_65006 WHERE "Municipality" = 'yauco' AND "Population (2010)" > '42,043'
1,688
###HUMAN: Return a histogram on what are the first names and ids for customers who have two or more accounts?, ###ASSISTANT: SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id
1,689
###HUMAN: what was the name of the organism found during the first other microbiology examination of patient 031-23724 in their last hospital encounter?, ###ASSISTANT: SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND microlab.culturesite = 'other' ORDER BY microlab.culturetakentime LIMIT 1
1,690
###HUMAN: what number of patients primarily diagnosed for coronary artery disease were given drug by inhalation?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND prescriptions.route = "INHALATION"
1,691
###HUMAN: What is the home team with scarborough as the away team?, ###ASSISTANT: SELECT home_team FROM table_name_50 WHERE away_team = "scarborough"
1,692
###HUMAN: What upper level electives are offered for CS majors ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id
1,693
###HUMAN: For the 2nd string of Do and an Accord du 1st string of FA what is the Depart de la main gauche?, ###ASSISTANT: SELECT "D\u00e9part de la main gauche" FROM table_76895 WHERE "2nd string" = 'do' AND "Accord du 1st string" = 'fa'
1,694
###HUMAN: Find the total number of students for each department with a bar chart, and could you list y axis in descending order?, ###ASSISTANT: SELECT T1.dept_name, COUNT(DISTINCT T2.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY COUNT(DISTINCT T2.ID) DESC
1,695
###HUMAN: does toronto 's population grow more or less than hamilton 's ?, ###ASSISTANT: SELECT (SELECT "projected increase\n2009-2025" FROM table_204_113 WHERE "area" = 'toronto') > (SELECT "projected increase\n2009-2025" FROM table_204_113 WHERE "area" = 'hamilton')
1,696
###HUMAN: provide the number of patients whose marital status is married and admission year is less than 2108?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2108"
1,697
###HUMAN: What is the draw number that has 59 points?, ###ASSISTANT: SELECT AVG("Draw") FROM table_54761 WHERE "Points" = '59'
1,698
###HUMAN: what is maximum age of patients whose language is engl and primary disease is hypertension;rule out coronary artery disease\cardiac cath?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.language = "ENGL" AND demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH"
1,699
###HUMAN: what was patient 025-30850's weight the last time in 06/2105?, ###ASSISTANT: SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-30850') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) = '2105-06' ORDER BY patient.unitadmittime DESC LIMIT 1