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
|
---|---|---|---|---|---|---|---|---|---|---|---|
What is the average age of first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department?
|
RESPONSE = 'true'; AVG(age);
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
reference ID refers to REFID;
|
What is the occupation and response of female customers within the number of inhabitants range of 20 to 25?
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
RESPONSE = 'true'; AVG(age);
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;
|
DIVIDE(COUNT(INCOME_K ≥ 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
What percentage of elderly customers who are never married in the place with geographic ID 24?
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
reference ID refers to REFID;
|
MARITAL_STATUS = 'Never-married';
|
List down the customer's reference ID with true response.
|
reference ID refers to REFID;
|
female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;
|
GEOID = 134;
|
DIVIDE(COUNT(INCOME_K ≥ 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;
|
female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
|
SEX = 'Male';
|
reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
In male customers ages from 30 to 50, how many of them has an income ranges from 2000 to 2300?
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
RESPONSE = 'true';
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
GEOID = 134;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
MARITAL_STATUS = 'Never-married';
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
Among the reference ID of under 10 who got response by marketing department, compare their education status.
|
reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
|
RESPONSE = 'true'; AVG(age);
|
SEX = 'Male';
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
GEOID = 134;
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
What is the income of female customers ages from 30 to 55 years old and has an occupation of machine-op-inspct?
|
female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
SEX = 'Male';
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
GEOID = 134;
|
Describe the average income per month and yearly income of the geographic ID in which customer of ID "209556" and "290135".
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
age below 30 refers to age < 30;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
RESPONSE = 'true';
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
Among the customers over 30, how many of them are Machine-op-inspcts?
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
GEOID = 134;
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;
|
reference ID refers to REFID;
|
number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
|
In geographic identifier from 20 to 50, how many of them has a number of inhabitants below 20?
|
geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;
|
the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;
|
RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
GEOID = 134;
|
the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;
|
DIVIDE(COUNT(INCOME_K ≥ 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
How many customers are from the place with the highest average income per month?
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
SEX = 'Male';
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
Among the customers with an average income per inhabitant above 3000, what percentage are in their eighties?
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;
|
reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
RESPONSE = 'true';
|
Among the male customers with an level of education of 4 and below, list their income K.
|
male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
GEOID = 134;
|
RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
RESPONSE = 'true';
|
In customers with marital status of never married, what is the percentage of customers with income of 2500 and above?
|
DIVIDE(COUNT(INCOME_K ≥ 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
reference ID refers to REFID;
|
How many female customers have an education level of over 11?
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
reference ID refers to REFID;
|
SEX = 'Male';
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
RESPONSE = 'true';
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
What is the geographic identifier and income of the oldest customer?
|
the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
SEX = 'Male';
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;
|
female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;
|
What is the number of inhabitants of the place the most customers are from?
|
the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
|
the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
RESPONSE = 'true';
|
List down the number of inhabitants of customers with a divorced marital status and older than 50 years old.
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
age below 30 refers to age < 30;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;
|
What is the age of female customers within the number of inhabitants below 30?
|
female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
RESPONSE = 'true';
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
RESPONSE = 'true'; AVG(age);
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
What is the total number of widowed customers with an age below 50?
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
GEOID = 134;
|
reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
Of customers who provide other services, how many are from places where inhabitants are more than 20000?
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
GEOID = 134;
|
number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
|
RESPONSE = 'true';
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
What is the marital status of the customer ages 62 with an level of education of 7?
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
RESPONSE = 'true';
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
MARITAL_STATUS = 'Never-married';
|
geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
How many customers have never married?
|
MARITAL_STATUS = 'Never-married';
|
RESPONSE = 'true'; AVG(age);
|
SEX = 'Male';
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
RESPONSE = 'true';
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
GEOID = 134;
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
age below 30 refers to age < 30;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
Among the customers from a place with more than 20,000 and less than 30,000 inhabitants, how many of them are Machine-op-inspcts?
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;
|
widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;
|
female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;
|
List the level of education and income of customers ages from 30 to 55 with a true response.
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;
|
reference ID refers to REFID;
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are teenagers?
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
MARITAL_STATUS = 'Never-married';
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
GEOID = 134;
|
In female customers ages from 50 to 60, how many of them has an number of inhabitants ranges from 19 to 24?
|
female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
|
geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;
|
GEOID = 134;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
|
reference ID refers to REFID;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
|
Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are from a place with more than 30,000 inhabitants?
|
RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;
|
yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
|
geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;
|
customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
reference ID refers to REFID;
|
number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
|
DIVIDE(COUNT(INCOME_K ≥ 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;
|
List down the customer's geographic identifier who are handlers or cleaners.
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;
|
geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;
|
RESPONSE = 'true'; AVG(age);
|
OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;
|
Find the response status to customer whose geographic ID of 134.
|
GEOID = 134;
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
age below 30 refers to age < 30;
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';
|
RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';
|
number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
Among the customers with a marital status of married-civ-spouse, list the number of inhabitants and age of those who are machine-op-inspct.
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
SEX = 'Male';
|
average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;
|
number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;
|
geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;
|
male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
|
female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
|
RESPONSE = 'true';
|
the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;
|
GEOID = 134;
|
RESPONSE = 'true'; AVG(age);
|
Among the female customers with an level of education of 3 and below, list their income.
|
female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
|
GEOID = 134;
|
widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM ≤ 5;
|
education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';
|
geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';
|
place with the highest average income per month refers to GEOID where MAX(INCOME_K);
|
elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;
|
OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;
|
age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;
|
elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;
|
RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;
|
Among all students, calculate the percentage of disabled students.
|
percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');
|
longest duration of absense refers to MAX(month)
|
absent for 6 months refers to month = 6;
|
male students are mentioned in male.name;
|
enlisted in marines refers to 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'))
|
disability breakdown refers to the number of disabled students;
|
Navy refers to organ = 'navy';
|
female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';
|
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';
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
State name of unemployed students who have the longest duration of absense from school.
|
longest duration of absense refers to MAX(month)
|
navy refers to organ = 'navy';
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
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 marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
organization refers to organ
|
more than one organization refers to COUNT(organ) > 1
|
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';
|
in the air force refers to organ = 'air_force';
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
Calculate the ratio of unemployed students who have never been absent from school.
|
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);
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
navy refers to organ = 'navy';
|
navy refers to organ = 'navy';
|
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;
|
absent for 8 months refers to month = 8;
|
absent for 6 months refers to month = 6;
|
more than one organization refers to COUNT(organ) > 1
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
who have payment due refers to bool = 'pos';
|
absent from school for 9 months refers to month = 9
|
Among students who have been absent for nine months, how many of them are disabled?
|
absent for 9 months refers to month = 9;
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
belong to the navy department refers to organ = 'navy';
|
absent above 2 months refers to month > 2;
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
organization refers to organ; organ = 'army';
|
longest duration of absense refers to MAX(month)
|
absense from school for 5 month refers to month = 5
|
longest duration of absense refers to MAX(month)
|
Air Force refers to organ = 'air_force';
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
Among the students with payment due, how many of them are unemployed?
|
with payment due refers to bool = 'pos';
|
absense from school for 5 month refers to month = 5
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
OCC refers to school = 'occ';
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
male students are mentioned in male.name;
|
students that have a payment due refers to bool = 'pos';
|
enlisted in the fire-department refers to organ = 'fire_department';
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
longest duration of absense refers to MAX(month)
|
How many unemployed disabled students have been absent for 8 months from school?
|
absent for 8 months refers to month = 8;
|
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'))
|
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';
|
absent from school for more than 5 months refers to `month` > = 5;
|
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;
|
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.
|
male students are mentioned in male.name;
|
belong to foreign legion refers to organ = 'foreign_legion';
|
enlisted in the air force refers to organ = 'air_force';
|
from SMC refers to school = 'smc';
|
in the foreign legion refers to organ = 'foreign_legion';
|
How many SMC's students that absent for 7 months?
|
SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7
|
have never been absent refers to `month` = 0;
|
longest duration of absense refers to MAX(month)
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
longest duration of absense refers to MAX(month)
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.name;
|
with payment due refers to bool = 'pos';
|
difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;
|
have never been absent from school refers to month = 0
|
organization refers to organ
|
List any five female students' names who enlisted for the air force.
|
female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';
|
had never been absent refers to month = 0
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
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
|
absent from school for 9 months refers to month = 9
|
have payment due refers to bool = 'pos';
|
no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';
|
belong to the navy department refers to organ = 'navy';
|
longest absense refers to MAX(month)
|
have payment due refers to bool = 'pos';
|
absent for 8 months refers to month = 8;
|
For the students who have been absent from school for the longest time, how many months have they been absent?
|
absent from school for the longest time refers to MAX(month)
|
Air Force refers to organ = 'air_force';
|
absent for 6 months refers to month = 6;
|
enlisted in the navy organization refers to organ = 'navy';
|
more than one organization refers to COUNT(organ) > 1
|
Air Force refers to organ = 'air_force';
|
navy refers to organ = 'navy';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
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;
|
male students are mentioned in male.name; OCC refers to school = 'occ';
|
unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;
|
What is the school and gender of student34?
|
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;
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
male students are mentioned in male.name; with 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(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;
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
from SMC refers to school = 'smc';
|
unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.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;
|
belong to the navy department refers to organ = 'navy';
|
Sum up the number of students enlisted in foreign legion, peace corps and army.
|
enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'
|
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'))
|
who have payment due refers to bool = 'pos';
|
have never been absent from school refers to month = 0
|
longest duration of absense refers to MAX(month)
|
have payment due refers to bool = 'pos';
|
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;
|
more than one organization refers to COUNT(organ) > 1
|
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.
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
in the foreign legion refers to organ = 'foreign_legion';
|
How many students belong to the navy department?
|
belong to the navy department refers to organ = 'navy';
|
never been absent from school refers to month = 0
|
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';
|
make payment before due refers to bool = 'neg';
|
navy refers to organ = 'navy';
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
enlisted in the navy organization refers to organ = 'navy';
|
who have payment due refers to bool = 'pos';
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
longest absense refers to MAX(month)
|
How many students has the longest absense from school for 5 months?
|
absense from school for 5 month refers to month = 5
|
enlisted in the army refers to organ = 'army';
|
organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;
|
female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
navy refers to organ = 'navy';
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
have no due payments 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));
|
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;
|
Which female students had never been absent?
|
had never been absent refers to month = 0
|
disability breakdown refers to the number of disabled 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;
|
belong to foreign legion refers to organ = 'foreign_legion';
|
who have payment due refers to bool = 'pos';
|
have never been absent refers to `month` = 0;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
absent for 8 months refers to month = 8;
|
absent from school for the longest time refers to MAX(month)
|
absence for 4 month refers to month = 4;
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
How many male stuents do not have payment due?
|
do not have payment due refers to bool = 'neg';
|
organization refers to organ; student168 is a name of student;
|
organization refers to organ; organ = 'army';
|
absent for 8 months refers to month = 8;
|
still have payment due refers to bool = 'pos'
|
longest duration of absence refers to MAX(month);
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
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';
|
from SMC refers to school = 'smc';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
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.
|
How many students have never been absent from school?
|
have never been absent refers to `month` = 0;
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
absents for more than 6 months refers to month > 6
|
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';
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';
|
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;
|
Air Force refers to organ = 'air_force';
|
female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';
|
in the foreign legion refers to organ = 'foreign_legion';
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
How many students in the Air Force?
|
Air Force refers to organ = 'air_force';
|
never been absent from school 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'))
|
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));
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';
|
still have payment due refers to bool = 'pos'
|
organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;
|
How many of the students joined two organization?
|
joined two organization refers to COUNT(organ) > = 2
|
Navy refers to organ = 'navy';
|
longest duration of absence refers to MAX(month);
|
do not have payment due refers to bool = 'neg';
|
enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
absent for more than 5 months refers to month > 5;
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.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; student124 is a name of student;
|
longest duration of absense refers to MAX(month)
|
with payment due refers to bool = 'pos';
|
What is the percentage ratio of students who are enlisted in foreign legions that have a due payment?
|
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'))
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
longest duration of absence refers to MAX(month);
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
navy refers to organ = 'navy';
|
organization refers to organ; organ = 'army';
|
longest duration of absense refers to MAX(month)
|
ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);
|
longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';
|
longest duration of absence from school refers to MAX(month); do not have payment 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';
|
How many students have been absent above 2 months?
|
absent above 2 months refers to month > 2;
|
from SMC refers to school = 'smc';
|
navy refers to organ = 'navy';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));
|
enlisted in the navy organization refers to organ = 'navy';
|
absent from school for more than 5 months refers to `month` > = 5;
|
with payment due refers to bool = 'pos';
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
absent for 6 months refers to month = 6;
|
absent for 9 months refers to month = 9;
|
Which students that filed for bankruptcy are also in the foreign legion?
|
in the foreign legion refers to organ = 'foreign_legion';
|
absense from school for 5 month refers to month = 5
|
have payment due refers to bool = 'pos';
|
more than one organization refers to COUNT(organ) > 1
|
have no due payments refers to bool = 'neg';
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
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.
|
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);
|
have payment due refers to bool = 'pos';
|
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 absent from school refers to month > 1;
|
List the longest duration of absense for a student enlisted in the fire department.
|
longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';
|
enlisted in the air force refers to organ = 'air_force';
|
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;
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
longest duration of absense refers to MAX(month)
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
absent for 6 months refers to month = 6;
|
never been absent in school refers to month = 0;
|
female students refers to enlist.name who are NOT in male.name; 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';
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
Please provide a gender breakdown for each organization.
|
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)
|
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;
|
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;
|
enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';
|
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'))
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
absents for more than 6 months refers to month > 6
|
absent for more than 5 months refers to month > 5;
|
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));
|
What is the employment and payment status of student110?
|
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)
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
OCC refers to school = 'occ';
|
longest absense refers to MAX(month)
|
organization refers to organ; disabled male students refers to disabled.name who are 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;
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
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;
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
never been absent in school refers to month = 0;
|
Among the students enrolled in UCLA, what is the percentage of male students in the air force department?
|
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';
|
absent from school for the longest time refers to MAX(month)
|
navy refers to organ = 'navy';
|
enlisted in the army refers to organ = 'army';
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
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';
|
absense from school for 5 month refers to month = 5
|
percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');
|
OCC refers to school = 'occ';
|
absent from school for 9 months refers to month = 9
|
Among the students that filed for bankruptcy, how many of them have been enrolled in OCC?
|
OCC refers to school = 'occ';
|
female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';
|
enlisted in the navy organization refers to organ = 'navy';
|
absent from school for 9 months refers to month = 9
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
absent for 8 months refers to month = 8;
|
SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7
|
absense from school for 5 month refers to month = 5
|
absent for more than 5 months refers to month > 5;
|
State the number of students who filed for bankruptcy and have payment due.
|
have payment due refers to bool = 'pos';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
absent for more than 5 months refers to month > 5;
|
female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';
|
female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';
|
enlisted in the air force refers to organ = 'air_force';
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
female students refers to filed_for_bankrupcy.name who are NOT in male.name;
|
employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.name;
|
List out all bankrupt students that are able to make payment before due?
|
make payment before due refers to bool = 'neg';
|
enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';
|
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';
|
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;
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
longest duration of absense refers to MAX(month)
|
Navy refers to organ = 'navy';
|
absent for 9 months refers to month = 9;
|
enrolled in SMC refers to school = 'smc';
|
OCC refers to school = 'occ';
|
absent for more than 5 months refers to month > 5;
|
What is the ratio of disable female to male students?
|
ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))
|
male students are mentioned in male.name; OCC refers to school = 'occ';
|
belong to the navy department refers to organ = 'navy';
|
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';
|
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;
|
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;
|
disability breakdown refers to the number of disabled students;
|
enlisted in the fire-department refers to organ = 'fire_department';
|
navy refers to organ = 'navy';
|
absent from school for more than 5 months refers to `month` > = 5;
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
List out the number of female students who enlisted in the air force.
|
enlisted in the air force refers to organ = 'air_force';
|
belong to the navy department refers to organ = 'navy';
|
organization refers to organ; student168 is a name of student;
|
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; student299 is a name of student;
|
absent for 6 months refers to month = 6;
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
who have payment due refers to bool = 'pos';
|
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;
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
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.
|
State name of students who have the longest duration of absense from school and do not have payment due.
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
enlisted in marines refers to organ = 'marines';
|
navy refers to organ = 'navy';
|
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';
|
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;
|
Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
have never been absent refers to `month` = 0;
|
from SMC refers to school = 'smc';
|
more than one organization refers to COUNT(organ) > 1
|
Among all students, calculate the percentage of male students.
|
percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.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;
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
organization refers to organ; student211 is a name of student;
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
joined two organization refers to COUNT(organ) > = 2
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
absent for 9 months refers to month = 9;
|
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
|
navy refers to organ = 'navy';
|
Calculate the average number of disabled female students enrolled in UCI.
|
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';
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
never been absent from school refers to month = 0
|
absent for more than 5 months refers to month > 5;
|
absense from school for 5 month refers to month = 5
|
male students are mentioned in male.name; OCC refers to school = 'occ';
|
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.
|
disability breakdown refers to the number of disabled students;
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
in the air force refers to organ = 'air_force';
|
How many unemployed students are there that have been absent for 6 months?
|
absent for 6 months refers to month = 6;
|
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'
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
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.
|
longest duration of absence refers to MAX(month);
|
no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';
|
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';
|
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
|
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;
|
State name of students who have been absent for 5 months from school and do not have payment due.
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
in the foreign legion refers to organ = 'foreign_legion';
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
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 navy organization refers to organ = 'navy';
|
never been absent in school refers to month = 0;
|
longest duration of absence from school refers to MAX(month); do not have payment 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';
|
never been absent from school refers to month = 0
|
have payment due refers to bool = 'pos';
|
What is the average of absence for an employed students?
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
have absent from school refers to month > 1;
|
enlisted in the navy organization refers to organ = 'navy';
|
enlisted in the fire-department refers to organ = 'fire_department';
|
in the air force refers to organ = 'air_force';
|
longest duration of absense refers to MAX(month)
|
Navy refers to organ = 'navy';
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
disability breakdown refers to the number of disabled students;
|
Among students with 1 month of absenses, how many of them are enlisted in the air force department?
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
more than one organization refers to COUNT(organ) > 1
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
enrolled in SMC refers to school = 'smc';
|
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;
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
longest duration of absense refers to MAX(month)
|
status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;
|
absent for 6 months refers to month = 6;
|
List at least 10 students who have no payment due and are enlisted in Fire Department organization.
|
no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';
|
disability breakdown refers to the number of disabled students;
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
longest duration of absense refers to MAX(month)
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
enlisted in the fire-department refers to organ = 'fire_department';
|
do not have payment due refers to bool = 'neg';
|
OCC refers to school = 'occ';
|
absense from school for 5 month refers to month = 5
|
enlisted in the air force refers to organ = 'air_force';
|
organization refers to organ; student168 is a name of student;
|
How many female students have no payment due?
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
have payment due refers to bool = 'pos';
|
absence for 4 month refers to month = 4;
|
have payment due refers to bool = 'pos';
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.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;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
enlisted in the navy organization refers to organ = 'navy';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
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';
|
How many students enlisted in the navy?
|
navy refers to organ = 'navy';
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
belong to the navy department refers to organ = 'navy';
|
percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');
|
female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';
|
organization refers to organ
|
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';
|
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;
|
absent from school for 9 months refers to month = 9
|
absent for 6 months refers to month = 6;
|
never been absent in school refers to month = 0;
|
Calculate the average number of female students who are disabled and who joined Foreign Legion organization.
|
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 absent from school refers to month > 1;
|
never been absent from school refers to month = 0
|
longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';
|
absent from school for more than 5 months refers to `month` > = 5;
|
enrolled in SMC refers to school = 'smc';
|
organization refers to organ
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
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'))
|
organization refers to organ; student211 is a name of student;
|
How many male students have no due payments?
|
have no due payments refers to bool = 'neg';
|
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';
|
male students are mentioned in male.name;
|
absents for more than 6 months refers to month > 6
|
longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';
|
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;
|
have payment due refers to bool = 'pos';
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
have absent from school refers to month > 1;
|
enlisted in marines refers to organ = 'marines';
|
unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;
|
Among the students that have been absent from school for more than 5 months, how many of them are male?
|
absent from school for more than 5 months refers to `month` > = 5;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
never been absent in school refers to month = 0;
|
unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
in the air force refers to organ = 'air_force';
|
enlisted in the navy organization refers to organ = 'navy';
|
have absent from school refers to month > 1;
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
enlisted in the air force refers to organ = 'air_force';
|
with payment due refers to bool = 'pos';
|
Please check if student 124 is disabled male.
|
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;
|
longest duration of absense refers to MAX(month)
|
enlisted in marines refers to organ = 'marines';
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
absense from school for 5 month refers to month = 5
|
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';
|
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.
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
in the foreign legion refers to organ = 'foreign_legion';
|
still have payment due refers to bool = 'pos'
|
Please list the male students that are disabled and have filed for bankruptcy.
|
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.
|
Navy refers to organ = 'navy';
|
Air Force refers to organ = 'air_force';
|
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;
|
still have payment due refers to bool = 'pos'
|
organization refers to organ; student211 is a name of student;
|
more than one organization refers to COUNT(organ) > 1
|
SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
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'))
|
Please list the names of the male students that belong to the navy department.
|
belong to the navy department refers to organ = 'navy';
|
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'
|
navy refers to organ = 'navy';
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
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;
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';
|
absent from school for 9 months refers to month = 9
|
from SMC refers to school = 'smc';
|
Mention the name of disabled students who have never been absent from school.
|
never been absent from school refers to month = 0
|
enrolled in SMC refers to school = 'smc';
|
organization refers to organ; student211 is a name of student;
|
organization joined refers to organ
|
had never been absent refers to month = 0
|
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;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;
|
OCC refers to school = 'occ';
|
in the air force refers to organ = 'air_force';
|
have never been absent from school refers to month = 0
|
Among the students enlisted in marines, how many of them are disabled?
|
enlisted in marines refers to organ = 'marines';
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
male students are mentioned in male.name; OCC refers to school = 'occ';
|
more than one organization refers to COUNT(organ) > 1
|
belong to the navy department refers to organ = 'navy';
|
enlisted in marines refers to organ = 'marines';
|
ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))
|
joined two organization refers to COUNT(organ) > = 2
|
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'))
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.name;
|
still have payment due refers to bool = 'pos'
|
How many unemployed students still have payment due?
|
still have payment due refers to bool = 'pos'
|
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;
|
organization joined refers to organ
|
in the foreign legion refers to organ = 'foreign_legion';
|
unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;
|
no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';
|
longest duration of absence refers to MAX(month);
|
have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;
|
enlisted in the air force refers to organ = 'air_force';
|
List at least 5 students who has the longest absense from schoool?
|
longest absense refers to MAX(month)
|
Navy refers to organ = 'navy';
|
female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';
|
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
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
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;
|
OCC refers to school = 'occ';
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
organization refers to organ; organ = 'army';
|
absent from school for the longest time refers to MAX(month)
|
status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;
|
How many disabled students have payment due?
|
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';
|
organization refers to organ; student211 is a name of student;
|
absent for 9 months refers to month = 9;
|
employed students refers to disabled.name who are NOT in unemployed.name; zero absences 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'))
|
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';
|
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;
|
absent above 2 months refers to month > 2;
|
have payment due refers to bool = 'pos';
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
List down the student names who did not file for bankruptcy.
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));
|
absent from school for the longest time refers to MAX(month)
|
never been absent in school refers to month = 0;
|
enlisted in the navy organization refers to organ = 'navy';
|
enlisted in the fire-department refers to organ = 'fire_department';
|
enlisted in the navy organization refers to organ = 'navy';
|
percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');
|
have payment due refers to bool = 'pos';
|
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';
|
navy refers to organ = 'navy';
|
Which students that are in the marines have been absent for 6 months?
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
joined two organization refers to COUNT(organ) > = 2
|
make payment before due refers to bool = 'neg';
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
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);
|
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;
|
female students refers to filed_for_bankrupcy.name who are NOT in male.name;
|
never been absent in school refers to month = 0;
|
students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;
|
How many disabled male students joined an organization?
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.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;
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
joined two organization refers to COUNT(organ) > = 2
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
have payment due refers to bool = 'pos';
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
absense from school for 5 month refers to month = 5
|
absents for more than 6 months refers to month > 6
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
State name of female students who filed for bankruptcy.
|
female students refers to filed_for_bankrupcy.name who are NOT in male.name;
|
from SMC refers to school = 'smc';
|
organization refers to organ
|
ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);
|
longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';
|
enlisted in marines refers to organ = 'marines';
|
gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;
|
enrolled in SMC refers to school = 'smc';
|
who have payment due refers to bool = 'pos';
|
Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));
|
average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';
|
How many female students are enlisted in the Navy organization?
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
have never been absent from school refers to month = 0
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
absent for 8 months refers to month = 8;
|
female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');
|
enlisted in marines refers to organ = 'marines';
|
average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;
|
joined two organization refers to COUNT(organ) > = 2
|
students that have a payment due refers to bool = 'pos';
|
organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;
|
if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa
|
Give the number of students who have payment due.
|
who have payment due refers to bool = 'pos';
|
male students are mentioned in male.name;
|
SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7
|
Air Force refers to organ = 'air_force';
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
male students are mentioned in male.name; with payment due refers to bool = 'pos';
|
more than one organization refers to COUNT(organ) > 1
|
enlisted in the navy organization refers to organ = 'navy';
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
How many male students are enrolled at OCC?
|
male students are mentioned in male.name; OCC refers to school = 'occ';
|
enlisted in marines refers to organ = 'marines';
|
have absent from school refers to month > 1;
|
average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;
|
belong to the navy department refers to organ = 'navy';
|
absents for more than 6 months refers to month > 6
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
have never been absent refers to `month` = 0;
|
absent from school for more than 5 months refers to `month` > = 5;
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
absent from school for the longest time refers to MAX(month)
|
Define the gender of "student995" and his/her enrolled schools.
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;
|
who have payment due refers to bool = 'pos';
|
longest duration of absense refers to MAX(month)
|
belong to the navy department refers to organ = 'navy';
|
female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';
|
organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;
|
have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))
|
1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';
|
enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';
|
with payment due refers to bool = 'pos';
|
How many female students have enlisted for the Army?
|
female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';
|
absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';
|
absent for 6 months refers to month = 6;
|
enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'
|
who have payment due refers to bool = 'pos';
|
longest duration of absense refers to MAX(month)
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
absence for 4 month refers to month = 4;
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
Please provide a disability breakdown for each school.
|
disability breakdown refers to the number of disabled students;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
enlisted in the fire-department refers to organ = 'fire_department';
|
more than one organization refers to COUNT(organ) > 1
|
had never been absent refers to month = 0
|
disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;
|
from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';
|
have never been absent from school refers to month = 0
|
enlisted in marines refers to organ = 'marines';
|
longest duration of absense refers to MAX(month)
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
What percentage of students who enlisted in the navy make up the number of students enrolled in OCC?
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));
|
status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;
|
organization joined refers to organ
|
Air Force refers to organ = 'air_force';
|
have no due payments refers to bool = 'neg';
|
in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6
|
absense from school for 5 month refers to month = 5
|
navy refers to organ = 'navy';
|
still have payment due refers to bool = 'pos'
|
absent above 2 months refers to month > 2;
|
Name all disabled students that are enrolled in SMC.
|
enrolled in SMC refers to school = 'smc';
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
belong to the navy department refers to organ = 'navy';
|
absent for more than 5 months refers to month > 5;
|
never been absent from school refers to month = 0
|
enlisted in marines refers to organ = 'marines';
|
absence for 4 month refers to month = 4;
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';
|
male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;
|
navy refers to organ = 'navy';
|
OCC refers to school = 'occ';
|
How many students enlisted in the Navy?
|
Navy refers to organ = 'navy';
|
longest absense refers to MAX(month)
|
average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';
|
navy refers to organ = 'navy';
|
male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;
|
absent from school for 9 months refers to month = 9
|
ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))
|
female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';
|
in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'
|
enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';
|
absent for more than 5 months refers to month > 5;
|
Which organization has the highest number of male students? Calculate for the percentage of the male students in the said organization.
|
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;
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';
|
ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';
|
longest absense refers to MAX(month)
|
make payment before due refers to bool = 'neg';
|
Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));
|
never been absent from school refers to month = 0
|
longest duration of absense refers to MAX(month)
|
have absent from school refers to month > 1;
|
male students are mentioned in male.name;
|
Find the average number of absences for each student.
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
navy refers to organ = 'navy';
|
students that have a payment due refers to bool = 'pos';
|
have never been absent refers to `month` = 0;
|
longest duration of absence refers to MAX(month);
|
organization refers to organ; disabled male students refers to disabled.name who are IN male.name;
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
absense from school for 5 month refers to month = 5
|
navy refers to organ = 'navy';
|
belong to the navy department refers to organ = 'navy';
|
enrolled in SMC refers to school = 'smc';
|
List the names of disabled students enlisted in the navy.
|
navy refers to organ = 'navy';
|
absent for 9 months refers to month = 9;
|
average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;
|
longest duration of absense refers to MAX(month)
|
employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;
|
navy refers to organ = 'navy';
|
disability breakdown refers to the number of disabled students;
|
enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'
|
have no payment due refers to bool = 'neg'; female students refers to name NOT in male table
|
average refers to DIVIDE(SUM(month), COUNT(name))
|
enrolled in SMC refers to school = 'smc';
|
List all students in the air force and which school they were enrolled at.
|
in the air force refers to organ = 'air_force';
|
enlisted in the fire-department refers to organ = 'fire_department';
|
female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';
|
organization refers to organ
|
absent for 8 months refers to month = 8;
|
organization refers to organ
|
longest absense refers to MAX(month)
|
have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))
|
enrolled in SMC refers to school = 'smc';
|
belong to foreign legion refers to organ = 'foreign_legion';
|
had never been absent refers to month = 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.