Improve SPARQL query efficiency