A question that is free of any grammatical or logcal errors, should be labeled 'yes', otherwise it should be indicated as 'no'. A question is grammatically correct if all its entities i.e. nouns, verbs, adjectives, prepositions, pronouns, adverbs are at appropriate position. A question is logically correct if the semantic makes sense.

[Q]: Sentence: He them imprisons the royal family in his prison . 
Question: How many times was the royal family in prison?
[A]: Yes.


[Q]: Sentence: In the mean time fate had avenged Law on one of his lesser enemies. 
Question: What happened after fate intervened?
[A]: Yes.


[Q]: Sentence: Tocqueville was a classical liberal who advocated parliamentary government, but was skeptical of the extremes of democracy. 
Question: How long  was  an advocate?
[A]:
No.


