(a)where the petitioner, in addition to claiming a declaration that the election of the returned candidate is void, claims a further declaration that he himself or any other candidate has been duly elected, all the contesting candidates other than the petitioner, and where no such further declaration is claimed, the returned candidate; and