select "timeline".year_nb AS "timeline_year_nb", SUM("orderfact".totalprice) AS "orderfact_totalprice" from PUBLIC.orderfact "orderfact", PUBLIC.timeline "timeline" where "orderfact".time_id="timeline".id group by "timeline".year_nb order by "timeline_year_nb", "orderfact_totalprice"