fix the bug of sparql query (removing query results from KB is required)