<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_property_by_hash(self, property_hash: str) -> Optional[Property]: """Get a property by its hash if it exists."""

        return self.session.query(Property).filter(Property.sha512 == property_hash).one_or_none()