Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
1,900
###HUMAN: ST. PETERSBURG to DETROIT, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PETERSBURG' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETROIT' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
1,901
###HUMAN: Name the fewest tries for leicester tigers with points less than 207, ###ASSISTANT: SELECT MIN("Tries") FROM table_31955 WHERE "Club" = 'leicester tigers' AND "Points" < '207'
1,902
###HUMAN: Total View Count of User's Accepted Answers., ###ASSISTANT: SELECT 'Grand Total' AS Title, SUM(Question.ViewCount) AS ViewCount, NULL AS Score FROM Posts AS Answer INNER JOIN PostTypes ON PostTypes.Id = Answer.PostTypeId INNER JOIN Posts AS Question ON Question.Id = Answer.ParentId AND Question.AcceptedAnswerId = Answer.Id WHERE PostTypes.Name = 'Answer' AND Answer.OwnerUserId = '##UserId##' AND Answer.CommunityOwnedDate IS NULL UNION ALL SELECT Question.Title, Question.ViewCount, Question.Score FROM Posts AS Answer INNER JOIN PostTypes ON PostTypes.Id = Answer.PostTypeId INNER JOIN Posts AS Question ON Question.Id = Answer.ParentId AND Question.AcceptedAnswerId = Answer.Id WHERE PostTypes.Name = 'Answer' AND Answer.OwnerUserId = '##UserId##' AND Answer.CommunityOwnedDate IS NULL ORDER BY ViewCount DESC
1,903
###HUMAN: Find other_details and the sum of monthly_rental , and group by attribute other_details, and visualize them by a bar chart., ###ASSISTANT: SELECT other_details, SUM(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC
1,904
###HUMAN: In what district was the incumbent Edwin Gray?, ###ASSISTANT: SELECT district FROM table_2668401_17 WHERE incumbent = "Edwin Gray"
1,905
###HUMAN: What year was the developer(s) Bioware?, ###ASSISTANT: SELECT AVG("Year") FROM table_64172 WHERE "Developer(s)" = 'bioware'
1,906
###HUMAN: was the last game a win or a loss ?, ###ASSISTANT: SELECT "result" FROM table_204_795 ORDER BY "date" DESC LIMIT 1
1,907
###HUMAN: count the number of patients whose insurance is private and admission location is clinic referral/premature., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admission_location = "CLINIC REFERRAL/PREMATURE"
1,908
###HUMAN: in this month has the arterial bp [diastolic] of patient 18159 been normal?, ###ASSISTANT: SELECT COUNT(*) > 0 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 = 18159)) 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 BETWEEN diastolic_bp_lower AND diastolic_bp_upper AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')
1,909
###HUMAN: What was the surface where the outcome was winner on 12 march 1989?, ###ASSISTANT: SELECT "Surface" FROM table_54160 WHERE "Outcome" = 'winner' AND "Date" = '12 march 1989'
1,910
###HUMAN: During 2003 what was open cup qualifying status?, ###ASSISTANT: SELECT open_cup FROM table_1570003_2 WHERE year = 2003
1,911
###HUMAN: Which US air date had 4.4 million viewers?, ###ASSISTANT: SELECT original_us_air_date FROM table_17901155_4 WHERE viewers__millions_ = "4.4"
1,912
###HUMAN: What was the score for the game on June 30?, ###ASSISTANT: SELECT score FROM table_name_65 WHERE date = "june 30"
1,913
###HUMAN: What is the earliest year that has a Bristol engine?, ###ASSISTANT: SELECT MIN("Year") FROM table_15203 WHERE "Engine" = 'bristol'
1,914
###HUMAN: In early 1873, Owen sound had what works number?, ###ASSISTANT: SELECT "Works number" FROM table_41506 WHERE "Date" = 'early 1873' AND "Name" = 'owen sound'
1,915
###HUMAN: when was the first time that patient 009-5001 was prescribed medication on this hospital encounter via oral route?, ###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 = '009-5001' AND patient.hospitaldischargetime IS NULL)) AND medication.routeadmin = 'oral' ORDER BY medication.drugstarttime LIMIT 1
1,916
###HUMAN: What is the 1st leg of cs sfaxien?, ###ASSISTANT: SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien"
1,917
###HUMAN: Most upvoted questions asked in the last month., ###ASSISTANT: SELECT TOP(30) AS CreationDate, Id AS "post_link", Score, ViewCount FROM Posts WHERE CreationDate >= (DATEADD(MONTH, -1, GETDATE())) AND PostTypeId = 1 ORDER BY Posts.Score DESC
1,918
###HUMAN: Find the number of the category descriptions of the products whose descriptions include letter 't', list names in ascending order., ###ASSISTANT: SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY product_category_description
1,919
###HUMAN: Bar graph to show meter_100 from different meter 400, and could you display by the y axis in asc?, ###ASSISTANT: SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_100
1,920
###HUMAN: What team is 2 when 1 is Taipower and the result is 0-1?, ###ASSISTANT: SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1"
1,921
###HUMAN: Which System's Name is Gemulator?, ###ASSISTANT: SELECT system FROM table_name_45 WHERE name = "gemulator"
1,922
###HUMAN: What is the name of the head coach of 1974?, ###ASSISTANT: SELECT name FROM table_name_96 WHERE years = "1974"
1,923
###HUMAN: Will Prof. Alan Hunt always be setting exams for her classes ?, ###ASSISTANT: SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON 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 course.has_exams = 'N' AND instructor.name LIKE '%Alan Hunt%'
1,924
###HUMAN: provide the number of patients whose ethnicity is american indian/alaska native and drug code is benz1i?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND prescriptions.formulary_drug_cd = "BENZ1I"
1,925
###HUMAN: according to the chart , which team is listed to have the first dodge ram ?, ###ASSISTANT: SELECT "team" FROM table_204_89 WHERE "truck(s)" = 'dodge ram' ORDER BY id LIMIT 1
1,926
###HUMAN: give the number of patients whose admission type is elective and lab test category is blood gas., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab."CATEGORY" = "Blood Gas"
1,927
###HUMAN: I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may 2011, ###ASSISTANT: SELECT plaid_cymru FROM table_name_77 WHERE polling_organisation_client = "yougov/itv wales" AND date_s__conducted = "4 may 2011"
1,928
###HUMAN: List the name of the county with the largest population., ###ASSISTANT: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
1,929
###HUMAN: What is the 2nd leg of team 1 Zamalek SC?, ###ASSISTANT: SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = "zamalek sc"
1,930
###HUMAN: What is the week 3, prior to the when the week 4 was Laura Nicole?, ###ASSISTANT: SELECT week_4 FROM table_name_26 WHERE week_3 = "laura nicole"
1,931
###HUMAN: Find the number of routes with destination airports in Italy., ###ASSISTANT: SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'
1,932
###HUMAN: who is the first driver listed ?, ###ASSISTANT: SELECT "driver" FROM table_204_853 WHERE id = 1
1,933
###HUMAN: What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?, ###ASSISTANT: SELECT "L3 cache" FROM table_13514 WHERE "sSpec number" = 'sr0r2(l1)sr0t6(l1)'
1,934
###HUMAN: calculate the minimum age of home health care discharged patients who had overdose primary disease., ###ASSISTANT: SELECT MIN(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.diagnosis = "OVERDOSE"
1,935
###HUMAN: new semantic parsing papers, ###ASSISTANT: SELECT DISTINCT paper.paperid, paper.year FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid ORDER BY paper.year DESC
1,936
###HUMAN: Which event had 4th place and took place in the year 2007?, ###ASSISTANT: SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007
1,937
###HUMAN: Which Tankers have a Hazmat of , and Platforms of , and a Staffing of volunteer?, ###ASSISTANT: SELECT tankers FROM table_name_9 WHERE hazmat = "–" AND platforms = "–" AND staffing = "volunteer"
1,938
###HUMAN: what is the AP/57 restriction, ###ASSISTANT: SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/57'
1,939
###HUMAN: let me know the number of patients taking drug via sl route suffering from pneumonia primary disease., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "PNEUMONIA" AND prescriptions.route = "SL"
1,940
###HUMAN: The EPT German open was won by which listed winner?, ###ASSISTANT: SELECT "Winner" FROM table_70219 WHERE "Event" = 'ept german open'
1,941
###HUMAN: how many different ranks exist for karate belts ?, ###ASSISTANT: SELECT COUNT(DISTINCT "rank") FROM table_203_392
1,942
###HUMAN: Name the record for attendance location of palace of auburn hills 15,210, ###ASSISTANT: SELECT "Record" FROM table_21310 WHERE "Location/Attendance" = 'Palace of Auburn Hills 15,210'
1,943
###HUMAN: how long did it take the fifth place finisher to run the race ?, ###ASSISTANT: SELECT "time" FROM table_204_937 WHERE "rank" = 5
1,944
###HUMAN: What did the home team score when playing at Western Oval?, ###ASSISTANT: SELECT "Home team score" FROM table_32339 WHERE "Venue" = 'western oval'
1,945
###HUMAN: Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?, ###ASSISTANT: SELECT "Opponents" FROM table_36349 WHERE "Partner" = 'irina-camelia begu' AND "Surface" = 'hard'
1,946
###HUMAN: presence of chronic kidney disease ( gfr < 45 ml / min ), ###ASSISTANT: SELECT * FROM table_train_159 WHERE kidney_disease = 1 OR estimated_glomerular_filtration_rate_egfr < 45
1,947
###HUMAN: how many patients whose diagnoses long title is perforation of intestine and lab test category is blood gas?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Perforation of intestine" AND lab."CATEGORY" = "Blood Gas"
1,948
###HUMAN: What is the type when McCormack is the name?, ###ASSISTANT: SELECT type FROM table_name_21 WHERE name = "mccormack"
1,949
###HUMAN: How many numbers were recorded on the fields goals of the Left End player?, ###ASSISTANT: SELECT COUNT("Field goals") FROM table_28033 WHERE "Position" = 'Left end'
1,950
###HUMAN: Draw a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home, could you show in desc by the y-axis please?, ###ASSISTANT: SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(School_ID) DESC
1,951
###HUMAN: Name the standard yarn weight system for 7 wpi, ###ASSISTANT: SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "7 wpi"
1,952
###HUMAN: Nametheh school team for norman gonzales, ###ASSISTANT: SELECT "School/Club Team" FROM table_1262 WHERE "Name" = 'Norman Gonzales'
1,953
###HUMAN: For the club that had tries of 50 and drawn of 0, what were the points?, ###ASSISTANT: SELECT points_against FROM table_name_51 WHERE drawn = "0" AND tries_for = "50"
1,954
###HUMAN: last time until 20 months ago when did patient 028-23341 get a prescription?, ###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 = '028-23341')) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-20 month') ORDER BY medication.drugstarttime DESC LIMIT 1
1,955
###HUMAN: Find me the admission type and short title of procedure for the patient with patient id 2110., ###ASSISTANT: SELECT demographic.admission_type, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2110"
1,956
###HUMAN: Name the lowest yards for 34 long and avg less than 12.6, ###ASSISTANT: SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6
1,957
###HUMAN: Who did they lose to on may 9?, ###ASSISTANT: SELECT "Loss" FROM table_56314 WHERE "Date" = 'may 9'
1,958
###HUMAN: For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, list x-axis in asc order please., ###ASSISTANT: SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID
1,959
###HUMAN: How many different matchup/results appear in San Diego, California?, ###ASSISTANT: SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = "San Diego, California"
1,960
###HUMAN: What years did Marienhof run, which featured Leonore Capell and lasted 10 years?, ###ASSISTANT: SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell"
1,961
###HUMAN: Q1-1 What is the most number of comments on a single post?., ###ASSISTANT: SELECT CommentCount, Id, COUNT(*) FROM Posts GROUP BY Id, CommentCount HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC
1,962
###HUMAN: how many hours has it been since patient 57050 stayed for the first time on the current hospital visit in ward 14?, ###ASSISTANT: SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 57050 AND admissions.dischtime IS NULL)) AND transfers.wardid = 14 ORDER BY transfers.intime LIMIT 1
1,963
###HUMAN: give me flights from ATLANTA to BALTIMORE, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
1,964
###HUMAN: Return a scatter chart about the correlation between Body_Builder_ID and Clean_Jerk ., ###ASSISTANT: SELECT Body_Builder_ID, Clean_Jerk FROM body_builder
1,965
###HUMAN: How many playerd Mrs. Darling in the 1999 Broadway?, ###ASSISTANT: SELECT COUNT(1999 AS _broadway) FROM table_10312547_1 WHERE character = "Mrs. Darling"
1,966
###HUMAN: what is the maximum age of patients whose death status is 0 and diagnosed with primary disease coronary artery disease\coronary artery bypass graft with mvr; ? maze?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE"
1,967
###HUMAN: What is the value for Lost when Drawn is 0, and Tries against is 41?, ###ASSISTANT: SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41"
1,968
###HUMAN: Create a bar chart showing maximal revenue across name, and I want to rank X in descending order please., ###ASSISTANT: SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY Name DESC
1,969
###HUMAN: Where does South Melbourne play?, ###ASSISTANT: SELECT venue FROM table_name_52 WHERE away_team = "south melbourne"
1,970
###HUMAN: what are the procedures that are the top five most commonly received in 2100?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE STRFTIME('%y', procedures_icd.charttime) = '2100' GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 <= 5)
1,971
###HUMAN: Give me the comparison about the sum of monthly_rental over the date_address_from , and group by attribute other_details and bin date_address_from by weekday by a bar chart., ###ASSISTANT: SELECT date_address_from, SUM(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC
1,972
###HUMAN: what was the name of the laboratory test that patient 021-141335 received last in a month before?, ###ASSISTANT: SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-141335')) AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY lab.labresulttime DESC LIMIT 1
1,973
###HUMAN: Which date has a score of 2-1?, ###ASSISTANT: SELECT "Date" FROM table_68490 WHERE "Score" = '2-1'
1,974
###HUMAN: What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels?, ###ASSISTANT: SELECT COUNT("Year") FROM table_71745 WHERE "Venue" = 'sydney cricket ground' AND "Opponent" = 'parramatta eels'
1,975
###HUMAN: what 's the earliest arriving flight between BOSTON and WASHINGTON DC, ###ASSISTANT: SELECT DISTINCT flight_id FROM flight WHERE ((from_airport IN (SELECT AIRPORT_SERVICEalias2.airport_code FROM airport_service AS AIRPORT_SERVICEalias2 WHERE AIRPORT_SERVICEalias2.city_code IN (SELECT CITYalias2.city_code FROM city AS CITYalias2 WHERE CITYalias2.city_name = 'BOSTON')) AND to_airport IN (SELECT AIRPORT_SERVICEalias3.airport_code FROM airport_service AS AIRPORT_SERVICEalias3 WHERE AIRPORT_SERVICEalias3.city_code IN (SELECT CITYalias3.city_code FROM city AS CITYalias3 WHERE (CITYalias3.city_name = 'WASHINGTON' AND CITYalias3.state_code = 'DC')))) AND arrival_time = (SELECT MIN(FLIGHTalias1.arrival_time) FROM flight AS FLIGHTalias1 WHERE (FLIGHTalias1.from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'BOSTON')) AND FLIGHTalias1.to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE (CITYalias1.city_name = 'WASHINGTON' AND CITYalias1.state_code = 'DC'))))))
1,976
###HUMAN: Tell me the Stem Meaning of ical, ###ASSISTANT: SELECT "Stem Meaning" FROM table_31998 WHERE "3rd person sg" = 'ical'
1,977
###HUMAN: How many wins happened when there were fewer than 2 draws?, ###ASSISTANT: SELECT SUM("Wins") FROM table_8680 WHERE "Draws" < '2'
1,978
###HUMAN: What episode aired on 18 April 2007?, ###ASSISTANT: SELECT MIN(_number) FROM table_10749367_3 WHERE air_date = "18 April 2007"
1,979
###HUMAN: Who was runner-up in the 2006 Pacific Life Open?, ###ASSISTANT: SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006"
1,980
###HUMAN: what is age and procedure short title of subject id 2560?, ###ASSISTANT: SELECT demographic.age, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560"
1,981
###HUMAN: What is the highest Points when the record was 12 2, and the Points Against are larger than 6?, ###ASSISTANT: SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6
1,982
###HUMAN: Top Voted Questions By Tag., ###ASSISTANT: WITH ScoreByTag AS (SELECT pt.TagId, p.Score, ROW_NUMBER() OVER (PARTITION BY pt.TagId ORDER BY p.Score DESC) AS "rank" FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id) SELECT RANK() OVER (ORDER BY st.Score DESC) AS "rank", t.TagName, st.Score FROM ScoreByTag AS st INNER JOIN Tags AS t ON st.TagId = t.Id WHERE st.Rank = 1 ORDER BY st.Score DESC
1,983
###HUMAN: Show me mean rating by languages in a histogram, sort X from high to low order., ###ASSISTANT: SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY languages DESC
1,984
###HUMAN: what's the score where record is 35 33, ###ASSISTANT: SELECT "Score" FROM table_17347 WHERE "Record" = '35–33'
1,985
###HUMAN: What was the score of the game that put the team at 27-32?, ###ASSISTANT: SELECT loss FROM table_name_51 WHERE record = "27-32"
1,986
###HUMAN: What was the To par for bill britton when he placed t7?, ###ASSISTANT: SELECT to_par FROM table_name_37 WHERE place = "t7" AND player = "bill britton"
1,987
###HUMAN: what is the number of patients whose admission type is elective and procedure long title is laparoscopic lysis of peritoneal adhesions?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Laparoscopic lysis of peritoneal adhesions"
1,988
###HUMAN: What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?, ###ASSISTANT: SELECT record FROM table_name_64 WHERE time = "4:00" AND opponent = "krzysztof soszynski"
1,989
###HUMAN: What's the status on 16/12/1995?, ###ASSISTANT: SELECT status FROM table_name_35 WHERE date = "16/12/1995"
1,990
###HUMAN: What was the crowd size when the visiting team scored 23.18 (156)?, ###ASSISTANT: SELECT COUNT("Crowd") FROM table_56036 WHERE "Away team score" = '23.18 (156)'
1,991
###HUMAN: what is the highest frequency mhz with the call sign w292cu?, ###ASSISTANT: SELECT MAX(frequency_mhz) FROM table_name_77 WHERE call_sign = "w292cu"
1,992
###HUMAN: how many patients were prescribed 2 ml : metoclopramide hcl 5 mg/ml inj soln within 2 months since 2103 after being diagnosed with copd - no limitations?, ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'copd - no limitations' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2103') AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '2 ml : metoclopramide hcl 5 mg/ml inj soln' AND STRFTIME('%y', medication.drugstarttime) >= '2103') AS t2 WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')
1,993
###HUMAN: What is the average high temperature for each day of week Plot them as bar chart, rank Y-axis in desc order., ###ASSISTANT: SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY AVG(high_temperature) DESC
1,994
###HUMAN: What was the lowest production code value in series #10?, ###ASSISTANT: SELECT MIN(production_code) FROM table_name_14 WHERE series__number = 10
1,995
###HUMAN: What is the total of attendance with a Record of 5-9-0?, ###ASSISTANT: SELECT SUM("Attendance") FROM table_56683 WHERE "Record" = '5-9-0'
1,996
###HUMAN: What is the low lap total for a grid larger than 16 and has a Time/Retired of + 3:27.3?, ###ASSISTANT: SELECT MIN("Laps") FROM table_78184 WHERE "Time/Retired" = '+ 3:27.3' AND "Grid" > '16'
1,997
###HUMAN: which reps were only appointed by franklin pierce ?, ###ASSISTANT: SELECT "representative" FROM table_203_778 WHERE "appointed by" = 'franklin pierce'
1,998
###HUMAN: Which Champion has a Coeff of 1.000?, ###ASSISTANT: SELECT "Champions" FROM table_52977 WHERE "Coeff" = '1.000'
1,999
###HUMAN: What is the 2nd leg in match with team 2 of Teram?, ###ASSISTANT: SELECT "2nd leg" FROM table_62868 WHERE "Team 2" = 'teram'