Input (grade 6): Sabellianism was doctrine adhered to by a sect of the Montanists.
Output (grade 5): Sabellianism was doctrine taught by a sect of the Montanists.