[selected property] as [label] group by [group variable] for [variable] in [array]