scottish parliament general election , 2007
galloway & upper nithsdale was the only constituency that was won by the conservative party .
{'scope': 'all', 'row': '1', 'col': '3', 'col_other': '2', 'criterion': 'equal', 'value': 'conservative', 'subset': None}
{'func': 'and', 'args': [{'func': 'only', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'winning party 2003', 'conservative'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to conservative .', 'tostr': 'filter_eq { all_rows ; winning party 2003 ; conservative }'}], 'result': True, 'ind': 1, 'tostr': 'only { filter_eq { all_rows ; winning party 2003 ; conservative } }', 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to conservative . there is only one such row in the table .'}, {'func': 'str_eq', 'args': [{'func': 'str_hop', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'winning party 2003', 'conservative'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to conservative .', 'tostr': 'filter_eq { all_rows ; winning party 2003 ; conservative }'}, 'constituency'], 'result': 'galloway & upper nithsdale', 'ind': 2, 'tostr': 'hop { filter_eq { all_rows ; winning party 2003 ; conservative } ; constituency }'}, 'galloway & upper nithsdale'], 'result': True, 'ind': 3, 'tostr': 'eq { hop { filter_eq { all_rows ; winning party 2003 ; conservative } ; constituency } ; galloway & upper nithsdale }', 'tointer': 'the constituency record of this unqiue row is galloway & upper nithsdale .'}], 'result': True, 'ind': 4, 'tostr': 'and { only { filter_eq { all_rows ; winning party 2003 ; conservative } } ; eq { hop { filter_eq { all_rows ; winning party 2003 ; conservative } ; constituency } ; galloway & upper nithsdale } } = true', 'tointer': 'select the rows whose winning party 2003 record fuzzily matches to conservative . there is only one such row in the table . the constituency record of this unqiue row is galloway & upper nithsdale .'}
and { only { filter_eq { all_rows ; winning party 2003 ; conservative } } ; eq { hop { filter_eq { all_rows ; winning party 2003 ; conservative } ; constituency } ; galloway & upper nithsdale } } = true
select the rows whose winning party 2003 record fuzzily matches to conservative . there is only one such row in the table . the constituency record of this unqiue row is galloway & upper nithsdale .
{'and_4': 'and', 'result_5': 'true', 'only_1': 'only', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_6': 'all_rows', 'winning party 2003_7': 'winning party 2003', 'conservative_8': 'conservative', 'str_eq_3': 'str_eq', 'str_hop_2': 'str_hop', 'constituency_9': 'constituency', 'galloway & upper nithsdale_10': 'galloway & upper nithsdale'}
['rank', 'constituency', 'winning party 2003', 'swing to gain', "snp 's place 2003", 'result']
[['1', 'galloway & upper nithsdale', 'conservative', '0.17', '2nd', 'con hold'], ['2', 'tweeddale , ettrick & lauderdale', 'liberal democrats', '1.01', '2nd', 'ld hold'], ['3', 'cumbernauld & kilsyth', 'labour', '1.07', '2nd', 'lab hold'], ['4', 'kilmarnock & loudoun', 'labour', '1.92', '2nd', 'snp gain'], ['5', 'dundee west', 'labour', '2.13', '2nd', 'snp gain'], ['6', 'western isles', 'labour', '2.91', '2nd', 'snp gain'], ['7', 'glasgow govan', 'labour', '2.92', '2nd', 'snp gain'], ['8', 'aberdeen central', 'labour', '2.96', '2nd', 'lab hold'], ['9', 'linlithgow', 'labour', '3.56', '2nd', 'lab hold'], ['10', 'west renfrewshire', 'labour', '4.41', '2nd', 'lab hold'], ['11', 'paisley south', 'labour', '4.91', '2nd', 'lab hold']]