query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
Which organization does student 313 belong to? | organization refers to organ | 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'; |
How many students have absent from school? | have absent from school refers to month > 1; | 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 |
How many students are enlisted in the Navy organization? | enlisted in the navy organization refers to organ = 'navy'; | 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; |
State name of disabled students who have the longest duration of absense from school. | longest duration of absense refers to MAX(month) | 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)) |
Calculate the ratio in percentage between the average number of female and male students who joined Fire Department organization. | 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' | 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'; |
How many male students filed for bankruptcy as compare to female students? | 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 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 |
How many disabled students are male? | male students are mentioned in male.name; | 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'; |
How many students are enlisted in the Army organization? | enlisted in the army refers to organ = 'army'; | 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'; |
Provide the name of disabled male students that are unemployed. | disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name; | 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'; |
Calculate the average duration of absense of disabled students. | average refers to DIVIDE(SUM(month), COUNT(name)) | 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; |
Mention the name of unemployed students who have never been absent from school. | have never been absent from school refers to month = 0 | 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; |
Count the number of male students who belong to foreign legion. | belong to foreign legion refers to organ = 'foreign_legion'; | 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; |
What is the school and organization enrolled by student211? | organization refers to organ; student211 is a name of student; | 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'; |
State name of students who filed for bankruptcy and have the longest duration of absense from school. | longest duration of absense refers to MAX(month) | 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'; |
Please list the departments the students are absent from school for 9 months are in. | absent from school for 9 months refers to month = 9 | 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' |
What is the status of payment of student 124? | 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; | 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'; |
How many unemployed students are enlisted in the Army organization? | organization refers to organ; organ = 'army'; | 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'; |
How many students were absence for 4 month? | absence for 4 month refers to month = 4; | 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'; |
How many unemployed students are enlisted in the navy organization? | enlisted in the navy organization refers to organ = 'navy'; | 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; |
Calculate the average duration of absense of female students. | 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 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)) |
How many students have been absents for more than 6 months? | absents for more than 6 months refers to month > 6 | 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 |
List out female students that enrolled in occ school and ulca? | female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca'); | 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'; |
How many students have never been absent in school? | never been absent in school refers to month = 0; | 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) |
How many students enlisted in the fire-department? | enlisted in the fire-department refers to organ = 'fire_department'; | 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'; |
State the number of disabled students who have payment due. | have payment due refers to bool = 'pos'; | 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'; |
What is the name of the student with the longest duration of absence? | longest duration of absence refers to MAX(month); | 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; |
Among the students from the navy department, how many of them have payment due? | from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos'; | 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)); |
Among the male students, list down the names of students with payment due. | male students are mentioned in male.name; with payment due refers to bool = 'pos'; | 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'; |
Among the students that have a payment due, how many students are unemployed? | students that have a payment due refers to bool = 'pos'; | 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'; |
How many male students join more than one organization? | more than one organization refers to COUNT(organ) > 1 | 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; |
How many students from SMC are unemployed? | from SMC refers to school = 'smc'; | 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; |
Student21 is enlisted in which organization and has the student been absent? | organization refers to organ | 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; |
How many unemployed students filed for bankruptcy? | unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name; | 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 |
How many unemployed students have payment due? | have payment due refers to bool = 'pos'; | 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'; |
How many employed disabled students have zero absences? | employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0; | 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; |
How many students are enlisted in the Peace Corps organization are enrolled in UCSD school? | enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd'; | 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; |
List out the organization joined and school enrolled by student27, student17 and student101? | organization joined refers to organ | 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'; |
State the unemployed students who enlisted in marines. | enlisted in marines refers to organ = 'marines'; | 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 |
Calculate the average enlisted students per organization. | average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ))); | 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'; |
Count the number of students from UCSD enlisted in the peace corps. | in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd'; | 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 |
Count the number of female students who belong to marines organization. | female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines'; | 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 |
List out the number of students who filed for bankruptcy and enlisted in navy. | navy refers to organ = 'navy'; | 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; |
What is the organization enlisted by student168? | organization refers to organ; student168 is a name of student; | 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 |
Mention the status of payment of student 299. | 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; | 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; |
How many students are enlisted to the air force? | Air Force refers to organ = 'air_force'; | 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; |
List the names of the disabled students who were absent from school for more than 5 months. | absent for more than 5 months refers to month > 5; | 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'; |
How many months did a student in the Air Force miss school the most? | Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month)); | 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'; |
What is the ship date of the order by the customer named Ann Chong in the central region? | Ann Chong' is the "Customer Name"; Region = 'Central' | 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"; |
What is the ratio between customers who live in Texas and customers who live in Indiana? | 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 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' |
What are the names of the products that had been shipped in March 2013 at central superstore? | names of the products refers to Product Name; shipped in March 2013 refers to "Ship Date" = '2013-03%' | 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'); |
Who is the customer from the West region that received the highest discount? | received the highest discount refers to MAX(discount); customer refers to "Customer Name" | 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'); |
What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore? | 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 | 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'); |
List the name of all products that Cindy Stewart ordered in the east superstore. | name of all products refers to Product Name; Cindy Stewart is the Customer Name; | 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" |
How many orders purchased by Aaron Bergman have been delivered with the slowest shipping speed? | 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' | 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' |
Calculate the percentage of ordered office supplies products in the central and the south superstore. | 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'); | 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' |
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. | 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; 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' |
Provide the names, cities, and countries of the customers who ordered the Plantronics single ear headset. | Plantronics Single Ear Headset' is the "Product Name"; name refers to "Customer Name"; | 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" |
What was the quantity of Xerox 1952 ordered by Aimee Bixby on 2014/9/10? | 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'; | 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"; |
What is the highest profit order in the East superstore of customers from Houston, Texas? | highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas' | 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' |
What is the total sales of furniture products in the east superstore in the year 2016.
| furniture products refers to Category = 'Furnitures'; in the year 2016 refers to "Order Date" BETWEEN '2016-01-01' AND '2016-12-31' | 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" |
How much is the total quantity of items from the East region shipped on 3/25/2015? Name the products. | shipped on 3/25/2015 refers to "Ship Date" = Date('2015-03-25'); | 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 |
Give the customer segment from the West region that orders the order ID CA-2011-108189. | Region = 'West' | 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" |
Among the customers in South superstore, which customers ordered more than 3 times in 2015? State the name of the customers. | 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 | 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' |
Please list the names of all the customers who had ordered the product "Telescoping Adjustable Floor Lamp". | "Telescoping Adjustable Floor Lamp" is a product name; names of all the customers refers to "Customer Name" | 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' |
Among the orders from 2016 in the Central region, what is the product with the lowest profit? | orders from 2016 refers to "Order Date" = '2016%'; product refers to "Product Name"; lowest profit refers to min(Profit) | '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'); |
How many of the "Hon Pagoda Stacking Chairs" have been sold in total in the west superstore? | Hon Pagoda Stacking Chairs' is the "Product Name"; west superstore refers to Region = 'West' | 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)) |
Among the customers who have ordered the product "Telescoping Adjustable Floor Lamp", how many of them are consumers? | "Telescoping Adjustable Floor Lamp" is a "Product Name"; consumers refers to Segment = 'Consumer'; | 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)) |
How many orders has Aimee Bixby made? | 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' | 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; |
How many orders were made by customers who live in Texas at the Central superstore? | customer live in Texas refers to State = 'Texas' | 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 |
What is the name of the product that has the highest original price? | has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to "Product Name" | 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" |
Which order of Logitech G600 MMO Gaming Mouse has the highest total cost? | Logitech G600 MMO Gaming Mouse refers to "Product Name"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)) | 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" |
List down the customers that purchased the product named Xerox 23 in the South region. | product named Xerox 23 refers to "Product Name" = 'Xerox 23'; customers refers to "Customer 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'); | 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) |
List the products that were ordered by Anne McFarland from the Western store. | Anne McFarland' is the "Customer Name"; Western store refers to west_superstore; products refers to "Product Name" | 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'; |
Who ordered the order ID CA-2011-118976 from the East region? | Who refers to "Customer Name" | 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" |
State the highest profit made by Anna Chung's orders in the Central Superstore. | highest profit refers to max(Profit) | 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" |
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. | 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' | 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" |
List the products ordered by customers in Coachella. | in Coachella refers to City = 'Coachella'; products refers to "Product Name" | 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 |
Calculate the difference between the total sales in the East superstore and the total sales in the West superstore. | East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West') | 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" |
What are the total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region? | 'Hon Valutask Swivel Chairs' is the "Product Name" | "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 |
What is the total profit of "Memorex Froggy Flash Drive 8 GB in south superstore? | "Memorix Froggy Flash Drive 8 GB" is the "Product Name" | 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' |
Who was the customer in the South Region superstore who bought the most “Hon Multipurpose Stacking Arm Chairs"? | 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 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" |
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? | 'O'Sullivan Cherrywood Estates Traditional Bookcase' is the "Product Name"; shipping mode with the fastest delivery speed refers to "Ship Mode" = 'First Class' | 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 |
What is the name of the product that Aimee Bixby bought? | name of the product refers to "Product Name" | 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' |
List the name of all products in the west superstore that customers chose for same-day shipment in the year 2013. | 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' | 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' |
Among the orders in Central superstore, which art product were ordered the most? | art product refers to Sub-Category = 'Art'; the most refers to max(order_number) | 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' |
Add the total profit of Patrick Gardner in the Central region. | Patrick Gardner is the "Customer Name"; Region = 'Central' | slowest shipping speed refers to "Ship Mode" = 'Standard 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'); | 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' | 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'); | Region = 'West' | 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 | Cisco SPA301' is the "Product Name"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore | highest profit refers to max(Profit) | live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana')) |
What product was ordered in the Central region on April 26, 2018, and shipped by April 27, 2018? | 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'); | Who refers to "Customer Name" | name of all products refers to Product Name; Cindy Stewart is the Customer Name; | highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas' | customer refers to "Customer Name"; “Hon Multipurpose Stacking Arm Chairs" is the "Product Name"; | ordered by Becky Martin refers to "Customer Name" = 'Becky Martin'; Region = 'Central'; products refers to "Product Name" | Frank Olsen' is the "Customer Name"; Region = 'South' | names of the products refers to Product Name; shipped in March 2013 refers to "Ship Date" = '2013-03%' | Cisco SPA301' is the "Product Name"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore | highest profit refers to MAX(profit); Region = 'East' | made the highest sales refers to MAX(Sales) |
List the products ordered by Becky Martin around the Central region. | ordered by Becky Martin refers to "Customer Name" = 'Becky Martin'; Region = 'Central'; products refers to "Product Name" | Hon Pagoda Stacking Chairs' is the "Product Name"; west superstore refers to Region = 'West' | 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 | has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to "Product Name" | Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to "Product Name" | Bush Mission Pointe Library' is the "Product Name"; | customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000 | shipment duration = subtract("Ship Date", "Order Date"); order number CA-2011-134103 refers to "Order ID" = 'CA-2011-134103' | "Memorix Froggy Flash Drive 8 GB" is the "Product Name" | highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas' | 'Hon Valutask Swivel Chairs' is the "Product Name" |
Who ordered the Bush Mission Pointe Library in the Central Region? | Bush Mission Pointe Library' is the "Product Name"; | customer refers to "Customer Name"; “Hon Multipurpose Stacking Arm Chairs" is the "Product Name"; | 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' | Lexmark X 9575 Professional All-in-One Color Printer' is the "Product Name" | Patrick Gardner is the "Customer Name"; Region = 'Central' | made the highest sales refers to MAX(Sales) | furniture products refers to Category = 'Furniture'; shipped by standard class refers to "Ship Mode" = 'Standard Class' | Region = 'West' | Who 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' | 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 |
Which product did Phillina Ober buy? | product refers to "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' | 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"; | caused a loss to the company refers to Profit < 0 | 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' | 'Hon Valutask Swivel Chairs' is the "Product Name" | highest profit refers to max(Profit) | 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) |
Who is the customer from the East region that purchased the order with the highest profit? | highest profit refers to MAX(profit); Region = 'East' | "Memorix Froggy Flash Drive 8 GB" is the "Product Name" | caused a loss to the company refers to Profit < 0 | made the highest sales refers to MAX(Sales) | 'Hon Valutask Swivel Chairs' is the "Product Name" | in Coachella refers to City = 'Coachella'; products refers to "Product Name" | ordered in 2013 refers to strftime('%Y', "Order Date") = '2013'; art products refers to "Sub-Category" = 'Art' | Anne McFarland' is the "Customer Name"; Western store refers to west_superstore; products refers to "Product Name" | received the highest discount refers to MAX(discount); customer 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' | Maxwell Schwartz' is the "Customer Name"; in 2015 refers to strftime('%Y', "Order Date") = '2015'; |
What was the total cost of Xerox 1952 ordered by Aimee Bixby on 2014/9/10? | 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) | highest profit refers to MAX(profit); Region = 'East' | name of customers refers to "Customer Name"; bought exactly 8 items refers to Quantity = 8 | 'Hon Valutask Swivel Chairs' is the "Product Name" | name of the product refers to "Product Name" | product named Xerox 23 refers to "Product Name" = 'Xerox 23'; customers refers to "Customer Name" | customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000 | Who refers to "Customer Name" | art product refers to Sub-Category = 'Art'; the most refers to max(order_number) | 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' |
How many customers in Chicago ordered at least 10 Cardinal EasyOpen D-Ring Binders in a single order? | 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' | 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 | office supply refers to Category = 'Office Supplies' | 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 | Patrick Gardner is the "Customer Name"; Region = 'Central' | 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' | in Coachella refers to City = 'Coachella'; products refers to "Product Name" | ordered in 2013 refers to strftime('%Y', "Order Date") = '2013'; art products refers to "Sub-Category" = 'Art' | live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana')) |
Please list any three orders that caused a loss to the company. | caused a loss to the company refers to Profit < 0 | Aimee Bixby made refers to "Customer Name" = 'Aimee Bixby'; | 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 Pagoda Stacking Chairs' is the "Product Name"; west superstore refers to Region = 'West' | Bush Mission Pointe Library' is the "Product Name"; | Frank Olsen' is the "Customer Name"; Region = 'South' | 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; same-day shipment refers to "Ship Mode" = 'Same Day'; year 2013 refers to "Ship Date" BETWEEN '2013-01-01' AND '2013-12-31' | Plantronics Single Ear Headset' is the "Product Name"; name refers to "Customer Name"; | Who 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'; |
What are the names of the products that were ordered by Alejandro Grove? | ordered by Alejandro Grove refers to "Customer Name" = 'Alejandro Grove'; names of the 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 | 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 | names of the products refers to Product Name; shipped in March 2013 refers to "Ship Date" = '2013-03%' | highest profit refers to max(Profit) | name of the product refers to "Product 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' | product refers to "Product Name" | Plantronics Single Ear Headset' is the "Product Name"; name refers to "Customer Name"; | at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to "Product Name"; customers in Chicago refers to City = 'Chicago' | orders from 2016 refers to "Order Date" = '2016%'; product refers to "Product Name"; lowest profit refers to min(Profit) |
Indicate the profit of product Sauder Camden County Barrister Bookcase, Planked Cherry Finish. | Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to "Product Name" | slowest shipping speed refers to "Ship Mode" = 'Standard Class' | Anne McFarland' is the "Customer Name"; Western store refers to west_superstore; products 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)) | 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'); | names of the products refers to Product Name; shipped in March 2013 refers to "Ship Date" = '2013-03%' | 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 the product refers to "Product Name" | Patrick Gardner is the "Customer Name"; Region = 'Central' | 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 | orders from 2016 refers to "Order Date" = '2016%'; product refers to "Product Name"; lowest profit refers to min(Profit) |
Please give the name of customers from the West region that bought exactly 8 items in their purchase. | 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%' | orders from 2016 refers to "Order Date" = '2016%'; product refers to "Product Name"; lowest profit refers to min(Profit) | "Telescoping Adjustable Floor Lamp" is a product name; names of all the customers refers to "Customer Name" | product named Xerox 23 refers to "Product Name" = 'Xerox 23'; customers refers to "Customer Name" | customer live in Texas refers to State = 'Texas' | Region = 'West' | 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' | Who refers to "Customer Name" | 'Hon Valutask Swivel Chairs' is the "Product Name" | caused a loss to the company refers to Profit < 0 |
How many office supply orders were made by Cindy Stewart in the south superstore? | office supply refers to Category = 'Office Supplies' | ordered by Alejandro Grove refers to "Customer Name" = 'Alejandro Grove'; names of the products refers to "Product Name" | made by Aimee Bixby refers to "Customer Name" = 'Aimee Bixby'; | Frank Olsen' is the "Customer Name"; Region = 'South' | received the highest discount refers to MAX(discount); customer 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' | name of all products refers to Product Name; Cindy Stewart is the Customer Name; | 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 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' | slowest shipping speed refers to "Ship Mode" = 'Standard Class' |
Among the customers from Indiana, what is the percentage of their purchased orders in the Central region with no discount? | Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage | highest profit refers to max(Profit) | 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 the product refers to "Product Name" | Plantronics Single Ear Headset' is the "Product Name"; name refers to "Customer 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 | Frank Olsen' is the "Customer Name"; Region = 'South' | shipped on 3/25/2015 refers to "Ship Date" = Date('2015-03-25'); | highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas' | Logitech G600 MMO Gaming Mouse refers to "Product Name"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)) | received the highest discount refers to MAX(discount); customer refers to "Customer Name" |
What is the total quantity that Cindy Stewart order "Lexmark X 9575 Professional All-in-One Color Printer" in the south superstore? | Lexmark X 9575 Professional All-in-One Color Printer' is the "Product Name" | shipment duration = subtract("Ship Date", "Order Date"); order number CA-2011-134103 refers to "Order ID" = 'CA-2011-134103' | Anne McFarland' is the "Customer Name"; Western store refers to west_superstore; products refers to "Product Name" | 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' | 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)) | ordered by Becky Martin refers to "Customer Name" = 'Becky Martin'; Region = 'Central'; products 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)) | 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' | 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" | furniture products refers to Category = 'Furniture'; shipped by standard class refers to "Ship Mode" = 'Standard Class' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.