select max(rank) as levels from qryTerritories