Patent ID: 8572108

Claim:
A method of operating on database queries, comprising: accessing values that specify a parameterized input query in a first database query language, the parameterized input query including one or more parameters that are assigned values that specify an input query in the first database query language; determining, by using a processor, a plurality of randomized input queries in the first database query language by substituting a selection of random parameter values for the one or more parameters in the parameterized input query; determining a plurality of randomized output queries in a second database query language by translating the randomized input queries in the first database query language into corresponding randomized output queries in the second database query language; determining from the randomized output queries a plurality of filtered output queries in the second database query language by replacing each occurrence of the one or more parameter values from a corresponding randomized input query with a parameter placeholder, each filtered output query having a corresponding parameter-order list that identifies for each parameter placeholder a corresponding parameter from the corresponding randomized input query; and selecting a representative filtered output query from the filtered output queries by evaluating a likelihood of the representative filtered output query relative to the filtered output queries, the representative filtered output query defining a parameterized output query in the second database query language and its parameter-order list identifying a corresponding one or more parameters that are assigned values to execute the parameterized output query in the second database query language.