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: What are the names and parties of representatives?
Formula: CHOOSE({1,2},B1,D1)
Formula2: CHOOSE({1,2},B2:B8,D2:D8)
Level: easy
Question: What are the names of representatives whose party is not "Republican"?
Formula: FILTER(B1,D1<>"Republican")
Formula2: FILTER(B2:B8,D2:D8<>"Republican")
Level: easy
Question: What are the life spans of representatives from New York state or Indiana state?
Formula: FILTER(E1,(C1="New York")+(C1="Indiana"))
Formula2: FILTER(E2:E8,(C2:C8="New York")+(C2:C8="Indiana"))
Level: easy
Question: What is the party that has the largest number of representatives?
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: What parties have at least three representatives?
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: What states have at least two 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: How many distinct parties are there for representatives?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D8))
Level: easy