How many years did it take for the Papacy to change its mind about supporting James after 1691?
return the  Papacy ;return years that it take for #1 to change its mind about supporting James ;return #2 after 1691 ;return number of  #3
['select', 'project', 'filter', 'aggregate']