What is {follows} and {followed by} of {{Charles the Fat} has {noble title} as {king of Germany}}
Mention the title accompanied after the king of germany associated to the Charles the Fat
Mention the title followed after the king of germany related to the Charles the Fat
SELECT ?v ?i WHERE { resource:Charles_the_Fat property:noble_title ?o . ?o property:noble_title resource:king_of_Germany . ?o property:follows ?v . ?o property:followed_by ?i }
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/Q24004130>. ?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:Q24004130 . ?s pq:P155 ?value1 . ?s pq:P156 ?value2 }