let $entry0ValueAuth := collection("/db/Profiles")//Resource
for $types in distinct-values($entry0ValueAuth//Resource/Type/text())
return <type>{$types}</type>