How many rooms are there in Lamberton?
select count(*) from classroom where building = 'Lamberton'
Of those, how many have capacity less than 50?
select count(*) from classroom where building = 'Lamberton' and capacity < 50