DQL/DPL question/puzzle

@henk_stobbe yes, this is one of the solutions. you can also use a combination of expand / parse / filter - for example how get the dt.owner tag value:

fetch dt.entity.host
| fieldsAdd tags
| expand tags
| parse tags, """((LD:tag (!<<'\\' ':') LD:value)|LD:tag)"""
| fieldsAdd dt.owner = if(isNotNull(value), value)
| filter tag=="dt.owner"
| fieldsRemove value, tags, tag