Ecto.Query.API.sum

You're seeing just the function sum, go back to Ecto.Query.API module for more information.

Calculates the sum for the given entry.

from p in Payment, select: sum(p.value)