united states house of representatives elections , 1926
george h. tinkham and james a. gallivan had been in the same office the longest .
{'row_1': '5', 'row_2': '6', 'col': '4', 'col_other': '2', 'relation': 'equal', 'record_mentioned': 'no', 'diff_result': None}
{'func': 'eq', 'args': [{'func': 'num_hop', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'incumbent', 'george h tinkham'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose incumbent record fuzzily matches to george h tinkham .', 'tostr': 'filter_eq { all_rows ; incumbent ; george h tinkham }'}, 'first elected'], 'result': None, 'ind': 2, 'tostr': 'hop { filter_eq { all_rows ; incumbent ; george h tinkham } ; first elected }', 'tointer': 'select the rows whose incumbent record fuzzily matches to george h tinkham . take the first elected record of this row .'}, {'func': 'num_hop', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'incumbent', 'james a gallivan'], 'result': None, 'ind': 1, 'tointer': 'select the rows whose incumbent record fuzzily matches to james a gallivan .', 'tostr': 'filter_eq { all_rows ; incumbent ; james a gallivan }'}, 'first elected'], 'result': None, 'ind': 3, 'tostr': 'hop { filter_eq { all_rows ; incumbent ; james a gallivan } ; first elected }', 'tointer': 'select the rows whose incumbent record fuzzily matches to james a gallivan . take the first elected record of this row .'}], 'result': True, 'ind': 4, 'tostr': 'eq { hop { filter_eq { all_rows ; incumbent ; george h tinkham } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; james a gallivan } ; first elected } } = true', 'tointer': 'select the rows whose incumbent record fuzzily matches to george h tinkham . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to james a gallivan . take the first elected record of this row . the first record is equal to the second record .'}
eq { hop { filter_eq { all_rows ; incumbent ; george h tinkham } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; james a gallivan } ; first elected } } = true
select the rows whose incumbent record fuzzily matches to george h tinkham . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to james a gallivan . take the first elected record of this row . the first record is equal to the second record .
{'eq_4': 'eq', 'result_5': 'true', 'num_hop_2': 'num_hop', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_6': 'all_rows', 'incumbent_7': 'incumbent', 'george h tinkham_8': 'george h tinkham', 'first elected_9': 'first elected', 'num_hop_3': 'num_hop', 'filter_str_eq_1': 'filter_str_eq', 'all_rows_10': 'all_rows', 'incumbent_11': 'incumbent', 'james a gallivan_12': 'james a gallivan', 'first elected_13': 'first elected'}
['district', 'incumbent', 'party', 'first elected', 'result', 'candidates']
[['massachusetts 2', 'henry l bowles', 'republican', '1925', 're - elected', 'henry l bowles ( r ) 64.0 % john hall ( d ) 36.0 %'], ['massachusetts 3', 'frank h foss', 'republican', '1924', 're - elected', 'frank h foss ( r ) 62.8 % joseph e casey ( d ) 37.2 %'], ['massachusetts 6', 'abram andrew', 'republican', '1921', 're - elected', 'abram andrew ( r ) 76.9 % james mcpherson ( d ) 23.1 %'], ['massachusetts 10', 'john j douglass', 'democratic', '1924', 're - elected', 'john j douglass ( d ) unopposed'], ['massachusetts 11', 'george h tinkham', 'republican', '1914', 're - elected', 'george h tinkham ( r ) unopposed'], ['massachusetts 12', 'james a gallivan', 'democratic', '1914', 're - elected', 'james a gallivan ( d ) unopposed']]