Changes to ArrayQueryHistory(added ArrayQueryHistory)