1. A system, comprising: a memory storing a plurality of instructions; and one or more processors configured to access the memory, wherein the one or more processors are further configured to execute the plurality of instructions to at least: identify a continuous query including at least a subquery; process the subquery to obtain a logical plan; and process the continuous query based at least in part on merging a continuous query plan with the logical plan to obtain a result.