Try as hard as possible to avoid duplicates in SPARQL query for top
object check