CommandExecutor.ExecuteQuery: duplicate search for affected tables