The gender of the antecedent will be the same as the pronoun used in the same sentence. The antecedents would be much with the pronoun in terms of singular and plural too.