Table:
0
A
B
C
D
E
F
G
1
Riding
Candidate's Name
Gender
Residence
Occupation
Votes
Rank
2
Chilliwack—Fraser Canyon
Harold J. Ludwig
M
Abbotsford
Retired
653
5th
3
Langley
Ron Gray
M
Langely
Political Party Leader
594
5th
4
Nanaimo—Alberni
Frank Wagner
M
Nanaimo
Foster Father
176
5th
5
Saanich—Gulf Islands
Dan Moreau
M
Sidney
Environmental Health Officer
114
8th
6
Skeena—Bulkley Valley
Rod Taylor
M
Smithers
Quality Control Supervisor
1,125
5th
7
Surrey North
Kevin Pielak
M
Surrey
Teacher
484
5th
8
Victoria
John Cooper
M
Victoria
Physician
237
5th

Questions and formulas:
Question: what is the candidates name who is ranked 8th?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,G1="8th"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,G2:G8="8th"),2))
Level: medium
Question: where is harold j. ludwig riding when the votes are more than 484?
Formula: LET(query1,LET(query1,FILTER(A1:G1,B1="harold j. ludwig"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)>484))
Formula2: LET(query1,LET(query1,FILTER(A2:G8,B2:B8="harold j. ludwig"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)>484))
Level: hard
Question: what is the gender of Ron Gray, ranked 5th?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(G1="5th")*(B1="ron gray")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,(G2:G8="5th")*(B2:B8="ron gray")),3))
Level: medium
Question: what is the lowest votes of the candidate ranked 5th and riding in victoria?
Formula: MIN(FILTER(F1, (G1="5th")*(A1="victoria")))
Formula2: MIN(FILTER(F2:F8, (G2:G8="5th")*(A2:A8="victoria")))
Level: easy