Construct({ ?gene ?o }, Filter((?count >= 3), Project(Extend(Extend(Extend(AggregationJoin(Aggregation(??agg1: ?gene, SAMPLE, {}, G1=Group((?gene), BGP( ?gene ?disease))), Aggregation(??agg2: ?disease, COUNT, , G1), Aggregation(??agg3: ?disease, SAMPLE, {}, G1)), ?gene, ??agg1), ?count, ??agg2), ?o, ??agg3), {?gene, ?count, ?o})))