Updated Code to support parametrize sparql queries