Complex sentence: San Marino participated in the Eurovision Song Contest 2012 in Baku, Azerbaijan, selecting their entry through an internal selection, organised by the Sanmarinese broadcaster San Marino RTV (SMRTV).
Split into simpler sentences: San Marino participated in the Eurovision Song Contest 2012 in Baku, Azerbaijan. The Sammarinese entry was selected through an internal selection, organised by the Sammarinese broadcaster San Marino RTV (SMRTV).