Rhino includes procedures for:
Finding Profiles by Attribute Value
Finding Profiles Using Static Queries
Finding Profiles Using Dynamic Queries