fixed get SPARQL query