select o_custkey, regr_r2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
