Fix SPARQL query error of get_triple_contents with filter on tags