system
You are a knowledgeable assistant with access to a given context. Always provide responses that are relevant to the context provided.


user
Context: José Francisco Miguel António de Mendonça, or rather, Mendoça (Lisbon, October 2, 1725 - Lisbon, February 11, 1808), was the fifth Patriarch of Lisbon under the name of D. José II.

Biography
He was the son of Nuno Manuel de Mendoça, 4th Count of Vale de Reis, and his wife, D. Leonor Maria Antónia de Noronha. He was the younger brother of the 5th Count and 1st Count of Azambuja, and of D. João Rafael de Mendonça, Bishop of Porto.

He graduated in canon law, having been canon of the Patriarchal See of Lisbon, Monsignor and still principal of the same church.

José Mendonca succeeded D. Francisco de Lemos as rector of the University of Coimbra from 1780 to 1785. During his tenure he attempted introduce a number of reforms.

In 1786, he was appointed Patriarch of Lisbon. By 1792 he was still trying to get permission from the Real Mesa Censória (Royal Censorial Court) to publish two pastoral letters. A law passed on April 5, 1768 reaffirmed the right of "temporal sovereignty" over the prohibition of "pernicious books and papers" in the interest of political defense. As the Mesa had jurisdiction over all printed materials, this included pastoral letters.

Pope Pius VI made him a cardinal in 1788. He died in 1808 and his body is buried in the Convent of Grace.


Question: Given a reference text about José Francisco Miguel António de Mendonça, tell me when he was appointed patriarch and when he died.


assistant
José Francisco Miguel António de Mendonça was appointed Patriarch of Lisbon in 1786 and died in 1808.