Table:
0
A
B
C
D
E
1
Name
Term start
Term end
Date of Birth
Date of Death
2
George Brown
1867
1867
November 29, 1818
May 9, 1880
3
Edward Blake
1869
1870
October 13, 1833
March 1, 1912
4
Alexander Mackenzie
1873
1880
January 28, 1822
April 17, 1892
5
Edward Blake
1880
1887
October 13, 1833
March 1, 1912
6
Wilfrid Laurier
1887
1919
November 20, 1841
February 17, 1919
7
Daniel Duncan McKenzie
1919
1919
January 8, 1859
June 8, 1927
8
William Lyon Mackenzie King
1919
1948
December 17, 1874
July 22, 1950
9
Louis St. Laurent
1948
1958
February 1, 1882
July 25, 1973
10
Lester B. Pearson
1958
1968
April 23, 1897
December 27, 1972
11
Pierre Trudeau
1968
1984
October 18, 1919
September 28, 2000
12
John Turner
1984
1990
June 7, 1929
living
13
Jean Chrétien
1990
2003
January 11, 1934
living
14
Paul Martin
2003
2006
August 28, 1938
living
15
Bill Graham
2006
2006
March 17, 1939
living
16
Stéphane Dion
2006
2008
September 28, 1955
living
17
Michael Ignatieff
2008
2011
May 12, 1947
living
18
Bob Rae
2011
2013
August 2, 1948
living
19
Justin Trudeau
2013
Incumbent
December 25, 1971
living

Questions and formulas:
Question: What was the name of the leader whose term ended in 2013?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=2013),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E19,C2:C19=2013),1))
Level: medium
Question: When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?
Formula: SUM(FILTER(B1, (C1=1919)*(D1="january 8, 1859")))
Formula2: SUM(FILTER(B2:B19, (C2:C19=1919)*(D2:D19="january 8, 1859")))
Level: easy
Question: Which leader born on December 17, 1874 started their term before 1984?
Formula: LET(query1,LET(query1,FILTER(A1:E1,D1="december 17, 1874"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,2)))),FILTER(query1,CHOOSECOLS(query1,2)<1984))
Formula2: LET(query1,LET(query1,FILTER(A2:E19,D2:D19="december 17, 1874"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,2)))),FILTER(query1,CHOOSECOLS(query1,2)<1984))
Level: hard