1. A computer-implemented method, comprising: generating a query statement by expanding a base query statement using at least one query fragment of a plurality of query fragments and by operation of one or more computer processors, wherein each query fragment of the plurality of query fragments specifies a distinct way of expanding the base query statement, wherein the at least one query fragment is selected using a parameter value, wherein the base query statement is expanded by a statement generator using the at least one query fragment, and wherein the statement generator is invoked under control of a data access service; and executing the generated query statement against a data store to obtain a result set.