Table:
0
A
B
C
D
E
F
G
1
Riding
Candidate's Name
Gender
Residence
Occupation
Votes
Rank
2
Avalon
Scott Andrews
M
Conception Bay South
Municipal Councillor
14,866
1st
3
Bonavista—Gander—Grand Falls—Windsor
Scott Simms
M
Bishop's Falls
Parliamentarian
20,089
1st
4
Humber—St. Barbe—Baie Verte
Gerry Byrne
M
Corner Brook
Parliamentarian
17,956
1st
5
Labrador
Todd Russell
M
Happy Valley-Goose Bay
Parliamentarian
5,426
1st
6
Random—Burin—St. George's
Judy Foote
F
St. John's
Parliamentarian
12,557
1st
7
St. John's East
Walter Noel
M
St. John's
Economist
5,211
2nd
8
St. John's South—Mount Pearl
Siobhán Coady
F
St. John's
Business Executive
14,920
1st

Questions and formulas:
Question: The candidate with Riding of st. john's south—mount pearl is what gender?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="st. john's south—mount pearl"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,A2:A8="st. john's south—mount pearl"),3))
Level: medium
Question: What is the rank of walter noel from st. john's?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(D1="st. john's")*(B1="walter noel")),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,(D2:D8="st. john's")*(B2:B8="walter noel")),7))
Level: medium
Question: What is the name of the candidate from happy valley-goose bay with a gender of m?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(C1="m")*(D1="happy valley-goose bay")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,(C2:C8="m")*(D2:D8="happy valley-goose bay")),2))
Level: medium