SELECT max(personbalance) FROM ( Select sum(balance) FROM persons join accountof join bankaccounts GROUP BY persons.id )