Table:
0
A
B
C
D
E
1
last name
first name
grade ID
classroom ID
list
2
zhang
Lihua
4
111
3
Wang
Lihua
4
108
4
Guo
Lihua
5
107
5
zhang
Xiaoqu
5
105
6
Li
Lihua
5
103

Questions and formulas:
Question: Find the last names of students studying in classroom 111
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=111),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=111),1))
Level: medium
Question: What are the last names of students in classroom 111?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=111),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=111),1))
Level: medium
Question: Find the first names of students studying in classroom 108
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=108),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=108),2))
Level: medium
Question: What are the first names of students in classroom 108?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=108),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=108),2))
Level: medium
Question: What are the first names of students studying in classroom 107?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=107),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=107),2))
Level: medium
Question: List the first names of all the students in classroom 107.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=107),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=107),2))
Level: medium
Question: For each classroom report the grade that is taught in it.
Formula: UNIQUE(HSTACK(D1,C1))
Formula2: UNIQUE(HSTACK(D2:D6,C2:C6))
Level: easy
Question: What are the grade number and classroom number of each class in the list?
Formula: CHOOSE({1,2},UNIQUE(D1),C1)
Formula2: CHOOSE({1,2},UNIQUE(D2:D6),C2:C6)
Level: easy
Question: Which grade is studying in classroom 103?
Formula: UNIQUE(FILTER(C1,D1=103))
Formula2: UNIQUE(FILTER(C2:C6,D2:D6=103))
Level: easy
Question: Find the grade taught in classroom 103.
Formula: UNIQUE(FILTER(C1,D1=103))
Formula2: UNIQUE(FILTER(C2:C6,D2:D6=103))
Level: easy
Question: Find the grade studying in classroom 105.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=105),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=105),3))
Level: medium
Question: Which grade is studying in classroom 105?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=105),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=105),3))
Level: medium
Question: Which classrooms are used by grade 4?
Formula: UNIQUE(FILTER(D1,C1=4))
Formula2: UNIQUE(FILTER(D2:D6,C2:C6=4))
Level: easy
Question: Find the classrooms in which grade 4 is studying.
Formula: UNIQUE(FILTER(D1,C1=4))
Formula2: UNIQUE(FILTER(D2:D6,C2:C6=4))
Level: easy
Question: Which classrooms are used by grade 5?
Formula: UNIQUE(FILTER(D1,C1=5))
Formula2: UNIQUE(FILTER(D2:D6,C2:C6=5))
Level: easy
Question: Show me the classrooms grade 5 is using.
Formula: UNIQUE(FILTER(D1,C1=5))
Formula2: UNIQUE(FILTER(D2:D6,C2:C6=5))
Level: easy
Question: Report the first name and last name of all the students.
Formula: CHOOSE({1,2},UNIQUE(B1),A1)
Formula2: CHOOSE({1,2},UNIQUE(B2:B6),A2:A6)
Level: easy
Question: Show each student's first name and last name.
Formula: CHOOSE({1,2},UNIQUE(B1),A1)
Formula2: CHOOSE({1,2},UNIQUE(B2:B6),A2:A6)
Level: easy
Question: report the classroom number and the number of grades using it
Formula: SUMMARIZE(D1,SUMX(C1))
Formula2: SUMMARIZE(D2:D6,SUMX(C2:C6))
Level: easy
Question: For each classroom, show the classroom number and count the number of distinct grades that use the room.
Formula: SUMMARIZE(D1,DCOUNTX(C1))
Formula2: SUMMARIZE(D2:D6,DCOUNTX(C2:C6))
Level: easy
Question: The last names of students taught in 111.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=111),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=111),1))
Level: medium
Question: The last names of students in 111.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=111),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=111),1))
Level: medium
Question: First names of students taught in classroom 108
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=108),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=108),2))
Level: medium
Question: First names of students taught in classroom 108
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=108),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=108),2))
Level: medium
Question: First names of students taught in classroom 107
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=107),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=107),2))
Level: medium
Question: The first names and lists of the students in 107 
Formula: LET(query1,FILTER(A1:E1,D1=107),UNIQUE(CHOOSECOLS(query1,5,2)))
Formula2: LET(query1,FILTER(A2:E6,D2:D6=107),UNIQUE(CHOOSECOLS(query1,5,2)))
Level: hard
Question: Show classroom ids and their corresponding grade ids
Formula: UNIQUE(HSTACK(D1,C1))
Formula2: UNIQUE(HSTACK(D2:D6,C2:C6))
Level: easy
Question: What is the grade of students in classroom 103?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=103),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=103),3))
Level: medium
Question: Which grade has class in 103?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=103),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=103),3))
Level: medium
Question: Which grade uses classroom 105?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=105),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=105),3))
Level: medium
Question: The grade which uses classroom 105.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=105),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=105),3))
Level: medium
Question: Classrooms used by grade 4 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=4),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=4),4))
Level: medium
Question: Which classroom does grade 4 use?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=4),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=4),4))
Level: medium
Question: Classrooms used by 5th grade. 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=5),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=5),4))
Level: medium
Question: Which classrooms are grade 5 taught in?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=5),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=5),4))
Level: medium
Question: Show all full names
Formula: UNIQUE(HSTACK(B1,A1))
Formula2: UNIQUE(HSTACK(B2:B6,A2:A6))
Level: easy
Question: Students' full names
Formula: UNIQUE(HSTACK(B1,A1))
Formula2: UNIQUE(HSTACK(B2:B6,A2:A6))
Level: easy
Question: What are first names of the students in classroom 108?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=108),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=108),2))
Level: medium
Question: First names of the students in classroom 108.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=108),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=108),2))
Level: medium
Question: The first names of students in classroom 107.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=107),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=107),2))
Level: medium
Question: What is the classroom id and its corresponding grade id?
Formula: UNIQUE(HSTACK(D1,C1))
Formula2: UNIQUE(HSTACK(D2:D6,C2:C6))
Level: easy
Question: The grade which studies in 105.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=105),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=105),3))
Level: medium
Question: The grade in classroom 105.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=105),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=105),3))
Level: medium
Question: The classrooms that grade 4 use.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=4),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=4),4))
Level: medium
Question: Which classroom does grade 4 correspond to?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=4),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=4),4))
Level: medium
Question: The classrooms for grade 5.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=5),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=5),4))
Level: medium
Question: Which classrooms are used by grade 5?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=5),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=5),4))
Level: medium
Question: The full names.
Formula: UNIQUE(HSTACK(B1,A1))
Formula2: UNIQUE(HSTACK(B2:B6,A2:A6))
Level: easy
Question: What are the full names of students?
Formula: UNIQUE(HSTACK(B1,A1))
Formula2: UNIQUE(HSTACK(B2:B6,A2:A6))
Level: easy