values = tuple((company.id, company.max_price) for company in companies)
expensive_cars = Car.objects.extra(where=[
    '(company_unique_id, price) IN %s' % (values,)])
Most efficient way to build list of highest prices from queryset?