Removed the repetitive, almost identical SPARQL queries