Using condition with conditional fields in custom queries

If I use a normal query in Wappler, I can set conditions with conditions, like this

When using a custom query can i achieve the same thing.
I have attempted adding them in just like the normal query but it does not seem to do the same thing

Community Page
Last updated: