instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
Questions with highest total reputation of answerers.
### Response:
|
SELECT RANK() OVER (ORDER BY SUM(u.Reputation) DESC) AS Rank, q.Id AS "post_link", SUM(u.Reputation) AS "total_reputation", COUNT(a.Id) AS "#_of_answers" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id INNER JOIN Users AS u ON u.Id = a.OwnerUserId GROUP BY q.Id ORDER BY SUM(u.Reputation) DESC LIMIT 100
|
### Instruction:
how many hours have passed since patient 032-21820 stayed in the ward 1063 for the last time in their current hospital visit?
### Response:
|
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-21820' AND patient.wardid = 1063 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1
|
### Instruction:
Are there set exams for Prof. James Pinto 's classes ?
### Response:
|
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 '%James Pinto%'
|
### Instruction:
the previous year, what were the five most common input events?
### Response:
|
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5
|
### Instruction:
most cited by tom mitchell and oren etzioni
### Response:
|
SELECT DISTINCT author.authorname, cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname IN ('tom mitchell', 'oren etzioni') AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid, author.authorname ORDER BY COUNT(cite.citedpaperid) DESC
|
### Instruction:
did patient 26262 have a laboratory test of amylase since 2104?
### Response:
|
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'amylase') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26262) AND STRFTIME('%y', labevents.charttime) >= '2104'
|
### Instruction:
Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones, and count them by a line chart, sort by the Date_of_Birth in desc.
### Response:
|
SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" ORDER BY Date_of_Birth DESC
|
### Instruction:
cardiogenic shock ( hypotension with systolic blood pressure ( sbp ) < 90 mmhg and tachycardia > 100 beats / min, not due to hypovolemia and requiring inotropic support or balloon counterpulsation ) ;
### Response:
|
SELECT * FROM table_test_21 WHERE cardiogenic_shock = 1 OR (hypotension = 1 AND systolic_blood_pressure_sbp < 90 AND tachycardia > 100)
|
### Instruction:
Top 100000 Posts and Answers by Tags.
### Response:
|
SELECT q.Id AS "post_link", q.Title AS Post_Title, q.Score AS Score, q.Body AS QuestionBody, a.Body AS AnswerBody FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE LOWER(q.Tags) LIKE LOWER('%##tag##%') AND q.AnswerCount > 5 AND a.PostTypeId = 2 ORDER BY Score DESC LIMIT 100000
|
### Instruction:
tell me the price of a procedure called endoscop dilate pylorus?
### Response:
|
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'endoscop dilate pylorus'))
|
### Instruction:
Show me CSP Readings Seminar courses that satisfy the PreMajor requirement .
### Response:
|
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%CSP Readings Seminar%' OR course.description LIKE '%CSP Readings Seminar%' OR course.name LIKE '%CSP Readings Seminar%') AND program_course.category LIKE '%PreMajor%'
|
### Instruction:
did patient 022-67644 underwent any procedure since 3 years ago?
### Response:
|
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-67644')) AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-3 year')
|
### Instruction:
show me the flight classes for DL
### Response:
|
SELECT DISTINCT class_of_service.booking_class FROM class_of_service, fare, fare_basis, flight, flight_fare WHERE fare_basis.booking_class = class_of_service.booking_class AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.airline_code = 'DL' AND flight.flight_id = flight_fare.flight_id
|
### Instruction:
Distribution of the VLQ review survivors by Log2 Reputation of the poster.
### Response:
|
WITH Raw AS (SELECT CAST(LN(Users.Reputation) / LN(2) AS INT) AS Log2Rep FROM ReviewTasks, Posts, Users WHERE ReviewTaskTypeId = 3 AND ReviewTasks.PostId = Posts.Id AND Users.Id = Posts.OwnerUserId) SELECT Log2Rep, 100.0 * COUNT(*) / (SELECT COUNT(*) FROM Raw) AS Pct FROM Raw GROUP BY Log2Rep ORDER BY Log2Rep
|
### Instruction:
posts of a user that are tagged as apex.
### Response:
|
SELECT DISTINCT u.DisplayName, CONCAT('https://stackoverflow.com/users/', u.Id) AS "profile_link", u.Location, u.AboutMe, u.Reputation FROM Users AS u, Posts AS q, Posts AS a WHERE u.Id = a.OwnerUserId AND a.ParentId = q.Id AND a.PostTypeId = 2 AND q.Tags LIKE '%apex%' AND q.PostTypeId = 1 ORDER BY u.Reputation DESC
|
### Instruction:
give me the number of patients whose procedure long title is continuous invasive mechanical ventilation for less than 96 consecutive hours and lab test category is chemistry?
### Response:
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Continuous invasive mechanical ventilation for less than 96 consecutive hours" AND lab."CATEGORY" = "Chemistry"
|
### Instruction:
Give me a histogram for what are all the employee ids and the names of the countries in which they work?
### Response:
|
SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME
|
### Instruction:
what is the name of the lab testing that patient 29611 first received during the last hospital encounter?
### Response:
|
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 29611 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) ORDER BY labevents.charttime LIMIT 1)
|
### Instruction:
What time of day are badges awarded?.
### Response:
|
WITH hours AS (SELECT 0 AS value UNION ALL SELECT value + 1 AS value FROM hours WHERE hours.value < 24 - 1), minutes AS (SELECT 0 AS value UNION ALL SELECT value + 5 AS value FROM minutes WHERE minutes.value < 60 - 5) SELECT hours.value + (minutes.value / 60.0) AS "bucket", TIMEFROMPARTS(hours.value, minutes.value, 0, 0, 0) FROM minutes CROSS JOIN hours
|
### Instruction:
what is the number of patients diagnosed with family history of malignant neoplasm of other organs or systems who are on base type drug prescription?
### Response:
|
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.short_title = "Family hx-malignancy NEC" AND prescriptions.drug_type = "BASE"
|
### Instruction:
tell me what the top five most common output events were last year?
### Response:
|
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5
|
### Instruction:
what was the name of procedure that patient 027-32001 were last received in this hospital encounter?
### Response:
|
SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-32001' AND patient.hospitaldischargetime IS NULL)) ORDER BY treatment.treatmenttime DESC LIMIT 1
|
### Instruction:
All the Minecraft, with usernames.
### Response:
|
SELECT a.Body, a.Score, a.OwnerUserId, a.CreationDate, t.Name AS Type, u.Reputation, u.DisplayName, u.Location, a.ParentId FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id INNER JOIN PostTypes AS t ON a.PostTypeId = t.Id INNER JOIN Users AS u ON a.OwnerUserId = u.Id WHERE q.Tags LIKE '%minecraft%' OR q.Title LIKE '%minecraft%'
|
### Instruction:
Reputation of users created over time.
### Response:
|
SELECT t.Year, t.Month, AVG(t.Reputation) AS AvgReputation, MAX(t.Reputation) AS MaxReputation FROM (SELECT TIME_TO_STR(CreationDate, '%Y') AS Year, TIME_TO_STR(CreationDate, '%m') AS Month, TIME_TO_STR(CreationDate, '%d') AS Day, Reputation FROM Users WHERE Reputation >= 15) AS t GROUP BY YEAR, Month ORDER BY YEAR DESC, Month DESC
|
### Instruction:
What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 6.4 gt/s qpi I/O?
### Response:
|
SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = "1 × 6.4 gt/s qpi" AND part_number_s_ = "bx80601975at80601002274aa"
|
### Instruction:
Count the number of Deputy with less than 10K reputation. Compute how much user with deputy badge does not have access to moderation tool. Also show the average reputation of those users. Also show the average reputation of those users.
Parameter used to filter on the minimum global reputation
### Response:
|
SELECT COUNT(*) AS Total, AVG(Reputation) AS avergage_reputation FROM Badges INNER JOIN Users ON Users.Id = Badges.UserId WHERE Name LIKE 'Deputy' AND Reputation < 10000 AND Reputation >= '##Rep##'
|
### Instruction:
what was the output of patient 017-49538 for the first time,?
### Response:
|
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-49538')) AND intakeoutput.cellpath LIKE '%output%' ORDER BY intakeoutput.intakeoutputtime LIMIT 1
|
### Instruction:
how many times did the hrt revas byps anas nec procedure take place until 2 years ago?
### Response:
|
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'hrt revas byps anas nec') AND DATETIME(procedures_icd.charttime) <= DATETIME(CURRENT_TIME(), '-2 year')
|
### Instruction:
just count how many patients have been prescribed insulin lispro 100 units/ml subq soln since 6 years ago.
### Response:
|
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'insulin lispro 100 units/ml subq soln' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-6 year'))
|
### Instruction:
what is the geo id when the land (sqmi) is less than 36.112, the latitude is more than 47.536618, the township is west bay and water (sqmi) is more than 0.209?
### Response:
|
SELECT SUM(geo_id) FROM table_name_21 WHERE land___sqmi__ < 36.112 AND latitude > 47.536618 AND township = "west bay" AND water__sqmi_ > 0.209
|
### Instruction:
show me the length of time patient 006-17553 was in the icu for the first time.
### Response:
|
SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-17553') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1
|
### Instruction:
what is first weight of patient 027-120551 since 90 months ago.
### Response:
|
SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-120551') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-90 month') ORDER BY patient.unitadmittime LIMIT 1
|
### Instruction:
What Foundations of Intergroup Relations courses can I take to fill the Core requirement ?
### Response:
|
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Foundations of Intergroup Relations%' OR course.description LIKE '%Foundations of Intergroup Relations%' OR course.name LIKE '%Foundations of Intergroup Relations%') AND program_course.category LIKE '%Core%'
|
### Instruction:
what is [ ] when [ / ] is [t ]?
### Response:
|
SELECT "\u0413\u04d9 \u0433\u04d9 [\u0261\u02b7]" FROM table_23619 WHERE "\u0494\u044c \u0495\u044c [\u0281\u02b2/\u0263\u02b2]" = 'Ҭә ҭә [tʷʰ]'
|
### Instruction:
did patient 1457 get a lab magnesium test since 2 years ago?
### Response:
|
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1457) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')
|
### Instruction:
Number of questions with ViewCount > nviews.
### Response:
|
WITH TaggedPosts AS (SELECT ViewCount FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%##tagSubstring?python##%'), MostViewedQuestions AS (SELECT Count = COUNT(*) FROM TaggedPosts WHERE ViewCount > '##nviews:int?10000##') SELECT Count, CAST(Count AS FLOAT(20, 5)) * 100.0 / (SELECT COUNT(*) FROM TaggedPosts) AS Percentile FROM MostViewedQuestions
|
### Instruction:
when was the first time that , patient 030-10407 had the maximum of rdw?
### Response:
|
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-10407')) AND lab.labname = 'rdw' ORDER BY lab.labresult DESC, lab.labresulttime LIMIT 1
|
### Instruction:
when was patient 3929 for the first time prescribed a drug via ou route until 01/2105?
### Response:
|
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3929) AND prescriptions.route = 'ou' AND STRFTIME('%y-%m', prescriptions.startdate) <= '2105-01' ORDER BY prescriptions.startdate LIMIT 1
|
### Instruction:
Is the site ready for the Generalist Badge?. Lists the top 40 tags, how many times they're used each, and how many questions are needed with that tag so that the Site is eligible for the Generalist badge
### Response:
|
SELECT TagName, COUNT(p.TagId) AS "Uses", 200 - COUNT(p.TagId) AS "Questions Needed WITH this Tag Left" FROM Tags AS t INNER JOIN PostTags AS p ON p.TagId = t.Id GROUP BY t.TagName ORDER BY Uses DESC LIMIT 40
|
### Instruction:
did patient 013-38992 have an allergic reaction to anything in 2105?
### Response:
|
SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-38992')) AND STRFTIME('%y', allergy.allergytime) = '2105'
|
### Instruction:
how much do patients pay to get a diagnosis of cardiac tamponade?
### Response:
|
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cardiac tamponade'))
|
### Instruction:
provide me with the top five most common intake until 2100?
### Response:
|
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE STRFTIME('%y', inputevents_cv.charttime) <= '2100' GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 5)
|
### Instruction:
What are the enrollment dates of all the tests that have result 'Pass', and count them by a line chart, I want to show by the x axis in desc please.
### Response:
|
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" GROUP BY date_of_enrolment ORDER BY date_of_enrolment DESC
|
### Instruction:
[draft] How many upvotes do I have for each tag?. How many upvotes do I have for each tag? (how long before I get tag badges?)
### Response:
|
SELECT TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE Posts.OwnerUserId = @UserId GROUP BY TagName ORDER BY UpVotes DESC
|
### Instruction:
Most prolific answerers during date interval, mean answer score.
### Response:
|
SELECT OwnerUserId AS "user_link", COUNT(*) AS Answers, ROUND(1.0 * COUNT(*) / '##DaysBack##', 1) AS "Answers per day", ROUND(1.0 * SUM(Score) / COUNT(*), 2) AS "Mean Answer Score" FROM Posts WHERE CreationDate BETWEEN @StartDate AND @EndDate AND PostTypeId = 2 GROUP BY OwnerUserId ORDER BY Answers DESC LIMIT 50
|
### Instruction:
what is the number of patients whose ethnicity is black/cape verdean and diagnoses long title is pseudomonas infection in conditions classified elsewhere and of unspecified site?
### Response:
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND diagnoses.long_title = "Pseudomonas infection in conditions classified elsewhere and of unspecified site"
|
### Instruction:
What are the number of the enrollment dates of all the tests that have result 'Pass'?, and display from low to high by the date_of_enrolment please.
### Response:
|
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" GROUP BY date_of_enrolment ORDER BY date_of_enrolment
|
### Instruction:
What is the number of each allergie the girl named Lisa has? Plot them as bar chart, and sort by the total number in asc.
### Response:
|
SELECT T1.Allergy, COUNT(T1.Allergy) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY T1.Allergy ORDER BY T1.Allergy
|
### Instruction:
how many patients are diagnosed with unspecified osteomyelitis of other specified sites and suggested to take the additive drug type?
### Response:
|
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.long_title = "Unspecified osteomyelitis, other specified sites" AND prescriptions.drug_type = "ADDITIVE"
|
### Instruction:
find unanswered question of users with reputation lower than 102. find unanswered question of users with reputation lower than 102
### Response:
|
SELECT q.Id, q.Title, 'https://math.stackexchange.com/questions/' + CAST(q.Id AS TEXT(16)), q.Tags FROM Posts AS q INNER JOIN Users AS u ON u.Id = q.OwnerUserId WHERE u.Reputation < 102 AND q.PostTypeId = 1 AND q.AcceptedAnswerId IS NULL ORDER BY q.LastEditDate DESC
|
### Instruction:
give me the number of patients whose procedure long title is umbilical vein catheterization and lab test fluid is cerebrospinal fluid (csf)?
### Response:
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Umbilical vein catheterization" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
|
### Instruction:
what are the classes of service for AA
### Response:
|
SELECT DISTINCT class_of_service.booking_class FROM class_of_service, fare, fare_basis, flight, flight_fare WHERE fare_basis.booking_class = class_of_service.booking_class AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.airline_code = 'AA' AND flight.flight_id = flight_fare.flight_id
|
### Instruction:
what is the minimum total cost of a hospital that includes a medicine called fenofibrate micronized in 2105?
### Response:
|
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'fenofibrate micronized') AND STRFTIME('%y', cost.chargetime) = '2105' GROUP BY cost.hadm_id) AS t1
|
### Instruction:
Name the 10 4 k /min 1 (30 c) ( 1-2%) relative for 17.3
### Response:
|
SELECT "10 4 k /min \u22121 (30 \u00b0C) (\u00b1 1-2%) relative" FROM table_2272 WHERE "10 4 k /min \u22121 (30 \u00b0C) (\u00b1 1-2%) absolute" = '17.3'
|
### Instruction:
Users with the most Community Wiki Answers.
### Response:
|
SELECT U.Id AS "user_link", COUNT(Ph.PostHistoryTypeId) AS "total" FROM Posts AS P, Users AS U, PostTypes AS Pt, PostHistory AS Ph WHERE U.Id = P.OwnerUserId AND Pt.Id = P.PostTypeId AND Pt.Id = 2 AND P.Id = Ph.PostId AND Ph.PostHistoryTypeId = 16 GROUP BY U.Id HAVING COUNT(Ph.PostHistoryTypeId) > 100
|
### Instruction:
how much is the minimum cost for a hospital that contains sutent during this year?
### Response:
|
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'sutent') AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY cost.hadm_id) AS t1
|
### Instruction:
has patient 027-82318 undergone a sedative agent procedure during their current hospital encounter?
### Response:
|
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'sedative agent'
|
### Instruction:
These Are Your Father's Parentheses.
### Response:
|
SELECT age, COUNT(*) AS programmers, SUM(Reputation) AS total_reputation, SUM(Reputation) / COUNT(*) AS normed_reputation FROM Users WHERE NOT age IS NULL AND age BETWEEN 18 AND 70 AND Users.Id IN (SELECT Users.Id FROM Users, Posts AS answers WHERE answers.PostTypeId = 2 AND Users.Id = answers.OwnerUserId AND YEAR(answers.CreationDate) = 2012) GROUP BY age ORDER BY age
|
### Instruction:
get me patient 27451's total output volume until 2031 days ago.
### Response:
|
SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27451)) AND DATETIME(outputevents.charttime) <= DATETIME(CURRENT_TIME(), '-2031 day')
|
### Instruction:
what did patient 17286 receive for his or her first procedure?
### Response:
|
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17286) ORDER BY procedures_icd.charttime LIMIT 1)
|
### Instruction:
this year, what were the five most common input events?
### Response:
|
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5
|
### Instruction:
tell me the top three most common intake last year?
### Response:
|
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3
|
### Instruction:
How many upvotes do I have for each tag (by User Name)?. how long before I get tag badges?
### Response:
|
SELECT TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Users ON Posts.OwnerUserId = Users.Id INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE Users.DisplayName = @UserName GROUP BY TagName ORDER BY UpVotes DESC
|
### Instruction:
Users who posted the most recent comments.
### Response:
|
WITH recent_cte AS (SELECT UserId AS uid, MAX(Id) AS MaxId FROM Comments WHERE (CreationDate >= '##datemin?2018-01-01##') GROUP BY UserId) SELECT uid AS "user_link", c.CreationDate, MaxId AS "comment_link", c.PostId AS "post_link", c.Text FROM recent_cte INNER JOIN Comments AS c ON MaxId = c.Id ORDER BY c.CreationDate DESC
|
### Instruction:
what's the five most frequent input event since 2105?
### Response:
|
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE STRFTIME('%y', inputevents_cv.charttime) >= '2105' GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 5)
|
### Instruction:
provide the number of patients whose diagnoses long title is infection with microorganisms resistant to penicillins and lab test category is chemistry?
### Response:
|
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 = "Infection with microorganisms resistant to penicillins" AND lab."CATEGORY" = "Chemistry"
|
### Instruction:
give the number of patients whose diagnoses long title is personal history of malignant neoplasm of bladder and lab test abnormal status is abnormal.
### Response:
|
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 = "Personal history of malignant neoplasm of bladder" AND lab.flag = "abnormal"
|
### Instruction:
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of first_name and commission_pct , I want to show by the Y-axis from high to low.
### Response:
|
SELECT FIRST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC
|
### Instruction:
Users Min Reputation and Posts, but low Votes..
### Response:
|
SELECT Users.Id AS "user_link", Reputation, UpVotes + DownVotes AS Votes, COUNT(Posts.Id) AS "posts_count" FROM Users INNER JOIN Posts ON Users.Id = Posts.OwnerUserId WHERE UpVotes + DownVotes <= @MaxVotes AND Reputation >= @MinRep GROUP BY Users.Id, Reputation, UpVotes, DownVotes HAVING COUNT(Posts.Id) >= @MinPostCount ORDER BY Reputation DESC
|
### Instruction:
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the average of salary bin hire_date by time.
### Response:
|
SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
|
### Instruction:
when a month before patient 14054 received a microbiology test for the first time?
### Response:
|
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14054) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY microbiologyevents.charttime LIMIT 1
|
### Instruction:
Possible Silencium candidates, with comments on the Q after posting the A.
### Response:
|
SELECT a.Id AS "post_link" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id LEFT OUTER JOIN Comments AS c ON c.PostId = q.Id AND c.CreationDate < a.CreationDate WHERE a.Score >= 7 AND a.CommentCount = 0 AND q.CommentCount > 0 AND a.CreationDate >= '2017-12-13' AND c.Id IS NULL
|
### Instruction:
What is the number of patients discharged to psychiatric facility-partial hospitalization who had a (aorto)coronary bypass of three coronary arteries procedure?
### Response:
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND procedures.long_title = "(Aorto)coronary bypass of three coronary arteries"
|
### Instruction:
upvotes vs downvotes by user.
### Response:
|
SELECT Id AS "user_link", ROUND(CAST(UpVotes AS FLOAT) / (UpVotes + DownVotes), 2) AS upFrac, ROUND(CAST(DownVotes AS FLOAT) / (UpVotes + DownVotes), 2) AS downFrac, UpVotes + DownVotes AS numVotes, Reputation FROM Users WHERE UpVotes + DownVotes > '##minVotes?25##' ORDER BY numVotes DESC
|
### Instruction:
how many patients have actually had a urea nitrogen, body fluid test until 3 years ago?
### Response:
|
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen, body fluid') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-3 year'))
|
### Instruction:
when the last time patient 76332 had a phosphate lab test in their current hospital encounter?
### Response:
|
SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'phosphate') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76332 AND admissions.dischtime IS NULL) ORDER BY labevents.charttime DESC LIMIT 1
|
### Instruction:
how many times did patient 021-196241 during this year go to the icu?
### Response:
|
SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-196241') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
|
### Instruction:
Top 100 questions by tags in the last year (sorted by viewcount).
### Response:
|
SELECT Id, Title, CreationDate, Tags, ClosedDate, FavoriteCount, ViewCount, Score FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%##TagName1##%' AND Tags LIKE '%##TagName2##%' AND NOT Tags LIKE '%##ExcludedTag##%' AND Posts.CreationDate > CURRENT_TIMESTAMP() - 365 ORDER BY ViewCount DESC, FavoriteCount DESC, Score DESC LIMIT 100
|
### Instruction:
Comments on my questions containing the given phrase (case insensitive).
### Response:
|
SELECT c.Id AS "comment_link", c.Text, c.UserId AS "user_link", c.CreationDate FROM Comments AS c INNER JOIN Posts AS p ON c.PostId = p.Id WHERE (p.OwnerUserId = '##UserId?8297##') AND (c.Text LIKE '%##Word?chat##%' COLLATE Latin1_General_CI_AI) AND (p.PostTypeId = '##type?1##')
|
### Instruction:
what is [ / ] when [ ] is [t ]?
### Response:
|
SELECT "\u0494\u044c \u0495\u044c [\u0281\u02b2/\u0263\u02b2]" FROM table_23624 WHERE "\u0413\u044c \u0433\u044c [\u0261\u02b2]" = 'Ҷ ҷ [t͡ʃʼ]'
|
### Instruction:
How many upvotes do I have for each tag this year?. how long before I get tag badges?
### Response:
|
SELECT TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE Posts.OwnerUserId = @UserId AND YEAR(Posts.CreationDate) = @Year GROUP BY TagName ORDER BY UpVotes DESC
|
### Instruction:
how many patients whose procedure long title is central venous catheter placement with guidance and lab test fluid is cerebrospinal fluid (csf)?
### Response:
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Central venous catheter placement with guidance" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
|
### Instruction:
Get Answers on User when others have been accepted.
### Response:
|
SELECT Question.Id, Question.AcceptedAnswerId, Question.CreationDate, Question.Score AS QScore, Question.Body AS QBody, Question.Tags, Answer.Score AS AScore FROM Posts AS Question INNER JOIN (SELECT ParentId, Id, Score FROM Posts WHERE OwnerUserId = 5620297 AND PostTypeId = 2) AS Answer ON Question.Id = Answer.ParentId AND Question.AcceptedAnswerId != Answer.Id AND Answer.Score < 1
|
### Instruction:
there is a microbiological test result for patient 74392's urine until 107 months ago?
### Response:
|
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 74392) AND microbiologyevents.spec_type_desc = 'urine' AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-107 month')
|
### Instruction:
Who is the instructor for course MATSCIE 360 ?
### Response:
|
SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'MATSCIE' AND course.number = 360 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id
|
### Instruction:
How many players having an injury of 'Foot injury' or 'Knee problem' in each season? Draw a bar chart, and list y-axis from low to high order.
### Response:
|
SELECT Season, COUNT(Season) FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.Injury = 'Foot injury' OR T3.Injury = 'Knee problem' ORDER BY COUNT(Season)
|
### Instruction:
when was patient 77177 prescribed medications through the iv drip route for the last time in their last hospital encounter?
### Response:
|
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 77177 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND prescriptions.route = 'iv drip' ORDER BY prescriptions.startdate DESC LIMIT 1
|
### Instruction:
what was the total amount of output for patient 25814 since 775 days ago?
### Response:
|
SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25814)) AND DATETIME(outputevents.charttime) >= DATETIME(CURRENT_TIME(), '-775 day')
|
### Instruction:
Popular tags trends over years.
### Response:
|
SELECT YEAR(CreationDate) AS y, TagName, COUNT(*) FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN (SELECT tb.Id, tb.TagName, COUNT(*) AS cnt FROM PostTags AS b LEFT OUTER JOIN Tags AS tb ON b.TagId = tb.Id GROUP BY tb.Id, tb.TagName) AS t ON pt.TagId = t.Id GROUP BY YEAR(CreationDate), TagName ORDER BY TagName, y
|
### Instruction:
What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5?
### Response:
|
SELECT COUNT("CO 2 g/km") FROM table_66549 WHERE "Fuel Type" = 'diesel' AND "Manufacturer" = 'fiat' AND "L/100km Urban (Cold)" > '6.3' AND "mpg-UK Combined" = '43.5'
|
### Instruction:
when did patient 90663 get admitted into the hospital via clinic referral/premature for the first time during this year?
### Response:
|
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 90663 AND admissions.admission_location = 'clinic referral/premature' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime LIMIT 1
|
### Instruction:
calculate the duration of stay during patient 007-4322's first stay in the intensive care unit.
### Response:
|
SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-4322') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1
|
### Instruction:
What is the number of each allergie the girl named Lisa has? Plot them as bar chart, rank X in descending order.
### Response:
|
SELECT T1.Allergy, COUNT(T1.Allergy) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY T1.Allergy ORDER BY T1.Allergy DESC
|
### Instruction:
Users By Last Access Date.
### Response:
|
SELECT (YEAR(LastAccessDate) + (CAST(MONTH(LastAccessDate) AS FLOAT) / 12)) AS GraphPoint, COUNT(*) AS NumUsers FROM Users WHERE (YEAR(LastAccessDate) != YEAR(CURRENT_TIMESTAMP()) OR MONTH(LastAccessDate) != MONTH(CURRENT_TIMESTAMP())) GROUP BY YEAR(LastAccessDate), MONTH(LastAccessDate) ORDER BY YEAR(LastAccessDate), MONTH(LastAccessDate)
|
### Instruction:
Questions with a given string that a given user answered.
### Response:
|
SELECT q.Id AS "post_link", q.Score AS "question_score", q.ViewCount, q.Tags, a.Score AS "answer_score" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE a.OwnerUserId = '##UserID:int##' AND (q.Body LIKE '%' + '##SearchString:string##' + '%' OR q.Title LIKE '%' + '##SearchString:string##' + '%')
|
### Instruction:
what lab tests were given to patient 99082 for the first time on their last hospital encounter?
### Response:
|
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99082 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) ORDER BY labevents.charttime LIMIT 1)
|
### Instruction:
how many hours has it been since the last stay of patient 027-149724 in the ward 957 in this hospital visit?
### Response:
|
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-149724' AND patient.wardid = 957 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1
|
### Instruction:
how many times was the linear rep lid lacer procedure carried out during a year before?
### Response:
|
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'linear rep lid lacer') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
|
### Instruction:
give me the number of patients whose diagnoses long title is unspecified disorder of kidney and ureter and drug type is main?
### Response:
|
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.long_title = "Unspecified disorder of kidney and ureter" AND prescriptions.drug_type = "MAIN"
|
### Instruction:
count the number of patients whose procedure long title is replacement of tube or enterostomy device of small intestine and lab test category is blood gas?
### Response:
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Replacement of tube or enterostomy device of small intestine" AND lab."CATEGORY" = "Blood Gas"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.