Table:
0
A
B
C
D
E
1
Center
North East
South East
South West
North West
2
Ganapati
Vishnu
Shiva
Surya (Sun)
Durga
3
Surya (Sun)
Shiva
Ganapati
Vishnu
Durga
4
Vishnu
Shiva
Ganapati
Surya (Sun)
Durga
5
Shiva
Vishnu
Surya (Sun)
Ganapati
Durga
6
Durga (Devi)
Vishnu
Shiva
Ganapati
Surya (Sun)

Questions and formulas:
Question: Who is in the south-west next to Vishnu on the east, Durga on the west, and in the center of Ganapati?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1="vishnu")*(E1="durga")*(A1="ganapati")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(B2:B6="vishnu")*(E2:E6="durga")*(A2:A6="ganapati")),4))
Level: medium