select "orderfact".status AS "orderfact_status", orderfact.totalprice*0 AS "min", SUM("orderfact".totalprice) AS "orderfact_totalprice", SUM(orderfact.totalprice*1.5) AS "max", SUM(orderfact.totalprice*0.6) AS "min_expected", SUM(orderfact.totalprice*1.4) AS "max_expected" from orderfact "orderfact" where "orderfact".status='Shipped' group by "orderfact".status, orderfact.totalprice*0 order by "orderfact_totalprice", "orderfact_status", "max", "min_expected", "max_expected"