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: ground
before: bare
after: written on
attr: ground
Example Output: ground of ground was bare before and written on afterwards

Example Input: entity: strawberry custard dish
before: hot
after: cool
attr: temperature
Example Output: temperature of strawberry custard dish was hot before and cool afterwards

Example Input: entity: mug
before: clean
after: dirty
attr: cleanness
Example Output:
cleanness of mug was clean before and dirty afterwards