the table is:
create table test ( id string, name string, age string, modified string)
data like this:
id name age modife
If u can make sure that row which has max modified also has max age in same id row set.
Try
select id, name, max(age), max(modified) from test group by id, name