what is the {end time} for {North Atlantic Treaty Organization} has {secretary general} as {Paul-Henri Spaak} ?
What date will the secretary general of the North Atlantic Treaty Organization no longer be Paul-Henri Spaak?
When will Paul-Henri Spaak no longer be the secretary general of the North Atlantic Treaty Organization?
SELECT ?y WHERE { ?u property:end_time ?y . ?u property:secretary_general resource:Paul-Henri_Spaak . resource:NATO property:secretary_general ?u }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7184> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3975> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q155691> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q7184 p:P3975 ?s . ?s ps:P3975 wd:Q155691 . ?s pq:P582 ?value}