simple column reference = Expression
simple column reference IN (Expression1, Expression2, ..., ExpressionN)
The new predicate might be optimizable.
SELECT * FROM Flights WHERE flight_id = 'AA1111' OR flight_id = 'US5555' OR flight_id = ?
SELECT * FROM Flights WHERE flight_id IN ('AA1111', 'US5555', ?)
If this transformed IN list is a static IN list, Derby also performs the static IN list transformation (see Simple IN predicate transformations).