1. A non-transitory computer-readable medium for processing relational database queries having instructions that, when executed by a computing device, cause the computing device to perform steps comprising: receiving a SQL query made against a relational database; parsing the SQL query to obtain a plurality of operators, one or more operands and a sequence of execution of the plurality of operators; dynamically generating a closure-friendly operator for each of the plurality of operators and the 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 plurality of operators.