SPARQL: code simplification