set
dict
{ "query": "How many disabled male students joined an organization?", "pos": [ "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;" ], "neg": [ "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "joined two organization refers to COUNT(organ) > = 2", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "have payment due refers to bool = 'pos';", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absense from school for 5 month refers to month = 5", "absents for more than 6 months refers to month > 6", "male students are mentioned in male.name; with payment due refers to bool = 'pos';" ] }
{ "query": "State name of female students who filed for bankruptcy.", "pos": [ "female students refers to filed_for_bankrupcy.name who are NOT in male.name;" ], "neg": [ "from SMC refers to school = 'smc';", "organization refers to organ", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "enlisted in marines refers to organ = 'marines';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "enrolled in SMC refers to school = 'smc';", "who have payment due refers to bool = 'pos';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';" ] }
{ "query": "How many female students are enlisted in the Navy organization?", "pos": [ "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';" ], "neg": [ "have never been absent from school refers to month = 0", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "absent for 8 months refers to month = 8;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "enlisted in marines refers to organ = 'marines';", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "joined two organization refers to COUNT(organ) > = 2", "students that have a payment due refers to bool = 'pos';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa" ] }
{ "query": "Give the number of students who have payment due.", "pos": [ "who have payment due refers to bool = 'pos';" ], "neg": [ "male students are mentioned in male.name;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "Air Force refers to organ = 'air_force';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "average refers to DIVIDE(SUM(month), COUNT(name))", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "more than one organization refers to COUNT(organ) > 1", "enlisted in the navy organization refers to organ = 'navy';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';" ] }
{ "query": "How many male students are enrolled at OCC?", "pos": [ "male students are mentioned in male.name; OCC refers to school = 'occ';" ], "neg": [ "enlisted in marines refers to organ = 'marines';", "have absent from school refers to month > 1;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "belong to the navy department refers to organ = 'navy';", "absents for more than 6 months refers to month > 6", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "have never been absent refers to `month` = 0;", "absent from school for more than 5 months refers to `month`  > = 5;", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absent from school for the longest time refers to MAX(month)" ] }
{ "query": "Define the gender of \"student995\" and his/her enrolled schools.", "pos": [ "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;" ], "neg": [ "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;", "who have payment due refers to bool = 'pos';", "longest duration of absense refers to MAX(month)", "belong to the navy department refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "with payment due refers to bool = 'pos';" ] }
{ "query": "How many female students have enlisted for the Army?", "pos": [ "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';" ], "neg": [ "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "absent for 6 months refers to month = 6;", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "who have payment due refers to bool = 'pos';", "longest duration of absense refers to MAX(month)", "average refers to DIVIDE(SUM(month), COUNT(name))", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absence for 4 month refers to month = 4;", "average refers to DIVIDE(SUM(month), COUNT(name))" ] }
{ "query": "Please provide a disability breakdown for each school.", "pos": [ "disability breakdown refers to the number of disabled students;" ], "neg": [ "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "enlisted in the fire-department refers to organ = 'fire_department';", "more than one organization refers to COUNT(organ) > 1", "had never been absent refers to month = 0", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "have never been absent from school refers to month = 0", "enlisted in marines refers to organ = 'marines';", "longest duration of absense refers to MAX(month)", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';" ] }
{ "query": "What percentage of students who enlisted in the navy make up the number of students enrolled in OCC?", "pos": [ "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'" ], "neg": [ "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "organization joined refers to organ", "Air Force refers to organ = 'air_force';", "have no due payments refers to bool = 'neg';", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absense from school for 5 month refers to month = 5", "navy refers to organ = 'navy';", "still have payment due refers to bool = 'pos'", "absent above 2 months refers to month > 2;" ] }
{ "query": "Name all disabled students that are enrolled in SMC.", "pos": [ "enrolled in SMC refers to school = 'smc';" ], "neg": [ "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "belong to the navy department refers to organ = 'navy';", "absent for more than 5 months refers to month > 5;", "never been absent from school refers to month = 0", "enlisted in marines refers to organ = 'marines';", "absence for 4 month refers to month = 4;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;", "navy refers to organ = 'navy';", "OCC refers to school = 'occ';" ] }
{ "query": "How many students enlisted in the Navy?", "pos": [ "Navy refers to organ = 'navy';" ], "neg": [ "longest absense refers to MAX(month)", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "navy refers to organ = 'navy';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "absent from school for 9 months refers to month = 9", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "absent for more than 5 months refers to month > 5;" ] }
{ "query": "Which organization has the highest number of male students? Calculate for the percentage of the male students in the said organization.", "pos": [ "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;" ], "neg": [ "average refers to DIVIDE(SUM(month), COUNT(name))", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "longest absense refers to MAX(month)", "make payment before due refers to bool = 'neg';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "never been absent from school refers to month = 0", "longest duration of absense refers to MAX(month)", "have absent from school refers to month > 1;", "male students are mentioned in male.name;" ] }
{ "query": "Find the average number of absences for each student.", "pos": [ "average refers to DIVIDE(SUM(month), COUNT(name))" ], "neg": [ "navy refers to organ = 'navy';", "students that have a payment due refers to bool = 'pos';", "have never been absent refers to `month` = 0;", "longest duration of absence refers to MAX(month);", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absense from school for 5 month refers to month = 5", "navy refers to organ = 'navy';", "belong to the navy department refers to organ = 'navy';", "enrolled in SMC refers to school = 'smc';" ] }
{ "query": "List the names of disabled students enlisted in the navy.", "pos": [ "navy refers to organ = 'navy';" ], "neg": [ "absent for 9 months refers to month = 9;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "longest duration of absense refers to MAX(month)", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "navy refers to organ = 'navy';", "disability breakdown refers to the number of disabled students;", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "average refers to DIVIDE(SUM(month), COUNT(name))", "enrolled in SMC refers to school = 'smc';" ] }
{ "query": "List all students in the air force and which school they were enrolled at.", "pos": [ "in the air force refers to organ = 'air_force';" ], "neg": [ "enlisted in the fire-department refers to organ = 'fire_department';", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "organization refers to organ", "absent for 8 months refers to month = 8;", "organization refers to organ", "longest absense refers to MAX(month)", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "enrolled in SMC refers to school = 'smc';", "belong to foreign legion refers to organ = 'foreign_legion';", "had never been absent refers to month = 0" ] }
{ "query": "Which organization does student 313 belong to?", "pos": [ "organization refers to organ" ], "neg": [ "have payment due refers to bool = 'pos';", "Air Force refers to organ = 'air_force';", "absents for more than 6 months refers to month > 6", "male students are mentioned in male.name;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "have never been absent from school refers to month = 0", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;", "have payment due refers to bool = 'pos';" ] }
{ "query": "How many students have absent from school?", "pos": [ "have absent from school refers to month > 1;" ], "neg": [ "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "enlisted in the army refers to organ = 'army';", "navy refers to organ = 'navy';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "have never been absent from school refers to month = 0" ] }
{ "query": "How many students are enlisted in the Navy organization?", "pos": [ "enlisted in the navy organization refers to organ = 'navy';" ], "neg": [ "disability breakdown refers to the number of disabled students;", "Air Force refers to organ = 'air_force';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "have payment due refers to bool = 'pos';", "enlisted in marines refers to organ = 'marines';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "enlisted in the air force refers to organ = 'air_force';", "absent for 8 months refers to month = 8;", "absence for 4 month refers to month = 4;" ] }
{ "query": "State name of disabled students who have the longest duration of absense from school.", "pos": [ "longest duration of absense refers to MAX(month)" ], "neg": [ "absent above 2 months refers to month > 2;", "absent from school for more than 5 months refers to `month`  > = 5;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "average refers to DIVIDE(SUM(month), COUNT(name))", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "still have payment due refers to bool = 'pos'", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "enlisted in the army refers to organ = 'army';", "organization joined refers to organ", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))" ] }
{ "query": "Calculate the ratio in percentage between the average number of female and male students who joined Fire Department organization.", "pos": [ "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';" ], "neg": [ "still have payment due refers to bool = 'pos'", "average refers to DIVIDE(SUM(month), COUNT(name))", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "enlisted in marines refers to organ = 'marines';", "longest duration of absense refers to MAX(month)", "who have payment due refers to bool = 'pos';", "had never been absent refers to month = 0", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "enlisted in the navy organization refers to organ = 'navy';" ] }
{ "query": "How many male students filed for bankruptcy as compare to female students?", "pos": [ "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;" ], "neg": [ "absent from school for 9 months refers to month = 9", "disability breakdown refers to the number of disabled students;", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "enlisted in the navy organization refers to organ = 'navy';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "have payment due refers to bool = 'pos';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "navy refers to organ = 'navy';", "organization joined refers to organ" ] }
{ "query": "How many disabled students are male?", "pos": [ "male students are mentioned in male.name;" ], "neg": [ "absence for 4 month refers to month = 4;", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "joined two organization refers to COUNT(organ) > = 2", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "longest duration of absense refers to MAX(month)", "more than one organization refers to COUNT(organ) > 1", "enlisted in the fire-department refers to organ = 'fire_department';", "from SMC refers to school = 'smc';", "longest duration of absense refers to MAX(month)", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';" ] }
{ "query": "How many students are enlisted in the Army organization?", "pos": [ "enlisted in the army refers to organ = 'army';" ], "neg": [ "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "belong to the navy department refers to organ = 'navy';", "enlisted in the air force refers to organ = 'air_force';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';" ] }
{ "query": "Provide the name of disabled male students that are unemployed.", "pos": [ "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;" ], "neg": [ "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "belong to the navy department refers to organ = 'navy';", "have payment due refers to bool = 'pos';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "have payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "navy refers to organ = 'navy';" ] }
{ "query": "Calculate the average duration of absense of disabled students.", "pos": [ "average refers to DIVIDE(SUM(month), COUNT(name))" ], "neg": [ "have payment due refers to bool = 'pos';", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "organization refers to organ; student211 is a name of student;", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "have payment due refers to bool = 'pos';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "enlisted in the navy organization refers to organ = 'navy';", "organization refers to organ; student168 is a name of student;" ] }
{ "query": "Mention the name of unemployed students who have never been absent from school.", "pos": [ "have never been absent from school refers to month = 0" ], "neg": [ "organization refers to organ; student168 is a name of student;", "disability breakdown refers to the number of disabled students;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "make payment before due refers to bool = 'neg';", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "with payment due refers to bool = 'pos';", "navy refers to organ = 'navy';", "in the air force refers to organ = 'air_force';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;" ] }
{ "query": "Count the number of male students who belong to foreign legion.", "pos": [ "belong to foreign legion refers to organ = 'foreign_legion';" ], "neg": [ "organization refers to organ", "male students are mentioned in male.name;", "belong to the navy department refers to organ = 'navy';", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "have never been absent from school refers to month = 0", "average refers to DIVIDE(SUM(month), COUNT(name))", "in the air force refers to organ = 'air_force';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "absent from school for 9 months refers to month = 9", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;" ] }
{ "query": "What is the school and organization enrolled by student211?", "pos": [ "organization refers to organ; student211 is a name of student;" ], "neg": [ "have never been absent from school refers to month = 0", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "navy refers to organ = 'navy';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "from SMC refers to school = 'smc';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "absent for 9 months refers to month = 9;", "enrolled in SMC refers to school = 'smc';", "belong to the navy department refers to organ = 'navy';" ] }
{ "query": "State name of students who filed for bankruptcy and have the longest duration of absense from school.", "pos": [ "longest duration of absense refers to MAX(month)" ], "neg": [ "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "longest duration of absense refers to MAX(month)", "more than one organization refers to COUNT(organ) > 1", "belong to the navy department refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "navy refers to organ = 'navy';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "have absent from school refers to month > 1;", "enlisted in marines refers to organ = 'marines';" ] }
{ "query": "Please list the departments the students are absent from school for 9 months are in.", "pos": [ "absent from school for 9 months refers to month = 9" ], "neg": [ "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "average refers to DIVIDE(SUM(month), COUNT(name))", "male students are mentioned in male.name; OCC refers to school = 'occ';", "navy refers to organ = 'navy';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "never been absent from school refers to month = 0", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "absent for 6 months refers to month = 6;", "enlisted in marines refers to organ = 'marines';", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'" ] }
{ "query": "What is the status of payment of student 124?", "pos": [ "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;" ], "neg": [ "longest duration of absense refers to MAX(month)", "disability breakdown refers to the number of disabled students;", "absent from school for more than 5 months refers to `month`  > = 5;", "have payment due refers to bool = 'pos';", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "who have payment due refers to bool = 'pos';", "organization refers to organ", "longest absense refers to MAX(month)", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';" ] }
{ "query": "How many unemployed students are enlisted in the Army organization?", "pos": [ "organization refers to organ; organ = 'army';" ], "neg": [ "absent for 8 months refers to month = 8;", "navy refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "male students are mentioned in male.name;", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "longest duration of absense refers to MAX(month)", "absent for more than 5 months refers to month > 5;", "organization joined refers to organ", "never been absent in school refers to month = 0;", "with payment due refers to bool = 'pos';" ] }
{ "query": "How many students were absence for 4 month?", "pos": [ "absence for 4 month refers to month = 4;" ], "neg": [ "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "have no due payments refers to bool = 'neg';", "absent from school for 9 months refers to month = 9", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "navy refers to organ = 'navy';", "longest duration of absense refers to MAX(month)", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "make payment before due refers to bool = 'neg';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';" ] }
{ "query": "How many unemployed students are enlisted in the navy organization?", "pos": [ "enlisted in the navy organization refers to organ = 'navy';" ], "neg": [ "Air Force refers to organ = 'air_force';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "absent from school for more than 5 months refers to `month`  > = 5;", "belong to the navy department refers to organ = 'navy';", "in the air force refers to organ = 'air_force';", "disability breakdown refers to the number of disabled students;", "organization refers to organ; organ = 'army';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;" ] }
{ "query": "Calculate the average duration of absense of female students.", "pos": [ "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;" ], "neg": [ "absent above 2 months refers to month > 2;", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "Air Force refers to organ = 'air_force';", "organization refers to organ", "more than one organization refers to COUNT(organ) > 1", "who have payment due refers to bool = 'pos';", "in the foreign legion refers to organ = 'foreign_legion';", "navy refers to organ = 'navy';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "average refers to DIVIDE(SUM(month), COUNT(name))" ] }
{ "query": "How many students have been absents for more than 6 months?", "pos": [ "absents for more than 6 months refers to month > 6" ], "neg": [ "absent for more than 5 months refers to month > 5;", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "in the foreign legion refers to organ = 'foreign_legion';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "enlisted in marines refers to organ = 'marines';", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "enlisted in the navy organization refers to organ = 'navy';", "absence for 4 month refers to month = 4;", "navy refers to organ = 'navy';", "absense from school for 5 month refers to month = 5" ] }
{ "query": "List out female students that enrolled in occ school and ulca?", "pos": [ "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');" ], "neg": [ "organization refers to organ", "absent above 2 months refers to month > 2;", "with payment due refers to bool = 'pos';", "organization refers to organ; student168 is a name of student;", "make payment before due refers to bool = 'neg';", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "have payment due refers to bool = 'pos';" ] }
{ "query": "How many students have never been absent in school?", "pos": [ "never been absent in school refers to month = 0;" ], "neg": [ "had never been absent refers to month = 0", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "still have payment due refers to bool = 'pos'", "students that have a payment due refers to bool = 'pos';", "male students are mentioned in male.name;", "navy refers to organ = 'navy';", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "absent from school for the longest time refers to MAX(month)", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "longest duration of absense refers to MAX(month)" ] }
{ "query": "How many students enlisted in the fire-department?", "pos": [ "enlisted in the fire-department refers to organ = 'fire_department';" ], "neg": [ "have payment due refers to bool = 'pos';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "more than one organization refers to COUNT(organ) > 1", "who have payment due refers to bool = 'pos';", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "organization refers to organ", "from SMC refers to school = 'smc';" ] }
{ "query": "State the number of disabled students who have payment due.", "pos": [ "have payment due refers to bool = 'pos';" ], "neg": [ "male students are mentioned in male.name;", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "absent for 8 months refers to month = 8;", "from SMC refers to school = 'smc';", "enlisted in marines refers to organ = 'marines';", "have no due payments refers to bool = 'neg';", "joined two organization refers to COUNT(organ) > = 2", "in the foreign legion refers to organ = 'foreign_legion';", "organization refers to organ; student168 is a name of student;", "belong to foreign legion refers to organ = 'foreign_legion';" ] }
{ "query": "What is the name of the student with the longest duration of absence?", "pos": [ "longest duration of absence refers to MAX(month);" ], "neg": [ "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "enlisted in the fire-department refers to organ = 'fire_department';", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "average refers to DIVIDE(SUM(month), COUNT(name))", "average refers to DIVIDE(SUM(month), COUNT(name))", "navy refers to organ = 'navy';", "absent for more than 5 months refers to month > 5;", "organization refers to organ; student211 is a name of student;", "OCC refers to school = 'occ';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;" ] }
{ "query": "Among the students from the navy department, how many of them have payment due?", "pos": [ "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';" ], "neg": [ "absense from school for 5 month refers to month = 5", "still have payment due refers to bool = 'pos'", "with payment due refers to bool = 'pos';", "absent above 2 months refers to month > 2;", "belong to foreign legion refers to organ = 'foreign_legion';", "absent for 9 months refers to month = 9;", "have never been absent from school refers to month = 0", "in the air force refers to organ = 'air_force';", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));" ] }
{ "query": "Among the male students, list down the names of students with payment due.", "pos": [ "male students are mentioned in male.name; with payment due refers to bool = 'pos';" ], "neg": [ "absent from school for more than 5 months refers to `month`  > = 5;", "navy refers to organ = 'navy';", "have payment due refers to bool = 'pos';", "absent above 2 months refers to month > 2;", "absent for more than 5 months refers to month > 5;", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "male students are mentioned in male.name; OCC refers to school = 'occ';", "navy refers to organ = 'navy';", "absent for 6 months refers to month = 6;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';" ] }
{ "query": "Among the students that have a payment due, how many students are unemployed?", "pos": [ "students that have a payment due refers to bool = 'pos';" ], "neg": [ "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "have no due payments refers to bool = 'neg';", "do not have payment due refers to bool = 'neg';", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "had never been absent refers to month = 0", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "absent for more than 5 months refers to month > 5;", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';" ] }
{ "query": "How many male students join more than one organization?", "pos": [ "more than one organization refers to COUNT(organ) > 1" ], "neg": [ "have absent from school refers to month > 1;", "male students are mentioned in male.name;", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "enlisted in the navy organization refers to organ = 'navy';", "had never been absent refers to month = 0", "absents for more than 6 months refers to month > 6", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "enlisted in marines refers to organ = 'marines';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;" ] }
{ "query": "How many students from SMC are unemployed?", "pos": [ "from SMC refers to school = 'smc';" ], "neg": [ "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "Air Force refers to organ = 'air_force';", "absence for 4 month refers to month = 4;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "navy refers to organ = 'navy';", "enlisted in the air force refers to organ = 'air_force';", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "have never been absent refers to `month` = 0;", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;" ] }
{ "query": "Student21 is enlisted in which organization and has the student been absent?", "pos": [ "organization refers to organ" ], "neg": [ "enlisted in the navy organization refers to organ = 'navy';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "have payment due refers to bool = 'pos';", "enrolled in SMC refers to school = 'smc';", "have payment due refers to bool = 'pos';", "have absent from school refers to month > 1;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "navy refers to organ = 'navy';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;" ] }
{ "query": "How many unemployed students filed for bankruptcy?", "pos": [ "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;" ], "neg": [ "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absents for more than 6 months refers to month > 6", "joined two organization refers to COUNT(organ) > = 2", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "longest duration of absence refers to MAX(month);", "in the foreign legion refers to organ = 'foreign_legion';", "who have payment due refers to bool = 'pos';", "never been absent in school refers to month = 0;", "have no due payments refers to bool = 'neg';", "never been absent from school refers to month = 0" ] }
{ "query": "How many unemployed students have payment due?", "pos": [ "have payment due refers to bool = 'pos';" ], "neg": [ "longest duration of absense refers to MAX(month)", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "absent from school for 9 months refers to month = 9", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "enlisted in the fire-department refers to organ = 'fire_department';", "organization refers to organ", "enlisted in marines refers to organ = 'marines';", "navy refers to organ = 'navy';", "from SMC refers to school = 'smc';", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';" ] }
{ "query": "How many employed disabled students have zero absences?", "pos": [ "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;" ], "neg": [ "organization refers to organ; student168 is a name of student;", "absent for 8 months refers to month = 8;", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "make payment before due refers to bool = 'neg';", "enrolled in SMC refers to school = 'smc';", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "longest duration of absense refers to MAX(month)", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "absence for 4 month refers to month = 4;" ] }
{ "query": "How many students are enlisted in the Peace Corps organization are enrolled in UCSD school?", "pos": [ "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';" ], "neg": [ "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "Air Force refers to organ = 'air_force';", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "have never been absent refers to `month` = 0;", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;" ] }
{ "query": "List out the organization joined and school enrolled by student27, student17 and student101?", "pos": [ "organization joined refers to organ" ], "neg": [ "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "students that have a payment due refers to bool = 'pos';", "belong to foreign legion refers to organ = 'foreign_legion';", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "Air Force refers to organ = 'air_force';", "belong to the navy department refers to organ = 'navy';", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "Air Force refers to organ = 'air_force';" ] }
{ "query": "State the unemployed students who enlisted in marines.", "pos": [ "enlisted in marines refers to organ = 'marines';" ], "neg": [ "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "male students are mentioned in male.name; OCC refers to school = 'occ';", "with payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "longest duration of absence refers to MAX(month);", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "longest duration of absense refers to MAX(month)", "navy refers to organ = 'navy';", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table" ] }
{ "query": "Calculate the average enlisted students per organization.", "pos": [ "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));" ], "neg": [ "enlisted in the navy organization refers to organ = 'navy';", "absent for 8 months refers to month = 8;", "from SMC refers to school = 'smc';", "navy refers to organ = 'navy';", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "students that have a payment due refers to bool = 'pos';", "longest duration of absense refers to MAX(month)", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';" ] }
{ "query": "Count the number of students from UCSD enlisted in the peace corps.", "pos": [ "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';" ], "neg": [ "Navy refers to organ = 'navy';", "have payment due refers to bool = 'pos';", "organization refers to organ; organ = 'army';", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "enlisted in the fire-department refers to organ = 'fire_department';", "absence for 4 month refers to month = 4;", "enlisted in the army refers to organ = 'army';", "absent for more than 5 months refers to month > 5;", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))", "had never been absent refers to month = 0" ] }
{ "query": "Count the number of female students who belong to marines organization.", "pos": [ "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';" ], "neg": [ "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "longest duration of absense refers to MAX(month)", "belong to the navy department refers to organ = 'navy';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "have no due payments refers to bool = 'neg';", "enlisted in the navy organization refers to organ = 'navy';", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "joined two organization refers to COUNT(organ) > = 2", "average refers to DIVIDE(SUM(month), COUNT(name))", "had never been absent refers to month = 0" ] }
{ "query": "List out the number of students who filed for bankruptcy and enlisted in navy.", "pos": [ "navy refers to organ = 'navy';" ], "neg": [ "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absent for 8 months refers to month = 8;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "longest duration of absence refers to MAX(month);", "belong to the navy department refers to organ = 'navy';", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "male students are mentioned in male.name;", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;" ] }
{ "query": "What is the organization enlisted by student168?", "pos": [ "organization refers to organ; student168 is a name of student;" ], "neg": [ "absent for 8 months refers to month = 8;", "had never been absent refers to month = 0", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "have absent from school refers to month > 1;", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "have payment due refers to bool = 'pos';", "have never been absent from school refers to month = 0" ] }
{ "query": "Mention the status of payment of student 299.", "pos": [ "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;" ], "neg": [ "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "absent from school for the longest time refers to MAX(month)", "have payment due refers to bool = 'pos';", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "still have payment due refers to bool = 'pos'", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "navy refers to organ = 'navy';", "absent for more than 5 months refers to month > 5;", "OCC refers to school = 'occ';", "organization refers to organ; student168 is a name of student;" ] }
{ "query": "How many students are enlisted to the air force?", "pos": [ "Air Force refers to organ = 'air_force';" ], "neg": [ "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "OCC refers to school = 'occ';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "who have payment due refers to bool = 'pos';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "have payment due refers to bool = 'pos';", "navy refers to organ = 'navy';", "absent from school for more than 5 months refers to `month`  > = 5;", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;" ] }
{ "query": "List the names of the disabled students who were absent from school for more than 5 months.", "pos": [ "absent for more than 5 months refers to month > 5;" ], "neg": [ "organization joined refers to organ", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "students that have a payment due refers to bool = 'pos';", "had never been absent refers to month = 0", "male students are mentioned in male.name;", "absent above 2 months refers to month > 2;", "enrolled in SMC refers to school = 'smc';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';" ] }
{ "query": "How many months did a student in the Air Force miss school the most?", "pos": [ "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));" ], "neg": [ "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "enlisted in the fire-department refers to organ = 'fire_department';", "organization refers to organ; organ = 'army';", "have absent from school refers to month > 1;", "absent from school for more than 5 months refers to `month`  > = 5;", "absent for 6 months refers to month = 6;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "absent for more than 5 months refers to month > 5;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';" ] }
{ "query": "What is the ship date of the order by the customer named Ann Chong in the central region?", "pos": [ "Ann Chong' is the \"Customer Name\"; Region = 'Central'" ], "neg": [ "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "Bush Mission Pointe Library' is the \"Product Name\";", "Region = 'West'", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "customer live in Texas refers to State = 'Texas'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "product refers to \"Product Name\"", "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";" ] }
{ "query": "What is the ratio between customers who live in Texas and customers who live in Indiana?", "pos": [ "live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))" ], "neg": [ "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "caused a loss to the company refers to Profit < 0", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "Region = 'West'" ] }
{ "query": "What are the names of the products that had been shipped in March 2013 at central superstore?", "pos": [ "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'" ], "neg": [ "highest profit refers to max(Profit)", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "caused a loss to the company refers to Profit < 0", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');" ] }
{ "query": "Who is the customer from the West region that received the highest discount?", "pos": [ "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"" ], "neg": [ "name of the product refers to \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "made the highest sales refers to MAX(Sales)", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "names of the products refers to \"Product Name\";  profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');" ] }
{ "query": "What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore?", "pos": [ "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage" ], "neg": [ "name of the product refers to \"Product Name\"", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');" ] }
{ "query": "List the name of all products that Cindy Stewart ordered in the east superstore.", "pos": [ "name of all products refers to Product Name; Cindy Stewart is the Customer Name;" ], "neg": [ "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "names of the products refers to \"Product Name\";  profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "customer live in Texas refers to State = 'Texas'", "Region = 'West'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"" ] }
{ "query": "How many orders purchased by Aaron Bergman have been delivered with the slowest shipping speed?", "pos": [ "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'" ], "neg": [ "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "Region = 'West'", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'" ] }
{ "query": "Calculate the percentage of ordered office supplies products in the central and the south superstore.", "pos": [ "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'" ], "neg": [ "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "caused a loss to the company refers to Profit < 0", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "office supply refers to Category = 'Office Supplies'", "customer live in Texas refers to State = 'Texas'" ] }
{ "query": "List the customer's name from the South region with a standard class ship mode and sales greater than the 88% of the average sales of all orders.", "pos": [ "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore" ], "neg": [ "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "highest profit refers to MAX(profit); Region = 'East'", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "Security-Tint Envelopes' refers to \"Product Name\"; ordered on June 3, 2013 refers to \"Order Date\" = '2013-06-03'", "Frank Olsen' is the \"Customer Name\"; Region = 'South'" ] }
{ "query": "Provide the names, cities, and countries of the customers who ordered the Plantronics single ear headset.", "pos": [ "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";" ], "neg": [ "Bush Mission Pointe Library' is the \"Product Name\";", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"" ] }
{ "query": "What was the quantity of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?", "pos": [ "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');" ], "neg": [ "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "office supply refers to Category = 'Office Supplies'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "name of the product refers to \"Product Name\"", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";" ] }
{ "query": "What is the highest profit order in the East superstore of customers from Houston, Texas?", "pos": [ "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'" ], "neg": [ "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "Region = 'West'" ] }
{ "query": "What is the total sales of furniture products in the east superstore in the year 2016.\n", "pos": [ "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'" ], "neg": [ "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "caused a loss to the company refers to Profit < 0", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"" ] }
{ "query": "How much is the total quantity of items from the East region shipped on 3/25/2015? Name the products.", "pos": [ "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');" ], "neg": [ "Region = 'West'", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "caused a loss to the company refers to Profit < 0", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "made the highest sales refers to MAX(Sales)", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage" ] }
{ "query": "Give the customer segment from the West region that orders the order ID CA-2011-108189.", "pos": [ "Region = 'West'" ], "neg": [ "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "names of the products refers to \"Product Name\";  profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "office supply refers to Category = 'Office Supplies'", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"" ] }
{ "query": "Among the customers in South superstore, which customers ordered more than 3 times in 2015? State the name of the customers.", "pos": [ "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3" ], "neg": [ "names of the products refers to \"Product Name\";  profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "highest profit refers to MAX(profit); Region = 'East'", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "office supply refers to Category = 'Office Supplies'", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'" ] }
{ "query": "Please list the names of all the customers who had ordered the product \"Telescoping Adjustable Floor Lamp\".", "pos": [ "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"" ], "neg": [ "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "product refers to \"Product Name\"", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'" ] }
{ "query": "Among the orders from 2016 in the Central region, what is the product with the lowest profit?", "pos": [ "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)" ], "neg": [ "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "Security-Tint Envelopes' refers to \"Product Name\"; ordered on June 3, 2013 refers to \"Order Date\" = '2013-06-03'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "caused a loss to the company refers to Profit < 0", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');" ] }
{ "query": "How many of the \"Hon Pagoda Stacking Chairs\" have been sold in total in the west superstore?", "pos": [ "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'" ], "neg": [ "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "name of the product refers to \"Product Name\"", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))" ] }
{ "query": "Among the customers who have ordered the product \"Telescoping Adjustable Floor Lamp\", how many of them are consumers?", "pos": [ "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';" ], "neg": [ "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "product refers to \"Product Name\"", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "highest profit refers to max(Profit)", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))" ] }
{ "query": "How many orders has Aimee Bixby made?", "pos": [ "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';" ], "neg": [ "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "office supply refers to Category = 'Office Supplies'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;" ] }
{ "query": "How many orders were made by customers who live in Texas at the Central superstore?", "pos": [ "customer live in Texas refers to State = 'Texas'" ], "neg": [ "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "name of the product refers to \"Product Name\"", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000" ] }
{ "query": "What is the name of the product that has the highest original price?", "pos": [ "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"" ], "neg": [ "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "name of the product refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"" ] }
{ "query": "Which order of Logitech G600 MMO Gaming Mouse has the highest total cost?", "pos": [ "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))" ], "neg": [ "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"" ] }
{ "query": "List down the customers that purchased the product named Xerox 23 in the South region.", "pos": [ "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"" ], "neg": [ "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "product refers to \"Product Name\"", "Who refers to \"Customer Name\"", "made the highest sales refers to MAX(Sales)", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)" ] }
{ "query": "List the products that were ordered by Anne McFarland from the Western store.", "pos": [ "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"" ], "neg": [ "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))", "name of the product refers to \"Product Name\"", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Who refers to \"Customer Name\"", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';" ] }
{ "query": "Who ordered the order ID CA-2011-118976 from the East region?", "pos": [ "Who refers to \"Customer Name\"" ], "neg": [ "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"" ] }
{ "query": "State the highest profit made by Anna Chung's orders in the Central Superstore.", "pos": [ "highest profit refers to max(Profit)" ], "neg": [ "product refers to \"Product Name\"", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"" ] }
{ "query": "List the name of all the products with order quantities greater than or equal to 10 in the central superstore that has been shipped by the slowest delivery method.", "pos": [ "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'" ], "neg": [ "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "names of the products refers to \"Product Name\";  profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "name of the product refers to \"Product Name\"" ] }
{ "query": "List the products ordered by customers in Coachella.", "pos": [ "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"" ], "neg": [ "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3" ] }
{ "query": "Calculate the difference between the total sales in the East superstore and the total sales in the West superstore.", "pos": [ "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')" ], "neg": [ "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "office supply refers to Category = 'Office Supplies'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"" ] }
{ "query": "What are the total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region?", "pos": [ "'Hon Valutask Swivel Chairs' is the \"Product Name\"" ], "neg": [ "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Who refers to \"Customer Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "customer live in Texas refers to State = 'Texas'", "highest profit refers to max(Profit)", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3" ] }
{ "query": "What is the total profit of \"Memorex Froggy Flash Drive 8 GB in south superstore?", "pos": [ "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"" ], "neg": [ "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "Who refers to \"Customer Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "customer live in Texas refers to State = 'Texas'", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'" ] }
{ "query": "Who was the customer in the South Region superstore who bought the most “Hon Multipurpose Stacking Arm Chairs\"?", "pos": [ "customer refers to \"Customer Name\"; “Hon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";" ], "neg": [ "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "highest profit refers to max(Profit)", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"" ] }
{ "query": "How many orders of O'Sullivan Plantations 2-Door Library in Landvery Oak in central superstore were shipped through the shipping mode with the fastest delivery speed?", "pos": [ "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'" ], "neg": [ "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "name of the product refers to \"Product Name\"", "Who refers to \"Customer Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Region = 'West'", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore" ] }
{ "query": "What is the name of the product that Aimee Bixby bought?", "pos": [ "name of the product refers to \"Product Name\"" ], "neg": [ "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'" ] }
{ "query": "List the name of all products in the west superstore that customers chose for same-day shipment in the year 2013.", "pos": [ "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'" ], "neg": [ "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "customer live in Texas refers to State = 'Texas'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Region = 'West'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "office supply refers to Category = 'Office Supplies'" ] }
{ "query": "Among the orders in Central superstore, which art product were ordered the most?", "pos": [ "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)" ], "neg": [ "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "customer live in Texas refers to State = 'Texas'", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'" ] }