Add WHERE clause to buildings-major layer

This should improve performance.