solve def res_lab_aggregate