Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
2,900
###HUMAN: What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?, ###ASSISTANT: SELECT "Score" FROM table_43908 WHERE "Away team" = 'gold coast blaze' AND "Home team" = 'adelaide 36ers'
2,901
###HUMAN: In what year is the status of won?, ###ASSISTANT: SELECT year FROM table_name_72 WHERE status = "won"
2,902
###HUMAN: What is the sum of number of wins that have earnings of more than ( )2,864,342 and money list rank of 3?, ###ASSISTANT: SELECT SUM("Wins") FROM table_70144 WHERE "Earnings (\u20ac)" > '2,864,342' AND "Money list rank" = '3'
2,903
###HUMAN: what is the number of patients admitted to hospital since 2103?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) >= '2103'
2,904
###HUMAN: what is the highest round when the overall is less than 17?, ###ASSISTANT: SELECT MAX("Round") FROM table_44649 WHERE "Overall" < '17'
2,905
###HUMAN: What is Hasan Shah's hometown?, ###ASSISTANT: SELECT hometown FROM table_name_40 WHERE name = "hasan shah"
2,906
###HUMAN: list the top three most common drugs that patients are prescribed with during the same month after being diagnosed with hypocalcemia - due to rhabdomyolysis until 2 years ago., ###ASSISTANT: SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypocalcemia - due to rhabdomyolysis' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.drugstarttime, 'start of month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 3
2,907
###HUMAN: what is the record where the opponent is central connecticut?, ###ASSISTANT: SELECT "Record" FROM table_73538 WHERE "Opponent" = 'Central Connecticut'
2,908
###HUMAN: What was the October 22 record?, ###ASSISTANT: SELECT "Record" FROM table_29595 WHERE "Date" = 'October 22'
2,909
###HUMAN: Which School has a Mascot of squires?, ###ASSISTANT: SELECT school FROM table_name_35 WHERE mascot = "squires"
2,910
###HUMAN: What's the attendance when the week was more than 16?, ###ASSISTANT: SELECT attendance FROM table_name_95 WHERE week > 16
2,911
###HUMAN: did levaquin, dextrose 50 % in water (d50w) iv syringe, or d50 during this hospital encounter be prescribed to patient 018-20179?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaldischargetime IS NULL)) AND medication.drugname IN ('levaquin', 'dextrose 50 % in water (d50w) iv syringe', 'd50')
2,912
###HUMAN: At what times is 473 taught during the Summer terms ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 473 AND semester.semester IN ('SP', 'Summer', 'SS') AND semester.semester_id = course_offering.semester AND semester.year = 2016
2,913
###HUMAN: What is the time of songs that have the writer Aaron Schroeder and Wally Gold?, ###ASSISTANT: SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold"
2,914
###HUMAN: What was the tonnage of the Great Britain ship Batna?, ###ASSISTANT: SELECT "Tonnage" FROM table_32996 WHERE "Nationality" = 'great britain' AND "Ship" = 'batna'
2,915
###HUMAN: What is the most points when the goals against are 354 and games less than 82?, ###ASSISTANT: SELECT MAX("Points") FROM table_6919 WHERE "Goals against" = '354' AND "Games" < '82'
2,916
###HUMAN: Which constructor has a race called I News of the World Trophy?, ###ASSISTANT: SELECT constructor FROM table_name_91 WHERE race_name = "i news of the world trophy"
2,917
###HUMAN: What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?, ###ASSISTANT: SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = "Marc Lieb Richard Lietz"
2,918
###HUMAN: What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin?, ###ASSISTANT: SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "ruby-throated hummingbird"
2,919
###HUMAN: Name the least yes for dublin south, ###ASSISTANT: SELECT MIN("Yes") FROM table_1577 WHERE "Constituency" = 'Dublin South'
2,920
###HUMAN: how many candidates with party being democratic and dbeingtrict being new york5, ###ASSISTANT: SELECT COUNT("Candidates") FROM table_18209 WHERE "Party" = 'Democratic' AND "District" = 'New York5'
2,921
###HUMAN: What is the height in ft for the rockets from 1973-78?, ###ASSISTANT: SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78"
2,922
###HUMAN: Name the high rebounds for charlotte, ###ASSISTANT: SELECT "High rebounds" FROM table_29729 WHERE "Team" = 'Charlotte'
2,923
###HUMAN: Who was the opponent at the Staples Center?, ###ASSISTANT: SELECT "Opponent" FROM table_51557 WHERE "Arena" = 'staples center'
2,924
###HUMAN: Which club has 1 runners-up with 0 winners and 2 third place earned?, ###ASSISTANT: SELECT "Club" FROM table_50722 WHERE "Runners-up" = '1' AND "Winners" = '0' AND "Third" = '2'
2,925
###HUMAN: For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday., ###ASSISTANT: SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
2,926
###HUMAN: First elected in 1807 1817 in what district?, ###ASSISTANT: SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817"
2,927
###HUMAN: List the problem id and log id which are assigned to the staff named Rylan Homenick., ###ASSISTANT: SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
2,928
###HUMAN: Show the type of school and the number of buses for each type in a bar chart, show by the Type in ascending., ###ASSISTANT: SELECT Type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T2.Type ORDER BY Type
2,929
###HUMAN: What was the aggregate score that had a 1-2 second leg score?, ###ASSISTANT: SELECT "Aggregate" FROM table_78933 WHERE "2nd leg" = '1-2'
2,930
###HUMAN: What are the different card type codes?, ###ASSISTANT: SELECT DISTINCT card_type_code FROM customers_cards
2,931
###HUMAN: what is the type movinig to alianza atl tico?, ###ASSISTANT: SELECT type FROM table_name_28 WHERE moving_to = "alianza atlético"
2,932
###HUMAN: what is maximum age of patients whose gender is m and insurance is self pay?, ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.insurance = "Self Pay"
2,933
###HUMAN: tell me the drug that was prescribed to patient 029-7028 for the last time in their first hospital encounter?, ###ASSISTANT: SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-7028' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY medication.drugstarttime DESC LIMIT 1
2,934
###HUMAN: How many maximum points did Curtis scored?, ###ASSISTANT: SELECT MAX("Points") FROM table_28031 WHERE "Player" = 'Curtis'
2,935
###HUMAN: what team comes before confey, ###ASSISTANT: SELECT "team" FROM table_204_772 WHERE id = (SELECT id FROM table_204_772 WHERE "team" = 'confey') - 1
2,936
###HUMAN: what is the most recent year gardnar mulloy played as a partner and score was 12 10, 8 10, 12 10, 6 2?, ###ASSISTANT: SELECT MAX(year) FROM table_name_29 WHERE partner = "gardnar mulloy" AND score = "12–10, 8–10, 12–10, 6–2"
2,937
###HUMAN: At what stadium was the final score 31-28?, ###ASSISTANT: SELECT "Stadium" FROM table_71510 WHERE "Final Score" = '31-28'
2,938
###HUMAN: Questions answered before they were asked., ###ASSISTANT: SELECT a.Id AS "post_link" FROM Posts AS q JOIN Posts AS a ON a.ParentId = q.Id WHERE q.CreationDate > a.CreationDate ORDER BY a.CreationDate DESC
2,939
###HUMAN: what was the only tribunal to pronounce zero sentences ?, ###ASSISTANT: SELECT "tribunal" FROM table_203_303 WHERE "total" = 0
2,940
###HUMAN: How many introductory phrases are there with 'the w rd' is 'unrequited gov'?, ###ASSISTANT: SELECT COUNT("Introductory phrase") FROM table_28001 WHERE "The W\u00f8rd" = 'Unrequited Gov'
2,941
###HUMAN: what is the number of patients whose days of hospital stay is greater than 1 and diagnoses icd9 code is 3970?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.icd9_code = "3970"
2,942
###HUMAN: what was the total of the suprapubic urine output that patient 028-34632 had on the first icu visit?, ###ASSISTANT: SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-34632') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND intakeoutput.celllabel = 'suprapubic urine' AND intakeoutput.cellpath LIKE '%output%'
2,943
###HUMAN: What was the Away Team of Blackpool's Home game?, ###ASSISTANT: SELECT "Away team" FROM table_40750 WHERE "Home team" = 'blackpool'
2,944
###HUMAN: Who wrote when the original airdate is April 5, 1987?, ###ASSISTANT: SELECT "Written by" FROM table_24864 WHERE "Original air date" = 'April 5, 1987'
2,945
###HUMAN: At what venue did the match where the home team scored 8.6 (54) take place?, ###ASSISTANT: SELECT "Venue" FROM table_33293 WHERE "Home team score" = '8.6 (54)'
2,946
###HUMAN: is there any history of microbiology test results for patient 61751's bile during the last month?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 61751) AND microbiologyevents.spec_type_desc = 'bile' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')
2,947
###HUMAN: What is Method, when Time is '3:20'?, ###ASSISTANT: SELECT "Method" FROM table_58771 WHERE "Time" = '3:20'
2,948
###HUMAN: What is the number of contestants who are 5'7' and exactly 26 years of age?, ###ASSISTANT: SELECT COUNT("Contestant") FROM table_27692 WHERE "Height (ft)" = '5''7' AND "Age" = '26'
2,949
###HUMAN: What Rider has a Grid of 21?, ###ASSISTANT: SELECT "Rider" FROM table_50881 WHERE "Grid" = '21'
2,950
###HUMAN: If the Plain stop is , what is the Non- stop?, ###ASSISTANT: SELECT "Non- stop" FROM table_9325 WHERE "Plain stop" = 'ㄷ'
2,951
###HUMAN: find the number of patients on additive type drug prescription who have diagnoses icd9 code 78791., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "78791" AND prescriptions.drug_type = "ADDITIVE"
2,952
###HUMAN: WHAT POSITION IS 273?, ###ASSISTANT: SELECT position FROM table_name_26 WHERE overall = 273
2,953
###HUMAN: What Secretary has a Social AO of lieke de boer?, ###ASSISTANT: SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer"
2,954
###HUMAN: What is the year that has points larger than 20?, ###ASSISTANT: SELECT COUNT(year) FROM table_name_84 WHERE points > 20
2,955
###HUMAN: has patient 20441 ever had a arterial bp [diastolic] of greater than 73.0 when they came to the hospital first time?, ###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 = 20441 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime 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 > 73.0
2,956
###HUMAN: provide the number of patients whose lab test name is potassium, urine and lab test result is abnormal., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Potassium, Urine"
2,957
###HUMAN: Find the address and staff number of the shops that do not have any happy hour. Visualize by bar chart., ###ASSISTANT: SELECT Address, Num_of_staff FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM happy_hour)
2,958
###HUMAN: indicate the daily maximum amount of heartrate for patient 002-4486 on the first icu visit., ###ASSISTANT: SELECT MAX(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND NOT vitalperiodic.heartrate IS NULL GROUP BY STRFTIME('%y-%m-%d', vitalperiodic.observationtime)
2,959
###HUMAN: What's the release price of a processor that has a frequency of 3.2 ghz and 1 6.4 gt/s qpi I/O?, ###ASSISTANT: SELECT "Release price ( USD )" FROM table_63644 WHERE "Frequency" = '3.2 ghz' AND "I/O bus" = '1 × 6.4 gt/s qpi'
2,960
###HUMAN: What is Website, when License is Apache License 2.0?, ###ASSISTANT: SELECT "Website" FROM table_49047 WHERE "License" = 'apache license 2.0'
2,961
###HUMAN: Count the number of inpatient hospital admission patients who have neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues/bone marrow transplant as their primary disease., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.diagnosis = "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT"
2,962
###HUMAN: how many competitors competed in the semifinal 2 ?, ###ASSISTANT: SELECT COUNT("name") FROM table_204_547
2,963
###HUMAN: What is the average number of draws for Mortlake club when they have less than 0 wins?, ###ASSISTANT: SELECT AVG("Draws") FROM table_64313 WHERE "Club" = 'mortlake' AND "Wins" < '0'
2,964
###HUMAN: Which teacher will teach Lyric , Elegy , and Iambus this semester ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.name LIKE '%Lyric , Elegy , and Iambus%' AND semester.semester = 'WN' AND semester.year = 2016
2,965
###HUMAN: I want to know the HP model with a #HDD of 1 of sides of ds, ###ASSISTANT: SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = "ds"
2,966
###HUMAN: provide the number of patients whose marital status is widowed and lab test name is metamyelocytes?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.label = "Metamyelocytes"
2,967
###HUMAN: Get me the number of patients with acidosis primary disease and have short title of procedure skin & subq dx proc nec., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ACIDOSIS" AND procedures.short_title = "Skin & subq dx proc NEC"
2,968
###HUMAN: What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju?, ###ASSISTANT: SELECT "Modern equivalent" FROM table_7759 WHERE "Post-1009 province" = 'gyeongsang -do' AND "Administrative district" = 'jinju -mok' AND "Province of Silla" = 'gangju'
2,969
###HUMAN: Who was the host of the premiere on November 10, 2007?, ###ASSISTANT: SELECT "Host" FROM table_7052 WHERE "Premiere" = 'november 10, 2007'
2,970
###HUMAN: Name the replaced by for 8 july 2009, ###ASSISTANT: SELECT "Replaced by" FROM table_2665 WHERE "Date of appointment" = '8 July 2009'
2,971
###HUMAN: Which circuit was the atcc round 7 at?, ###ASSISTANT: SELECT "Circuit" FROM table_61212 WHERE "Series" = 'atcc round 7'
2,972
###HUMAN: what was the last time that patient 022-98345 had volume (ml) propofol taken on 08/25/2102?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-98345')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'volume (ml) propofol' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) = '2102-08-25' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1
2,973
###HUMAN: i would like a flight from WASHINGTON to BOSTON on 8 20 at 1524, ###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 ((date_day.day_number = 20 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time = 1524 AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
2,974
###HUMAN: show me flights from BALTIMORE to DALLAS, ###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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
2,975
###HUMAN: In Spring or Summer what courses are on offer that meet the Other requirement ?, ###ASSISTANT: SELECT DISTINCT course.department, course.name, course.number, semester.semester 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 IN ('SP', 'SS', 'SU') AND semester.year = 2016
2,976
###HUMAN: What was the score for a no. 21 tie?, ###ASSISTANT: SELECT "Score" FROM table_51039 WHERE "Tie no" = '21'
2,977
###HUMAN: what is the number of patients with hispanic/latino ethnicity and with diagnosis icd9 code 42741?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND diagnoses.icd9_code = "42741"
2,978
###HUMAN: Top SO users from NYC., ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY u.Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, u.Location FROM Users AS u JOIN Badges AS b ON u.Id = b.UserId WHERE b.Name = 'javascript' AND b.Class = 3 AND u.Reputation >= 1000 AND (LOWER(u.Location) LIKE '%nyc%' OR UPPER(Location) LIKE '%NY, NY%' OR LOWER(Location) LIKE '%staten%' OR LOWER(Location) LIKE '%bronx%' OR LOWER(Location) LIKE '%queens%' OR LOWER(Location) LIKE '%new york, ny%' OR LOWER(Location) LIKE '%manhattan%' OR LOWER(Location) LIKE '%brooklyn%') ORDER BY u.Reputation DESC
2,979
###HUMAN: Which team has a home field at Glenferrie Oval?, ###ASSISTANT: SELECT "Home team" FROM table_32433 WHERE "Venue" = 'glenferrie oval'
2,980
###HUMAN: What is Record, when Date is 'March 1'?, ###ASSISTANT: SELECT "Record" FROM table_8365 WHERE "Date" = 'march 1'
2,981
###HUMAN: what is patient 027-82318's average value for cpk-mb index?, ###ASSISTANT: SELECT AVG(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 = '027-82318')) AND lab.labname = 'cpk-mb index'
2,982
###HUMAN: What is the title of the first episode of the season that begin on february 27, 1954?, ###ASSISTANT: SELECT "Title" FROM table_20317 WHERE "Original air date" = 'February 27, 1954'
2,983
###HUMAN: What is the date when Miranda Gore Browne was runner-up?, ###ASSISTANT: SELECT "Finale" FROM table_30849 WHERE "Runners-up" = 'Miranda Gore Browne'
2,984
###HUMAN: Who was the director for the film produced by River Films?, ###ASSISTANT: SELECT "Director" FROM table_40914 WHERE "Producer" = 'river films'
2,985
###HUMAN: what is the number of patients with acute vascular insufficiency of intestine who are less than 50 years of age?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "50" AND diagnoses.long_title = "Acute vascular insufficiency of intestine"
2,986
###HUMAN: How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?, ###ASSISTANT: SELECT COUNT("Pumpers") FROM table_8401 WHERE "Cars" = '1' AND "Staffing" = 'volunteer' AND "Brigade" = 'grovedale' AND "Tankers" < '1'
2,987
###HUMAN: Name the least frequency Mhz with call sign of k202ag, ###ASSISTANT: SELECT MIN("Frequency MHz") FROM table_37040 WHERE "Call sign" = 'k202ag'
2,988
###HUMAN: what is the highest gnis feature id# link a[ ] b[ ] when the name a[ ] is upper dewey lake dam?, ###ASSISTANT: SELECT MAX("GNIS Feature ID # Link A[\u203a ] B[\u203a ]") FROM table_14299 WHERE "Name A[\u203a ]" = 'upper dewey lake dam'
2,989
###HUMAN: what are the cheapest round trip flights from DENVER to ATLANTA, ###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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND fare.round_trip_cost = (SELECT MIN(FAREalias1.round_trip_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'DENVER' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'ATLANTA' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id
2,990
###HUMAN: what is the maximum lead margin on august 5, 2008?, ###ASSISTANT: SELECT MAX("Lead Margin") FROM table_72802 WHERE "Dates administered" = 'August 5, 2008'
2,991
###HUMAN: Tell me the score of misa eguchi eri hozumi, ###ASSISTANT: SELECT score FROM table_name_62 WHERE opponents = "misa eguchi eri hozumi"
2,992
###HUMAN: calculate the maximum days of hospitalization for patients with s/p hanging primary disease., ###ASSISTANT: SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "S/P HANGING"
2,993
###HUMAN: how many mean elevation with lowest point being gulf of mexico and state being texas, ###ASSISTANT: SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas"
2,994
###HUMAN: How many tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club?, ###ASSISTANT: SELECT "Tries for" FROM table_4940 WHERE "Losing bonus" = '5' AND "Club" = 'maesteg celtic rfc'
2,995
###HUMAN: male and female subjects, ###ASSISTANT: SELECT * FROM table_train_258 WHERE gender = 'male' OR gender = 'female'
2,996
###HUMAN: What is the 2011 Australian Open and a 2010 QF?, ###ASSISTANT: SELECT "2011" FROM table_12787 WHERE "Tournament" = 'australian open' AND "2010" = 'qf'
2,997
###HUMAN: When was Lachlan Dale born?, ###ASSISTANT: SELECT "D.O.B." FROM table_36220 WHERE "Surname" = 'dale' AND "First" = 'lachlan'
2,998
###HUMAN: How large was the crowd when the away team was melbourne?, ###ASSISTANT: SELECT "Crowd" FROM table_32310 WHERE "Away team" = 'melbourne'
2,999
###HUMAN: had patient 9964 received any laboratory test during this hospital visit?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9964 AND admissions.dischtime IS NULL)