united states house of representatives elections , 1820
in total , 4 representatives were elected in special electons .
{'scope': 'all', 'criterion': 'fuzzily_match', 'value': 'special', 'result': '4', 'col': '4', 'subset': None}
{'func': 'eq', 'args': [{'func': 'count', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'first elected', 'special'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose first elected record fuzzily matches to special .', 'tostr': 'filter_eq { all_rows ; first elected ; special }'}], 'result': '4', 'ind': 1, 'tostr': 'count { filter_eq { all_rows ; first elected ; special } }', 'tointer': 'select the rows whose first elected record fuzzily matches to special . the number of such rows is 4 .'}, '4'], 'result': True, 'ind': 2, 'tostr': 'eq { count { filter_eq { all_rows ; first elected ; special } } ; 4 } = true', 'tointer': 'select the rows whose first elected record fuzzily matches to special . the number of such rows is 4 .'}
eq { count { filter_eq { all_rows ; first elected ; special } } ; 4 } = true
select the rows whose first elected record fuzzily matches to special . 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', 'first elected_5': 'first elected', 'special_6': 'special', '4_7': '4'}
['district', 'incumbent', 'party', 'first elected', 'result', 'candidates']
[['virginia 4', 'william mccoy', 'democratic - republican', '1811', 're - elected', 'william mccoy ( dr )'], ['virginia 5', 'john floyd', 'democratic - republican', '1817', 're - elected', 'john floyd ( dr )'], ['virginia 6', 'alexander smyth', 'democratic - republican', '1817', 're - elected', 'alexander smyth ( dr )'], ['virginia 7', 'ballard smith', 'democratic - republican', '1815', 'retired democratic - republican hold', 'william smith ( dr ) 53.2 % james wilson ( dr ) 46.8 %'], ['virginia 11', 'philip p barbour', 'democratic - republican', '1814 ( special )', 're - elected', 'philip p barbour ( dr )'], ['virginia 12', 'robert s garnett', 'democratic - republican', '1817', 're - elected', 'robert s garnett ( dr ) 100 %'], ['virginia 14', 'william a burwell', 'democratic - republican', '1806 ( special )', 'retired democratic - republican hold', 'jabez leftwich ( dr ) 93.5 % james calloway ( dr ) 6.5 %'], ['virginia 17', 'william s archer', 'democratic - republican', '1820 ( special )', 're - elected', 'william s archer ( dr ) 100 %'], ['virginia 18', 'mark alexander', 'democratic - republican', '1819', 're - elected', 'mark alexander ( dr ) 100 %'], ['virginia 19', 'james jones', 'democratic - republican', '1819', 're - elected', 'james jones ( dr )'], ['virginia 20', 'john c gray', 'democratic - republican', '1820 ( special )', 'lost re - election democratic - republican hold', 'arthur smith ( dr ) 60.3 % john c gray ( dr ) 39.7 %'], ['virginia 21', 'thomas newton , jr', 'democratic - republican', '1797', 're - elected', 'thomas newton , jr ( dr ) 94.7 % others 5.3 %'], ['virginia 22', 'hugh nelson', 'democratic - republican', '1811', 're - elected', 'hugh nelson ( dr ) 100 %']]