[IC] adjusted sql for coupons