I would like a tool/library/function which takes an arbitrary query and returns the indexes that should be created to support such a query.
For example