Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Texas 1
Sam B. Hall
Democratic
1976
Re-elected
Sam B. Hall (D) 78.1% Fred Hudson (R) 21.9%
3
Texas 3
James M. Collins
Republican
1968
Re-elected
James M. Collins (R) Unopposed
4
Texas 4
Ray Roberts
Democratic
1962
Re-elected
Ray Roberts (D) 61.5% Frank S. Glenn (R) 38.5%
5
Texas 6
Olin E. Teague
Democratic
1946
Retired Democratic hold
Phil Gramm (D) 65.1% Wes Mowery (R) 34.9%
6
Texas 9
Jack Brooks
Democratic
1952
Re-elected
Jack Brooks (D) 63.3% Randy Evans (R) 36.7%
7
Texas 11
William R. Poage
Democratic
1936
Retired Democratic hold
Marvin Leath (D) 51.6% Jack Burgess (R) 48.4%
8
Texas 12
Jim Wright
Democratic
1954
Re-elected
Jim Wright (D) 68.5% Claude K. Brown (R) 31.5%
9
Texas 14
John Andrew Young
Democratic
1956
Lost renomination Democratic hold
Joseph P. Wyatt, Jr. (D) 72.4% Joy Yates (R) 27.6%
10
Texas 16
Richard C. White
Democratic
1964
Re-elected
Richard C. White (D) 70.0% Michael Giere (R) 30.0%
11
Texas 19
George H. Mahon
Democratic
1934
Retired Democratic hold
Kent Hance (D) 53.2% George W. Bush (R) 46.8%
12
Texas 20
Henry B. Gonzalez
Democratic
1961
Re-elected
Henry B. Gonzalez (D) Unopposed
13
Texas 22
Robert Gammage
Democratic
1976
Lost re-election Republican gain
Ron Paul (R) 50.6% Robert Gammage (D) 49.4%

Questions and formulas:
Question: Which district is republican?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,C1="Republican"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F13,C2:C13="Republican"),1))
Level: medium
Question: Name the result when the incumbent was george h. mahon
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="George H. Mahon"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F13,B2:B13="George H. Mahon"),5))
Level: medium
Question: What was the incumbent of texas 3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Texas 3"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F13,A2:A13="Texas 3"),2))
Level: medium
Question: What was the incumbent for texas 19?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Texas 19"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F13,A2:A13="Texas 19"),2))
Level: medium