Adding support to ThetaJoins, CrossProducts, and various query plans.