Fixed contractQuery problem. Added multiple SPARQL queries.