What is {noble title} of {Louis the Pious} and {followed by}
What is Louis the Pious's royal title and who followed his reign.
What is the royal title of Louis the Pious and who followed his reign.
SELECT ?j ?t WHERE { resource:Louis_the_Pious property:noble_title ?h . ?h property:followed_by ?j . . ?h property:noble_title ?t }
select distinct ?dataprop1 ?obj 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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q43974 p:P97 ?s . ?s ps:P97 ?obj . ?s pq:P156 ?value1 . }