Question: What country did Lviv live in in 1348-0-0?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q36036 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1348')) }