I’ve searched the topics but don’t see an answer for this Task Query or Filter question. It’s Possible to build a query using java api for the following query:
(Variable1 = 'A' AND Variable1 = 'B' or Variable1 = 'C')
OR
(Variable2 = 'AA AND Variable2 = 'BB' or Variable2 = 'CC')