From step 3 described above, in the log of your scheduled query, choose the last time you ran with the old code, select edit on the menu that appears on the right:
enter image description here