Table:
0
A
B
C
D
E
F
G
1
Riding
Candidate
Gender
Residence
Occupation
Votes
Rank
2
Cape Breton—Canso
Mark MacNeill
M
Inverness
Government and Business Policy Advisor
7,660
3rd
3
Central Nova
Mary Louise Lorefice
F
Antigonish
Retired educator
7,659
3rd
4
Cumberland—Colchester—Musquodoboit Valley
Karen Olsson
F
North River
Stay-at-home Mother
4,874
2nd
5
Dartmouth—Cole Harbour
Brad Pye
M
Ottawa, ON
Senior Political Party Program Officer
12,793
2nd
6
Halifax
Megan Leslie
F
Halifax
Community Legal Worker
19,252
1st
7
Halifax West
Tamara Lorincz
F
Halifax
Director of Nova Scotia Environment Network
12,201
2nd
8
Kings—Hants
Carol E. Harris
F
Wolfville
University Professor
8,291
3rd
9
Sackville—Eastern Shore
Peter Stoffer
M
Windsor Junction
Parliamentarian
24,279
1st
10
South Shore—St. Margaret's
Gordon S. Earle
M
Upper Tantallon
Retired Public Servant
13,456
2nd
11
Sydney—Victoria
Wayne McKay
M
Sydney
Teacher
8,559
2nd
12
West Nova
George Barron
M
Bear River
Paramedic
7,097
3rd

Questions and formulas:
Question: What is the occupation of the candidate that resides in Windsor Junction?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="windsor junction"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,D2:D12="windsor junction"),5))
Level: medium
Question: How many votes did 3rd ranking candidate Mary Louise Lorefice receive?
Formula: SUM(FILTER(F1, (G1="3rd")*(B1="mary louise lorefice")))
Formula2: SUM(FILTER(F2:F12, (G2:G12="3rd")*(B2:B12="mary louise lorefice")))
Level: easy
Question: What occupation does Mary Louise Lorefice have?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="mary louise lorefice"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,B2:B12="mary louise lorefice"),5))
Level: medium