get aggregate score by ids