1. A computer-implemented method, comprising: receiving a statement that includes at least one statement pattern, wherein each statement pattern is a template that indicates how a statement is to be modified for execution against a data store and wherein each statement pattern is capable of modifying program logic and control flow; expanding each statement pattern to generate one or more new statements, wherein each statement pattern is capable of being expanded to zero or more statement patterns; executing the one or more new statements against a data store to obtain a result set; determining whether to modify the result set based on the at least one statement pattern; and in response to determining that the result set is to be modified, modifying the result set.