Custom variables containing sql where clause

But you don’t need to specify value, just use ${variable:raw} in the SQL