made slight improvement to sparql query