What is {follows} and {followed by} of {{Louis the Pious} has {noble title} as {king of Franks}}
Specify the forerunner and the successor of Louis the Devout whereas being recognized as lord of Franks
Mention the predecessor and the successor of Louis the Pious while being recognized as king of Franks
SELECT ?h ?x WHERE { resource:Louis_the_Pious property:noble_title ?b . ?b property:follows ?h . ?b property:noble_title resource:king_of_Franks . ?b property:followed_by ?x }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q43974> . ?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/Q22923081>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q43974 p:P97 ?s . ?s ps:P97 wd:Q22923081 . ?s pq:P155 ?value1 . ?s pq:P156 ?value2 }