running templates overs prov-sql