State filter

before and after as operators for state filter would be very appreciated.

Can you give a concrete example of what you mean?