Nice. Why do I need to select a table? I tried "Customers with most orders" and selected table "offices" and still got the correct query on tables "customers" and "orders".
I used SQL a lot when working in the financial industry many years ago. Our "use-cases" were questions like "why did the P/L go down?" or "why did the risk position increase?". These are quite open questions (that require some creativity and interpretation to be answered) but I guess it is possible to train an AI to even answer such questions.