Original: Until 1997 the First Mayor was primus inter pares among his colleagues in the Senate, by whom he was elected.
Simplified: Until 1997 the First Mayor was elected by the Senate.