1. A computer program product for query processing, the computer program product comprising: one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising: program instructions to receive a query; program instructions to determine the received query does not correspond to a previously executed query; program instructions to parse the received query to identify input literals that include one or more of: data values, tables, fields, records, and a parameter included in the received query; program instructions to determine whether a pattern is associated with the input literals included in the received query; responsive to determining a pattern is associated with the input literals included in the received query, program instructions to identify one or more indices that include the pattern; program instructions to retrieve one or more adjacent index keys from the identified one or more indices corresponding to the pattern; program instructions to determine one or more pattern hits within the retrieved one or more adjacent index keys, wherein the one or more pattern hits are matches between the parameter of the received query and the retrieved one or more adjacent index keys; program instructions to store a total number of executions of comparisons of the parameter of the received query to the retrieved one or more adjacent index keys and a total number of the one or more pattern hits; program instructions to calculate a ratio of the total number of the one or more pattern hits to the total number of executions; program instructions to determine whether the one or more indices include the pattern based on the calculated ratio at least meeting a predetermined value; responsive to determining the one or more indices include the pattern based on the calculated ratio at least meeting a predetermined value, program instructions to determine a future parameter based on the pattern associated with the input literals, wherein the future parameter is a subsequent instance of a parameter of the received query that corresponds to the pattern; and program instructions to automatically create a future query by incorporating the determined future parameter into the received query.