union between keys

Hi everyone, I was wondering if it’s possible to specify the logical union between two or more keys in a query without writing the same instruction for every key.
Let’s say I want to get every node feature tagged as “historic” and all the node feature tagges as “tourism”.
The only way I could make it work was:


I was wondering if it’s possible to do something like


, to compress everything in one instruction. This example doesn’t work, nor the



Here are some ideas (the example is a bit more complicated but you should get the idea): https://gis.stackexchange.com/questions/229573/overpass-api-boolean-filtering/229586#229586

In addition you can use regular expressions for keys: way~“^(tourism|historic)$”~“.”;