simplify SPARQL query for compatible properties