add condition_sql optimization to "Customer does not have uncancelled package of...