<query type="node">
  <has-kv k="key" regv="^(value1|value2|value3)$"/>
</query>
<union>
  <item/>
  <query type="way">
    <has-kv k="key" regv="^(value1|value2|value3)$"/>
  </query>
  <recurse type="way-node"/>
</union>
<print/>
<query type="relation">
  <has-kv k="key" regv="^(value1|value2|value3)$"/>
</query>
<print/>
