fixed bug in sparql query generator that generated incorrect column names