What is {country} of {Cairo} that is {start time} is {1250-5-2} ?
On May 2nd, 1250, what country began where Cairo is located?
Cairo is located in which country that began on May second in the year 1250?
SELECT ?j WHERE { ?t property:country ?j . resource:Cairo property:country ?t . FILTER ( CONTAINS ( YEAR ( ?h ) , '1250' ) ) . ?t property:start_time ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q85> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1250-5-2>
} 

SELECT ?obj WHERE { wd:Q85 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1250')) }