Table:
0
A
B
C
D
E
F
G
1
photo id
tourist attraction id
name
description
filename
other details
photos
2
211
8449
game1
702
3
280
7067
game2
762
4
303
5076
game3
392
5
327
9919
fun1
820
6
332
5076
fun2
060
7
428
6523
fun3
148
8
435
8429
fun4
453
9
437
2701
fun5
128
10
525
5265
park1
538
11
534
6852
park2
325
12
537
6653
park3
695
13
550
5076
din1
259
14
558
8698
din2
863
15
571
6653
din3
864
16
596
9561
din4
141

Questions and formulas:
Question: How many distinct names are associated with all the photos?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C16))
Level: easy
Question: Count the number of distinct names and photos
Formula: HSTACK(ROWS(UNIQUE(C1)), ROWS(UNIQUE(G1)))
Formula2: HSTACK(ROWS(UNIQUE(C2:C16)), ROWS(UNIQUE(G2:G16)))
Level: hard
Question: How many names related to each photo?
Formula: SUMMARIZE(G1,DCOUNTX(C1))
Formula2: SUMMARIZE(G2:G16,DCOUNTX(C2:C16))
Level: easy
Question: How many names and photos are there?
Formula: HSTACK(ROWS(UNIQUE(C1)), ROWS(UNIQUE(G1)))
Formula2: HSTACK(ROWS(UNIQUE(C2:C16)), ROWS(UNIQUE(G2:G16)))
Level: hard