What is {spouse} of {Nero} that is {end time} is {68-6-9} ?
When was the companion separated Nero in 9-6-68?
When was the spouse divorced Nero in 9-6-68
SELECT ?w WHERE { ?y property:spouse ?w . resource:Nero property:spouse ?y . ?y property:end_time ?v . FILTER ( CONTAINS ( ?v , '68-6-9' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1413> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P582> <68-6-9>
} 

SELECT ?obj WHERE { wd:Q1413 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(?x , '68-6-9')) }