select "customers".country AS "customers_country", SUM("orderfact".quantityordered) AS "orderfact_quantityordered" from PUBLIC.customers "customers", PUBLIC.orderfact "orderfact" where "orderfact".customernumber="customers".customernumber group by "customers".country order by "customers_country", "orderfact_quantityordered"