1. A method for processing data, comprising: receiving a plurality of queries to a database; transforming the plurality of queries into a plurality of query trees; combining each of the plurality of query trees into a master query tree, wherein a portion of the master query tree and a portion of the each of the plurality of query trees are determined as children of a split node in the master query tree, and wherein the split node is determined based in part on a match of a path in the master query tree and another path in the at least one of the plurality of query trees; and applying the master query tree to at least one portion of one table from the database to provide at least one result.