Question: What was the name of the head of state in the Weimar Republic?
SPARQL (Wikidata):  select distinct ?obj where { wd:Q41304 wdt:P1906 ?obj . ?obj wdt:P31 wd:Q4164871 } 
Answer: Reichspräsident