SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/children> <http://dbpedia.org/resource/Levi_Lincoln,_Jr.> . ?x <http://dbpedia.org/property/successor> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Governor>}
What is the successor of the governors whose child is Levi Lincoln, Jr.?
SELECT DISTINCT ?t WHERE { ?q property:successor ?t . ?q rdf:type ontology:Governor . ?q property:children resource:Levi_Lincoln,_Jr. }
David Cobb (Massachusetts), Christopher Gore, James Madison, Seth Hastings, John Breckinridge (U.S. Attorney General)
The successors of the governor whose child is Levi Lincoln, Jr. are [David Cobb (Massachusetts), Christopher Gore, James Madison, Seth Hastings, John Breckinridge (U.S. Attorney General)].
The heirs of the governor, whose child is Lincoln Jr., are [David Cobb (Massachusetts), Christopher Gore, James Madison, Seth Hastings, John Breckinridge (US Attorney)].