I am fetching paginated history task list using “HistoricTaskInstanceQuery” and there can be multiple tasks for single CaseInstanceId. Is there anyway I can use GroupBy/Distinct on CaseInstanceId so that I get only one record for each CaseInstanceId.