Question: Which country Paul von Hindenburg was the head of state of?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P35 wd:Q2667 . ?sbj wdt:P31 wd:Q3024240 }