how many patients were born before the year 2060?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DOB_YEAR" < "2060"

how many patients were born before the year 2060 ?

Answer: 10386


how many patients had the diagnosis icd9 code 53190?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."ICD9_CODE" = "53190"

how many patients had the diagnosis icd9 code 53190 ?

Answer: 153


let me know the number of patients who have diagnosis icd9 code 9951.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."ICD9_CODE" = "9951"

let me know the number of patients who have diagnosis icd9 code 9951 .

Answer: 127


what is the total number of patiemts who had crnry athrscl natve vssl?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."SHORT_TITLE" = "Crnry athrscl natve vssl"

what is the total number of patiemts who had crnry athrscl natve vssl ?

Answer: 10775


give me the number of patients who have been diagnosed with tobacco use disorder.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."SHORT_TITLE" = "Tobacco use disorder"

give me the number of patients who have been diagnosed with tobacco use disorder .

Answer: 3001


count the number of patients whose diagnosis short title is retain plastic fragments.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."SHORT_TITLE" = "Retain plastic fragments"

count the number of patients whose diagnosis short title is retain plastic fragments .

Answer: 1


provide me the number of patients who have been diagnosed with chordae tendinae rupture.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."SHORT_TITLE" = "Chordae tendinae rupture"

provide me the number of patients who have been diagnosed with chordae tendinae rupture .

Answer: 87


how many of the patients had hemorrhage complicating a procedure?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."LONG_TITLE" = "Hemorrhage complicating a procedure"

how many of the patients had hemorrhage complicating a procedure ?

Answer: 1498


find the number of patients diagnosed with mitral valve disorders.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES."LONG_TITLE" = "Mitral valve disorders"

find the number of patients diagnosed with mitral valve disorders .

Answer: 2651


Calulate the total number of patients who had icd9 code 5771

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES."ICD9_CODE" = "5771"

Answer: 55


provide the number of patients whose procedure icd9 code is 8848.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES."ICD9_CODE" = "8848"

provide the number of patients whose procedure icd9 code is 8848 .

Answer: 546


calculate the total number of patients who had radiotherapeut proc nec

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES."SHORT_TITLE" = "Radiotherapeut proc NEC"

Answer: 252


give me the number of patients who had single internal mammary-coronary artery bypass.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES."SHORT_TITLE" = "1 int mam-cor art bypass"

give me the number of patients who had single internal mammary - coronary artery bypass .

Answer: 4397


SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."DRUG" = "Zyrtec"

Answer: 18


How many patients have a diphenhydramine prescription?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."DRUG" = "DiphenhydrAMINE"

How many patients have a diphenhydramine prescription ?

Answer: 3275


what number of patients were given the drug oxycodone sr (oxycontin)?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."DRUG" = "Oxycodone SR (OxyconTIN)"

what number of patients were given the drug oxycodone sr ( oxycontin ) ?

Answer: 801


how many patients use the neonatal syringe?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."DRUG" = "Syringe (Neonatal)"

how many patients use the neonatal syringe ?

Answer: 1044


which patients are on bethanechol prescription?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."DRUG" = "Bethanechol"

which patients are on bethanechol prescription ?

Answer: 34


how many patients used the drug name capso fungin?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."DRUG" = "Caspofungin"

how many patients used the drug name capso fungin ?

Answer: 376


How many patients used the drug code ergo400t?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."FORMULARY_DRUG_CD" = "ERGO400T"

How many patients used the drug code ergo400t ?

Answer: 2783


how many patients uses the drug code hepa10syr?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS."FORMULARY_DRUG_CD" = "HEPA10SYR"

how many patients uses the drug code hepa10syr ?

Answer: 5885


how many patients have lab test item id 50817?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB."ITEMID" = "50817"

how many patients have lab test item i d 50817 ?

Answer: 17083


which patients have lab test item id 50953?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB."ITEMID" = "50953"

which patients have lab test item i d 50953 ?

Answer: 7902


How many of the married patients were born before 2064

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."MARITAL_STATUS" = "MARRIED" AND DEMOGRAPHIC."DOB_YEAR" < "2064"

Answer: 5595


How many married patients died in or before 2165?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."MARITAL_STATUS" = "MARRIED" AND DEMOGRAPHIC."DOD_YEAR" <= "2165.0"

How many married patients died in or before 2165 ?

Answer: 4532


what number of married patients suffered from other convulsions?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."MARITAL_STATUS" = "MARRIED" AND DIAGNOSES."LONG_TITLE" = "Other convulsions"

what number of married patients suffered from other convulsions ?

Answer: 706


How many single patients had a diagnosis long title protal hypertension?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."MARITAL_STATUS" = "SINGLE" AND DIAGNOSES."LONG_TITLE" = "Portal hypertension"

How many single patients had a diagnosis long title protal hypertension ?

Answer: 283


what number of married patients underwent the procedure titled radiotherapeut proc nec?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."MARITAL_STATUS" = "MARRIED" AND PROCEDURES."SHORT_TITLE" = "Radiotherapeut proc NEC"

what number of married patients underwent the procedure titled radiotherapeut proc nec ?

Answer: 144


get the number of married patients who had insertion of drug-eluting coronary artery stent(s).

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."MARITAL_STATUS" = "MARRIED" AND PROCEDURES."SHORT_TITLE" = "Ins drug-elut coronry st"

get the number of married patients who had insertion of drug - eluting coronary artery stent(s ) .

Answer: 658


find the number of female patients whose year of birth is before 2197.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."GENDER" = "F" AND DEMOGRAPHIC."DOB_YEAR" < "2197"

find the number of female patients whose year of birth is before 2197 .

Answer: 20252


provide me with the number of male patients who had diagnosis icd9 code 25002.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "M" AND DIAGNOSES."ICD9_CODE" = "25002"

provide me with the number of male patients who had diagnosis icd9 code 25002 .

Answer: 242


how many female patients had the diagnosis short title bacteremia?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "F" AND DIAGNOSES."SHORT_TITLE" = "Bacteremia"

how many female patients had the diagnosis short title bacteremia ?

Answer: 564


find the number of female patients whose diagnoses is titled lap surg convert to open.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "F" AND DIAGNOSES."SHORT_TITLE" = "Lap surg convert to open"

find the number of female patients whose diagnoses is titled lap surg convert to open .

Answer: 70


how many female patients are diagnosed with unspecified constipation?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "F" AND DIAGNOSES."LONG_TITLE" = "Constipation, unspecified"

how many female patients are diagnosed with unspecified constipation ?

Answer: 426


find the female patients who have procedure icd9 code 3727.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "F" AND PROCEDURES."ICD9_CODE" = "3727"

find the female patients who have procedure icd9 code 3727 .

Answer: 81


how many female patients underwent the procedure of abdomen artery incision?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "F" AND PROCEDURES."SHORT_TITLE" = "Abdomen artery incision"

how many female patients underwent the procedure of abdomen artery incision ?

Answer: 22


how many male patients had the drug code mepe50i?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "M" AND PRESCRIPTIONS."FORMULARY_DRUG_CD" = "MEPE50I"

how many male patients had the drug code mepe50i ?

Answer: 3647


how many male patients had the drug code lipid250i?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "M" AND PRESCRIPTIONS."FORMULARY_DRUG_CD" = "LIPID250I"

how many male patients had the drug code lipid250i ?

Answer: 20


how many male patients have undergone the lab test for ferritin?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."GENDER" = "M" AND LAB."LABEL" = "Ferritin"

how many male patients have undergone the lab test for ferritin ?

Answer: 4084


how many patients aged less than 45 years speak the language port?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."LANGUAGE" = "PORT" AND DEMOGRAPHIC."AGE" < "45"

how many patients aged less than 45 years speak the language port ?

Answer: 101


find the number of russian speaking patients who are diagnosed with proteus infection nos.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."LANGUAGE" = "RUSS" AND DIAGNOSES."SHORT_TITLE" = "Proteus infection NOS"

find the number of russian speaking patients who are diagnosed with proteus infection nos .

Answer: 8


get the number of jehovah's witness religious background patients who are less than 71 years of age.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."RELIGION" = "JEHOVAH'S WITNESS" AND DEMOGRAPHIC."AGE" < "71"

get the number of jehovah 's witness religious background patients who are less than 71 years of age .

Answer: 79


how many patients follow the protestant quaker religion and were diagnosed with pressure ulcer, stage i?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."RELIGION" = "PROTESTANT QUAKER" AND DIAGNOSES."SHORT_TITLE" = "Pressure ulcer, stage I"

how many patients follow the protestant quaker religion and were diagnosed with pressure ulcer , stage i ?

Answer: 16


give me the number of patients admitted before the year 2135 who had elective admission.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "ELECTIVE" AND DEMOGRAPHIC."ADMITYEAR" < "2135"

give me the number of patients admitted before the year 2135 who had elective admission .

Answer: 2481


show the number of admissions before the year 2177 whose admission type is newborn.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "NEWBORN" AND DEMOGRAPHIC."ADMITYEAR" < "2177"

show the number of admissions before the year 2177 whose admission type is newborn .

Answer: 5992


give the number of patients whose admission type is emergency and diagnosis icd9 code is 40391.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND DIAGNOSES."ICD9_CODE" = "40391"

give the number of patients whose admission type is emergency and diagnosis icd9 code is 40391 .

Answer: 1602


how many patients with an emergency admission type had the diagnosis icd9 code 2763?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND DIAGNOSES."ICD9_CODE" = "2763"

how many patients with an emergency admission type had the diagnosis icd9 code 2763 ?

Answer: 871


how many patients with an emergency admission type had the diagnosis icd9 code 56210?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND DIAGNOSES."ICD9_CODE" = "56210"

how many patients with an emergency admission type had the diagnosis icd9 code 56210 ?

Answer: 690


what is the number of patients with admission type elective and diagnosed with drug induced neutropenia?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "ELECTIVE" AND DIAGNOSES."LONG_TITLE" = "Drug induced neutropenia"

what is the number of patients with admission type elective and diagnosed with drug induced neutropenia ?

Answer: 5


how many patients are with elective admission type and with procedure icd9 code 252?

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."ICD9_CODE" = "252"

how many patients are with elective admission type and with procedure icd9 code 252 ?

Answer: 6


Look for the number of elective hospital admission patients who had a unilateral radical neck dissection procedure.

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."SHORT_TITLE" = "Unilat rad neck dissect"

Look for the number of elective hospital admission patients who had a unilateral radical neck dissection procedure .

Answer: 31


look for the number of emergency hospital admitted patients who had cont inv mec ven 96+ hrs as short title of procedure .

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND PROCEDURES."SHORT_TITLE" = "Cont inv mec ven 96+ hrs"

look for the number of emergency hospital admitted patients who had cont inv mec ven 96 + hrs as short title of procedure .

Answer: 4669


give me the number of patients admitted on an emergency basis who had prescription for timolol maleate 0.5%.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND PRESCRIPTIONS."DRUG" = "Timolol Maleate 0.5%"

give me the number of patients admitted on an emergency basis who had prescription for timolol maleate 0.5 % .

Answer: 298


Calculate the number of patients admitted to emergency who had an ld body fluid test by lab

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND LAB."LABEL" = "LD, Body Fluid"

Answer: 341


what is the number of emergency hospital admission patients who had manual reticulocyte count lab test?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."ADMISSION_TYPE" = "EMERGENCY" AND LAB."LABEL" = "Reticulocyte Count, Manual"

what is the number of emergency hospital admission patients who had manual reticulocyte count lab test ?

Answer: 618


count the number of patients under the age of 74 whose insurance is self pay.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."INSURANCE" = "Self Pay" AND DEMOGRAPHIC."AGE" < "74"

count the number of patients under the age of 74 whose insurance is self pay .

Answer: 582


count the number of patients who were born before 2104 and have medicare insurance .

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."INSURANCE" = "Medicare" AND DEMOGRAPHIC."DOB_YEAR" < "2104"

Answer: 16311


how many patients are with medicare insurance and admitted before 2187?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."INSURANCE" = "Medicare" AND DEMOGRAPHIC."ADMITYEAR" < "2187"

how many patients are with medicare insurance and admitted before 2187 ?

Answer: 17927


find the number of patients admitted before the year 2154 who had medicare insurance.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."INSURANCE" = "Medicare" AND DEMOGRAPHIC."ADMITYEAR" < "2154"

find the number of patients admitted before the year 2154 who had medicare insurance .

Answer: 11099


how many white patients had the primary disease bradycardia?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "WHITE" AND DEMOGRAPHIC."DIAGNOSIS" = "BRADYCARDIA"

how many white patients had the primary disease bradycardia ?

Answer: 80


how many patients of american indian/alaska native ethnicity are younger than 67 years of age?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "AMERICAN INDIAN/ALASKA NATIVE" AND DEMOGRAPHIC."AGE" < "67"

how many patients of american indian/alaska native ethnicity are younger than 67 years of age ?

Answer: 38


How many of the patients from a black/haitian ethnic origin were aged below 68?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "BLACK/HAITIAN" AND DEMOGRAPHIC."AGE" < "68"

How many of the patients from a black/haitian ethnic origin were aged below 68 ?

Answer: 52


how many asian patients are less than 67 years of age?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "ASIAN" AND DEMOGRAPHIC."AGE" < "67"

how many asian patients are less than 67 years of age ?

Answer: 1035


count the number of patients less than 80 years of age who have asian ethnic background.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "ASIAN" AND DEMOGRAPHIC."AGE" < "80"

count the number of patients less than 80 years of age who have asian ethnic background .

Answer: 1178


how many patients were there whose ethnicity is white and born before the year 2052?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "WHITE" AND DEMOGRAPHIC."DOB_YEAR" < "2052"

how many patients were there whose ethnicity is white and born before the year 2052 ?

Answer: 5935


What is the total number of patients from hispanic/latino - puertorican ethnic origin who were born before 2107.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ETHNICITY" = "HISPANIC/LATINO - PUERTO RICAN" AND DEMOGRAPHIC."DOB_YEAR" < "2107"

What is the total number of patients from hispanic/latino - puertorican ethnic origin who were born before 2107 .

Answer: 84


how many patients are with white ethnicity and diagnosed for hx of gi malignancy nec?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ETHNICITY" = "WHITE" AND DIAGNOSES."SHORT_TITLE" = "Hx of GI malignancy NEC"

how many patients are with white ethnicity and diagnosed for hx of gi malignancy nec ?

Answer: 63


provide the number of patients whose death status is 0 and primary disease is aortic insufficiency/re-do sternotomy; aortic valve replacement.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "0" AND DEMOGRAPHIC."DIAGNOSIS" = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   "

provide the number of patients whose death status is 0 and primary disease is aortic insufficiency / re - do sternotomy ; aortic valve replacement .

Answer: 1


provide the number of dead patients who were less than 43 years of age.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "1" AND DEMOGRAPHIC."AGE" < "43"

provide the number of dead patients who were less than 43 years of age .

Answer: 780


calculate the number of dead patients who were admitted to hospital before 2123.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "1" AND DEMOGRAPHIC."ADMITYEAR" < "2123"

calculate the number of dead patients who were admitted to hospital before 2123 .

Answer: 3492


give the number of patients whose death status is 0 and diagnosis short title is ac diastolic heart failure.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "0" AND DIAGNOSES."SHORT_TITLE" = "Ac diastolic hrt failure"

give the number of patients whose death status is 0 and diagnosis short title is ac diastolic heart failure .

Answer: 207


how many patients with epistaxis have unspecified death status?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "0" AND DIAGNOSES."SHORT_TITLE" = "Epistaxis"

how many patients with epistaxis have unspecified death status ?

Answer: 134


provide the number of patients with a diagnoses of personal history of other malignant neoplasm of rectum, rectosigmoid junction and anus and are still alive.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "0" AND DIAGNOSES."SHORT_TITLE" = "Hx-rectal & anal malign"

provide the number of patients with a diagnoses of personal history of other malignant neoplasm of rectum , rectosigmoid junction and anus and are still alive .

Answer: 44


give me the number of patients whose death status is 0 and diagnoses title is bph w/o urinaryobs/luts.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "0" AND DIAGNOSES."SHORT_TITLE" = "BPH w/o urinary obs/LUTS"

give me the number of patients whose death status is 0 and diagnoses title is bph w/o urinaryobs / luts .

Answer: 766


how many patients with metabolic encephalopathy diagnoses are still alive?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."EXPIRE_FLAG" = "0" AND DIAGNOSES."SHORT_TITLE" = "Metabolic encephalopathy"

how many patients with metabolic encephalopathy diagnoses are still alive ?

Answer: 149


How many patients were admitted through the emergency department and were discharged to discharge-transitioning to psychiatric hospital?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_LOCATION" = "EMERGENCY ROOM ADMIT" AND DEMOGRAPHIC."DISCHARGE_LOCATION" = "DISCH-TRAN TO PSYCH HOSP"

How many patients were admitted through the emergency department and were discharged to discharge-transitioning to psychiatric hospital ?

Answer: 263


What is the number of inpatient hospital admission patients who are less than 59 years old?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_LOCATION" = "TRANSFER FROM HOSP/EXTRAM" AND DEMOGRAPHIC."AGE" < "59"

What is the number of inpatient hospital admission patients who are less than 59 years old ?

Answer: 2481


provide me with the number of patients less than 59 years who were transferred within the facility.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_LOCATION" = "TRSF WITHIN THIS FACILITY" AND DEMOGRAPHIC."AGE" < "59"

provide me with the number of patients less than 59 years who were transferred within the facility .

Answer: 3


Count the number of patients born before 2071 who had an emergency room hospital admission.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_LOCATION" = "EMERGENCY ROOM ADMIT" AND DEMOGRAPHIC."DOB_YEAR" < "2071"

Count the number of patients born before 2071 who had an emergency room hospital admission .

Answer: 6614


what is the number of patients with admission location as transfer from hosp/extram and were admitted before the year 2131?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."ADMISSION_LOCATION" = "TRANSFER FROM HOSP/EXTRAM" AND DEMOGRAPHIC."ADMITYEAR" < "2131"

what is the number of patients with admission location as transfer from hosp / extram and were admitted before the year 2131 ?

Answer: 2378


how many patients are discharged from disch tran to psych hosp that are under age 77?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DISCHARGE_LOCATION" = "DISCH-TRAN TO PSYCH HOSP" AND DEMOGRAPHIC."AGE" < "77"

how many patients are discharged from disch tran to psych hosp that are under age 77 ?

Answer: 413


provide the number of patients whose discharge location is short term hospital and who were admitted to the hospital before year 2182.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DISCHARGE_LOCATION" = "SHORT TERM HOSPITAL" AND DEMOGRAPHIC."ADMITYEAR" < "2182"

provide the number of patients whose discharge location is short term hospital and who were admitted to the hospital before year 2182 .

Answer: 1189


what is the number of patients with primary disease abdominal pain who were aged less than 68 years?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DIAGNOSIS" = "ABDOMINAL PAIN" AND DEMOGRAPHIC."AGE" < "68"

what is the number of patients with primary disease abdominal pain who were aged less than 68 years ?

Answer: 290


what is the total number of patients aged below 68 who had abdominal abscess as primary disease

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DIAGNOSIS" = "ABDOMINAL ABSCESS" AND DEMOGRAPHIC."AGE" < "68"

Answer: 8


find the number of patients with bowel obstruction primary disease who have been admitted to hospital for more than 10 days.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DIAGNOSIS" = "BOWEL OBSTRUCTION" AND DEMOGRAPHIC."DAYS_STAY" > "10"

find the number of patients with bowel obstruction primary disease who have been admitted to hospital for more than 10 days .

Answer: 51


how many patients are diagnosed with primary disease upper gi bleed and are born before 2112?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DIAGNOSIS" = "UPPER GI BLEED" AND DEMOGRAPHIC."DOB_YEAR" < "2112"

how many patients are diagnosed with primary disease upper gi bleed and are born before 2112 ?

Answer: 397


How many patients born before the year 2109 were primarily diagnosed for guillain barre syndrome?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DIAGNOSIS" = "GUILLAIN BARRE SYNDROME" AND DEMOGRAPHIC."DOB_YEAR" < "2109"

How many patients born before the year 2109 were primarily diagnosed for guillain barre syndrome ?

Answer: 2


how many patients were admitted to the hospital before year 2203 with sepsis as the primary disease?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."DIAGNOSIS" = "SEPSIS" AND DEMOGRAPHIC."ADMITYEAR" < "2203"

how many patients were admitted to the hospital before year 2203 with sepsis as the primary disease ?

Answer: 1090


How many patients have gastrointestinal bleed and tp drug route?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."DIAGNOSIS" = "GASTROINTESTINAL BLEED" AND PRESCRIPTIONS."ROUTE" = "TP"

How many patients have gastrointestinal bleed and tp drug route ?

Answer: 164


let me know the number of patients less than 83 years who stayed in hospital for more than 6 days.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."AGE" < "83" AND DEMOGRAPHIC."DAYS_STAY" > "6"

let me know the number of patients less than 83 years who stayed in hospital for more than 6 days .

Answer: 19859


Get the number of patients who died in or before 2132 and were less than 72 years of age.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."AGE" < "72" AND DEMOGRAPHIC."DOD_YEAR" <= "2132.0"

Get the number of patients who died in or before 2132 and were less than 72 years of age .

Answer: 2143


provide the number of patients less than 83 years of age who were diagnosed with pneumococcal pneumonia.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."AGE" < "83" AND DIAGNOSES."SHORT_TITLE" = "Pneumococcal pneumonia"

provide the number of patients less than 83 years of age who were diagnosed with pneumococcal pneumonia .

Answer: 170


how many patients below 51 years of age are diagnosed with preterm nec 2500+g?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."AGE" < "51" AND DIAGNOSES."SHORT_TITLE" = "Preterm NEC 2500+g"

how many patients below 51 years of age are diagnosed with preterm nec 2500 + g ?

Answer: 742


provide the number of patients diagnosed with unspecified septicemia aged less than 81 years.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."AGE" < "81" AND DIAGNOSES."LONG_TITLE" = "Unspecified septicemia"

provide the number of patients diagnosed with unspecified septicemia aged less than 81 years .

Answer: 2517


how many patients are below 44 years of age and followed the procedure uni salpingo-oophor?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."AGE" < "44" AND PROCEDURES."SHORT_TITLE" = "Oth uni salpingo-oophor"

how many patients are below 44 years of age and followed the procedure uni salpingo - oophor ?

Answer: 9


count the number of patients younger than 30 years who had abnormal lab test status.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."AGE" < "30" AND LAB."FLAG" = "abnormal"

count the number of patients younger than 30 years who had abnormal lab test status .

Answer: 9309


give me the number of patients less than 41 years who have delta abnormal lab test status.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."AGE" < "41" AND LAB."FLAG" = "delta"

give me the number of patients less than 41 years who have delta abnormal lab test status .

Answer: 2862


what number of patients under the age of 85 had lab test named heparin,imw?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."AGE" < "85" AND LAB."LABEL" = "Heparin, LMW"

what number of patients under the age of 85 had lab test named heparin , imw ?

Answer: 229


among patients aged below 56, how many of them had a lab test for sodium, whole blood?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."AGE" < "56" AND LAB."LABEL" = "Sodium, Whole Blood"

among patients aged below 56 , how many of them had a lab test for sodium , whole blood ?

Answer: 6291


what is the number of patients whose hospital stay is above 7 days and diagnosed with single ib in-hosp w cs?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "7" AND DIAGNOSES."SHORT_TITLE" = "Single lb in-hosp w cs"

what is the number of patients whose hospital stay is above 7 days and diagnosed with single ib in - hosp w cs ?

Answer: 809


count the number of patients with knee joint replacement diagnoses who were hospitalized for more than 26 days.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "26" AND DIAGNOSES."SHORT_TITLE" = "Joint replaced knee"

count the number of patients with knee joint replacement diagnoses who were hospitalized for more than 26 days .

Answer: 27


what number of patients diagnosed for acidosis stayed in the hospital for more than 7 days?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "7" AND DIAGNOSES."SHORT_TITLE" = "Acidosis"

what number of patients diagnosed for acidosis stayed in the hospital for more than 7 days ?

Answer: 2113


give me the number of patients diagnosed with alzheimer's disease who were admitted for more than 7 days.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "7" AND DIAGNOSES."SHORT_TITLE" = "Alzheimer's disease"

give me the number of patients diagnosed with alzheimer 's disease who were admitted for more than 7 days .

Answer: 206


Look for the number of patients on a lorazepam prescription who stayed in hospital for more than 26 days.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "26" AND PRESCRIPTIONS."DRUG" = "Lorazepam"

Look for the number of patients on a lorazepam prescription who stayed in hospital for more than 26 days .

Answer: 1843


what is the number of patients whose hospital stay is above 16 days and with drug sw?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "16" AND PRESCRIPTIONS."DRUG" = "SW"

what is the number of patients whose hospital stay is above 16 days and with drug sw ?

Answer: 4561


From the total number of patients treated with acetylcysteine 20%, calculate the number of those who had a hospital stay of more than 8 days

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."DAYS_STAY" > "8" AND PRESCRIPTIONS."DRUG" = "Acetylcysteine 20%"

From the total number of patients treated with acetylcysteine 20 % , calculate the number of those who had a hospital stay of more than 8 days

Answer: 2632


give me the number of patients admitted before 2148 who are diagnosed with unspecified obesity.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2148" AND DIAGNOSES."SHORT_TITLE" = "Obesity NOS"

give me the number of patients admitted before 2148 who are diagnosed with unspecified obesity .

Answer: 657


Out of total number of patients admitted before 2157, how many of them had long-term use of steroids?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2175" AND DIAGNOSES."SHORT_TITLE" = "Long-term use steroids"

Out of total number of patients admitted before 2157 , how many of them had long-term use of steroids ?

Answer: 550


how many patients admitted before 2187 are diagnosed with other lung disease nec?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2187" AND DIAGNOSES."SHORT_TITLE" = "Other lung disease NEC"

how many patients admitted before 2187 are diagnosed with other lung disease nec ?

Answer: 544


Among the patients admitted before the year 2172, how many had contact dermatitis and other eczema with an unspecified cause?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2172" AND DIAGNOSES."LONG_TITLE" = "Contact dermatitis and other eczema, unspecified cause"

Among the patients admitted before the year 2172 , how many had contact dermatitis and other eczema with an unspecified cause ?

Answer: 101


how many patients are admitted before 2179 and diagnosed with pressure ulcer, stage ii?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2179" AND DIAGNOSES."LONG_TITLE" = "Pressure ulcer, stage II"

how many patients are admitted before 2179 and diagnosed with pressure ulcer , stage ii ?

Answer: 303


Look for the patients admitted before 2174 that were diagnosed with sepsis.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2174" AND DIAGNOSES."LONG_TITLE" = "Sepsis"

Look for the patients admitted before 2174 that were diagnosed with sepsis .

Answer: 853


What is the total number of patients admitted before the year 2155 who had dx ultrasound-heart?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2155" AND PROCEDURES."SHORT_TITLE" = "Dx ultrasound-heart"

What is the total number of patients admitted before the year 2155 who had dx ultrasound-heart ?

Answer: 1716


Provide the number of patients who were admitted before the year 2146 and had procedure short title as cardiopulm resuscita nos.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2146" AND PROCEDURES."SHORT_TITLE" = "Cardiopulm resuscita NOS"

Provide the number of patients who were admitted before the year 2146 and had procedure short title as cardiopulm resuscita nos .

Answer: 286


Out of total number of patients admitted before the year 2150, how many of them had hemodialysis?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2150" AND PROCEDURES."LONG_TITLE" = "Hemodialysis"

Out of total number of patients admitted before the year 2150 , how many of them had hemodialysis ?

Answer: 1025


specify the number of patients who were admitted in the year less that 2187 and had  (aorto)coronary bypass of one coronary artery

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2187" AND PROCEDURES."LONG_TITLE" = "(Aorto)coronary bypass of one coronary artery"

specify the number of patients who were admitted in the year less that 2187 and had ( aorto)coronary bypass of one coronary artery

Answer: 808


Out of total number of patients admitted before the year 2162, how many had percutaneous (endoscopic) gastrojejunostomy?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2162" AND PROCEDURES."LONG_TITLE" = "Percutaneous [endoscopic] gastrojejunostomy"

Out of total number of patients admitted before the year 2162 , how many had percutaneous ( endoscopic ) gastrojejunostomy ?

Answer: 95


provide the number of patients who were admitted before the year 2174 and given the drug cefpodoxime proxetil.

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC."ADMITYEAR" < "2174" AND PRESCRIPTIONS."DRUG" = "Cefpodoxime Proxetil"

provide the number of patients who were admitted before the year 2174 and given the drug cefpodoxime proxetil .

Answer: 326


provide the number of patients whose diagnosis short title is atriovent block complete and drug type is base.

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" = "Atriovent block complete" AND PRESCRIPTIONS."DRUG_TYPE" = "BASE"

provide the number of patients whose diagnosis short title is atriovent block complete and drug type is base .

Answer: 464


how many patients with physical restrain status were treated with base drug?

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" = "Physical restrain status" AND PRESCRIPTIONS."DRUG_TYPE" = "BASE"

how many patients with physical restrain status were treated with base drug ?

Answer: 224


calculate the number of patients with bleed esoph var other disease who were treated with main drug

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" = "Bleed esoph var oth dis" AND PRESCRIPTIONS."DRUG_TYPE" = "MAIN"

Answer: 285


how many patients with drug type base were diagnosed with diaphragmatic hernia?

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" = "Diaphragmatic hernia" AND PRESCRIPTIONS."DRUG_TYPE" = "BASE"

how many patients with drug type base were diagnosed with diaphragmatic hernia ?

Answer: 578


what number of patients have diagnosis short title as rec depr psych-psychotic and drug route as po/ng?

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" = "Rec depr psych-psychotic" AND PRESCRIPTIONS."ROUTE" = "PO/NG"

what number of patients have diagnosis short title as rec depr psych - psychotic and drug route as po / ng ?

Answer: 4


find the patients who have to be tested for ketones with diagnosis of dysphagia nos.

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."SHORT_TITLE" = "Dysphagia NOS" AND LAB."LABEL" = "Ketone"

find the patients who have to be tested for ketones with diagnosis of dysphagia nos .

Answer: 311


give the number of patients who were diagnosed with personal history of colonic polyps and lab test result is abnormal.

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 colonic polyps" AND LAB."FLAG" = "abnormal"

give the number of patients who were diagnosed with personal history of colonic polyps and lab test result is abnormal .

Answer: 274


find the number of patients categorized under hematology lab test who have been diagnosed with seroma complicating a procedure.

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" = "Seroma complicating a procedure" AND LAB."CATEGORY" = "Hematology"

find the number of patients categorized under hematology lab test who have been diagnosed with seroma complicating a procedure .

Answer: 79


How many patients had a lab test for sodium urine and were treated with a base drug?

SELECT COUNT ( DISTINCT DEMOGRAPHIC."SUBJECT_ID" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE PRESCRIPTIONS."DRUG_TYPE" = "MAIN" AND LAB."LABEL" = "Sodium, Urine"

How many patients had a lab test for sodium urine and were treated with a base drug ?

Answer: 10318


what is the insurance and primary disease of the patient id 2560?

SELECT DEMOGRAPHIC."INSURANCE",DEMOGRAPHIC."DIAGNOSIS" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "2560"

what is the insurance and primary disease of the patient i d 2560 ?

Answer: Private


provide the admission time and marital status of subject id 6983.

SELECT DEMOGRAPHIC."MARITAL_STATUS",DEMOGRAPHIC."ADMITTIME" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "6983"

provide the admission time and marital status of subject i d 6983 .

Answer: MARRIED

Answer: MARRIED


find the insurance of subject  id 81923.

SELECT DEMOGRAPHIC."INSURANCE" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "81923"

find the insurance of subject i d 81923 .

Answer: Medicaid


Let me know the birth date and long title of procedure for patient with patient id 81923.

SELECT DEMOGRAPHIC."DOB",PROCEDURES."LONG_TITLE" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC."SUBJECT_ID" = "81923"

Let me know the birth date and long title of procedure for patient with patient id 81923 .

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00

Answer: 2121-03-31 00:00:00


mention the admission type of patient with patinet id 29961?

SELECT DEMOGRAPHIC."ADMISSION_TYPE" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "29961"

mention the admission type of patient with patinet i d 29961 ?

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY


for patient id 62296, specify the type of admission and icd9 code

SELECT DEMOGRAPHIC."ADMISSION_TYPE",DIAGNOSES."ICD9_CODE" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."SUBJECT_ID" = "62296"

for patient i d 62296 , specify the type of admission and icd9 code

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY


when did patient id 62296 die? specify date of death and insurance

SELECT DEMOGRAPHIC."INSURANCE",DEMOGRAPHIC."DOD" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "62296"

when did patient i d 62296 die ? specify date of death and insurance

Answer: Medicare


provide me the marital status and location of admission for patient with patient id 15898.

SELECT DEMOGRAPHIC."MARITAL_STATUS",DEMOGRAPHIC."ADMISSION_LOCATION" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "15898"

provide me the marital status and location of admission for patient with patient i d 15898 .

Answer: MARRIED


what is the gender and insurance of patient id 15898?

SELECT DEMOGRAPHIC."GENDER",DEMOGRAPHIC."INSURANCE" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "15898"

what is the gender and insurance of patient i d 15898 ?

Answer: M


for patient id 15898, specify the type of admission along-with discharge time.

SELECT DEMOGRAPHIC."ADMISSION_TYPE",DEMOGRAPHIC."DISCHTIME" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "15898"

for patient i d 15898 , specify the type of admission along - with discharge time .

Answer: EMERGENCY


specify the discharge location and insurance details of patients id 15898

SELECT DEMOGRAPHIC."INSURANCE",DEMOGRAPHIC."DISCHARGE_LOCATION" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "15898"

specify the discharge location and insurance details of patients i d 15898

Answer: Private


provide me the type of admission and abnormal lab test status for the patient with patient id 7273.

SELECT DEMOGRAPHIC."ADMISSION_TYPE",LAB."FLAG" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC."SUBJECT_ID" = "7273"

provide me the type of admission and abnormal lab test status for the patient with patient i d 7273 .

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN

Answer: NEWBORN


tell me the primary disease and health insurance of patient with patient id 8990.

SELECT DEMOGRAPHIC."INSURANCE",DEMOGRAPHIC."DIAGNOSIS" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "8990"

tell me the primary disease and health insurance of patient with patient i d 8990 .

Answer: Medicare

Answer: Medicare

Answer: Medicare


Is the subject id 74032 married, find his religion ?

SELECT DEMOGRAPHIC."MARITAL_STATUS",DEMOGRAPHIC."RELIGION" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "74032"

Is the subject id 74032 married , find his religion ?

Answer: MARRIED

Answer: MARRIED


for patient id 74032, specify the religion and date of death

SELECT DEMOGRAPHIC."RELIGION",DEMOGRAPHIC."DOD" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC."SUBJECT_ID" = "74032"

for patient i d 74032 , specify the religion and date of death

Answer: CATHOLIC

Answer: CATHOLIC


Report to me the type of admission and long title of diagnoses for patient with patient id 74032.

SELECT DEMOGRAPHIC."ADMISSION_TYPE",DIAGNOSES."LONG_TITLE" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC."SUBJECT_ID" = "74032"

Report to me the type of admission and long title of diagnoses for patient with patient id 74032 .

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: EMERGENCY

Answer: ELECTIVE

Answer: ELECTIVE

Answer: ELECTIVE