Is your feature request related to a problem or challenge?
It would be nice if predicates that look like
could be rewritten as
And likewise,
could be rewritten as
Describe the solution you'd like
It would be straightforward to extend the expression simplifier to do this.
Describe alternatives you've considered
This seems pretty uncontroversial so I haven't considered any alternatives.
Additional context
This is relevant to InfluxQL support in IOx: https://github.com/influxdata/influxdb_iox/issues/6902