1 2 3 4 5 6 7
/* syntax version 1 */ /* postgres can not */ pragma EmitAggApply; SELECT avg(key) FROM (values (1),(null),(3)) as a(key)