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: ball
before: loose
after: in barrel
attr: locatin
Example Output: locatin of ball was loose before and in barrel afterwards

Example Input: entity: butter
before: solid
after: liquid
attr: state
Example Output: state of butter was solid before and liquid afterwards

Example Input: entity: rattata
before: unlead
after: leading
attr: state
Example Output:
state of rattata was unlead before and leading afterwards