An inexact query transformation system selects a query element from a
query statement. If an inexact transformation improves the query
performance, the system prioritizes the candidate transformation rules
applicable to the selected query element. The system applies the
candidate transformation rules to the selected query element to generate
a transformed query element that includes a transformed remote query
element. If the transformed remote query element is pushdownable, the
system adds the transformed remote query element to a transformed inexact
query output. Otherwise, the system applies additional candidate
transformation rules to the selected query element to generate the
transformed inexact query output. The system applies the transformed
inexact query output to a heterogeneous datastore to provide an output
query result.