So in the question sentences:
In (1.), I thought that the の there is seeking an explanation.
But I found another sentence (2.) and I know that こと can follow a verb and 物 can follow an adjective to talk about them like nouns. Both can be replaced by の.
So if the の in sentence (1.) is not seeking an explanation and makes 盗んだ into a noun then what has the sentence become and how?
If the の is seeking an explanation then what has sentence (2.) become with 選んだこと(event of choosing)?
More specifically, I am confused with the structure of the following :
(subject + が + verb/adjective + の/物/こと+ か/question).
Please explain as detailed as possible.