implemented parseWhere() and the related part.