Из прямой речи в косвенную ‘Were you at the party?’ He asked me if
He asked me if I had been at the party.