set
dict
{ "query": "Among the patients who were immunized with meningococcal MCV4P, how many have viral sinusitis disorder after getting the immunization?", "pos": [ "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;" ], "neg": [ "social security number refers to ssn; ssn = '999-15-3685';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "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';", "medication that are prescribed refers to DESCRIPTION from medications;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;" ] }
{ "query": "What percentage of patients born in 'Pembroke MA US' have 'allergy to grass pollen'?", "pos": [ "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';" ], "neg": [ "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "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;", "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';", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "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%';", "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';" ] }
{ "query": "Name the reason Walter Bahringer visited medical professionals in July 2009.", "pos": [ "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;  in July 2009 refers to  substr(encounters.DATE, 1, 7) = '2009-07' ;" ], "neg": [ "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "medication that are prescribed refers to DESCRIPTION from medications;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "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';", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "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);", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';" ] }
{ "query": "How many immunizations did the patient with the most prevalent condition that started recently get?", "pos": [ "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);" ], "neg": [ "encountered normal pregnancy refers to encounters where 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;", "kind of condition refers to DESCRIPTION from conditions; from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "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;", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "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)));", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;" ] }
{ "query": "What is the percentage of Hispanic patients who stopped their care plan in 2011?", "pos": [ "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';" ], "neg": [ "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';", "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';", "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;", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';" ] }
{ "query": "What is the age of the patient with hypertension named Giovanni Russel?", "pos": [ "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';" ], "neg": [ "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;", "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';", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "conditions refer to DESCRIPTION from conditions;", "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);", "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%';", "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)));", "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';", "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)';", "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;" ] }
{ "query": "Describe the care plans received by the patient with secondary malignant neoplasm of the colon.", "pos": [ "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';" ], "neg": [ "kind of condition refers to DESCRIPTION from conditions; from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "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';", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';", "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "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';", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;  in July 2009 refers to  substr(encounters.DATE, 1, 7) = '2009-07' ;", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';" ] }
{ "query": "What is the prevalence rate of the patients' diseases started on 9th May 2014?", "pos": [ "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';" ], "neg": [ "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;", "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';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "Italian patients refers to ethnicity = 'italian';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "conditions refer to DESCRIPTION from conditions;", "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';", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "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;" ] }
{ "query": "How old was Mrs. Laronda Bernier at the time of her most recent medical encounter?", "pos": [ "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);" ], "neg": [ "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "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);", "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);", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "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';", "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 = 'Cystitis';" ] }
{ "query": "How many male patients have been described as immune to quadrivalent HPV?", "pos": [ "male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';" ], "neg": [ "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "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)';", "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';", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "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';", "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';", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "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)'));", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);" ] }
{ "query": "How many patients have diabetes that started in 1988?", "pos": [ "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';" ], "neg": [ "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';", "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);", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "Italian patients refers to ethnicity = 'italian';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);" ] }
{ "query": "What is the total number of Asian patients who are allergic to peanuts?", "pos": [ "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n" ], "neg": [ "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "allergies refer to PATIENT from allergies;", "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';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "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;", "DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));", "on 2009/8/9 refers to DATE = '2009-08-09';" ] }
{ "query": "How many Italian patients have the care plan code of 304510005?", "pos": [ "Italian patients refers to ethnicity = 'italian';" ], "neg": [ "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "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;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "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';" ] }
{ "query": "State the prevalence rate of condition no. 368581000119106.", "pos": [ "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';" ], "neg": [ "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "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)';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "why need to take Acetaminophen refers to REASONDESCRIPTION  where DESCRIPTION like 'Acetaminophen%' from medications;", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;" ] }
{ "query": "How many male patients are diagnosed with hypertension as compared to female patients?", "pos": [ "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');" ], "neg": [ "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';", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "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]';", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "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%';", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;  in July 2009 refers to  substr(encounters.DATE, 1, 7) = '2009-07' ;", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n" ] }
{ "query": "List out full name of patients who have \"Diabetic diet\" in the description of the care plan.", "pos": [ "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';" ], "neg": [ "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'; \n", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;" ] }
{ "query": "State description of medication taken by Joe Homenick.", "pos": [ "description of medication refers to medications.DESCRIPTION;" ], "neg": [ "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';" ] }
{ "query": "How many black patients stopped their care plan in 2017?", "pos": [ "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';" ], "neg": [ "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' ;" ] }
{ "query": "List 5 patients' name that need medication due to streptococcal sore throat disorder.", "pos": [ "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';" ], "neg": [ "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'; ;" ] }
{ "query": "How many patients are allergic to eggs?", "pos": [ "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;" ], "neg": [ "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'; \n", "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;" ] }
{ "query": "How long did Isadora Moen's allergy last? Tell me what kind of allergy she has.", "pos": [ "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;" ], "neg": [ "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';\n" ] }
{ "query": "List all the full names of patients with a condition described as cystitis.", "pos": [ "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';" ], "neg": [ "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);" ] }
{ "query": "How long did Elly Koss have to take Acetaminophen 160 MG?", "pos": [ "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';" ], "neg": [ "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;" ] }
{ "query": "What is the most common allergy among patients?", "pos": [ "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;" ], "neg": [ "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;" ] }
{ "query": "Which procedures and medications were received by the patient with the third-degree burn?", "pos": [ "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';" ], "neg": [ "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;" ] }
{ "query": "What drug is administered more often to treat child attention deficit disorder?", "pos": [ "drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';" ], "neg": [ "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';" ] }
{ "query": "List the procedures received by Emmy Waelchi.", "pos": [ "procedures refer to DESCRIPTION from procedures;" ], "neg": [ "\"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';" ] }
{ "query": "During all the observations of Elly Koss, what was the highest Systolic Blood Pressure observed?", "pos": [ "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;" ], "neg": [ "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';" ] }
{ "query": "Indicate the full name of the patients who have 3 different allergies.", "pos": [ "full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;" ], "neg": [ "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';" ] }
{ "query": "How many interactions did Lorri Simons have with medical professionals between 2010 and 2017? What percentage of encounters are attributed to prenatal visits?", "pos": [ "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';" ], "neg": [ "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)));" ] }
{ "query": "List the full names of patients with nut allergy.", "pos": [ "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';" ], "neg": [ "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'; \n", "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';\n" ] }
{ "query": "How many conditions did Tyree Eichmann have?", "pos": [ "conditions refer to DESCRIPTION from conditions;" ], "neg": [ "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');" ] }
{ "query": "What is the care plan, procedure, medication and the patient's full name for encounter 6f2e3935-b203-493e-a9c0-f23e847b9798?", "pos": [ "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';" ], "neg": [ "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';\n", "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';" ] }
{ "query": "List the full name of all patients with 'otitis media'.", "pos": [ "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';" ], "neg": [ "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'; \n", "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);" ] }
{ "query": "How many patients immunized against 'monovalent rotavirus' ceased their care plan on 11/23/2013?", "pos": [ "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';" ], "neg": [ "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'; \n", "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';" ] }
{ "query": "Among the devices with event no.2 happening, how many of them are vivo devices?", "pos": [ "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';" ], "neg": [ "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';" ] }
{ "query": "On what date were the most events logged on devices for 40-year-old male users?", "pos": [ "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old  refers to age = 40; male refers to gender = 'M';" ], "neg": [ "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';" ] }
{ "query": "How many models does the VIVO phone brand released?", "pos": [ "models refers to device_model;" ], "neg": [ "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);" ] }
{ "query": "To which categories does app user no.1977658975649780000 belong?", "pos": [ "app no. refers to app_id; app_id = 1977658975649780000;" ], "neg": [ "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';" ] }
{ "query": "What is the age of the oldest active user that participated in the event held on 5/6/2016 at coordinates 121, 31?", "pos": [ "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;" ], "neg": [ "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;" ] }
{ "query": "What is the age and gender of the person who uses the device number 29182687948017100 on event number 1?", "pos": [ "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;" ], "neg": [ "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;" ] }
{ "query": "Provide the total number of the male users that use OPPO as their phone brand.", "pos": [ "male refers to gender = 'Male';" ], "neg": [ "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;" ] }
{ "query": "State the gender of users who use the device \"-9222956879900150000\".", "pos": [ "device refers to device_id; device_id = -9222956879900150000;" ], "neg": [ "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);" ] }
{ "query": "What is the age of the oldest device user?", "pos": [ "oldest device user refers to MAX(age);" ], "neg": [ "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';" ] }
{ "query": "What is the percentage of users who experienced event number 6 who have the app installed but do not use the app?", "pos": [ "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;" ], "neg": [ "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';" ] }
{ "query": "What are the behavior categories that user number -9222198347540750000 belongs to?", "pos": [ "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;" ], "neg": [ "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;" ] }
{ "query": "How many active users are there in the event?", "pos": [ "active refers to is_active = 1;" ], "neg": [ "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);" ] }
{ "query": "How many users of the app were not active when event no.2 happened?", "pos": [ "not active refers to is_active = 0; event no. refers to event_id; event_id = 2;" ], "neg": [ "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';" ] }
{ "query": "What is the most common age group among all device users?", "pos": [ "most common age group refers to MAX(COUNT(`group`));" ], "neg": [ "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;" ] }
{ "query": "What is the name of the category which most users belong to?", "pos": [ "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;" ], "neg": [ "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';" ] }
{ "query": "How many female users belong to the age group of 27 to 28?", "pos": [ "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';" ], "neg": [ "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;" ] }
{ "query": "Calculate the ratio in percentage between the average number of app users belonging to \"80s Japanese comic\" and \"90s Japanese comic\".", "pos": [ "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';" ], "neg": [ "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;" ] }
{ "query": "List at least 15 phone models released under the OPPO brand.", "pos": [ "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';" ], "neg": [ "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;" ] }
{ "query": "What is the age of the youngest female device user?", "pos": [ "youngest refers to MIN(age); female refers to gender = 'F';" ], "neg": [ "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;" ] }
{ "query": "Please list the ages of all the users who use a Galaxy Note 2.", "pos": [ "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';" ], "neg": [ "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';" ] }
{ "query": "Among the users who use SUGAR, calculate the percentage of those who are above 20 years old.", "pos": [ "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;" ], "neg": [ "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';" ] }
{ "query": "How many users belong to the same behavior category as comics?", "pos": [ "behavior category refers to category; category = 'comics';" ], "neg": [ "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);" ] }
{ "query": "State the category of the label that represented the behavior category of app id 4955831798976240000.", "pos": [ "label that represented the behavior category refers to label_id;" ], "neg": [ "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';" ] }
{ "query": "How many more devices are there of the brand vivo than of the brand LG?", "pos": [ "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';" ], "neg": [ "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;" ] }
{ "query": "Among the users who uses a vivo device, how many of them are female and under 30?", "pos": [ "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;" ], "neg": [ "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';" ] }
{ "query": "How many different models does the HTC brand have?", "pos": [ "models refers to device_model; HTC brand refers to phone_brand = 'HTC';" ], "neg": [ "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);" ] }
{ "query": "List the phone brands and models of the users under 10 years of age.", "pos": [ "models refers to device_model; under 10 years of age refers to age < 10;" ], "neg": [ "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);" ] }
{ "query": "How many male users have the log of events at the same longitude of 114?", "pos": [ "male refers to gender = 'M';" ], "neg": [ "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;" ] }
{ "query": "What is the age group of most OPPO users?", "pos": [ "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';" ], "neg": [ "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';" ] }
{ "query": "How many events in total have happened on all the vivo devices in the year 2016?", "pos": [ "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;" ], "neg": [ "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));" ] }
{ "query": "Please list any three OPPO device models.", "pos": [ "OPPO refers to phone_brand = 'OPPO';" ], "neg": [ "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;" ] }
{ "query": "Describe the phone brands and models of the users who participated in events on 5th May, 2016 at the coordinates of (112,44).", "pos": [ "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;" ], "neg": [ "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);" ] }
{ "query": "Please list the event IDs of the events that have happened on the device of the oldest user.", "pos": [ "oldest user refers to MAX(age);" ], "neg": [ "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;" ] }
{ "query": "How many users installed the app but are not active?", "pos": [ "installed refers to is_installed = 1; not active refers to is_active = 0;" ], "neg": [ "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';" ] }
{ "query": "What is the brand of the youngest user's device?", "pos": [ "brand of the device refers to phone_brand; youngest user refers to MIN(age);" ], "neg": [ "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;" ] }
{ "query": "Which phone brand and model was used for event ID \"6701\"?", "pos": [ "model refers to device_model;" ], "neg": [ "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%';" ] }
{ "query": "How many events did the 88-years-old male users participate on 4th May,2016?", "pos": [ "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';" ], "neg": [ "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';" ] }
{ "query": "Indicate the location of all the events that occurred on April 30, 2016.", "pos": [ "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';" ], "neg": [ "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';" ] }
{ "query": "What percentage of vivo devices belong to users with no information?", "pos": [ "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;" ], "neg": [ "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';" ] }
{ "query": "What is the category that the most app users belong to?", "pos": [ "most app users refers to MAX(COUNT(app_id));" ], "neg": [ "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;" ] }
{ "query": "Please list any three devices that are owned by female users.", "pos": [ "female refers to gender = 'F';" ], "neg": [ "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%';" ] }
{ "query": "Which gender logged in the most to an event in the first 10 days of May 2016?", "pos": [ "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';" ], "neg": [ "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);" ] }
{ "query": "Give the time stamp for event No.887711.", "pos": [ "event no. refers to event_id; event_id = '887711';" ], "neg": [ "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);" ] }
{ "query": "Please list the location coordinates of all the devices with an inactive app user when event no.2 happened.", "pos": [ "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;" ], "neg": [ "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';" ] }
{ "query": "How many devices belong to model \"A51\"?", "pos": [ "model refers to device_model; device_model = 'A51';" ], "neg": [ "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;" ] }
{ "query": "How many male users of the \"Galaxy S5\" device model?", "pos": [ "male refers to gender = 'M';" ], "neg": [ "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;" ] }
{ "query": "How many users who are under 30 years old use device model of Galaxy Note 2?", "pos": [ "under 30 refers to age < 30;" ], "neg": [ "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';" ] }
{ "query": "What is the gender of the youngest user?", "pos": [ "youngest user refers to MIN(age);" ], "neg": [ "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;" ] }
{ "query": "Which behavior category does user number 5902120154267990000 belong to?", "pos": [ "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;" ], "neg": [ "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';" ] }
{ "query": "Provide the phone brands and models of the users who were at the coordinates of (80,44).", "pos": [ "models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;" ], "neg": [ "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';" ] }
{ "query": "List all the devices' brands and models of events on 5/7/2016 at 6:03:22 AM.", "pos": [ "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';" ], "neg": [ "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;" ] }
{ "query": "What are the ages and genders of the LG L70 users?", "pos": [ "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';" ], "neg": [ "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;" ] }
{ "query": "How many events have happened on the device of the youngest female user?", "pos": [ "youngest refers to MIN(age); female refers to gender = 'F';" ], "neg": [ "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;" ] }
{ "query": "Mention the group of age of users who use phone brand of LG.", "pos": [ "group of age refers to group;" ], "neg": [ "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;" ] }
{ "query": "What is the difference between the events of device number -9222956879900150000 that can be located and those that are unable to be located?", "pos": [ "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;" ], "neg": [ "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';" ] }
{ "query": "Among all the times event no.2 happened when the app user was not active, when was the earliest time this situation happened?", "pos": [ "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);" ], "neg": [ "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';" ] }
{ "query": "How many devices are of the brand vivo?", "pos": [ "brand vivo refers to phone_brand = 'vivo';" ], "neg": [ "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';" ] }
{ "query": "How many male users are in the age group of M32-38?", "pos": [ "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';" ], "neg": [ "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;" ] }
{ "query": "Among the devices on which an event happened on 2016/5/1, how many of them are used by a male user?", "pos": [ "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';" ], "neg": [ "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);" ] }
{ "query": "How many female users over the age of 50 are there?", "pos": [ "female refers to gender = 'F'; over the age of 50 refers to age > 50;" ], "neg": [ "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));" ] }
{ "query": "What is the average age of the female users who uses a vivo device?", "pos": [ "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';" ], "neg": [ "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';" ] }
{ "query": "Which category has more app users, Securities or Finance?", "pos": [ "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;" ], "neg": [ "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);" ] }
{ "query": "Please list the time when event no.2 happened on a vivo device.", "pos": [ "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';" ], "neg": [ "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);" ] }
{ "query": "Locate all events on devices of women under 30 years old.", "pos": [ "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;" ], "neg": [ "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;" ] }
{ "query": "Give the number of male users who use phone branded HTC.", "pos": [ "male refers to gender = 'M';" ], "neg": [ "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';" ] }