Seriously though, why are you writing your own SQL still? It’s the language LLMs are the most accurate at translating English into. Like, the most insane inline aggregation, nested transaction nonsense; it just does it for you if you describe what you want and it knows your schema.
You can keep it private. And if you think you’re better than it you haven’t tried it. You can name the statement, and it will figure out what you want.