“War for the Planet of the Apes” might be the greatest ending of a film trilogy ever, data show