Ecto.Query.WindowAPI.avg

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

Calculates the average for the given entry.

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