Complex sentence: Both states share Chandigarh as their capital city which itself is administered as an Union territory.
Split into simpler sentences: Both states share Chandigarh as their capital city. The city itself is administered as a Union territory.