<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Not sure exactly what you want to achieve, but perhaps<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>set PrintStructures instruction_name;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cat;</div><div><br></div><div>or</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>tabulate Last match instruction_name;</div><div><br></div><div>is what you've been looking for?</div><div><br></div><div>Best,</div><div>Stephanie<br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 15 Oct 2024, at 21:34, Hugo Sanjurjo González &lt;hugo.sanjurjo@deusto.es&gt; wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><p>Related to a previous issue. I'm wondering if there's a way to retrieve structural annotation tags without relying on the context<span class="Apple-converted-space">&nbsp;</span></p><p>&nbsp;For example:</p><div><br class="webkit-block-placeholder"></div><span style="font-family: monospace;">&lt;instruction name="1&gt; This is an example of an instruction. &lt;/instruction&gt;&lt;instruction name="1"&gt; Another example. &lt;/instruction&gt;<span class="Apple-converted-space">&nbsp;</span></span><p>Running the command:</p><p><span style="font-family: monospace;">show<span class="Apple-converted-space">&nbsp;</span><a class="gmail_plusreply" id="plusReplyChip-0">+instruction;</a></span></p><p>returns the opening and closing annotation tags if they are present in the context. I have some ideas on how to achieve this using the output, but I'd like to know if there is anything in CQP that I might have missed.<span class="Apple-converted-space">&nbsp;</span><br></p><p>Thank you very much for your help.</p><font color="#888888"><span style="caret-color: rgb(136, 136, 136); color: rgb(136, 136, 136); font-family: ArialMT; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;"></span><br class="Apple-interchange-newline"></font></div></blockquote></div><br></div></body></html>