fix sparqlalgebra to datalog translation, problems introduced by new
sesame algebra generation