query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
List out full name of patients who have "Diabetic diet" in the description of the care plan.
|
full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';
|
full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';
|
start of the care plan refers to careplans.START; alive patients refers to deathdate is null;
|
between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';
|
medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';
|
in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';
|
medication that are prescribed refers to DESCRIPTION from medications;
|
how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';
|
Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts';
|
DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));
|
SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;
|
State description of medication taken by Joe Homenick.
|
description of medication refers to medications.DESCRIPTION;
|
time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);
|
patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';
|
allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';
|
drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';
|
condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';
|
female refers to gender = 'F'; "HPV quadrivalent" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';
|
date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';
|
in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;
|
full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';
|
How many black patients stopped their care plan in 2017?
|
black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';
|
patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';
|
full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';
|
in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';
|
how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';
|
second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;
|
reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;
|
description of the reason of the care plan refers to careplans.REASONDESCRIPTION;
|
between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';
|
conditions refer to DESCRIPTION from conditions;
|
how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;
|
List 5 patients' name that need medication due to streptococcal sore throat disorder.
|
patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';
|
allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;
|
stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;
|
condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';
|
in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;
|
full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';
|
percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';
|
percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';
|
how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);
|
black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';
|
second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;
|
How many patients are allergic to eggs?
|
allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;
|
car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';
|
SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';
|
conditions refer to DESCRIPTION from conditions;
|
patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';
|
percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';
|
Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts';
|
date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';
|
difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';
|
why need to take Acetaminophen refers to REASONDESCRIPTION where DESCRIPTION like 'Acetaminophen%' from medications;
|
How long did Isadora Moen's allergy last? Tell me what kind of allergy she has.
|
how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;
|
description of medication refers to medications.DESCRIPTION;
|
DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';
|
expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';
|
conditions refer to DESCRIPTION from conditions;
|
glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';
|
female refers to gender = 'F'; "HPV quadrivalent" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';
|
allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';
|
in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';
|
body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';
|
DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';
|
List all the full names of patients with a condition described as cystitis.
|
full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';
|
social security number refers to ssn; ssn = '999-15-3685';
|
time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);
|
"Influenza seasonal injectable preservative free" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';
|
SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;
|
full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';
|
born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';
|
start date of the care plan refers to careplans.START;
|
full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';
|
most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);
|
How long did Elly Koss have to take Acetaminophen 160 MG?
|
how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';
|
patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';
|
DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';
|
full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';
|
male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';
|
on 2009/8/9 refers to DATE = '2009-08-09';
|
body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;
|
medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';
|
full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';
|
expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';
|
shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;
|
What is the most common allergy among patients?
|
the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;
|
medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';
|
born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';
|
full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';
|
allergies refer to PATIENT from allergies;
|
viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));
|
black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';
|
DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));
|
SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';
|
diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';
|
the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;
|
Which procedures and medications were received by the patient with the third-degree burn?
|
procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';
|
SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';
|
full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';
|
the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;
|
DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';
|
Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';
|
percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';
|
full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';
|
viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));
|
the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;
|
why need to take Acetaminophen refers to REASONDESCRIPTION where DESCRIPTION like 'Acetaminophen%' from medications;
|
What drug is administered more often to treat child attention deficit disorder?
|
drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';
|
SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;
|
allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';
|
encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';
|
male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';
|
condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';
|
patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;
|
how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;
|
full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));
|
procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';
|
condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';
|
List the procedures received by Emmy Waelchi.
|
procedures refer to DESCRIPTION from procedures;
|
"Influenza seasonal injectable preservative free" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
condition no. 368581000119106 refers to conditions where CODE = '368581000119106';
|
why need to take Acetaminophen refers to REASONDESCRIPTION where DESCRIPTION like 'Acetaminophen%' from medications;
|
DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';
|
percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';
|
glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';
|
SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;
|
viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));
|
time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);
|
SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';
|
During all the observations of Elly Koss, what was the highest Systolic Blood Pressure observed?
|
the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;
|
allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;
|
description of medication refers to medications.DESCRIPTION;
|
viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));
|
in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';
|
in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;
|
medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';
|
start date of the care plan refers to careplans.START;
|
diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';
|
patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);
|
on 2009/8/9 refers to DATE = '2009-08-09';
|
Indicate the full name of the patients who have 3 different allergies.
|
full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;
|
time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);
|
on 2009/8/9 refers to DATE = '2009-08-09';
|
stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;
|
how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';
|
patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);
|
how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);
|
second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;
|
Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;
|
allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';
|
reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';
|
How many interactions did Lorri Simons have with medical professionals between 2010 and 2017? What percentage of encounters are attributed to prenatal visits?
|
between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';
|
male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';
|
why need to take Acetaminophen refers to REASONDESCRIPTION where DESCRIPTION like 'Acetaminophen%' from medications;
|
start of the care plan refers to careplans.START; alive patients refers to deathdate is null;
|
date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';
|
if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));
|
drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';
|
"Influenza seasonal injectable preservative free" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';
|
full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));
|
List the full names of patients with nut allergy.
|
full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';
|
DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;
|
if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));
|
how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;
|
Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';
|
in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';
|
Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts';
|
viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));
|
how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';
|
patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;
|
DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';
|
How many conditions did Tyree Eichmann have?
|
conditions refer to DESCRIPTION from conditions;
|
medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';
|
medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';
|
immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';
|
condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';
|
how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';
|
start of the care plan refers to careplans.START; alive patients refers to deathdate is null;
|
SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;
|
allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;
|
if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));
|
most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');
|
What is the care plan, procedure, medication and the patient's full name for encounter 6f2e3935-b203-493e-a9c0-f23e847b9798?
|
car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';
|
full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';
|
diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';
|
medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';
|
time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);
|
stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;
|
DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';
|
percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';
|
date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';
|
in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';
|
List the full name of all patients with 'otitis media'.
|
full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';
|
medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';
|
condition no. 368581000119106 refers to conditions where CODE = '368581000119106';
|
Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts';
|
date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';
|
care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';
|
most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);
|
if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));
|
start date of the care plan refers to careplans.START;
|
medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';
|
patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);
|
How many patients immunized against 'monovalent rotavirus' ceased their care plan on 11/23/2013?
|
immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';
|
in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';
|
Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts';
|
encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';
|
care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';
|
expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';
|
full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';
|
most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);
|
Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';
|
immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;
|
on 2009/8/9 refers to DATE = '2009-08-09';
|
Among the devices with event no.2 happening, how many of them are vivo devices?
|
event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';
|
more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;
|
most common age group refers to MAX(COUNT(`group`));
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
coordinates of (80,37) refers to longitude = 80 and latitude = 37;
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
On what date were the most events logged on devices for 40-year-old male users?
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
male refers to gender = 'M';
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
event no. refers to event_id; event_id = '887711';
|
M23-26 user group refers to `group` = 'M23-26';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';
|
How many models does the VIVO phone brand released?
|
models refers to device_model;
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
youngest refers to MIN(age); female refers to gender = 'F';
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
male refers to gender = 'M';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
oldest event refers to MIN(timestamp);
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
To which categories does app user no.1977658975649780000 belong?
|
app no. refers to app_id; app_id = 1977658975649780000;
|
percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';
|
id refers to device_id;
|
most app users refers to MAX(COUNT(app_id));
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
What is the age of the oldest active user that participated in the event held on 5/6/2016 at coordinates 121, 31?
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
label that represented the behavior category refers to label_id;
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
group of age refers to group;
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
What is the age and gender of the person who uses the device number 29182687948017100 on event number 1?
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
group of age refers to group;
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
under 30 refers to age < 30;
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
labeled 7 refers to label_id = 7;
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
Provide the total number of the male users that use OPPO as their phone brand.
|
male refers to gender = 'Male';
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
app categories refers to category; related to games refers to category like '%game%';
|
models of the devices refers to device_model; female refers to gender = 'F';
|
female refers to gender = 'F';
|
OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;
|
State the gender of users who use the device "-9222956879900150000".
|
device refers to device_id; device_id = -9222956879900150000;
|
youngest refers to MIN(age); female refers to gender = 'F';
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
models refers to device_model; under 10 years of age refers to age < 10;
|
time refers to timestamp;
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
under 30 refers to age < 30;
|
location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
What is the age of the oldest device user?
|
oldest device user refers to MAX(age);
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
labeled 7 refers to label_id = 7;
|
brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
What is the percentage of users who experienced event number 6 who have the app installed but do not use the app?
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';
|
models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
event no. refers to event_id; event_id = '887711';
|
devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';
|
What are the behavior categories that user number -9222198347540750000 belongs to?
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
model refers to device_model;
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
models refers to device_model;
|
under 30 refers to age < 30;
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';
|
labeled 7 refers to label_id = 7;
|
brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
How many active users are there in the event?
|
active refers to is_active = 1;
|
oldest device user refers to MAX(age);
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
model refers to device_model;
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
male refers to gender = 'Male';
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);
|
How many users of the app were not active when event no.2 happened?
|
not active refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
app no. refers to app_id; app_id = 1977658975649780000;
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
most app users refers to MAX(COUNT(app_id));
|
oldest user refers to MAX(age);
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
What is the most common age group among all device users?
|
most common age group refers to MAX(COUNT(`group`));
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
models refers to device_model;
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
id refers to device_id;
|
male refers to gender = 'M';
|
time refers to timestamp;
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
What is the name of the category which most users belong to?
|
most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
male refers to gender = 'M';
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
models refers to device_model;
|
vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';
|
ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;
|
M23-26 user group refers to `group` = 'M23-26';
|
brand vivo refers to phone_brand = 'vivo';
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
How many female users belong to the age group of 27 to 28?
|
female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
id refers to device_id;
|
male refers to gender = 'M';
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
Calculate the ratio in percentage between the average number of app users belonging to "80s Japanese comic" and "90s Japanese comic".
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
male refers to gender = 'M';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
model refers to device_model; device_model = 'A51';
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
active refers to is_active = 1;
|
List at least 15 phone models released under the OPPO brand.
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
not active refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
most app users refers to MAX(COUNT(app_id));
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
What is the age of the youngest female device user?
|
youngest refers to MIN(age); female refers to gender = 'F';
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
app no. refers to app_id; app_id = 1977658975649780000;
|
gender that owned more = SUBTRACT(IF(SUM(gender = 'M'), SUM(gender = 'F'),'M','F'));
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
male refers to gender = 'M';
|
youngest user refers to MIN(age);
|
more events refers to MAX(COUNT(event_id));
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
Please list the ages of all the users who use a Galaxy Note 2.
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
youngest user refers to MIN(age);
|
female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
male refers to gender = 'M';
|
Among the users who use SUGAR, calculate the percentage of those who are above 20 years old.
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
location = longitude, latitude;
|
labeled 7 refers to label_id = 7;
|
M23-26 user group refers to `group` = 'M23-26';
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
How many users belong to the same behavior category as comics?
|
behavior category refers to category; category = 'comics';
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
labeled 7 refers to label_id = 7;
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
model refers to device_model;
|
oldest device user refers to MAX(age);
|
more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';
|
oldest user refers to MAX(age);
|
State the category of the label that represented the behavior category of app id 4955831798976240000.
|
label that represented the behavior category refers to label_id;
|
location = longitude, latitude;
|
event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
active refers to is_active = 1;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
How many more devices are there of the brand vivo than of the brand LG?
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
most app users refers to MAX(COUNT(app_id));
|
event no. refers to event_id; event_id = '887711';
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
labeled 7 refers to label_id = 7;
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;
|
male refers to gender = 'M';
|
models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;
|
device refers to device_id; device_id = -9222956879900150000;
|
Among the users who uses a vivo device, how many of them are female and under 30?
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
event no. refers to event_id; event_id = '887711';
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
active refers to is_active = 1;
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
How many different models does the HTC brand have?
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
brand vivo refers to phone_brand = 'vivo';
|
OPPO refers to phone_brand = 'OPPO';
|
coordinates of (80,37) refers to longitude = 80 and latitude = 37;
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
List the phone brands and models of the users under 10 years of age.
|
models refers to device_model; under 10 years of age refers to age < 10;
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
group of age refers to group;
|
under 30 refers to age < 30;
|
models refers to device_model;
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
id refers to device_id;
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';
|
app categories refers to category; related to games refers to category like '%game%';
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
How many male users have the log of events at the same longitude of 114?
|
male refers to gender = 'M';
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
group of age refers to group;
|
M23-26 user group refers to `group` = 'M23-26';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
id refers to device_id;
|
models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
What is the age group of most OPPO users?
|
age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;
|
id refers to device_id;
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
active refers to is_active = 1;
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
How many events in total have happened on all the vivo devices in the year 2016?
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
most app users refers to MAX(COUNT(app_id));
|
Please list any three OPPO device models.
|
OPPO refers to phone_brand = 'OPPO';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';
|
male refers to gender = 'M';
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
Describe the phone brands and models of the users who participated in events on 5th May, 2016 at the coordinates of (112,44).
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
OPPO refers to phone_brand = 'OPPO';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
most common age group refers to MAX(COUNT(`group`));
|
vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);
|
Please list the event IDs of the events that have happened on the device of the oldest user.
|
oldest user refers to MAX(age);
|
models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
male refers to gender = 'M';
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
device refers to device_id; device_id = -9222956879900150000;
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
model refers to device_model; device_model = 'A51';
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
How many users installed the app but are not active?
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
event no. refers to event_id; event_id = '887711';
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
male refers to gender = 'M';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
What is the brand of the youngest user's device?
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';
|
most app users refers to MAX(COUNT(app_id));
|
youngest refers to MIN(age); female refers to gender = 'F';
|
active refers to is_active = 1;
|
location = longitude, latitude;
|
youngest refers to MIN(age); female refers to gender = 'F';
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
Which phone brand and model was used for event ID "6701"?
|
model refers to device_model;
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
How many events did the 88-years-old male users participate on 4th May,2016?
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
most app users refers to MAX(COUNT(app_id));
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
male refers to gender = 'M';
|
event no. refers to event_id; event_id = '887711';
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
app categories refers to category; related to games refers to category like '%game%';
|
event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';
|
Indicate the location of all the events that occurred on April 30, 2016.
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
male refers to gender = 'Male';
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
most common age group refers to MAX(COUNT(`group`));
|
brand vivo refers to phone_brand = 'vivo';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
male refers to gender = 'M';
|
What percentage of vivo devices belong to users with no information?
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
most common age group refers to MAX(COUNT(`group`));
|
male refers to gender = 'Male';
|
What is the category that the most app users belong to?
|
most app users refers to MAX(COUNT(app_id));
|
vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);
|
female refers to gender = 'F';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
active refers to is_active = 1;
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
oldest device user refers to MAX(age);
|
label that represented the behavior category refers to label_id;
|
labeled 7 refers to label_id = 7;
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
Please list any three devices that are owned by female users.
|
female refers to gender = 'F';
|
behavior category refers to category; category = 'comics';
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
male refers to gender = 'M';
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
labeled 7 refers to label_id = 7;
|
oldest event refers to MIN(timestamp);
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
app categories refers to category; related to games refers to category like '%game%';
|
Which gender logged in the most to an event in the first 10 days of May 2016?
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
most app users refers to MAX(COUNT(app_id));
|
OPPO refers to phone_brand = 'OPPO';
|
models refers to device_model;
|
group of age refers to group;
|
youngest user refers to MIN(age);
|
Give the time stamp for event No.887711.
|
event no. refers to event_id; event_id = '887711';
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
active refers to is_active = 1;
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
male refers to gender = 'M';
|
male refers to gender = 'M';
|
female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';
|
oldest device user refers to MAX(age);
|
Please list the location coordinates of all the devices with an inactive app user when event no.2 happened.
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
male refers to gender = 'M';
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
models of the devices refers to device_model; female refers to gender = 'F';
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
How many devices belong to model "A51"?
|
model refers to device_model; device_model = 'A51';
|
event no. refers to event_id; event_id = '887711';
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
oldest device user refers to MAX(age);
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
coordinates of (80,37) refers to longitude = 80 and latitude = 37;
|
How many male users of the "Galaxy S5" device model?
|
male refers to gender = 'M';
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
event no. refers to event_id; event_id = '887711';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
male refers to gender = 'M';
|
group of age refers to group;
|
app no. refers to app_id; app_id = 1977658975649780000;
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
How many users who are under 30 years old use device model of Galaxy Note 2?
|
under 30 refers to age < 30;
|
male refers to gender = 'Male';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
models refers to device_model;
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';
|
behavior category refers to category; category = 'comics';
|
app no. refers to app_id; app_id = 1977658975649780000;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';
|
What is the gender of the youngest user?
|
youngest user refers to MIN(age);
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
id refers to device_id;
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
Which behavior category does user number 5902120154267990000 belong to?
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
oldest device user refers to MAX(age);
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
time refers to timestamp;
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
Provide the phone brands and models of the users who were at the coordinates of (80,44).
|
models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
female refers to gender = 'F';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
male refers to gender = 'M';
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
List all the devices' brands and models of events on 5/7/2016 at 6:03:22 AM.
|
devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
oldest user refers to MAX(age);
|
more events refers to MAX(COUNT(event_id));
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
models refers to device_model;
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
behavior category refers to category; category = 'comics';
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
model refers to device_model;
|
What are the ages and genders of the LG L70 users?
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
youngest user refers to MIN(age);
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
male refers to gender = 'M';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
How many events have happened on the device of the youngest female user?
|
youngest refers to MIN(age); female refers to gender = 'F';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
label that represented the behavior category refers to label_id;
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
Mention the group of age of users who use phone brand of LG.
|
group of age refers to group;
|
models refers to device_model; under 10 years of age refers to age < 10;
|
youngest user refers to MIN(age);
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
male refers to gender = 'M';
|
location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';
|
time refers to timestamp;
|
OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
label that represented the behavior category refers to label_id;
|
What is the difference between the events of device number -9222956879900150000 that can be located and those that are unable to be located?
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
not active refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
time refers to timestamp;
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
behavior category refers to category; category = 'comics';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
model refers to device_model; device_model = 'A51';
|
event no. refers to event_id; event_id = '887711';
|
location = longitude, latitude;
|
male refers to gender = 'M';
|
Among all the times event no.2 happened when the app user was not active, when was the earliest time this situation happened?
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
models refers to device_model;
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
under 30 refers to age < 30;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
most common age group refers to MAX(COUNT(`group`));
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
active refers to is_active = 1;
|
age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';
|
How many devices are of the brand vivo?
|
brand vivo refers to phone_brand = 'vivo';
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
male refers to gender = 'M';
|
M23-26 user group refers to `group` = 'M23-26';
|
most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;
|
male refers to gender = 'M';
|
OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
How many male users are in the age group of M32-38?
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
male refers to gender = 'M';
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
youngest user refers to MIN(age);
|
device refers to device_id; device_id = -9222956879900150000;
|
id refers to device_id;
|
Among the devices on which an event happened on 2016/5/1, how many of them are used by a male user?
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
OPPO refers to phone_brand = 'OPPO';
|
model refers to device_model; device_model = 'A51';
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
How many female users over the age of 50 are there?
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
active refers to is_active = 1;
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
brand vivo refers to phone_brand = 'vivo';
|
OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
models refers to device_model; HTC brand refers to phone_brand = 'HTC';
|
most app users refers to MAX(COUNT(app_id));
|
What is the average age of the female users who uses a vivo device?
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;
|
brand vivo refers to phone_brand = 'vivo';
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
not active refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
group of age refers to group;
|
youngest refers to MIN(age); female refers to gender = 'F';
|
oldest user refers to MAX(age);
|
male refers to gender = 'Male';
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
Which category has more app users, Securities or Finance?
|
more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
oldest user refers to MAX(age);
|
behavior category refers to category; category = 'comics';
|
event no. refers to event_id; event_id = '887711';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
oldest device user refers to MAX(age);
|
Please list the time when event no.2 happened on a vivo device.
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
app user ID refers to app_id; app_id = 7324884708820020000;
|
brand vivo refers to phone_brand = 'vivo';
|
OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;
|
ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
male refers to gender = 'M';
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
youngest refers to MIN(age); female refers to gender = 'F';
|
youngest user refers to MIN(age);
|
Locate all events on devices of women under 30 years old.
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
model refers to device_model;
|
male refers to gender = 'Male';
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
event no. refers to event_id; event_id = '887711';
|
not active refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
Give the number of male users who use phone branded HTC.
|
male refers to gender = 'M';
|
group of age refers to group;
|
oldest event refers to MIN(timestamp);
|
models of the devices refers to device_model; female refers to gender = 'F';
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
most common age group refers to MAX(COUNT(`group`));
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
models refers to device_model; under 10 years of age refers to age < 10;
|
event no. refers to event_id; event_id = '887711';
|
male refers to gender = 'M';
|
Identify all installed and activated apps by their id.
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
most common age group refers to MAX(COUNT(`group`));
|
percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';
|
ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
device refers to device_id; device_id = -9222956879900150000;
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
Among the users who use a Galaxy Note 2, how many of them are female?
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';
|
coordinates of (80,37) refers to longitude = 80 and latitude = 37;
|
models refers to device_model;
|
most app users refers to MAX(COUNT(app_id));
|
male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';
|
location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
oldest device user refers to MAX(age);
|
male refers to gender = 'M';
|
Please provide the gender of at least one user who owns an HTC Desire 826 device.
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
coordinates of (80,37) refers to longitude = 80 and latitude = 37;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;
|
What is the ID of the device used by the youngest user?
|
ID of the device refers to device_id; youngest user refers to MIN(age);
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
male refers to gender = 'M';
|
in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';
|
average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';
|
group of age refers to group;
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
app no. refers to app_id; app_id = 1977658975649780000;
|
For the event which happened at 23:55:16 on 2016/5/7, in the location coordinate(113, 28), on what device did it happen? Give the name of the device model.
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
model of the device refers to device_model; oldest user refers to MAX(age);
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;
|
female refers to gender = 'F'; over the age of 50 refers to age > 50;
|
model refers to device_model; device_model = 'A51';
|
id refers to device_id;
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
gender that owned more = SUBTRACT(IF(SUM(gender = 'M'), SUM(gender = 'F'),'M','F'));
|
Please list the location coordinates of all the Galaxy Note 2 devices when an event happened.
|
location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
male refers to gender = 'M';
|
event no. refers to event_id; event_id = '887711';
|
percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
oldest event refers to MIN(timestamp);
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
male refers to gender = 'M';
|
brand vivo refers to phone_brand = 'vivo';
|
What is the ratio of female users to male users who uses a vivo device?
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
model refers to device_model; device_model = 'A51';
|
age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2';
|
at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';
|
How many apps are labeled 7?
|
labeled 7 refers to label_id = 7;
|
LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';
|
M23-26 user group refers to `group` = 'M23-26';
|
event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
id refers to device_id;
|
installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;
|
male refers to gender = 'M';
|
location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
How many female users use ZenFone 5 devices?
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
model refers to device_model;
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';
|
most app users refers to MAX(COUNT(app_id));
|
male refers to gender = 'M';
|
OPPO refers to phone_brand = 'OPPO';
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
male refers to gender = 'M';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
Please list the IDs of the events happened on all the vivo devices.
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;
|
most app users refers to MAX(COUNT(app_id));
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';
|
event no. refers to event_id; event_id = '887711';
|
male refers to gender = 'M';
|
Among the users who use OPPO, calculate the percentage of those who are under 50 years old.
|
OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;
|
most app users refers to MAX(COUNT(app_id));
|
model refers to device_model;
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;
|
brand of the device refers to phone_brand; youngest user refers to MIN(age);
|
labeled 7 refers to label_id = 7;
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';
|
ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
What are the categories of the top 2 oldest events?
|
oldest event refers to MIN(timestamp);
|
vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;
|
HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
oldest user refers to MAX(age);
|
under 30 refers to age < 30;
|
date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old refers to age = 40; male refers to gender = 'M';
|
event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';
|
at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';
|
active refers to is_active = 1;
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
List all females aged 24 to 26 devices' locations.
|
females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';
|
gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';
|
魅蓝Note 2 refers to device_model = '魅蓝Note 2';
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;
|
male refers to gender = 'M';
|
locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;
|
installed refers to is_installed = 1; not active refers to is_active = 0;
|
event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';
|
oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;
|
SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;
|
For the device with an event occurring on 2016/5/1 at 0:55:25, what is the gender of its user?
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
youngest refers to MIN(age); female refers to gender = 'F';
|
how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';
|
device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';
|
youngest user refers to MIN(age);
|
more events refers to MAX(COUNT(event_id));
|
on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';
|
user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';
|
Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';
|
under 30 refers to age < 30;
|
percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';
|
How many device users are male?
|
male refers to gender = 'M';
|
under 30 refers to age < 30;
|
male refers to gender = 'Male';
|
on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';
|
behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;
|
time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';
|
M23-26 user group refers to `group` = 'M23-26';
|
event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;
|
IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';
|
models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;
|
labeled 7 refers to label_id = 7;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.