Determines pre-filters for boolean expressions