Fixes #450 - Predicates in WHERE are not evaluated correctly for certain patterns