1. A computer-implemented method for processing an SQL query made against a relational database, comprising: parsing the SQL query to obtain each operator and associated one or more operands and sequence of execution of the operators; dynamically generating a closure-friendly operator for each operator and the associated one or more operands in the SQL query; and executing the dynamically generated closure-friendly operators based on the obtained sequence of execution of the operators.