Ecto.Query.WindowAPI.sum

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

Calculates the sum for the given entry.

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