united states house of representatives elections , 1812
4 incumbents were re - elected during the 1812 house of representatives elections .
{'scope': 'all', 'criterion': 'equal', 'value': 're-elected', 'result': '4', 'col': '5', 'subset': None}
{'func': 'eq', 'args': [{'func': 'count', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'result', 're-elected'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose result record fuzzily matches to re-elected .', 'tostr': 'filter_eq { all_rows ; result ; re-elected }'}], 'result': '4', 'ind': 1, 'tostr': 'count { filter_eq { all_rows ; result ; re-elected } }', 'tointer': 'select the rows whose result record fuzzily matches to re-elected . the number of such rows is 4 .'}, '4'], 'result': True, 'ind': 2, 'tostr': 'eq { count { filter_eq { all_rows ; result ; re-elected } } ; 4 } = true', 'tointer': 'select the rows whose result record fuzzily matches to re-elected . the number of such rows is 4 .'}
eq { count { filter_eq { all_rows ; result ; re-elected } } ; 4 } = true
select the rows whose result record fuzzily matches to re-elected . the number of such rows is 4 .
{'eq_2': 'eq', 'result_3': 'true', 'count_1': 'count', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_4': 'all_rows', 'result_5': 'result', 're-elected_6': 're-elected', '4_7': '4'}
['district', 'incumbent', 'party', 'first elected', 'result', 'candidates']
[['north carolina 2', 'willis alston', 'democratic - republican', '1798', 're - elected', 'willis alston ( dr ) 56.0 % daniel mason ( f ) 44.0 %'], ['north carolina 5', 'william r king', 'democratic - republican', '1810', 're - elected', 'william r king ( dr ) 100 %'], ['north carolina 6', 'nathaniel macon', 'democratic - republican', '1791', 're - elected', 'nathaniel macon ( dr )'], ['north carolina 9', 'none ( district created )', 'none ( district created )', 'none ( district created )', 'new seat democratic - republican gain', 'bartlett yancey ( dr ) 61.1 % james martin ( f ) 38.9 %'], ['north carolina 10', 'joseph pearson', 'federalist', '1808', 're - elected', 'joseph pearson ( f ) 54.1 % alexander gary ( dr ) 45.9 %']]