Table:
0
A
B
C
D
E
F
1
department code
department name
school code
employee number
department address
department extension
2
ACCT
Accounting
BUS
114
KLR 211, Box 52
3119
3
ART
Fine Arts
A&SCI
435
BBG 185, Box 128
2278
4
BIOL
Biology
A&SCI
387
AAK 230, Box 415
4117
5
CIS
Computer Info. Systems
BUS
209
KLR 333, Box 56
3245
6
ECON/FIN
Economics/Finance
BUS
299
KLR 284, Box 63
3126
7
ENG
English
A&SCI
160
DRE 102, Box 223
1004
8
HIST
History
A&SCI
103
DRE 156, Box 284
1867
9
MATH
Mathematics
A&SCI
297
AAK 194, Box 422
4234
10
MKT/MGT
Marketing/Management
BUS
106
KLR 126, Box 55
3342
11
PSYCH
Psychology
A&SCI
195
AAK 297, Box 438
4110
12
SOC
Sociology
A&SCI
342
BBG 208, Box 132
2008

Questions and formulas:
Question: What is the code of the school where the accounting department belongs to?
Formula: FILTER(C1,B1="Accounting")
Formula2: FILTER(C2:C12,B2:B12="Accounting")
Level: easy
Question: What is the school code of the accounting department?
Formula: FILTER(C1,B1="Accounting")
Formula2: FILTER(C2:C12,B2:B12="Accounting")
Level: easy
Question: what is the address of history department?
Formula: FILTER(E1,B1="History")
Formula2: FILTER(E2:E12,B2:B12="History")
Level: easy
Question: Count different addresses of each school.
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(E2:E12))
Level: easy
Question: Find the number of departments in each school.
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(A2:A12))
Level: easy
Question: How many departments are in each school?
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(A2:A12))
Level: easy
Question: Find the number of different departments in each school whose number of different departments is less than 5.
Formula: LET(query1,SUMMARIZE(C1,DCOUNTX(A1)),FILTER(query1,CHOOSECOLS(query1,2)<5))
Formula2: LET(query1,SUMMARIZE(C2:C12,DCOUNTX(A2:A12)),FILTER(query1,CHOOSECOLS(query1,2)<5))
Level: hard
Question: How many different departments are there in each school that has less than 5 apartments?
Formula: LET(query1,SUMMARIZE(C1,DCOUNTX(A1)),FILTER(query1,CHOOSECOLS(query1,2)<5))
Formula2: LET(query1,SUMMARIZE(C2:C12,DCOUNTX(A2:A12)),FILTER(query1,CHOOSECOLS(query1,2)<5))
Level: hard
Question: how many schools exist in total?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C12))
Level: easy
Question: How many schools are there in the department?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C12))
Level: easy
Question: How many departments does the college has?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B12))
Level: easy
Question: How many different departments are there?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B12))
Level: easy
Question: list names of all departments ordered by their names.
Formula: SORTBY(B1,B1,1)
Formula2: SORTBY(B2:B12,B2:B12,1)
Level: easy
Question: How many departments does each school have?
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(A2:A12))
Level: easy
Question: How many departments were created by each school?
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(A2:A12))
Level: easy
Question: Which schools have set less than 5 departments?
Formula: LET(query1,SUMMARIZE(C1,DCOUNTX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<5))
Formula2: LET(query1,SUMMARIZE(C2:C12,DCOUNTX(A2:A12)),FILTER(query1,CHOOSECOLS(query1,3)<5))
Level: hard
Question: School having less than 5 departments.
Formula: LET(query1,SUMMARIZE(C1,DCOUNTX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<5))
Formula2: LET(query1,SUMMARIZE(C2:C12,DCOUNTX(A2:A12)),FILTER(query1,CHOOSECOLS(query1,3)<5))
Level: hard
Question: address and code of the history department
Formula: LET(query1,FILTER(A1:F1,B1="history"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:F12,B2:B12="history"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: What is the number of department addresses for each school?
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(E2:E12))
Level: easy
Question: How many departments did the college set?
Formula: ROWS(UNIQUE(A1))
Formula2: ROWS(UNIQUE(A2:A12))
Level: easy
Question: Number of departments.
Formula: ROWS(UNIQUE(A1))
Formula2: ROWS(UNIQUE(A2:A12))
Level: easy
Question: accounting departments' department codes and school codes 
Formula: LET(query1,FILTER(A1:F1,B1="accounting"),UNIQUE(CHOOSECOLS(query1,1,3)))
Formula2: LET(query1,FILTER(A2:F12,B2:B12="accounting"),UNIQUE(CHOOSECOLS(query1,1,3)))
Level: hard
Question: accounting department school code and department code
Formula: LET(query1,FILTER(A1:F1,B1="accounting"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:F12,B2:B12="accounting"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: the number of schools
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C12))
Level: easy
Question: the number of school codes and the department codes.
Formula: HSTACK(ROWS(UNIQUE(C1)), ROWS(UNIQUE(A1)))
Formula2: HSTACK(ROWS(UNIQUE(C2:C12)), ROWS(UNIQUE(A2:A12)))
Level: hard
Question: Departments codes by their names from a-z.
Formula: SORT(UNIQUE(HSTACK(B1,A1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B12,A2:A12)), 1, 1)
Level: medium
Question: Names of departments by their codes from a to z.
Formula: SORT(UNIQUE(HSTACK(B1,A1)), 2, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B12,A2:A12)), 2, 1)
Level: medium
Question: the department code and school code of accounting department.
Formula: LET(query1,FILTER(A1:F1,B1="accounting"),UNIQUE(CHOOSECOLS(query1,1,3)))
Formula2: LET(query1,FILTER(A2:F12,B2:B12="accounting"),UNIQUE(CHOOSECOLS(query1,1,3)))
Level: hard
Question: the school code and department code for accounting department.
Formula: LET(query1,FILTER(A1:F1,B1="accounting"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:F12,B2:B12="accounting"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: the address and code of the history department
Formula: LET(query1,FILTER(A1:F1,B1="history"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:F12,B2:B12="history"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: How many department addresses under each school?
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(E2:E12))
Level: easy
Question: How many departments does each school comprise?
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(A2:A12))
Level: easy