Unfortunately, not. Your requirement is the same as what was brought up here Create SAM group based on NPM custom properties
The open feature request for this is Use of Node Custom Properties in Group Applpication Dynamic Query
While you might not be able to do it through the GUI, I think you can do it through the API as that uses the navigation properties of SWQL.
As this works:
SELECT NodeID, InterfaceID, ObjectSubType, Name
Where Interfaces.Node.CustomProperties.Building = 'ADS'
Something like [perl snippet]
$swis->Invoke("Orion.Container", "CreateContainer", [
"$sector $building interfaces",
"Group for $sector interfaces in $building",
SOAP::Data->type('xml' => "<ArrayOfMemberDefinitionInfo xmlns='http://schemas.solarwinds.com/2008/Orion'><MemberDefinitionInfo><Name>$building interfaces</Name><Definition>filter:/Orion.Interfaces[Interfaces.Node.CustomProperties.Building='$building' AND Interfaces.Node.CustomProperties.Sector='$sector']</Definition></MemberDefinitionInfo></ArrayOfMemberDefinitionInfo>")]