You might want to check Using dynamic variables in queries - #2 by FlorianF and a plethora of other posts scattered accross this forum, like Is there any documentation on Simple Queries inside Advanced Queries? for example.
1 Like