Add a prerequisite condition for determining age range in getWhereClauses