Table:
0
A
B
C
D
E
F
1
nurse id
block floor
block code
oncall start
oncall end
on call
2
101
1
1
11/4/2008 11:00
11/4/2008 19:00
3
101
1
2
11/4/2008 11:00
11/4/2008 19:00
4
102
1
3
11/4/2008 11:00
11/4/2008 19:00
5
103
1
1
11/4/2008 19:00
11/5/2008 3:00
6
103
1
2
11/4/2008 19:00
11/5/2008 3:00
7
103
1
3
11/4/2008 19:00
11/5/2008 3:00

Questions and formulas:
Question: What nurses are on call with block floor 1 and block code 1? Tell me their names.
Formula: FILTER(A1,(B1=1)*(C1=1))
Formula2: FILTER(A2:A7,(B2:B7=1)*(C2:C7=1))
Level: easy
Question: Find the on call of the nurses who are in block floor 1 and block code 1
Formula: LET(a,HSTACK(F1,A1),b,A1,c,CHOOSECOLS(LET(query1,SUMMARIZE(A1,SUMX(C1),SUMX(B1)),FILTER(query1,(CHOOSECOLS(query1,2)=1)*(CHOOSECOLS(query1,3)=1))),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(F2:F7,A2:A7),b,A2:A7,c,CHOOSECOLS(LET(query1,SUMMARIZE(A2:A7,SUMX(C2:C7),SUMX(B2:B7)),FILTER(query1,(CHOOSECOLS(query1,2)=1)*(CHOOSECOLS(query1,3)=1))),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: the on call information of each nurse in the first floor of block 1
Formula: LET(query1,SUMMARIZE(HSTACK(A1,F1),SUMX(C1),SUMX(B1)),FILTER(query1,(CHOOSECOLS(query1,3)=1)*(CHOOSECOLS(query1,4)=1)))
Formula2: LET(query1,SUMMARIZE(HSTACK(A2:A7,F2:F7),SUMX(C2:C7),SUMX(B2:B7)),FILTER(query1,(CHOOSECOLS(query1,3)=1)*(CHOOSECOLS(query1,4)=1)))
Level: hard
Question: Nurses on call who are on the first floor with Block code 1.
Formula: LET(query1,SUMMARIZE(HSTACK(A1,F1),SUMX(C1),SUMX(B1)),FILTER(query1,(CHOOSECOLS(query1,3)=1)*(CHOOSECOLS(query1,4)=1)))
Formula2: LET(query1,SUMMARIZE(HSTACK(A2:A7,F2:F7),SUMX(C2:C7),SUMX(B2:B7)),FILTER(query1,(CHOOSECOLS(query1,3)=1)*(CHOOSECOLS(query1,4)=1)))
Level: hard
Question: The nurses who are on call in the first floor with block code 1.
Formula: LET(query1,SUMMARIZE(HSTACK(A1,F1),SUMX(C1),SUMX(B1)),FILTER(query1,(CHOOSECOLS(query1,3)=1)*(CHOOSECOLS(query1,4)=1)))
Formula2: LET(query1,SUMMARIZE(HSTACK(A2:A7,F2:F7),SUMX(C2:C7),SUMX(B2:B7)),FILTER(query1,(CHOOSECOLS(query1,3)=1)*(CHOOSECOLS(query1,4)=1)))
Level: hard