agent query return map