How can I specify select string in ResourceGroup?

For example, to select a non-management host with two CPUs:

select (!mg && ncpus == 2)

ResourceGroup does not support dynamic load indices in the select string.

Note:

Ensure that you follow general rules for editing xml files, and in the use of special characters.