Added a multiple-condition support for the query planner.