fix some parser errors and align sparql