How many branches are there?
select count(*) from branch
What is their average membership amounts?
select avg(membership_amount) from branch
How many branches have more membership than that?
select count(*) from branch where membership_amount > (select avg(membership_amount) from branch)