moving_average 
Takes a measure, two integers to define the window to aggregate over, and one or more
attributes. Returns the average of the measure over the given window. The attributes are the
ordering columns used to compute the moving average. The window is (current  Num1...Current
+ Num2) with both end points being included in the window. For example, "1,1" will have a
window size of 3. To see periods in the past, use a negative number for the second endpoint,
as in the example "moving_average(sales, 1, 1, date)". 
 moving_average (revenue, 2, 1, customer region)

moving_max 
Takes a measure, two integers to define the window to aggregate over, and one or more
attributes. Returns the maximum of the measure over the given window. The attributes are the
ordering columns used to compute the moving maximum. The window is (current  Num1...Current
+ Num2) with both end points being included in the window. For example, "1,1" will have a
window size of 3. To see periods in the past, use a negative number for the second endpoint,
as in the example "moving_max(sales, 1, 1, date)". 
 moving_max (complaints, 1, 2, store name)

moving_min 
Takes a measure, two integers to define the window to aggregate over, and one or more
attributes. Returns the minimum of the measure over the given window. The attributes are the
ordering columns used to compute the moving minimum. The window is (current  Num1...Current
+ Num2) with both end points being included in the window. For example, "1,1" will have a
window size of 3. To see periods in the past, use a negative number for the second endpoint,
as in the example "moving_min(sales, 1, 1, date)". 
 moving_min (defects, 3, 1, product)

moving_sum 
Takes a measure, two integers to define the window to aggregate over, and one or more
attributes. Returns the sum of the measure over the given window. The attributes are the
ordering columns used to compute the moving sum. The window is (current  Num1...Current +
Num2) with both end points being included in the window. For example, "1,1" will have a
window size of 3. To see periods in the past, use a negative number for the second endpoint,
as in the example "moving_sum(sales, 1, 1, date)". 
 moving_sum (revenue, 1, 1, order date)
