Case Where
A SQL CASE WHEN <disc> = ? THEN <pred> [...] [ELSE <pred>] END expression usable as a top-level Where.
Each branch holds its own Where predicate. At lowering time, branch predicates emit scalar SQL via Where.toScalarSqlValue so they compose inside the CASE without LATERAL json_tree joins.
Variants/values not listed are excluded — unmatched rows fall through to SQL NULL (falsy in WHERE). Use default { ... } for an explicit ELSE.