Change into question: She was the only one who knew the answer.

Change into question: She was the only one who knew the answer.

Explanation

To form a question in the past tense with "was," place the verb "was" before the subject.

The sentence is a yes/no question structure: Was + subject + complement?