Version 1.2
SELECT * FROM SMAVG ( ON {table_name | view_name| (query) } PARTITION BY partition_column ORDER BY order_by_column [ TargetColumns ({ 'target_column' | 'target_column_range' }[,...]) ] [ IncludeFirst ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ] [ WindowSize ('window_size') ] );