Agreed that AI will probably be frustrating if it's used in a way that makes "queries" unpredictable.
On the other hand, suppose we use it to make stable changes to a personal version of a product. I'd like to ask the "AI" to write the SQL query that answers a question within the context the product, and save the query once we get it right. Now I have customized my product with a new query without hiring a developer or learning SQL myself. And I can reuse this saved query for predictable results. The story probably gets more interesting with more components: reports, screens, storage, etc.