A few more options and restarts later…
There will be code that creates predictive models here. It is cheating. DO NOT FOLLOW IT. It does not cover choosing a model, testing/validation sets, and checking model assumptions.
The SQL objects and functions are totally fine and can be used.