Sentence:  "The byelection was caused by the resignation of Boris Johnson following his election as mayor of London in May.
Entities:
entity1: resignation
entity2: byelection
Relation: Cause-Effect