What is {follows} and {followed by} of {{Charles the Fat} has {noble title} as {emperor of Occident}}
Who preceded and who observed Charles the Fat as emperor of Occident?
Who preceded and who followed Charles the Fat as emperor of Occident?
SELECT ?f ?n WHERE { ?a property:noble_title resource:emperor_of_Occident . resource:Charles_the_Fat property:noble_title ?a . ?a property:follows ?f . ?a property:followed_by ?n }
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:P155 ?value1 . ?s pq:P156 ?value2 }