/* syntax version 1 */
/* postgres can not */
pragma EmitAggApply;

SELECT
    sum(key)
FROM (values (cast(1 as Interval)),(null),(cast(3 as Interval))) as a(key)