Table:
0
A
B
C
D
E
F
1
Name
Tenure
Courtesy title
Court Rank
Revenues
Lineage
2
Ōoka Tadasuke (大岡忠相)
1748–1751
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
4th son of hatamoto Ōoka Tadataka
3
Ōoka Tadayoshi (大岡忠宜)
1755–1766
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
2nd son of Tadasuke
4
Ōoka Tadatsune (大岡忠恒)
1766–1784
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
2nd son of Tadayoshi
5
Ōoka Tadatomo (大岡忠與)
1784–1786
Echizen-no-kami (越前守)
Lower 5th (従五位下)
13,000 koku
3rd son of Ogasawara Nagamichi
6
Ōoka Tadayori (大岡忠移)
1786–1828
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
3rd son of Tadatsune
7
Ōoka Tadayoshi (2nd) (大岡忠愛)
1828–1857
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
son of Tadayori
8
Ōoka Tadataka (大岡忠敬)
1857–1871
Echizen-no-kami (越前守)
Lower 5th (従五位下)
10,000 koku
5th son of Tadayori

Questions and formulas:
Question: What are the revenues for ōoka tadayoshi (2nd) (大岡忠愛)?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="ōoka tadayoshi (2nd) (大岡忠愛)"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="ōoka tadayoshi (2nd) (大岡忠愛)"),5))
Level: medium
Question: What's the lineage of ōoka tadatomo (大岡忠與)?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="ōoka tadatomo (大岡忠與)"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="ōoka tadatomo (大岡忠與)"),6))
Level: medium
Question: What's the tenure of 3rd son of tadatsune?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="3rd son of tadatsune"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,F2:F8="3rd son of tadatsune"),2))
Level: medium
Question: What's the court ranking of 5th son of tadayori and has revenues of 10,000 koku?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(E1="10,000 koku")*(F1="5th son of tadayori")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,(E2:E8="10,000 koku")*(F2:F8="5th son of tadayori")),4))
Level: medium
Question: What's the courtesy title of 4th son of hatamoto ōoka tadataka?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="4th son of hatamoto ōoka tadataka"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,F2:F8="4th son of hatamoto ōoka tadataka"),3))
Level: medium