for \$x in collection('/db/DRIVER/entity/datasource') $if(conds)$ where $conds.keys:{xpath| \$x$xpath$ = '$conds.(xpath)$'}; separator=" and "$ $endif$ return \$x