class InventoryEstimateDaoESImp extends BaseDaoESImp implements InventoryEstimateDao {

    @Override
    public Impression getPredictions_SIGMA_BMs_PLUS_qBAR_DOT_BNs(Day day, List<TargetingChannel> bms, TargetingChannel q, List<TargetingChannel> bns) throws IOException
    {
        /**
         * If tcs size is zero the return is zero
         */
        if (CommonUtil.isEmpty(bns))
        {
            return new Impression();
        }

        BoolQueryBuilder bmsqb = createOrQueryForSingleValue(bms);
        BoolQueryBuilder qb = createInvQueryForSingleValue(q);
        bmsqb = bmsqb.should(qb);
        BoolQueryBuilder bnsqb = createAndQueryForSingleValue(bns);
        bnsqb = bnsqb.must(bmsqb);

        return getPredictionsForQuery(day, bnsqb);
    }

    public  InventoryEstimateDaoESImp();
    public  InventoryEstimateDaoESImp(Properties properties);

}