Replaced QueryLog with QueryResult