query-sparql minor improvement