例えば
The picture was painted.
↓疑問文にする
Was the picture painted?
↓文頭にWhatを入れる
What was the picture painted? となります。
因みにWhat picture を主語にするなら
What picture was painted? となります。
※What the picture was painted? とはならないので注意してください(Whatの後にtheは入りません)
分かりにくかったら申し訳ないです💦