SPARQL query analysis