What is {position held} of {Xerxes} that is {end cause} is {attack} ?
What was the position held by Xerxes that is end cause was attacked?
SELECT ?obj WHERE { wd:Q129165 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1534 wd:Q81672 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q129165> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?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/Q81672>
} 

When Xerxes was attacked, what position was he holding?