def METHOD_NAME(user):
    return UserContactGroup.objects.values(
        "user_id",
        "earliest_known_date",
        "group__name",
    ).filter(group__name__in=[value for value, _ in RAPIDPRO_GROUPS_CHOICES])