On the Expressive Power of Contextual Relations in Transformers