Test case for SPARQL query problem