Added SPARQL query for the SwitchNodes testcase