The TO TIME SERIES aggregation function takes a list of time instants and values to create a time series.
Choose between Average, Max, Min, Percentile, Sum.