select 10 AS "expect_min", 30 AS "expect_max", SUM(PUBLIC.orderfact.totalprice/1000000) AS "price" from PUBLIC.orderfact "orderfact" group by 10, 30 order by "price", "expect_min", "expect_max"