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.

entity: tempering valve
before: missing from toilet
after: installed on toilet
attr: state
state of tempering valve was missing from toilet before and installed on toilet afterwards

entity: glue
before: sealed
after: opened
attr: state
state of glue was sealed before and opened afterwards

entity: legs
before: bent
after: straight
attr: shape
shape of legs was bent before and straight afterwards