REST API with 1000 query templates

sb.Select("id", "name", sb.As("COUNT(*)", "c"))

Is this not a sort of ORM?

So you prefer using packages?