What is {country} of {Medina} that is {start time} is {632-0-0} ?
Medina was from what country at the time of her inception in 0/0/632
Which country was Medina from at the time of her inception 632-0-0?
SELECT ?d WHERE { ?i property:start_time ?o . ?i property:country ?d . FILTER ( CONTAINS ( ?o , '632-0-0' ) ) . resource:Medina property:country ?i }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35484> .
?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> <632-0-0>
} 

SELECT ?obj WHERE { wd:Q35484 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P580 ?x filter(contains(?x , '632-0-0')) }