fixed SPARQL to DATALOG for broken agg test