AI tools have improved several fold over the last 12 months, but they still have a long ways to go, and tools trained to use specific data without revealing non-public information are still difficult to do.
Even asking a question like “Who was the youngest player to achieve a US Chess regular rating of 2200?” would probably have to be disallowed on a public interface because it has to have access to individual birthdates. We have looked into having such a tool for staff usage, though.
I’ve heard of people training Clyde on a data structure without access to the underlying data, apparently it can write complex queries faster than humans can and the humans can then execute them. Whether it can optimize them as well as an experienced programmer remains to be seen, but that should be learnable as well.