whereclause parsing, mostly untested