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.

Ex Input:
entity: saw
before: turned off
after: turned on
attr: power

Ex Output:
power of saw was turned off before and turned on afterwards

Ex Input:
entity: fan
before: attached
after: unattached
attr: state

Ex Output:
state of fan was attached before and unattached afterwards

Ex Input:
entity: cement
before: wet
after: dry
attr: moisture

Ex Output:
moisture of cement was wet before and dry afterwards