Complex sentence: Spain was the host nation and competed at the 1992 Summer Olympics in Barcelona under the IOC country code ESP (from its Spanish name "España").
Split into simpler sentences: Spain was the host nation and competed at the 1992 Summer Olympics in Barcelona. Spain competed under the IOC country code ESP (from its Spanish name "España").