Complex sentence: The origins of the town start with the parish church of Sant Adria, which was referred to in 1012, where in about 1092 a priory of Augustinian monks, dependants of Sant Ruf d'Avinyo, was founded.
Split into simpler sentences: The origins of the town take place in the paroquial church of Sant Adria, already referred to in the year 1012. In this church, around the year 1092, a priory of Augustinian monks, dependents of Sant Ruf d'Avinyo, was founded.