Fixed SPARQL query, added useless code