athletics at the 1987 pan american games
for athletics at the 1987 pan american games , the teams ranked in the top 3 had a total of 85 medals .
{'scope': 'subset', 'col': '6', 'type': 'sum', 'result': '85', 'subset': {'col': '1', 'criterion': 'less_than_eq', 'value': '3'}}
{'func': 'round_eq', 'args': [{'func': 'sum', 'args': [{'func': 'filter_less_eq', 'args': ['all_rows', 'rank', '3'], 'result': None, 'ind': 0, 'tostr': 'filter_less_eq { all_rows ; rank ; 3 }', 'tointer': 'select the rows whose rank record is less than or equal to 3 .'}, 'total'], 'result': '85', 'ind': 1, 'tostr': 'sum { filter_less_eq { all_rows ; rank ; 3 } ; total }'}, '85'], 'result': True, 'ind': 2, 'tostr': 'round_eq { sum { filter_less_eq { all_rows ; rank ; 3 } ; total } ; 85 } = true', 'tointer': 'select the rows whose rank record is less than or equal to 3 . the sum of the total record of these rows is 85 .'}
round_eq { sum { filter_less_eq { all_rows ; rank ; 3 } ; total } ; 85 } = true
select the rows whose rank record is less than or equal to 3 . the sum of the total record of these rows is 85 .
{'eq_2': 'eq', 'result_3': 'true', 'sum_1': 'sum', 'filter_less_eq_0': 'filter_less_eq', 'all_rows_4': 'all_rows', 'rank_5': 'rank', '3_6': '3', 'total_7': 'total', '85_8': '85'}
['rank', 'nation', 'gold', 'silver', 'bronze', 'total']
[['1', 'united states ( usa )', '26', '14', '15', '55'], ['2', 'cuba ( cub )', '6', '9', '8', '23'], ['3', 'mexico ( mex )', '5', '1', '1', '7'], ['4', 'brazil ( bra )', '3', '3', '2', '8'], ['5', 'jamaica ( jam )', '2', '3', '4', '9'], ['6', 'chile ( chi )', '1', '0', '1', '2'], ['7', 'canada ( can )', '0', '7', '3', '10'], ['8', 'bahamas ( bah )', '0', '2', '3', '5'], ['9', 'dominican republic ( dom )', '0', '1', '1', '2'], ['10', 'ecuador ( ecu )', '0', '1', '0', '1'], ['10', 'costa rica ( crc )', '0', '1', '0', '1'], ['10', 'argentina ( arg )', '0', '1', '0', '1'], ['13', 'puerto rico ( pur )', '0', '0', '2', '2'], ['13', 'colombia ( col )', '0', '0', '2', '2'], ['15', 'venezuela ( ven )', '0', '0', '1', '1']]