Question: which country in Beersheba  has am end time of 1917-10-31?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q41843 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1917')) }