york county , new brunswick
in york county , new brunswick , douglas has the highest area km 2 among those with population more than 4000 .
{'scope': 'subset', 'row': '2', 'col': '3', 'order': '1', 'col_other': '1', 'max_or_min': 'max_to_min', 'value_mentioned': 'no', 'subset': {'col': '4', 'criterion': 'greater_than', 'value': '4000'}}
{'func': 'str_eq', 'args': [{'func': 'str_hop', 'args': [{'func': 'nth_argmax', 'args': [{'func': 'filter_greater', 'args': ['all_rows', 'population', '4000'], 'result': None, 'ind': 0, 'tostr': 'filter_greater { all_rows ; population ; 4000 }', 'tointer': 'select the rows whose population record is greater than 4000 .'}, 'area km 2', '1'], 'result': None, 'ind': 1, 'tostr': 'nth_argmax { filter_greater { all_rows ; population ; 4000 } ; area km 2 ; 1 }'}, 'official name'], 'result': 'douglas', 'ind': 2, 'tostr': 'hop { nth_argmax { filter_greater { all_rows ; population ; 4000 } ; area km 2 ; 1 } ; official name }'}, 'douglas'], 'result': True, 'ind': 3, 'tostr': 'eq { hop { nth_argmax { filter_greater { all_rows ; population ; 4000 } ; area km 2 ; 1 } ; official name } ; douglas } = true', 'tointer': 'select the rows whose population record is greater than 4000 . select the row whose area km 2 record of these rows is 1st maximum . the official name record of this row is douglas .'}
eq { hop { nth_argmax { filter_greater { all_rows ; population ; 4000 } ; area km 2 ; 1 } ; official name } ; douglas } = true
select the rows whose population record is greater than 4000 . select the row whose area km 2 record of these rows is 1st maximum . the official name record of this row is douglas .
{'str_eq_3': 'str_eq', 'result_4': 'true', 'str_hop_2': 'str_hop', 'nth_argmax_1': 'nth_argmax', 'filter_greater_0': 'filter_greater', 'all_rows_5': 'all_rows', 'population_6': 'population', '4000_7': '4000', 'area km 2_8': 'area km 2', '1_9': '1', 'official name_10': 'official name', 'douglas_11': 'douglas'}
['official name', 'status', 'area km 2', 'population', 'census ranking']
[['kingsclear', 'parish', '303.26', '6689', '545 of 5008'], ['douglas', 'parish', '1446.50', '5774', '609 of 5008'], ['saint marys', 'parish', '753.06', '4224', '767 of 5008'], ['bright', 'parish', '404.00', '3159', '958 of 5008'], ['new maryland', 'parish', '375.40', '2348', '1193 of 5008'], ['manners sutton', 'parish', '525.47', '1863', '1394 of 5008'], ['stanley', 'parish', '2040.21', '1817', '1408 of 5008'], ['southampton', 'parish', '450.05', '1601', '1535 of 5008'], ['queensbury', 'parish', '301.22', '1215', '1811 of 5008'], ['prince william', 'parish', '287.92', '879', '2234 of 5008'], ['canterbury', 'parish', '557.22', '555', '2875 of 5008'], ['dumfries', 'parish', '305.23', '369', '3418 of 5008'], ['north lake', 'parish', '440.72', '300', '3678 of 5008'], ['mcadam', 'parish', '537.62', '80', '4512 of 5008']]