async def METHOD_NAME(self):
    ret = (
        await Book.annotate(count=Count("id"))
        .filter(count__gt=6)
        .group_by("author_id")
        .values("author_id", "count")
    )
    self.assertEqual(len(ret), 1)
    self.assertEqual(ret[0].get("count"), 10)