Table:
0
A
B
C
D
E
1
Election
Candidate
Number of votes
Share of votes
Outcome of election
2
2012
John Dramani Mahama
5,574,761
50.7%
Mahama NDC government
3
2008 (2)
John Atta Mills
4,501,466
50.1%
Mills NDC government
4
2008 (1)
John Atta Mills
4,056,634
47.9%
2nd round election
5
2004
John Atta Mills
3,850,368
44.6%
NDC opposition
6
2000 (2nd)
John Atta Mills
2,728,241
43.3%
NDC opposition
7
2000 (1st)
John Atta Mills
2,895,575
44.8%
2nd round election
8
1996
Jerry Rawlings
—
57.4%
2nd Rawlings NDC government
9
1992
Jerry Rawlings
2,327,600
58.4%
Rawlings NDC government

Questions and formulas:
Question: Who is the candidate in the 2008 (2) election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="2008 (2)"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="2008 (2)"),2))
Level: medium
Question: What is the share of votes in the 2008 (1) election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="2008 (1)"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="2008 (1)"),4))
Level: medium
Question: What is the share of votes in the 2000 (2nd) election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="2000 (2nd)"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="2000 (2nd)"),4))
Level: medium
Question: What is the election with an outcome of ndc opposition and 2,728,241 votes?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="ndc opposition")*(C1=2728241)),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(E2:E9="ndc opposition")*(C2:C9=2728241)),1))
Level: medium
Question: What is the outcome of the election with 43.3% share of votes?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="43.3%"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,D2:D9="43.3%"),5))
Level: medium
Question: Who is the candidate in the 2012 election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="2012"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="2012"),2))
Level: medium