Updated code to support prametrize sparql query.