There is an answer about how to get the desired agent set with only one condition: Repast: how to get a particular agent set based on the specific conditions?
How does such thing work for multiple conditions? (e.g. ask rich_people with [wealth > 100000 and age <= 50 and sex = male])