sparql generation fix