Given an entity, a before event, an after event, and an attribute related to the entity, generate a sentence as output. Your sentence should show the changes in the attribute of the entity.

Example Input: entity: onion
before: whole
after: sliced
attr: composition
Example Output: composition of onion was whole before and sliced afterwards

Example Input: entity: plate
before: empty
after: full
attr: fullness
Example Output: fullness of plate was empty before and full afterwards

Example Input: entity: controller
before: in box
after: removed from box
attr: location
Example Output:
location of controller was in box before and removed from box afterwards