Complex sentence: In 1997, the Catholic community was restarted and after Pope John Paul II's visit to Azerbaijan in 2002, it was granted land to built a new church.
Split into simpler sentences: In 1997, the Catholic community was restarted. After Pope John Paul II's visit to Azerbaijan in 2002, it was granted land to build a new church.