SELECT "PAGE_SUB2_"."MARKET" AS "MARKET", "PAGE_SUB2_"."Sum_COGS" AS "Sum_COGS" FROM (SELECT ROWNUM G5_ROW_, PAGE_SUB1_.* FROM (SELECT "MARKET", SUM("COGS") AS "Sum_COGS"
FROM coffee_chain
GROUP BY "MARKET"
ORDER BY "MARKET" ASC) PAGE_SUB1_ WHERE ROWNUM <= 5) PAGE_SUB2_ WHERE G5_ROW_ > 0]