EQL allows users to write sets directly in queries.
{<expr1> [,<expr2>]*}where the curly braces enclose a comma-separated list of one or more expressions.
{ 1, 4, 7, 10 }while this is a string set:
{ 'Red', 'White', 'Merlot', 'Chardonnay' }
{ x, y + z, 3, HIERARCHY_LEVEL(managedAttr) }
Note that EQL does not auto-convert integers to doubles or string literals to managed-attribute values within a set constructor. Therefore, writing {1, 2.5} results in a type error. In this case, you can use TO_DOUBLE or TO_MANAGED_VALUE to perform the conversion manually (for example, {TO_DOUBLE(1), 2.5}).
RETURN results AS SELECT {'Red', 'White'} AS selectWines, WineID AS idRec, WineType AS wines, Body AS bodyAttr HAVING wines IN selectWines ORDER BY idRec
RETURN results AS SELECT WineID AS idRec, WineType AS wines, Body AS bodyAttr WHERE WineType IN {'Red', 'White'} ORDER BY idRec
Both queries would return only records with a WineType of 'Red' or 'White'.