How to get SQL or python code?

Hi, I just completed the course. It was just what I needed to understand structured generation!
I was wondering if there was a simple way to obtain valid SQL or python code as output. The jump from “regex” to “program language” looks big!
(Sorry if trivial question!)