For example maybe something like this might work:

Trigger governing5
WhenToTest GovernorBuildingCompleted

Condition SettlementBuildingExists