Help on Relational Transversal with given example

I'm having a problem regarding the Relational Traversal. My team has a member list, having a name and gender for each. I need to select teams with conditions for each member.
For example, I will select all Teams whose members contain the following conditions:
A Male whose name begins with an 'S'; and
A Female whose name begins with an 'A'
In this case, I want to choose all Teams that have at least one Male that starts with an 'S'; and at least one Female that starts with an 'A'. How can I do this while complying with the given condition?
