Complex sentence: The constitutional amendment gave autonomy to the city of Buenos Aires, allowing it to sanction local laws and elect its own mayor, who was previously appointed by the president of the nation.
Split into simpler sentences: The constitutional amendment gave autonomy to the city of Buenos Aires, allowing it to sanction local laws and elect its own mayor. Prior to it, the mayor was appointed by the president of the nation.