To be eligible to be sponsored, the spouse or the common-law partner should be able to prove their relationship to be genuine

What is the grammatical function of three "to be" here?
please could someone elaborate its usage in the given context? What is the subject and verb in the "to be eligible to be sponsored"?