select "customers".country AS "customers_country", SUM("orderfact".totalprice) AS "orderfact_totalprice" from PUBLIC.customers "customers", PUBLIC.orderfact "orderfact", PUBLIC.products "products", PUBLIC.timeline "timeline" where "orderfact".customernumber="customers".customernumber AND "orderfact".productcode="products".productcode AND "orderfact".time_id="timeline".id AND "timeline".year_nb=2014 AND "products".productline='Trains' group by "customers".country order by "customers_country", "orderfact_totalprice"