fix multi-word query problem in `filter`

if query is multi-word, check if set of its words is subset of value’s
words.