Question: Who gave the {has son} of {has son of} of {Mary Stewart} ?
Paraphrase: Who fathered the son of Mary Stewart?
SPARQL (Wikidata): SELECT ?answer WHERE { wd:Q4652 wdt:P22 ?X . ?X wdt:P40 ?answer}
Answer: Mary Stewart, James III of Scotland, Alexander Stewart, John Stewart, Earl of Mar, David Stewart, Earl of Moray, Margaret Stewart, unnamed son Stewart, John Stewart