What are the distinct classroom buildings?
select distinct building from classroom
Of those, which have capacity of over 50?
select distinct building from classroom where capacity > 50