Original: The main part of a union of adjacent cities and municipalities named Àrea Metropolitana de Barcelona ( AMB ) with a population of 3,186,461 in an area of 636 km ( density 5.010 hab\/km ) .
Simplified: Barcelona is the second most populated city in Spain , and the tenth in the European Union .