1. A method for compiling a query including an extensible markup language based expression, the method comprising: transforming an abstract syntax tree corresponding to the expression into a unified tree including extensible markup language based algebra operations; and mapping the extensible markup language based algebra operations in the unified tree to relational algebra based operations in a relational tree.