Allow to provide a statement in APPLY statements