Yes. The correct answer is to ask an SQL expert to write the query. An LLM will make the expert much faster at writing the script, maybe.
It doesn't.
I can write that script faster than I can write the text asking the AI to write the script as SQL is concise and my IDE has auto-complete.
SQL is not hard enough to require an LLM to think about for you
I will never understand Engineers who struggle with SQL lookups. The vast majority of queries are extremely basic set theory