BannerPlace::has('leases','<', 'banner_places.max_owners')->get()
select
*
from
`banner_places`
where
(
select
count(*)
from
`leases`
inner join `banner_place_lease` on `leases`.`id` = `banner_place_lease`.`lease_id`
where
`banner_places`.`id` = `banner_place_lease`.`banner_place_id`
) < 3