Question: Who was the spouse of Sándor Petőfi in 1847?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q81219 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1847')) }