pilibhit ( lok sabha constituency )
for pilibhit , when the trailing party was bahujan samaj party , the 2nd highest % of votes for the trailing party was in 1998 .
{'scope': 'subset', 'row': '12', 'col': '7', 'order': '2', 'col_other': '1', 'max_or_min': 'max_to_min', 'value_mentioned': 'no', 'subset': {'col': '6', 'criterion': 'equal', 'value': 'bahujan samaj party'}}
{'func': 'eq', 'args': [{'func': 'num_hop', 'args': [{'func': 'nth_argmax', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'trailing party', 'bahujan samaj party'], 'result': None, 'ind': 0, 'tostr': 'filter_eq { all_rows ; trailing party ; bahujan samaj party }', 'tointer': 'select the rows whose trailing party record fuzzily matches to bahujan samaj party .'}, 'trailing party % votes', '2'], 'result': None, 'ind': 1, 'tostr': 'nth_argmax { filter_eq { all_rows ; trailing party ; bahujan samaj party } ; trailing party % votes ; 2 }'}, 'year'], 'result': '1998', 'ind': 2, 'tostr': 'hop { nth_argmax { filter_eq { all_rows ; trailing party ; bahujan samaj party } ; trailing party % votes ; 2 } ; year }'}, '1998'], 'result': True, 'ind': 3, 'tostr': 'eq { hop { nth_argmax { filter_eq { all_rows ; trailing party ; bahujan samaj party } ; trailing party % votes ; 2 } ; year } ; 1998 } = true', 'tointer': 'select the rows whose trailing party record fuzzily matches to bahujan samaj party . select the row whose trailing party % votes record of these rows is 2nd maximum . the year record of this row is 1998 .'}
eq { hop { nth_argmax { filter_eq { all_rows ; trailing party ; bahujan samaj party } ; trailing party % votes ; 2 } ; year } ; 1998 } = true
select the rows whose trailing party record fuzzily matches to bahujan samaj party . select the row whose trailing party % votes record of these rows is 2nd maximum . the year record of this row is 1998 .
{'eq_3': 'eq', 'result_4': 'true', 'num_hop_2': 'num_hop', 'nth_argmax_1': 'nth_argmax', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_5': 'all_rows', 'trailing party_6': 'trailing party', 'bahujan samaj party_7': 'bahujan samaj party', 'trailing party % votes_8': 'trailing party % votes', '2_9': '2', 'year_10': 'year', '1998_11': '1998'}
['year', 'lok sabha', 'members of parliament', 'party won', "winner 's % votes", 'trailing party', 'trailing party % votes']
[['1951', '1st lok sabha', 'mukund lal agrawal', 'indian national congress', '43.11 %', 'socialist party', '22.58 %'], ['1957', '2nd lok sabha', 'mohan swarup', 'praja socialist party', '50.54 %', 'indian national congress', '34.86 %'], ['1962', '3rd lok sabha', 'mohan swarup', 'praja socialist party', '29.62 %', 'indian national congress', '27.42 %'], ['1967', '4th lok sabha', 'mohan swarup', 'praja socialist party', '28.24 %', 'indian national congress', '24.26 %'], ['1971', '5th lok sabha', 'mohan swarup', 'indian national congress', '38.96 %', 'indian national organization', '24.74 %'], ['1977', '6th lok sabha', 'md shamsul hasan khan', 'bharatiya lok dal', '71.32 %', 'indian national congress', '19.73 %'], ['1980', '7th lok sabha', 'harish kumar gangawar', 'indian national congress', '40.42 %', 'janata party', '25.34 %'], ['1984', '8th lok sabha', 'bhanu pratap singh', 'indian national congress', '63.84 %', 'bharatiya lok dal', '23.39 %'], ['1989', '9th lok sabha', 'maneka gandhi', 'janata dal', '57.34 %', 'indian national congress', '29.37 %'], ['1991', '10th lok sabha', 'parshuram gangwar', 'bharatiya janta party', '30.86 %', 'janata dal', '29.40 %'], ['1996', '11th lok sabha', 'maneka gandhi', 'janata dal', '59.83 %', 'bharatiya janta party', '17.01 %'], ['1998', '12th lok sabha', 'maneka gandhi', 'independent', '55.99 %', 'bahujan samaj party', '22.60 %'], ['1999', '13th lok sabha', 'maneka gandhi', 'independent', '57.94 %', 'bahujan samaj party', '25.88 %'], ['2004', '14th lok sabha', 'maneka gandhi', 'bharatiya janta party', '37.75 %', 'samajwadi party', '22.58 %'], ['2009', '15th lok sabha', 'feroze varun gandhi', 'bharatiya janta party', '49.79 %', 'indian national congress', '16.38 %']]