select "customers".country AS "customers_country", SUM(ROUND(orderfact.totalprice/1000,1)) AS "orderfact_totalprice/1000" from PUBLIC.customers "customers", PUBLIC.orderfact "orderfact", PUBLIC.timeline "timeline" where "orderfact".customernumber="customers".customernumber AND "orderfact".time_id="timeline".id AND "timeline".id<='2012-01-08' AND "timeline".id>='2005-01-01' group by "customers".country order by "customers_country"