If you have never programmed before, then make sure to read the next section to find out precisely what an “if statement” is, and how to use it. if magic_number ...
I wrote a Python procedure that returns a table (DataFrame). That procedure is called from within a SQL procedure which just stores the result of the nested procedure as result set and returns it.