Added SPARQL mode code