This function takes R expressions like col == "value" and converts them
into the format expected by the API (e.g., list(col = "eq.value")). It
supports basic comparison operators (==, !=, >, <, >=, <=) and
%in%. It also handles is.na(col) and !is.na(col) for null checks.
