Need to figure out what the grammar should look like. Something along these lines?
gender == MASCULINE && RANGE(bookCount) == CARDINALITY_ONE
The workaround for ranges now is for the application code to calculate the range and supply it as part of the evaluation context