Can Transformers Reason About Effects of Actions?