This is how I get it to do correct date calculations. Don't tell me what date next Monday is, write Python code using datetime to calculate next Monday and I'll run it in a sandbox. Works super well.
I kind of also do this, for some queries, and I found it to be a very interesting concept, even from a philosophical pov.
It's some sort of Chain-of-thought constraint on a different layer of abstraction. Does this come with its own advantages?