What is {follows} and {followed by} of {{Guy of Lusignan} has {noble title} as {count of Jaffa and Ascalon}}
Who was once Count of Jaffa and Ascalon earlier than and after Guy of Lusignan?
Who was Count of Jaffa and Ascalon before and after Guy of Lusignan?
SELECT ?n ?k WHERE { ?b property:followed_by ?k . ?b property:noble_title resource:count_of_Jaffa_and_Ascalon . resource:Guy_of_Lusignan property:noble_title ?b . ?b property:follows ?n }
select distinct ?value1 ?value2 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/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q294192 p:P97 ?s . ?s ps:P97 wd:Q52160370 . ?s pq:P155 ?value1 . ?s pq:P156 ?value2 }