the first minister and the deputy first minister are elected on a joint ticket. under the st andrews agreement, the leader of the largest party nominates the first minister, and the leader of the next largest party that is in the other group nominates the deputy first minister.