Support arbitrary where clauses