Project(OrderBy(LeftJoin(LeftJoin(LeftJoin(LeftJoin(LeftJoin(Join(BGP( ?topic ?title . ?topic ?origin . ?topic ?image), Project(Extend(Extend(AggregationJoin(Aggregation(??agg1: ?topic, SAMPLE, {}, G1=Group((?topic), BGP( ?topic . ?topic ?eachClass))), Aggregation(??agg2: ?eachClass, GROUP_CONCAT, , G1)), ?topic, ??agg1), ?class, ??agg2), {?topic, ?class})), BGP( ?topic ?abstract)), BGP( ?topic ?description)), BGP( ?topic ?date)), BGP( ?topic ?rights)), BGP( ?topic ?format)), (desc (?date))), {?topic, ?title, ?image, ?class, ?origin, ?description, ?abstract, ?date, ?rights, ?format})