what is the {start time} for {Olympias} has {spouse} as {Philip II of Macedon} ?
When did Olympias have the wife of Phillip II of Macedon?
When {start time} for {Olympias} has {spouse} as {Philip II of Macedon} ?
SELECT ?h WHERE { ?g property:spouse resource:Philip_II_of_Macedon . resource:Olympias property:spouse ?g . ?g property:start_time ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q223134> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q130650> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q223134 p:P26 ?s . ?s ps:P26 wd:Q130650 . ?s pq:P580 ?value}