Table:
0
A
B
C
D
E
F
G
1
Riding
Candidate's Name
Gender
Residence
Occupation
Votes
Rank
2
Central Nova
Michael Mackay
M
West River Station
Retail
427
4th
3
Dartmouth—Cole Harbour
George Campbell
M
Dartmouth
Minister
219
5th
4
Halifax West
Trevor Ennis
M
Halifax
Swimming Pool Salesman
257
5th
5
Kings—Hants
Jim Hnatiuk
M
Enfield
Combat Systems Technician
528
5th
6
South Shore—St. Margaret's
Joe Larkin
M
Shag Harbour
Retired
513
5th

Questions and formulas:
Question: How many Votes, when the Residence is Halifax?
Formula: SUMIFS(F1,D1,"halifax")
Formula2: SUMIFS(F2:F6,D2:D6,"halifax")
Level: easy
Question: What is the Riding, when the Rank is 4th?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,G1="4th"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,G2:G6="4th"),1))
Level: medium
Question: What is the lowest number of Votes, when the Candidate's Name is Trevor Ennis?
Formula: MINIFS(F1,B1,"trevor ennis")
Formula2: MINIFS(F2:F6,B2:B6,"trevor ennis")
Level: easy
Question: What is the Candidate's Name, when the Votes are 513?
Formula: LET(query1,SUMMARIZE(B1,SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,2)=513))
Formula2: LET(query1,SUMMARIZE(B2:B6,SUMX(F2:F6)),FILTER(query1,CHOOSECOLS(query1,2)=513))
Level: hard
Question: What is the Occupation, when the Candidate's Name is Trevor Ennis?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="trevor ennis"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,B2:B6="trevor ennis"),5))
Level: medium