What is {president} of {sovereign state} of {Beishi River} ?
Who's the president of majestic state of Beishi River?
Who's the president of sovereign state of Beishi River?
SELECT ?v WHERE { ?u property:head_of_state ?v . resource:Beishi_River property:country ?u }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3637532> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P35> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q3637532 wdt:P17 ?X . ?X wdt:P35 ?answer}
Tsai Ing-wen