15. A system for generating queries for at least one of retrieving data that satisfy a conditional expression from a database and performing a calculation on at least part of the retrieved data, the system comprising: a processor; and a memory in communication with the processor and configured to store a set of instructions which when executed by the processor configure the processor to: receive a first query containing at least one first conditional expression; determine a first replaceable token and a second replaceable token in the first query; retrieve a parameter definition for a first instance of a parameter corresponding to the first replaceable token in the first query from a pool of parameter definitions that exist outside of a report or query that includes the first query; verify that the at least one first conditional expression in the query references the parameter having the persistent parameter definition; in response to the at least one first conditional expression referencing the parameter having the persistent parameter definition, obtain user input for a first instance of the parameter and user input for a second instance of the parameter based on the persistent parameter definition, wherein obtaining user input comprises: generating a first graphical user interface in response to processing the first query based on the parameter definition for the first instance of the parameter corresponding to the first replaceable token identified in the first query, the parameter definition including information configured to prompt users for information indicative of a conditional expression and a calculation, wherein the first graphical user interface is sent and displayed to a user as a prompt for first information indicative of a second conditional expression and a first calculation; receiving first user input from a user, wherein the first user input comprises the second conditional expression and first calculation; generating a second graphical user interface in response to processing the first query based on reusing the parameter definition for the second instance of the parameter corresponding to the second replaceable token identified in the first query, wherein the second graphical user interface is sent and displayed to a user as a prompt for second information indicative of a third conditional expression and a second calculation; receiving second user input from a user, wherein the second user input comprises the third conditional expression and second calculation; replace the first replaceable token with the second conditional expression and the first calculation and replacing the second token with the third conditional expression and the second calculation; in response to replacing the first replaceable token identified in the first query with the second conditional expression and the first calculation and the second replaceable token identified in the first query with the third conditional expression and the second calculation, perform generation of a second query for retrieving data that satisfy the at least one first conditional expression; retrieve data that satisfies the at least one first conditional expression, wherein retrieving data that satisfies the at least one first conditional expression comprises evaluating the second conditional expression and the third conditional expression; and perform the first calculation and the second calculation on the retrieved data.
15. A system for generating queries for at least one of retrieving data that satisfy a conditional expression from a database and performing a calculation on at least part of the retrieved data, the system comprising: a processor; and a memory in communication with the processor and configured to store a set of instructions which when executed by the processor configure the processor to: receive a first query containing at least one first conditional expression; determine a first replaceable token and a second replaceable token in the first query; retrieve a parameter definition for a first instance of a parameter corresponding to the first replaceable token in the first query from a pool of parameter definitions that exist outside of a report or query that includes the first query; verify that the at least one first conditional expression in the query references the parameter having the persistent parameter definition; in response to the at least one first conditional expression referencing the parameter having the persistent parameter definition, obtain user input for a first instance of the parameter and user input for a second instance of the parameter based on the persistent parameter definition, wherein obtaining user input comprises: generating a first graphical user interface in response to processing the first query based on the parameter definition for the first instance of the parameter corresponding to the first replaceable token identified in the first query, the parameter definition including information configured to prompt users for information indicative of a conditional expression and a calculation, wherein the first graphical user interface is sent and displayed to a user as a prompt for first information indicative of a second conditional expression and a first calculation; receiving first user input from a user, wherein the first user input comprises the second conditional expression and first calculation; generating a second graphical user interface in response to processing the first query based on reusing the parameter definition for the second instance of the parameter corresponding to the second replaceable token identified in the first query, wherein the second graphical user interface is sent and displayed to a user as a prompt for second information indicative of a third conditional expression and a second calculation; receiving second user input from a user, wherein the second user input comprises the third conditional expression and second calculation; replace the first replaceable token with the second conditional expression and the first calculation and replacing the second token with the third conditional expression and the second calculation; in response to replacing the first replaceable token identified in the first query with the second conditional expression and the first calculation and the second replaceable token identified in the first query with the third conditional expression and the second calculation, perform generation of a second query for retrieving data that satisfy the at least one first conditional expression; retrieve data that satisfies the at least one first conditional expression, wherein retrieving data that satisfies the at least one first conditional expression comprises evaluating the second conditional expression and the third conditional expression; and perform the first calculation and the second calculation on the retrieved data. 20. The system of claim 15 wherein the processor is further configured to validate that the second conditional expression and the first calculation input by the user or the third conditional expression and the second calculation input by the user meets predefined criteria.