select "products".productname AS "products_name", "orderfact".priceeach AS "orderfact_priceeach", "orderfact".totalprice AS "orderfact_totalprice", "timeline".year_nb AS "timeline_year_nb", "timeline".month_nb AS "timeline_month_nb", "timeline".day_nb AS "timeline_day_nb", "timeline".month_name AS "timeline_month_name", "timeline".day_name AS "timeline_day_name", "timeline".day_in_week AS "day_in_week", SUM("orderfact".quantityordered) AS "orderfact_quantityordered" from PUBLIC.orderfact "orderfact", PUBLIC.products "products", PUBLIC.timeline "timeline" where "orderfact".productcode="products".productcode AND "orderfact".time_id="timeline".id AND "products".productname='1928 Mercedes-Benz SSK' AND  ("timeline".id <= NOW()) group by "products".productname, "orderfact".priceeach, "orderfact".totalprice, "timeline".year_nb, "timeline".month_nb, "timeline".day_nb, "timeline".month_name, "timeline".day_name, "timeline".day_in_week order by "products_name", "orderfact_quantityordered", "orderfact_priceeach", "orderfact_totalprice", "timeline_year_nb", "timeline_month_nb", "timeline_day_nb", "timeline_month_name", "timeline_day_name", "day_in_week"