If querying on user-defined genders, replace the Sex field with Constituent Information > Gender.

Gender is intended to be used as a fully functional and queryable table, while Sex retains previous functionality to accommodate integrations that don't yet allow non-binary gender. The Sex field was left as an option in Query to ensure existing queries were not impacted by the changes in Patch 7. If you wish to take advantage of user-defined genders in your query output, we recommend changing your queries to use Gender instead.
 
This functionality is being evaluated for change in future updates to The Raiser's Edge.