What is {country of citizenship} of {David Ricardo} that is {end cause} is {Acts of Union 1800} ?
David Ricardo hails from which country?
What country is David Ricardo a citizen of?
SELECT ?u WHERE { ?c property:country_of_citizenship ?u . ?c property:end_cause resource:Acts_of_Union_1800 . resource:David_Ricardo property:country_of_citizenship ?c }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q160270> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P27> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1534> <http://wikidata.dbpedia.org/resource/Q343100>
} 

SELECT ?obj WHERE { wd:Q160270 p:P27 ?s . ?s ps:P27 ?obj . ?s pq:P1534 wd:Q343100 }