1. A computer-implemented method comprising: identifying by a processor one or more resource sharing opportunities across a plurality of parallel tasks, wherein the plurality of parallel tasks includes zero or more relational operations and at least one non-relational operation; executing by the processor the plurality of parallel tasks involving relational operations and at least one non-relational operation; and sharing by the processor, in response to executing the plurality of parallel tasks, one or more resources of the identified resource sharing opportunities across tasks involving the relational operations and at least one non-relational operation.