select distinct T.bnamefrom branch T,branch S
where T.assets > S.assets and S.bcity=``Burnaby''
or we can write
select bnamefrom branch
where assets > some
(select assets from branch where bcity=``Burnaby'')
to find branches whose assets are greater than some branch in Burnaby.
Instead, we find the branches for which average balance is greater than or equal to all average balances:
select bnamefrom account
group by bname
having avg (balance) all
(select avg (balance)
from account
group by bname)