added support for union tag queries