Query\QueryBuilderInterface::selectSum

Selects the sum of a field from a query