california legislative lgbt caucus
for the california legislative lgbt caucus , when the years in assembly include 2008 , there were two times the residence was san francisco .
{'scope': 'subset', 'criterion': 'equal', 'value': 'san francisco', 'result': '2', 'col': '2', 'subset': {'col': '4', 'criterion': 'fuzzily_match', 'value': '2008'}}
{'func': 'eq', 'args': [{'func': 'count', 'args': [{'func': 'filter_str_eq', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'years in assembly', '2008'], 'result': None, 'ind': 0, 'tostr': 'filter_eq { all_rows ; years in assembly ; 2008 }', 'tointer': 'select the rows whose years in assembly record fuzzily matches to 2008 .'}, 'residence', 'san francisco'], 'result': None, 'ind': 1, 'tointer': 'select the rows whose years in assembly record fuzzily matches to 2008 . among these rows , select the rows whose residence record fuzzily matches to san francisco .', 'tostr': 'filter_eq { filter_eq { all_rows ; years in assembly ; 2008 } ; residence ; san francisco }'}], 'result': '2', 'ind': 2, 'tostr': 'count { filter_eq { filter_eq { all_rows ; years in assembly ; 2008 } ; residence ; san francisco } }', 'tointer': 'select the rows whose years in assembly record fuzzily matches to 2008 . among these rows , select the rows whose residence record fuzzily matches to san francisco . the number of such rows is 2 .'}, '2'], 'result': True, 'ind': 3, 'tostr': 'eq { count { filter_eq { filter_eq { all_rows ; years in assembly ; 2008 } ; residence ; san francisco } } ; 2 } = true', 'tointer': 'select the rows whose years in assembly record fuzzily matches to 2008 . among these rows , select the rows whose residence record fuzzily matches to san francisco . the number of such rows is 2 .'}
eq { count { filter_eq { filter_eq { all_rows ; years in assembly ; 2008 } ; residence ; san francisco } } ; 2 } = true
select the rows whose years in assembly record fuzzily matches to 2008 . among these rows , select the rows whose residence record fuzzily matches to san francisco . the number of such rows is 2 .
{'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', 'years in assembly_6': 'years in assembly', '2008_7': '2008', 'residence_8': 'residence', 'san francisco_9': 'san francisco', '2_10': '2'}
['name', 'residence', 'party', 'years in assembly', 'years in senate']
[['mark leno', 'san francisco', 'democratic', '2002 - 2008', '2008 - present'], ['cathleen galgiani', 'livingston', 'democratic', '2006 - 2012 galgiani came out in november 2011', '2012 - present'], ['tom ammiano', 'san francisco', 'democratic', '2008 - present', '-'], ['john pérez', 'los angeles', 'democratic', '2008 - present', '-'], ['toni atkins', 'san diego', 'democratic', '2010 - present', '-'], ['rich gordon', 'menlo park', 'democratic', '2010 - present', '-'], ['ricardo lara', 'bell gardens', 'democratic', '2010 - 2012', '2012 - present'], ['susan eggman', 'stockton', 'democratic', '2012 - present', '-']]