I'm amazed you think that instead of using an LLM that someone will go buy a book and spend a week learning something that, judging by the fact that they last used it 30 years ago, likely won't be relevant for them soon.
Unfortunately I am very good at forgetting things I resented having to learn, and SQL is definitively one of them.
But if you ever need to query unknown data, then probably you should learn SQL a bit deeper.