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

http://global-migrate.com/?post_type=visa&p=251

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"?
thanks