Table:
0
A
B
C
D
E
F
G
1
class code
course code
class section
class time
class room
professor employee number
class
2
10012
ACCT-211
1
MWF 8:00-8:50 a.m.
BUS311
105
3
10013
ACCT-211
2
MWF 9:00-9:50 a.m.
BUS200
105
4
10014
ACCT-211
3
TTh 2:30-3:45 p.m.
BUS252
342
5
10015
ACCT-212
1
MWF 10:00-10:50 a.m.
BUS311
301
6
10016
ACCT-212
2
Th 6:00-8:40 p.m.
BUS252
301
7
10017
CIS-220
1
MWF 9:00-9:50 a.m.
KLR209
228
8
10018
CIS-220
2
MWF 9:00-9:50 a.m.
KLR211
114
9
10019
CIS-220
3
MWF 10:00-10:50 a.m.
KLR209
228
10
10020
CIS-420
1
W 6:00-8:40 p.m.
KLR209
162
11
10021
QM-261
1
MWF 8:00-8:50 a.m.
KLR200
114
12
10022
QM-261
2
TTh 1:00-2:15 p.m.
KLR200
114
13
10023
QM-362
1
MWF 11:00-11:50 a.m.
KLR200
162
14
10024
QM-362
2
TTh 2:30-3:45 p.m.
KLR200
162

Questions and formulas:
Question: How many sections does each course has?
Formula: UNIQUE(HSTACK(C1,B1))
Formula2: UNIQUE(HSTACK(C2:C14,B2:B14))
Level: easy
Question: How many sections does each course have?
Formula: UNIQUE(HSTACK(C1,B1))
Formula2: UNIQUE(HSTACK(C2:C14,B2:B14))
Level: easy
Question: Find the number of classes offered for all class rooms that held at least 2 classes.
Formula: LET(query1,SUMMARIZE(E1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(E2:E14,SUMX(G2:G14)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: For each classroom with at least 2 classes, how many classes are offered?
Formula: LET(query1,SUMMARIZE(E1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(E2:E14,SUMX(G2:G14)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: How many different classes are there?
Formula: ROWS(UNIQUE(A1))
Formula2: ROWS(UNIQUE(A2:A14))
Level: easy
Question: How many unique classes are offered?
Formula: ROWS(UNIQUE(A1))
Formula2: ROWS(UNIQUE(A2:A14))
Level: easy
Question: How many courses are offered?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B14))
Level: easy
Question: What are the number of different course codes?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B14))
Level: easy
Question: How many sections does course ACCT-211 has?
Formula: ROWS(UNIQUE(FILTER(C1,B1="ACCT-211")))
Formula2: ROWS(UNIQUE(FILTER(C2:C14,B2:B14="ACCT-211")))
Level: medium
Question: What is the number of different class sections offered in the course ACCT-211?
Formula: ROWS(UNIQUE(FILTER(C1,B1="ACCT-211")))
Formula2: ROWS(UNIQUE(FILTER(C2:C14,B2:B14="ACCT-211")))
Level: medium
Question: List the codes of all courses that take place in room KLR209.
Formula: FILTER(A1,E1="KLR209")
Formula2: FILTER(A2:A14,E2:E14="KLR209")
Level: easy
Question: What are the codes of all the courses that are located in room KLR209?
Formula: FILTER(A1,E1="KLR209")
Formula2: FILTER(A2:A14,E2:E14="KLR209")
Level: easy
Question: Number of sections offered by each course.
Formula: UNIQUE(HSTACK(C1,B1))
Formula2: UNIQUE(HSTACK(C2:C14,B2:B14))
Level: easy
Question: How many sections does each course comprise?
Formula: UNIQUE(HSTACK(C1,B1))
Formula2: UNIQUE(HSTACK(C2:C14,B2:B14))
Level: easy
Question: How many classes take place in class rooms with that have at least 2 classes in them?
Formula: LET(query1,SUMMARIZE(E1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(E2:E14,SUMX(G2:G14)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: Classrooms where at least 2 class were given.
Formula: LET(query1,SUMMARIZE(E1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(E2:E14,SUMX(G2:G14)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: total number of classes
Formula: SUM(G1)
Formula2: SUM(G2:G14)
Level: easy
Question: How many courses were prepared?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B14))
Level: easy
Question: How many different courses?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B14))
Level: easy
Question: How many sessions does acct-211 course arrange?
Formula: SUMIFS(C1,B1,"acct-211")
Formula2: SUMIFS(C2:C14,B2:B14,"acct-211")
Level: easy
Question: How many sections does course acct-211 have?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="acct-211"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G14,B2:B14="acct-211"),3))
Level: medium
Question: How many classes were given in the classrooms with at least 2 classes held?
Formula: LET(query1,SUMMARIZE(E1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(E2:E14,SUMX(G2:G14)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: total number of classes
Formula: SUM(G1)
Formula2: SUM(G2:G14)
Level: easy
Question: the number of classes
Formula: SUM(G1)
Formula2: SUM(G2:G14)
Level: easy
Question: the number of classes
Formula: SUM(G1)
Formula2: SUM(G2:G14)
Level: easy