Currently I have this SQL which returns all spaces, their labels and how many times that label is used. This is great other than the fact that it also returns personal spaces. How can I tweak this SQL to filter out personal and only return global spaces?
select
spacename as "Space"
, name as "Label"
, count(name) as Count
from CONTENT_LABEL
left join LABEL
on CONTENT_LABEL.labelid = LABEL.labelid
left join CONTENT