What is {followed by} and {follows} of {{Charles the Fat} has {noble title} as {emperor of Occident}}
Who had the noble title before and after Charles the Fat, emperor of Occident?
Which is followed by and follows Charles the Fat who had a noble title as emperor of Occident?
SELECT ?h ?f WHERE { ?y property:noble_title resource:emperor_of_Occident . resource:Charles_the_Fat property:noble_title ?y . ?y property:followed_by ?h . ?y property:follows ?f }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q150712> . ?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/Q23906200>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q150712 p:P97 ?s . ?s ps:P97 wd:Q23906200 . ?s pq:P156 ?value1 . ?s pq:P155 ?value2 }