Sorry for not posting the code. We have written pysql code step wise (like stored proc). It has all the Source, target and temporary tables with join conditions. We are executing the notebook via workflow jobs with different years passing as paramete...