what is the {end time} for {Guy of Lusignan} has {noble title} as {count of Jaffa and Ascalon} ?
Guy of Lusignan stopped being the Count of Jaffa and Ascalon on what date?
When did Guy of Lusignan stop being the Count of Jaffa and Ascalon?
SELECT ?e WHERE { ?q property:end_time ?e . resource:Guy_of_Lusignan property:noble_title ?q . ?q property:noble_title resource:count_of_Jaffa_and_Ascalon }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q294192> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P97> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q52160370> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q294192 p:P97 ?s . ?s ps:P97 wd:Q52160370 . ?s pq:P582 ?value}