Aggregate Functions

The topics in this section describe the built-in SPARQL aggregate functions. For information about window aggregates, see Window Aggregates.

  • AVG: Calculates the average value for a numeric expression.
  • COUNT: Counts the number of times the specified value is bound to the given variable.
  • GROUP_CONCAT: Performs a string concatenation of all of the values that are bound to the given variable.
  • MAX: Returns the maximum value from the specified set of values.
  • MIN: Returns the minimum value from the specified set of values.
  • SAMPLE: Returns an arbitrary value from the specified set of values.
  • SUM: Adds the specified values.