united states house of representatives elections , 1986
of the incumbents in the 1986 election for united states house of representatives , doug walgren was first elected 6 years before tom ridge .
{'row_1': '7', 'row_2': '8', 'col': '4', 'col_other': '2', 'relation': 'diff', 'record_mentioned': 'no', 'diff_result': {'diff_value': '6', 'bigger': 'row2'}}
{'func': 'eq', 'args': [{'func': 'diff', 'args': [{'func': 'num_hop', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'incumbent', 'doug walgren'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose incumbent record fuzzily matches to doug walgren .', 'tostr': 'filter_eq { all_rows ; incumbent ; doug walgren }'}, 'first elected'], 'result': None, 'ind': 2, 'tostr': 'hop { filter_eq { all_rows ; incumbent ; doug walgren } ; first elected }', 'tointer': 'select the rows whose incumbent record fuzzily matches to doug walgren . take the first elected record of this row .'}, {'func': 'num_hop', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'incumbent', 'tom ridge'], 'result': None, 'ind': 1, 'tointer': 'select the rows whose incumbent record fuzzily matches to tom ridge .', 'tostr': 'filter_eq { all_rows ; incumbent ; tom ridge }'}, 'first elected'], 'result': None, 'ind': 3, 'tostr': 'hop { filter_eq { all_rows ; incumbent ; tom ridge } ; first elected }', 'tointer': 'select the rows whose incumbent record fuzzily matches to tom ridge . take the first elected record of this row .'}], 'result': '-6', 'ind': 4, 'tostr': 'diff { hop { filter_eq { all_rows ; incumbent ; doug walgren } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; tom ridge } ; first elected } }'}, '-6'], 'result': True, 'ind': 5, 'tostr': 'eq { diff { hop { filter_eq { all_rows ; incumbent ; doug walgren } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; tom ridge } ; first elected } } ; -6 } = true', 'tointer': 'select the rows whose incumbent record fuzzily matches to doug walgren . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to tom ridge . take the first elected record of this row . the second record is 6 larger than the first record .'}
eq { diff { hop { filter_eq { all_rows ; incumbent ; doug walgren } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; tom ridge } ; first elected } } ; -6 } = true
select the rows whose incumbent record fuzzily matches to doug walgren . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to tom ridge . take the first elected record of this row . the second record is 6 larger than the first record .
{'eq_5': 'eq', 'result_6': 'true', 'diff_4': 'diff', 'num_hop_2': 'num_hop', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_7': 'all_rows', 'incumbent_8': 'incumbent', 'doug walgren_9': 'doug walgren', 'first elected_10': 'first elected', 'num_hop_3': 'num_hop', 'filter_str_eq_1': 'filter_str_eq', 'all_rows_11': 'all_rows', 'incumbent_12': 'incumbent', 'tom ridge_13': 'tom ridge', 'first elected_14': 'first elected', '-6_15': '-6'}
['district', 'incumbent', 'party', 'first elected', 'result', 'candidates']
[['pennsylvania 6', 'gus yatron', 'democratic', '1968', 're - elected', 'gus yatron ( d ) 69.1 % norm bertasavage ( r ) 30.9 %'], ['pennsylvania 7', 'robert w edgar', 'democratic', '1974', 'retired to run for u s senate republican gain', 'curt weldon ( r ) 61.3 % bill spingler ( d ) 38.7 %'], ['pennsylvania 9', 'bud shuster', 'republican', '1972', 're - elected', 'bud shuster ( r ) unopposed'], ['pennsylvania 12', 'john murtha', 'democratic', '1974', 're - elected', 'john murtha ( d ) 67.4 % kathy holtzman ( r ) 32.6 %'], ['pennsylvania 15', 'donald l ritter', 'republican', '1978', 're - elected', 'donald l ritter ( r ) 56.8 % joe simonetta ( d ) 43.2 %'], ['pennsylvania 17', 'george gekas', 'republican', '1982', 're - elected', 'george gekas ( r ) 73.6 % michael s ogden ( d ) 26.4 %'], ['pennsylvania 18', 'doug walgren', 'democratic', '1976', 're - elected', 'doug walgren ( d ) 63.0 % ernie buckman ( r ) 37.0 %'], ['pennsylvania 21', 'tom ridge', 'republican', '1982', 're - elected', 'tom ridge ( r ) 80.9 % joylyn blackwell ( d ) 19.1 %']]