``for usages in query.filter(pricing_device__in=usage_ids):``