now generated sparql query is in good shape