fix a sparql query syntax error