Consider a table like this:
| Name | Version | Other |
| ---------------------|-------|
| Foo | 1 | 'a' |
| Foo | 2 | 'b' |
| Bar | 5 | 'c' |
| Baz | 3 | 'd' |
| Baz | 4 | 'e' |
| Baz | 5 | 'f' |
--------------------------------
I would like to write a query statement sqlalchemy to enumerate all the elements (as the object mapper, and not only the Name column) with a maximum version: Foo-2-b, Bar-5-c, Baz-5-f. I understand that I would have to use a method group_by, but beyond that, I am puzzled by how to retrieve sub-lists (and then find the max element). The SQLAlchemy documentation does not seem to be very clear.
There are many other columns in the real scenario (for example, โOtherโ), so I need the actual row object (collation class) to be returned, and not just the value โNameโ.