scottish parliament general election , 2007
liberal democrats were the winning party in 2003 for 3 constituencies .
{'scope': 'all', 'criterion': 'equal', 'value': 'liberal democrats', 'result': '3', 'col': '3', 'subset': None}
{'func': 'eq', 'args': [{'func': 'count', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'winning party 2003', 'liberal democrats'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to liberal democrats .', 'tostr': 'filter_eq { all_rows ; winning party 2003 ; liberal democrats }'}], 'result': '3', 'ind': 1, 'tostr': 'count { filter_eq { all_rows ; winning party 2003 ; liberal democrats } }', 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to liberal democrats . the number of such rows is 3 .'}, '3'], 'result': True, 'ind': 2, 'tostr': 'eq { count { filter_eq { all_rows ; winning party 2003 ; liberal democrats } } ; 3 } = true', 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to liberal democrats . the number of such rows is 3 .'}
eq { count { filter_eq { all_rows ; winning party 2003 ; liberal democrats } } ; 3 } = true
select the rows whose winning party 2003 record fuzzily matches to liberal democrats . the number of such rows is 3 .
{'eq_2': 'eq', 'result_3': 'true', 'count_1': 'count', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_4': 'all_rows', 'winning party 2003_5': 'winning party 2003', 'liberal democrats_6': 'liberal democrats', '3_7': '3'}
['rank', 'constituency', 'winning party 2003', 'swing to gain', "labour 's place 2003", 'result']
[['1', 'dundee east', 'snp', '0.17', '2nd', 'snp hold'], ['2', 'edinburgh south', 'liberal democrats', '0.26', '2nd', 'ld hold'], ['3', 'ochil', 'snp', '0.49', '2nd', 'snp hold'], ['4', 'strathkelvin and bearsden', 'independent', '0.62', '2nd', 'lab gain'], ['5', 'aberdeen north', 'snp', '0.92', '2nd', 'snp hold'], ['6', 'inverness east , nairn and lochaber', 'snp', '1.51', '2nd', 'snp hold'], ['7', 'tweeddale , ettrick and lauderdale', 'liberal democrats', '2.70', '3rd', 'ld hold'], ['8', 'ayr', 'conservative', '2.99', '2nd', 'con hold'], ['9', 'edinburgh pentlands', 'conservative', '3.16', '2nd', 'con hold'], ['10', 'caithness , sutherland and easter ross', 'liberal democrats', '4.96', '2nd', 'ld hold']]