Allow access to generated object history SQL query