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