Exclude Nested Section by Type

Ok. I changed the topic title, since you think that this has nothing to do with Hugo 0.33.

But the question stands. I have tried and failed to filter a Nested Section by Type.

The following renders empty in sitemap.xml, (no errors in the console):

{{ $sections := (.Site.GetPage "section" .Section).Sections }}
{{ range where $sections "Type" "!=" "brand" }}
{{- range $i, $e := .Data.Pages -}}

For a Section it’s very easy to exclude. But for a Nested Section I really don’t know how to do it.

So anyone?