Table:
0
A
B
C
D
E
F
G
1
Office
Democratic ticket
Republican ticket
Socialist ticket
Independence League ticket
Prohibition ticket
Socialist Labor ticket
2
Governor
John Alden Dix
Henry L. Stimson
Charles Edward Russell
John J. Hopper
T. Alexander MacNicholl
Frank E. Passanno
3
Lieutenant Governor
Thomas F. Conway
Edward Schoeneck
Gustave A. Strebel
William Randolph Hearst
Calvin McCarthy
James T. Hunter
4
Secretary of State
Edward Lazansky
Samuel S. Koenig
Bertha M. Fraser
Thomas P. Scully
N. Horace Gillette
Henry Kuhn
5
Comptroller
William Sohmer
James Thompson
Orcus A. Curtis
Arnold B. MacStay
Bernard Clauson
Carl A. Luedecke
6
Attorney General
Thomas Carmody
Edward R. O'Malley
Henry L. Slobodin
Robert Stewart
Francis E. Baldwin
Lewis F. Alrutz
7
Treasurer
John J. Kennedy
Thomas F. Fennell
Sylvester Butler
William I. Sirovich
Charles J. Call
William A. Walters
8
State Engineer
John A. Bensel
Frank M. Williams
William Lippelt
James A. Lee
Albert W. Pierson
Jeremiah D. Crowley
9
Judge of the Court of Appeals
Frederick Collin
Irving G. Vann
Morris Hillquit
Reuben Robie Lyon
Alfred L. Manierre
Charles H. Chase
10
Judge of the Court of Appeals
Irving G. Vann
Frederick Collin
Louis B. Boudin
James A. Allen
Gilbert Elliott
(none)

Questions and formulas:
Question: Who was on the Democratic ticket for the Office of Attorney General?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="attorney general"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G10,A2:A10="attorney general"),2))
Level: medium