Table:
0
A
B
C
D
E
1
representative id
name
state
party
lifespan
2
1
Dan Quayle
Indiana
Republican
1947�?
3
2
John Quayle
New York
Democratic
1868�?930
4
3
Al Quie
Minnesota
Republican
1923�?
5
4
James M. Quigley
Pennsylvania
Democratic
1918�?
6
5
Jimmy Quillen
Tennessee
Republican
1916�?003
7
6
Jack Quinn
New York
Republican
1951�?
8
7
James L. Quinn
Pennsylvania
Democratic
1875�?960

Questions and formulas:
Question: names, parties and representative ids
Formula: UNIQUE(HSTACK(B1,D1,A1))
Formula2: UNIQUE(HSTACK(B2:B8,D2:D8,A2:A8))
Level: easy
Question: names and ids of non-republican representatives
Formula: LET(query1,FILTER(A1:E1,D1<>"republican"),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:E8,D2:D8<>"republican"),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: lifespans and ids for New York or Indiana representatives.
Formula: LET(query1,FILTER(A1:E1,(C1="indiana")+(C1="new york")),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:E8,(C2:C8="indiana")+(C2:C8="new york")),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: Which party did most representatives join?
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D8,SUMX(A2:A8)), 2, -1), 1)
Level: hard
Question: Parties having at least 3 representatives affiliated.
Formula: LET(query1,SUMMARIZE(D1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=3))
Formula2: LET(query1,SUMMARIZE(D2:D8,SUMX(A2:A8)),FILTER(query1,CHOOSECOLS(query1,3)>=3))
Level: hard
Question: States with at least 2 representatives.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(C2:C8,SUMX(A2:A8)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: number of parties and representatives respectively 
Formula: HSTACK(ROWS(UNIQUE(D1)), SUM(A1))
Formula2: HSTACK(ROWS(UNIQUE(D2:D8)), SUM(A2:A8))
Level: hard
Question: the name, party and representative id.
Formula: UNIQUE(HSTACK(B1,D1,A1))
Formula2: UNIQUE(HSTACK(B2:B8,D2:D8,A2:A8))
Level: easy
Question: the name and id of non-republican representative.
Formula: LET(query1,FILTER(A1:E1,D1<>"republican"),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:E8,D2:D8<>"republican"),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: lifespans and ids for representatives from New York or Indiana
Formula: LET(query1,FILTER(A1:E1,(C1="indiana")+(C1="new york")),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:E8,(C2:C8="indiana")+(C2:C8="new york")),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: States having at least 2 representatives.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(C2:C8,SUMX(A2:A8)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: the respective number of parties and representatives.
Formula: HSTACK(ROWS(UNIQUE(D1)), SUM(A1))
Formula2: HSTACK(ROWS(UNIQUE(D2:D8)), SUM(A2:A8))
Level: hard