Table:
0
A
B
C
D
E
F
G
H
1
tourist attraction id
attraction type code
location id
how to get there
name
description
opening hours
other details
2
2113
2
579
bus
art museum
3
2701
6
417
walk
UK gallery
4
5076
2
868
shuttle
flying elephant
5
5265
5
603
bus
film festival
6
6476
3
417
shuttle
US museum
7
6523
9
858
walk
fun games
8
6653
9
655
walk
history gallery
9
6852
5
858
walk
exploration trial
10
7067
5
417
bus
haunted mansion
11
8429
9
867
walk
presidents hall
12
8449
2
579
bus
impressions de France
13
8698
5
661
bus
jungle cruise
14
9360
5
868
shuttle
fun shops
15
9561
2
759
bus
cafe
16
9919
6
579
shuttle
parking

Questions and formulas:
Question: Names and ids of attractions accessible by bus
Formula: LET(query1,FILTER(A1:H1,D1="bus"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:H16,D2:D16="bus"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: Names and ids of attractions visitable by bus
Formula: LET(query1,FILTER(A1:H1,D1="bus"),UNIQUE(CHOOSECOLS(query1,1,5)))
Formula2: LET(query1,FILTER(A2:H16,D2:D16="bus"),UNIQUE(CHOOSECOLS(query1,1,5)))
Level: hard
Question: The ids, names and opening hours of attractions which can be reached by bus or walk.
Formula: LET(query1,FILTER(A1:H1,(D1="bus")+(D1="walk")),UNIQUE(CHOOSECOLS(query1,5,7,1)))
Formula2: LET(query1,FILTER(A2:H16,(D2:D16="bus")+(D2:D16="walk")),UNIQUE(CHOOSECOLS(query1,5,7,1)))
Level: hard
Question: What are the names, ids and opening hours of the bus and foot accessible tourist attractions?
Formula: LET(query1,FILTER(A1:H1,(D1="bus")*(D1="walk")),UNIQUE(CHOOSECOLS(query1,5,7,1)))
Formula2: LET(query1,FILTER(A2:H16,(D2:D16="bus")*(D2:D16="walk")),UNIQUE(CHOOSECOLS(query1,5,7,1)))
Level: hard
Question: The names and ids of the attractions which can be visited by bus
Formula: LET(query1,FILTER(A1:H1,D1="bus"),UNIQUE(CHOOSECOLS(query1,1,5)))
Formula2: LET(query1,FILTER(A2:H16,D2:D16="bus"),UNIQUE(CHOOSECOLS(query1,1,5)))
Level: hard
Question: Names and ids of tourist attractions that can be accessed by bus
Formula: LET(query1,FILTER(A1:H1,D1="bus"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:H16,D2:D16="bus"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: What are the names, ids and opening hours of the tourist attractions which can be get by bus or walk?
Formula: LET(a,HSTACK(E1,C1,G1,A1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:H1,(D1="bus")+(D1="walk")),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(E2:E16,C2:C16,G2:G16,A2:A16),b,A2:A16,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:H16,(D2:D16="bus")+(D2:D16="walk")),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard