First and foremost, this is why Automatic Tags are preferred.
If DQL is a curve ball, One of the easy ways to do this would be to create an opposing tag. So you made a tag that says “environment” you can create an Auto Tag rule that tags hosts as “Missed” if they dont have a Host tag of Environment.
In terms of your host, is the environment in your naming convention? Do you have a CMDB? Ideally you should leverage an auto tag rule that read the host name of the metadata then provides the applicable value as an environment tag.
If you want to go the DQL route you can do the following:
fetch dt.entity.host
| fieldsAdd tags
| filter NOT contains(tags, “[Environment]”)