list of united states senators expelled or censured
according to the list of united states senators expelled or censured , five republican senators resigned .
{'scope': 'subset', 'criterion': 'fuzzily_match', 'value': 'resigned', 'result': '5', 'col': '5', 'subset': {'col': '3', 'criterion': 'fuzzily_match', 'value': 'republican'}}
{'func': 'eq', 'args': [{'func': 'count', 'args': [{'func': 'filter_str_eq', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'party', 'republican'], 'result': None, 'ind': 0, 'tostr': 'filter_eq { all_rows ; party ; republican }', 'tointer': 'select the rows whose party record fuzzily matches to republican .'}, 'result', 'resigned'], 'result': None, 'ind': 1, 'tointer': 'select the rows whose party record fuzzily matches to republican . among these rows , select the rows whose result record fuzzily matches to resigned .', 'tostr': 'filter_eq { filter_eq { all_rows ; party ; republican } ; result ; resigned }'}], 'result': '5', 'ind': 2, 'tostr': 'count { filter_eq { filter_eq { all_rows ; party ; republican } ; result ; resigned } }', 'tointer': 'select the rows whose party record fuzzily matches to republican . among these rows , select the rows whose result record fuzzily matches to resigned . the number of such rows is 5 .'}, '5'], 'result': True, 'ind': 3, 'tostr': 'eq { count { filter_eq { filter_eq { all_rows ; party ; republican } ; result ; resigned } } ; 5 } = true', 'tointer': 'select the rows whose party record fuzzily matches to republican . among these rows , select the rows whose result record fuzzily matches to resigned . the number of such rows is 5 .'}
eq { count { filter_eq { filter_eq { all_rows ; party ; republican } ; result ; resigned } } ; 5 } = true
select the rows whose party record fuzzily matches to republican . among these rows , select the rows whose result record fuzzily matches to resigned . the number of such rows is 5 .
{'eq_3': 'eq', 'result_4': 'true', 'count_2': 'count', 'filter_str_eq_1': 'filter_str_eq', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_5': 'all_rows', 'party_6': 'party', 'republican_7': 'republican', 'result_8': 'result', 'resigned_9': 'resigned', '5_10': '5'}
['year', 'senator', 'party', 'state', 'result']
[['1808', 'john smith', 'democrat - republican', 'ohio', 'not expelled'], ['1856', 'henry mower rice', 'democratic', 'minnesota', 'not expelled'], ['1862', 'lazarus w powell', 'democratic', 'kentucky', 'not expelled'], ['1862', 'james f simmons', 'republican', 'rhode island', 'resigned'], ['1873', 'james w patterson', 'republican', 'new hampshire', 'term expired'], ['1893', 'william n roach', 'democratic', 'north dakota', 'not expelled'], ['1905', 'john h mitchell', 'republican', 'oregon', 'died during proceedings'], ['1906', 'joseph r burton', 'republican', 'kansas', 'resigned'], ['1907', 'reed smoot', 'republican', 'utah', 'not expelled'], ['1919', 'robert m la follette , sr', 'republican', 'wisconsin', 'not expelled'], ['1922', 'truman handy newberry', 'republican', 'michigan', 'resigned'], ['1924', 'burton k wheeler', 'democratic', 'montana', 'not expelled'], ['1934', 'john h overton', 'democratic', 'louisiana', 'not expelled'], ['1934', 'huey long', 'democratic', 'louisiana', 'not expelled'], ['1942', 'william langer', 'republican', 'north dakota', 'not expelled'], ['1982', 'harrison a williams', 'democratic', 'new jersey', 'resigned'], ['1995', 'bob packwood', 'republican', 'oregon', 'resigned'], ['2011', 'john ensign', 'republican', 'nevada', 'resigned']]