Remove distinct's automatic addition in AQL queries [RTFACT-21128]

external_document

ft:sourceType
jira-jfrog