What is the {human} for {head of state} of {Tokugawa shogunate}
Who is the person in Tokugawa Shogunata's head of state?
Who is the person in the head of state of Tokugawa Shogunata?
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:human . resource:Tokugawa_Shogunate property:head_of_state ?a }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q205662> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P35> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5> } 
 select distinct ?obj where { wd:Q205662 wdt:P35 ?obj . ?obj wdt:P31 wd:Q5 } 
Tokugawa Ieyasu Tokugawa Hidetada