Construct({ ?pid ?title . ?pid ?description . ?pid ?brand . ?pid ?isPublic . ?pid ?total . ?pid ?priceMin . ?pid ?condition . ?pid ?createdAt }, Join(ToMultiSet({{(?pid, )}, {(?pid, )}, {(?pid, )}, {(?pid, )}, {(?pid, )}}), Join(Project(Extend(Extend(Extend(Extend(AggregationJoin(Aggregation(??agg1: ?pid, SAMPLE, {}, G1=Group((?pid, ?condition), Extend(BGP( ?pid ^ ?oid . ?oid ?cond . ?oid ?pr), ?condition, if((?cond = 1), "New", "Used") ))), Aggregation(??agg2: ?cond, COUNT, {}, G1), Aggregation(??agg3: ?pr, MIN, {}, G1), Aggregation(??agg4: ?condition, SAMPLE, {}, G1)), ?pid, ??agg1), ?total, ??agg2), ?priceMin, ??agg3), ?condition, ??agg4), {?pid, ?total, ?priceMin, ?condition}), LeftJoin(LeftJoin(BGP( ?pid ?title . ?pid ?description . ?pid ?brand . ?pid ?isPublic . ?pid ?createdAt), BGP( ?pid ?bulletpoint0)), BGP( ?pid ?bulletpoint1)))))